Skip to content

Payouts

Pay out to the customer's own verified contact identifier

POST/api/v1/tenant/payouts

Scope payouts:write · Write — send Idempotency-Key and X-Request-Id

Sends money from a customer wallet through a payment provider, in two phases. Phase 1 is synchronous: the payment provider (railCode) must be active and able to send payouts, the destination a verified contact identifier of the wallet's customer, and the assertion bound to this request; the customer's KYC-level limits, the amount above which two-factor authentication is required, compliance checks and available ≥ amount + fee + tax are checked. The wallet is then debited for the total, with the charges itemized, and the amount is held until the payment provider answers. The response is the operation in state processing. Phase 2 is asynchronous: payout.confirmed, payout.failed (amount and refundable charges returned to the wallet) or payout.uncertain is delivered to your webhook as the payment provider reports back.

Request body

FieldTypeRequiredDescription
walletUidstringyesThe wallet to pay out from, as returned by POST /tenant/customers.
destinationIdentifierUidstringyesA verified contact identifier of the wallet's customer (payoutEligible on GET /tenant/customers/{uid}/identifiers); anything else is refused.
amountMinornumberyesPositive integer minor units (e.g. 250000 = ETB 2,500.00); the amount the destination receives. Min 1.
currencystringyesISO-4217; must equal the wallet's currency.
railCodestringyesThe payment provider's code to pay out on; the provider must be active and support payouts. At most 64 characters.
clientReferencestringyesYour own reference; stored and returned verbatim, never interpreted; unique within your account.
assertionobjectyesThe customer's authentication for this payout.
assertion.customerUidstringyesThe customer who authenticated.
assertion.identifierUidobjectnoThe customer identifier the customer authenticated with, if known.
assertion.assuranceLevelenumyesHow strongly your channel authenticated the customer. One of single_factor, two_factor, step_up.
assertion.factor1TypestringyesThe first factor used, e.g. pin, password, biometric. At most 32 characters.
assertion.factor2TypeobjectnoRequired unless assuranceLevel is single_factor. At most 32 characters.
assertion.authenticatedAtstringyesISO-8601 — when the customer authenticated.
assertion.expiresAtstringyesISO-8601; by default at most 10 minutes after authenticatedAt. An expired assertion is refused (422).
assertion.channelCodestringyesYour channel the customer authenticated on. At most 40 characters.
assertion.deviceHashobjectnoSHA-256 hex of the device fingerprint, if your channel has one.
assertion.sourceReferencestringyesOpaque channel evidence reference (a session or login id). Presenting one again while it is live is allowed only for the same customer, and is audited. At most 160 characters.
assertion.transactionBindingobjectnoHash your channel computed over the request this assertion authorizes; a mismatch with the request received is refused.
assertion.transactionBinding.hashstringyesSHA-256 hex (64 characters) over the canonical string of this request.
assertion.transactionBinding.algorithmenumyesOne of sha256.
assertion.transactionBinding.canonicalenumyesThe field template hashed: the six values joined with |, UTF-8. The fifth is the payout destination, the mandate for a debit, or empty; clientReference is empty when absent. One of `customerUid
feeQuoteIdobjectnoA quoteId from POST /tenant/fees/quote to pin the charges to; while still valid the quoted amounts are used and must equal a fresh computation, otherwise the charges are computed fresh. At most 64 characters.
Example (generated from the schema)
json
{
  "walletUid": "01J9Z3K5X8QW2R4T6V8Y0B1C3D",
  "destinationIdentifierUid": "01J9Z3K5X8QW2R4T6V8Y0B1C3D",
  "amountMinor": 1,
  "currency": "ETB",
  "railCode": "string",
  "clientReference": "string",
  "assertion": {
    "customerUid": "01J9Z3K5X8QW2R4T6V8Y0B1C3D",
    "assuranceLevel": "single_factor",
    "factor1Type": "string",
    "authenticatedAt": "2026-09-03T10:15:30.000Z",
    "expiresAt": "2026-09-03T10:15:30.000Z",
    "channelCode": "string",
    "sourceReference": "string"
  }
}

Response · 202

FieldTypeDescription
uidstring
typestringOperation type, e.g. wallet_credit, wallet_debit, payout_b2c or topup_c2b.
statestringOperation state: created, awaiting_authorization, authorized, held, processing, pending_provider, confirmed, failed, reversed or completed.
amountMinornumberInteger minor units (e.g. 250000 = ETB 2,500.00).
feeMinornumberMinor units.
taxMinornumberMinor units.
currencystringISO-4217.
clientReferencestring | nullYour reference, exactly as you supplied it.
createdAtstring
completedAtstring | nullWhen the operation first reached a final state.
linksobject
links.selfstringAPI-relative path of this operation (GET /tenant/operations/{uid}).
links.receiptstringAPI-relative path of its receipt (GET /tenant/operations/{uid}/receipt).
Example (generated from the schema)
json
{
  "uid": "01J9Z3K5X8QW2R4T6V8Y0B1C3D",
  "type": "string",
  "state": "string",
  "amountMinor": 0,
  "feeMinor": 0,
  "taxMinor": 0,
  "currency": "ETB",
  "clientReference": "string",
  "createdAt": "2026-09-03T10:15:30.000Z",
  "completedAt": "2026-09-03T10:15:30.000Z",
  "links": {
    "self": "string",
    "receipt": "string"
  }
}

Errors

400 401 403 404 409 422 429 500 503 — one body shape for all of them, see Errors.