Create a new invoice
POST/contracts/:contractId/invoices
Creates a new invoice with the provided details. This endpoint provides a signed URL for uploading a PDF invoice.
tip
Recommended guide If you are unsure which parameters to include when creating a gas or electricity invoice, refer to the complete documentation.
Steps and considerations
- POST invoice metadata to obtain the upload URL (
fileUrlfield). - PUT the PDF file to the returned URL (valid for 15 minutes).
Important: After creating the invoice, the PDF must be uploaded to the
fileUrlreturned 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