M2X APIs
M2X APIS (1.0.0)
Download OpenAPI description
Overview
License
All Rights Reserved
Languages
Servers
Mock server
https://developer.m2x.app/_mock/apis/publicapi/openapi/
https://developer.m2x.app/apis/v0/
NZ Production server (uses live data)
https://m2x.app/apis/v0/
US Production server (uses live data)
https://us.m2x.app/apis/v0/
AUS Production server (uses live data)
https://au.m2x.app/apis/v0/
Sandbox server
https://staging.m2x.app/apis/v0/
Bodyapplication/jsonrequired
The event to register
The type of the event to register
Enum"INVOICE_ISSUED""INVOICE_SETTLED""CREDIT_NOTE_ISSUED""CREDIT_NOTE_SETTLED"
Example: "INVOICE_ISSUED"
The timestamp of the event to register
Example: "2020-01-01T00:00:00Z"
- Mock serverhttps://developer.m2x.app/_mock/apis/publicapi/openapi/transactions/{transactionId}/events
- https://developer.m2x.app/apis/v0/transactions/{transactionId}/events
- NZ Production server (uses live data)https://m2x.app/apis/v0/transactions/{transactionId}/events
- US Production server (uses live data)https://us.m2x.app/apis/v0/transactions/{transactionId}/events
- AUS Production server (uses live data)https://au.m2x.app/apis/v0/transactions/{transactionId}/events
- Sandbox serverhttps://staging.m2x.app/apis/v0/transactions/{transactionId}/events
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://developer.m2x.app/_mock/apis/publicapi/openapi/transactions/{transactionId}/events' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"type": "INVOICE_ISSUED",
"timestamp": "2020-01-01T00:00:00Z",
"reference": "INV-1234"
}'