Skip to content

Idempotency ​

Idempotency makes retries safe: repeating a request with the same reference never creates a second payout or charge.

Reference fields ​

EndpointField
Create Payment Linkreference (optional)
Fund TransfertenantReference (required)
Bulk Fund TransfertenantReference (required, per recipient)

Reference rules

  • Unique across your account
  • Alphanumeric, plus hyphens and underscores
  • Max 50 characters
  • Case-sensitive
  • Immutable once created

Example ​

javascript
const response = await fetch(
  'https://laas.rexel.ng/payout/Disbursement/Payout/FundTransfer',
  {
    method: 'POST',
    headers: { 'X-Api': 'sk_test_YOUR_SECRET_KEY', 'Content-Type': 'application/json' },
    body: JSON.stringify({
      tenantReference: 'payout_ORDER123_20240115',
      amount: 1200
      // ...other fields
    })
  }
);

The first request and any retry with the same reference return the same result.

Duplicate reference error ​

json
{
  "status": false,
  "code": "DUPLICATE_REFERENCE",
  "message": "A transaction with reference 'payout_ORDER123_20240115' already exists",
  "errors": []
}

When you get 409 Conflict:

  1. Do not generate a new reference.
  2. Query the transaction with Fetch Transaction By Reference or Get Transaction Status.
  3. Use the existing result if it completed; retry with a new reference only if it failed.

Rexel Limited