Before you start, you need:
- A PayPathIQ login with API access, to create a sandbox key. See Get a sandbox key.
- Your
clientCode. It is shown next to the Client name when you create the key. - A shell with
curl, or Node.js 18 or later, or Python 3 withrequests.
Set up
Store the key in your secret manager and inject it asPAYPATHIQ_SANDBOX_API_KEY. Set your Client code as PAYPATHIQ_CLIENT_CODE.
Sandbox keys have every scope this quickstart needs. Run the steps one at a time. Each key can run only one request at a time, and a second concurrent request returns 429 rate_limit_exceeded.
The suffix keeps the immutable Payment observation and other resources independent from earlier runs. Run the setup once for each walkthrough.
Check the API is reachable
The OpenAPI contract needs no API key. This call proves you can reach the sandbox.200 OK and a paypathiq-api-version: v1 header. The body is the OpenAPI document, which begins:
1
Create a Customer
A Customer must exist before a Receivable can reference it.Expect Repeating the identical request returns
201 Created and the saved Customer (trimmed):200 OK without creating another revision. See Safe retries.2
Create a Receivable
recoverableAmount is the posted source obligation balance. Importing it does not grant recovery authority. Use an approved loan-profile connection for this example.201 Created and the saved Receivable (trimmed):409 dependency_missing. PayPathIQ does not guess or queue the relationship.3
Record a Payment observation
Use a Payment observation only for money received outside PayPathIQ. It is immutable evidence, not an instruction to collect a payment.Expect An allocation larger than the locked current balance fails atomically with
201 Created and the accepted observation (trimmed):409 allocation_exceeds_balance. Unallocated money stays unapplied.4
Pause the Receivable
Lifecycle changes use explicit commands rather than ordinary status fields.Expect
200 OK and the Receivable with "status": "paused".Clear-pause, close, and reopen are separate commands. Clearing a pause or reopening never resumes recovery automation automatically.5
Verify the resulting record
Read the Integration-facing Receivable back with Expect Save each response’s
GET.200 OK, "status": "paused" and a recoverableAmount of "1000.00" EUR, which is the EUR 1,250.00 obligation less the EUR 250.00 payment (trimmed):X-Request-Id for support correlation. Do not send PayPathIQ an API key or full personal-data payload when reporting a problem.Retrying requests
Next steps
- Load your first book, report a payment and stay in sync.
- The API reference has the complete schemas, lifecycle commands, status codes, and typed error responses.
- When you are ready for production, use the go-live checklist.