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:
NameTypeRequiredDescription
reference_code
stringRequired
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_code can be retrieved via the Invoice List API or obtained from the reference_code returned after successfully checking the draft invoice creation status.
  • After successfully submitting an invoice issuance request, use the endpoint provided in tracking_url to 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.