Asia · API
API docs for Singapore and Japan
FIRST REQUEST
From invoice to API call
Choose create or check. Copy the command and replace the placeholder key on your server. This page sends no API request.
Set up API access →You can create an API key only after verifying your email. Two-factor authentication is recommended.
Before your first request: sign up → verify your email → create an API key.
curl https://www.invokexml.com/api/v1/convert \ -H "X-API-Key: ixk_your_key" \ -H "Content-Type: application/json" \ -d @invoice.json
Profiles
- InvoiceNow (PINT-SG):
"profile": "pint-sg" - JP PINT:
"profile": "jp-pint" - PINT A-NZ:
"profile": "aunz-pint"
Malaysia (MyInvois) is planned and not available yet.
Authentication and access
You can create an API key only after verifying your email. Two-factor authentication is recommended. The API and website share the same 5 free conversions each month. Only valid conversion results count. After the monthly allowance, prepaid credits are used. Validate calls do not use the conversion quota. Free includes 1 API key and 10 requests per minute per key.
Send your key as X-API-Key: ixk_… or Authorization: Bearer ixk_…. Every plan has API access, including Free (1 key, 10 requests per minute). It needs a verified email address; otherwise the API answers 403. Create keys in your dashboard. The machine-readable spec is at /openapi.json (OpenAPI 3.1) for Postman, n8n, Make or Zapier HTTP nodes and client generation.
Convert: POST /api/v1/convert
The body is the invoice as JSON plus profile. For Singapore, give the seller's UEN and GST registration number; amounts in SGD or another currency with GST in SGD. For Japan, give the seller's registration number (T plus 13 digits), amounts in JPY and tax rates of 10% or 8%. For Australia or New Zealand, give the seller's ABN (11 digits) as legalId, amounts in AUD or NZD and GST of 10% (AU) or 15% (NZ). All examples below are complete requests.
Before your first request: sign up → verify your email → create an API key.
A valid invoice returns 200 with the XML (or edi for X12), totals as strings with two decimals, the findings report and your usage this month (totals shown for the Singapore example).
Validate: POST /api/v1/validate
Send raw XML (up to 1 MB) or JSON {"xml": "…"}. Validation is free and returns the same findings report; XML that cannot be parsed returns 422. Without a key, use the web validator.
Before your first request: sign up → verify your email → create an API key.
Errors
401Missing or unknown API key.403email_unverified: the account has no confirmed email address.422The invoice failed the checks ({"valid": false, "report": …, "notices": […]}), the JSON is not a usable invoice (error code invalid_input), or the XML to validate cannot be parsed.429quota_exceeded: the monthly conversions and credits are used up. rate_limited: too many requests per minute for this key.
Errors other than a failed check have the shape {"error": {"code": "…", "message": "…"}}.
Rule ids
These are the InvokeXML checks. The official schema and Schematron for each format run on top of them.
Singapore (pint-sg)
IXK-SG-SELLER-COUNTRYIXK-SG-UENIXK-SG-GST-IDIXK-SG-CATEGORYIXK-SG-ZEROIXK-SG-RATEIXK-SG-CURRENCYIXK-SG-ENDPOINT
Japan (jp-pint)
IXK-JP-REGIXK-JP-SELLER-COUNTRYIXK-JP-JPYIXK-JP-RATEIXK-JP-ENDPOINT
Australia/New Zealand (aunz-pint)
IXK-AUNZ-SELLER-COUNTRYIXK-AUNZ-ABNIXK-AUNZ-RATEIXK-AUNZ-CURRENCYIXK-AUNZ-ENDPOINT
InvokeXML creates and checks invoice files. It does not send or deliver invoices to your customers or to a network.
Webhooks
In your dashboard, add an HTTPS receiver you control and select conversion.completed, validation.failed, or both. A confirmed email is required; two-factor authentication is recommended. Each account allows five endpoints.
Authenticated browser and API operations generate events. Successful conversion responses include eventId when queuing succeeds. Invalid invoice input or failed invoice checks generate validation.failed. Anonymous requests, successful validation checks, authentication errors and quota errors do not generate events. Invoice delivery events are not available.
No invoice numbers, names, amounts, addresses, XML, PDF or finding messages are sent or stored in the queue. Only event metadata, status and finding codes are retained. Endpoint URLs and signing secrets are account settings; keep secrets private. A signing secret is shown once on creation. To rotate it, remove the old endpoint and create a new one.
Verify the signature
Read X-InvokeXML-Id, X-InvokeXML-Event, X-InvokeXML-Timestamp and X-InvokeXML-Signature. The signature is v1= followed by the hexadecimal HMAC-SHA256 of timestamp + "." + the raw JSON body, using the complete whsec_ secret as the UTF-8 key. Reject timestamps older than five minutes, compare signatures in constant time and deduplicate using the signed event.id.
Delivery and retries
Queued events persist across restarts. Delivery is at least once and ordering is not guaranteed: acknowledge duplicates with HTTP 2xx. The receiver has ten seconds to return a 2xx response. Network failures, HTTP 408/425/429 and 5xx responses retry after approximately 30 seconds, 2 minutes, 10 minutes, 1 hour and 6 hours, for at most six attempts. Other responses, including redirects, stop retries. HTTPS on port 443 is required; local, private and reserved addresses are rejected and DNS is checked again on every attempt.
The dashboard shows the last 50 deliveries. Completed/failed records are removed after seven days. Pending queues allow 2,000 events per endpoint; if a queue is full or storage fails, invoice processing continues and eventId can be absent. Pausing cancels pending deliveries; an in-flight request may finish. Removing an endpoint deletes its queue and secret. Add a new endpoint to change its URL.
Manage webhook endpoints