Appearance
Idempotency
Idempotency makes retries safe: repeating a request with the same reference never creates a second payout or charge.
Reference fields
| Endpoint | Field |
|---|---|
| Create Payment Link | reference (optional) |
| Fund Transfer | tenantReference (required) |
| Bulk Fund Transfer | tenantReference (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:
- Do not generate a new reference.
- Query the transaction with Fetch Transaction By Reference or Get Transaction Status.
- Use the existing result if it completed; retry with a new reference only if it failed.