Beta - Create a new invoice
POST/invoices
warning
This endpoint is currently in beta and must be used only for gas invoices.
Creates a new invoice with the provided details. This endpoint provides a signed URL for uploading a PDF invoice.
Steps and considerations
- POST invoice metadata to obtain the upload URL (
detailUrlfield). - PUT the PDF file to the returned URL (valid for 15 minutes).
Important: After creating the invoice, the PDF must be uploaded to the
detailUrlreturned in the response. If the PDF is not uploaded, the invoice will not be processed and will not be available to the customer.
Request
Responses
- 200
- 400
- 401
- default
Invoice created successfully
Bad Request
Unauthorized
Unexpected error