Send E-Invoice for Singapore
Generate and send a Singapore e-invoice from ERP invoice JSON. This is the single entry point for AR/AP flows 1A, 2A, 2B, 3A and 3B — you POST the invoice JSON, and Staple maps it to PINT-SG UBL, runs it through the document-creation pipeline, and (depending on the flow) sends it over the Peppol network and/or submits the tax data to IRAS.
Send is asynchronous: a requestId is returned immediately. Track delivery/tax status by polling GET /v2/supernova/models/document/{requestId} (peppolSendStatus, irasTaxSubmissionStatus).
Flow selection
The exact flow is resolved from the destination query parameter plus Transaction Type and Addon in the payload:
Document Type
Document Type is Invoice (default when omitted) or Credit Note. A credit note additionally requires a Note and exactly one Document Reference (Number + Date) pointing at the original invoice. Credit notes are not supported on the sg-aggregated addon (Flows 2B and 3B).
Company & party rules
- For Sales (AR) the Seller must be a registered Staple e-invoice company owned by your organisation; for Purchases (AP) it is the Buyer.
- Seller and Buyer cannot be the same Peppol participant.
- For aggregated flows the counterparty is a reserved literal —
POS/STI(Flow 2B) orPCP(Flow 3B).
Use-case catalogue
Every combination the endpoint accepts, with the sample payload that exercises it:
Example naming ↔ flow mapping
The request examples use the sg-test-pack naming (1A-01, 2B-03, …). Each prefix maps to the flow convention as follows:
Authentication
Path parameters
Query parameters
Send target — combined with Transaction Type + Addon to resolve the flow (see description).
Request
Response
Request accepted (asynchronous — poll status via GET /v2/supernova/models/document/{requestId}).