GET /api/v1/settlements/:settlementId — Get Settlement
GET /api/v1/settlements/:settlementId — fetches a settlement with invoice, payer, and merchant details. Auto-refreshes on-chain status when SUBMITTED.
Poll this endpoint to check the confirmation status of a settlement. The response includes the full settlement record along with nested details about the associated invoice, service, payer, and merchant. If the settlement is in SUBMITTED status and has a transaction hash, Retempo automatically re-checks the on-chain receipt on every request — no separate polling mechanism is needed.
GET https://api.retempo.xyz/api/v1/settlements/:settlementId
Current status — PENDING while being processed, SUBMITTED while awaiting on-chain confirmation, CONFIRMED once verified, or FAILED if the transaction did not succeed.
If the settlement status is SUBMITTED, the API automatically re-checks the on-chain receipt on each GET request and updates the status. Poll this endpoint until status transitions to CONFIRMED or FAILED.