Transaction lifecycle
Keep application state aligned with asynchronous payment and blockchain settlement
Onramps and offramps cross payment providers, Clixpesa, and blockchain networks. Treat the initial HTTP response as acceptance of work, not final settlement.
Onramp sequence
- Your application sends
POST /onrampwith an idempotency key. - Clixpesa creates the transaction and initiates fiat collection.
- The API returns
processingwith customer-facing instructions. - Provider and blockchain processing continue asynchronously.
- Your application checks
POST /onramp/statusuntil it reaches a final state.
Offramp sequence
When POST /offramp does not include transaction_hash, the response is pending and contains the
address and network to which the customer should transfer the asset. After the transfer is submitted,
send its hash to POST /offramp/update; the payout then moves to processing.
Store Clixpesa transaction IDs separately from blockchain hashes. The transaction ID exists before an on-chain settlement hash is available.
