Accounting & ERP
Xero mock API
Xero Accounting API: OAuth token and connections, contacts, invoices with computed totals, payments, items, accounts and tax rates.
At a glance
- Operations
- 238
- Stateful operations
- 27
- Stateful resources
- 6
- Webhook events
- 4
- Vendor API version
- 2.0
- Verification
- Spec-verified
How it works
Use Xero without calling Xero Limited
- Install the mock from the library into a workspace. It runs as a virtual service.
- Point your client's base URL at the virtual service instead of the vendor.
- Authenticate the way you already do. The mock accepts the same credential shape:
Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.example State
Resources that remember
Writes persist per caller, so a create followed by a read returns what you created.
| Resource | Operations |
|---|---|
| Token and connections | 3 |
| Contacts | 5 |
| Invoices | 5 |
| Payments | 5 |
| Items | 6 |
| Accounts and tax rates | 4 |
Webhooks
Events your handlers can receive
- contact.update
- contact.create
- invoice.create
- invoice.update
Deliveries are signed with the hmac-sha256-base64 scheme, so your verification code runs unchanged.
Coverage
238 operations
27 of them are stateful. The largest groups:
| Group | Operations |
|---|---|
| Other operations | 210 |
| Items | 6 |
| Contacts | 5 |
| Invoices | 5 |
| Payments | 5 |
| Accounts and tax rates | 4 |
Verification
Spec-verified
Generated operations are checked against the vendor OpenAPI description, which proves shape and routing. Stateful operations and scenario suites prove behaviour. Responses are not yet compared with a live vendor sandbox.
7 operations cannot be checked against the specification.
Source and limits
License, source and limits
- Generated from the Xero Limited API description, licensed under MIT.
- Xero Limited API documentation
- Source specification
Each collection holds up to 1 MiB of objects per tenant (xero-tenant-id); writes beyond that are dropped (x-maxoperf-vs-state: capacity).
MaxoPerf is not affiliated with, endorsed by, or sponsored by Xero Limited. Xero is a trademark of its owner.