PayclaveDocs

Payclave developers

Reconciliation and receipts

Read reporting summaries, signed receipts, and downloadable exports.

Access and availability
Secret key required. Use this API to compare customer payments with merchant receipts and export records. It does not create balances or transfer funds.

Agent payment reports

GET

GET /v1/agent-payments

Secret key only. Reporting must be enabled. Required from/to RFC 3339 timestamps (UTC edges, exclusive to); optional startingAfter from nextCursor. Maximum 366 days and 10,000 attempts; pages contain 50 records. No additional status or asset filters.

curl --get "https://api.payclave.com/v1/agent-payments" -H "Authorization: Bearer sk_test_..." --data-urlencode "from=2026-11-01T00:00:00Z" --data-urlencode "to=2026-11-13T00:00:00Z"

Payment receipts

GET

GET /v1/payments/:id/receipt

Secret key only, bound to merchant and key mode. No body. Receipt issuance must be enabled. Verification keys are public at GET /v1/receipt-keys (keys only). See /payment-receipts.md for signature verification and partial payment semantics.

Reconciliation reports

GET

GET /v1/reconciliation/schema/:version

Use version 2026-08-29.v1.

GET

GET /v1/reconciliation/summary

Summarize payment and invoice records within a reporting window.

Reporting window

Query parameters
fromRequired
string · date-time
Start of the reporting window, inclusive. Use an RFC 3339 timestamp.
toRequired
string · date-time
End of the reporting window, exclusive. Use an RFC 3339 timestamp.
  • Use a window of at most 366 days. The preview is bounded to 10,000 rows.

curl --get "https://api.payclave.com/v1/reconciliation/summary" -H "Authorization: Bearer sk_test_..." --data-urlencode "from=2026-11-01T00:00:00Z" --data-urlencode "to=2026-11-13T00:00:00Z" --data-urlencode "dateBasis=payment_confirmed"

Exports

POST

POST /v1/reconciliation-exports

Create an export for a reporting window. The response returns a job to follow until the files are ready.

Body parameters

JSON body
fromRequired
string · date-time
Start of the reporting window, inclusive. Use an RFC 3339 timestamp.
toRequired
string · date-time
End of the reporting window, exclusive. Use an RFC 3339 timestamp.
formatRequired
string
File format for the exported datasets.
csvjson
  • Use a reporting window of at most 366 days.
  • Keep includePII false or omitted. Any supplied mode must match the API key.

GET

GET /v1/reconciliation-exports

Query: limit (default 25, use 1-100), startingAfter.

GET

GET /v1/reconciliation-exports/:id

No body.

POST

POST /v1/reconciliation-exports/:id/cancel

No body. Optional Idempotency-Key.

GET

GET /v1/reconciliation-exports/:id/download

No body. Export must be ready and not expired.

On this page