Skip to content

Asia · API

API docs for Singapore and Japan

One JSON request in, UBL 2.1 invoice XML out. The profile field picks the country format; the response includes a findings report.

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.

request
curl https://www.invokexml.com/api/v1/convert \ -H "X-API-Key: ixk_your_key" \ -H "Content-Type: application/json" \ -d @invoice.json
invoice.json · Singapore
{ "profile": "pint-sg", "number": "INV-2026-001", "issueDate": "2026-10-01", "dueDate": "2026-10-31", "currency": "SGD", "buyerReference": "PO-778", "seller": { "name": "Lion Consulting Pte. Ltd.", "vatId": "M90312345A", "legalId": "201912345K", "address": { "street": "1 Raffles Place", "city": "Singapore", "postalCode": "048616", "countryCode": "SG" } }, "buyer": { "name": "Merlion Trading Pte. Ltd.", "legalId": "201812345M", "address": { "street": "10 Anson Road", "city": "Singapore", "postalCode": "079903", "countryCode": "SG" } }, "lines": [ { "name": "Consulting", "quantity": 10, "unitCode": "HUR", "unitPrice": 150, "vatCategory": "SR", "vatRate": 9 }, { "name": "Export freight", "quantity": 1, "unitCode": "C62", "unitPrice": 200, "vatCategory": "ZR", "vatRate": 0 } ], "payment": { "meansCode": "30", "iban": "ACCT-0001" } }
invoice.json · Japan
{ "profile": "jp-pint", "number": "JP-2026-001", "issueDate": "2026-10-01", "dueDate": "2026-10-31", "currency": "JPY", "buyerReference": "PO-4410", "seller": { "name": "Sakura Shoji K.K.", "vatId": "T1234567890123", "address": { "street": "1-1 Marunouchi", "city": "Chiyoda-ku, Tokyo", "postalCode": "100-0005", "countryCode": "JP" } }, "buyer": { "name": "Fuji Foods K.K.", "vatId": "T9876543210987", "address": { "street": "2-2 Umeda", "city": "Osaka", "postalCode": "530-0001", "countryCode": "JP" } }, "lines": [ { "name": "Office supplies", "quantity": 10, "unitCode": "C62", "unitPrice": 1000, "vatCategory": "S", "vatRate": 10 }, { "name": "Food delivery", "quantity": 5, "unitCode": "C62", "unitPrice": 800, "vatCategory": "AA", "vatRate": 8 } ], "payment": { "meansCode": "30", "iban": "ACCT-0001" } }
invoice.json · Australia
{ "profile": "aunz-pint", "number": "INV-2026-001", "issueDate": "2026-10-01", "dueDate": "2026-10-31", "currency": "AUD", "buyerReference": "PO-778", "seller": { "name": "Harbour Consulting Pty Ltd", "legalId": "51824753556", "address": { "street": "1 George Street", "city": "Sydney", "postalCode": "2000", "countryCode": "AU" } }, "buyer": { "name": "Koala Trading Pty Ltd", "legalId": "53004085616", "address": { "street": "10 Collins Street", "city": "Melbourne", "postalCode": "3000", "countryCode": "AU" } }, "lines": [ { "name": "Consulting", "quantity": 10, "unitCode": "HUR", "unitPrice": 150, "vatCategory": "S", "vatRate": 10 }, { "name": "Export freight", "quantity": 1, "unitCode": "C62", "unitPrice": 200, "vatCategory": "Z", "vatRate": 0 } ], "payment": { "meansCode": "30", "iban": "0123456789" } }

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).

response
{ "valid": true, "format": "ubl", "xml": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>…", "totals": { "taxExclusive": "1700.00", "tax": "135.00", "payable": "1835.00" }, "report": { "valid": true, "errors": 0, "warnings": 0, "findings": [] }, "notices": [], "usage": { "month": "2026-10", "used": 1, "limit": 1000, "credits": 0 } }

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.

request
curl https://www.invokexml.com/api/v1/validate \ -H "Authorization: Bearer ixk_your_key" \ -H "Content-Type: application/xml" \ --data-binary @invoice.xml

Errors

  • 401 Missing or unknown API key.
  • 403 email_unverified: the account has no confirmed email address.
  • 422 The 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.
  • 429 quota_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.

Event payload
{ "id": "8f49ead0-7cc8-4c84-b364-34125c14df59", "type": "validation.failed", "createdAt": "2026-10-29T12:00:00.000Z", "data": { "status": "failed", "findingCodes": [ "invalid_input" ] } }

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.

Node.js receiver · signature verification
import { createHmac, timingSafeEqual } from 'node:crypto'; // Use the exact raw request bytes, before parsing JSON. const timestamp = req.headers['x-invokexml-timestamp']; const received = req.headers['x-invokexml-signature']; if (typeof timestamp !== 'string' || !/^\d+$/.test(timestamp) || Math.abs(Date.now() / 1000 - Number(timestamp)) > 300) { throw new Error('Expired or invalid timestamp'); } const expected = 'v1=' + createHmac('sha256', process.env.WEBHOOK_SECRET) .update(timestamp + '.').update(rawBody).digest('hex'); if (typeof received !== 'string' || !/^v1=[a-f0-9]{64}$/.test(received) || !timingSafeEqual(Buffer.from(received), Buffer.from(expected))) { throw new Error('Invalid signature'); } const event = JSON.parse(rawBody.toString('utf8')); // Persist event.id as a unique key before acting; acknowledge duplicates. // Enqueue your own work, then return HTTP 2xx promptly.

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