Issue eInvoice (draft)
API to issue an e-invoice from a draft reference_code, returning a tracking code to monitor issuance.
POST
https://einvoice-api-sandbox.sepay.vn/v1/invoices/issue-H "Authorization: Bearer <ACCESS_TOKEN>" \ -H "Content-Type: application/json"
- Payload:
| Name | Type | Required | Description |
|---|---|---|---|
reference_code | string | Required | Reference code of the draft invoice created earlier. |
Note
- Issuance is only allowed for invoices that were previously created as drafts (
is_draft=true). reference_codecan be retrieved via the Invoice List API or obtained from thereference_codereturned after successfully checking the draft invoice creation status.- After successfully submitting an invoice issuance request, use the endpoint provided in
tracking_urlto call the Invoice Issuance Status Tracking API.
| 400 | Bad Request Missing or invalid reference_code. | — |
| 401 | Unauthorized Missing or invalid Bearer token. | — |
| 404 | Not Found Draft invoice not found for the given reference_code. | — |