Skip to main content

Collections

A collection is an inbound payment from a Fyatu user to your business wallet. You create a checkout session, redirect the customer, and receive a webhook when the payment completes.

Flow

Statuses

Checkout sessions expire after 60 minutes. If not completed, the collection moves to FAILED.

Fees

Collection fees are deducted from the received amount — the customer pays the gross amount, you receive the net: Use GET /account/pricing to retrieve your current collection fee rate.

Webhook Payload

Best Practices

  • Use order IDs: pass orderId to link each collection to your order system and prevent duplicates
  • Verify server-side: always call GET /collections/{id} before fulfilling an order — never trust the webhook payload alone
  • Handle expiry: sessions expire after 60 minutes; let customers re-initiate if they don’t complete in time
  • Verify webhook signatures: check the HMAC-SHA256 signature on every incoming webhook before processing
  • Retry safely: for 5xx errors, use exponential backoff (start at 1 s, cap at 30 s, max 3 retries)

Error Codes

Endpoints