Skip to content

Retrieve a payout

GET/v1/payouts/{id}

Retrieves the full details of a payout, including recipient information and metadata.

Path parameters

ParameterTypeDescription
idstringTransaction UUID

Headers

HeaderRequiredDescription
AuthorizationYesBearer zyn_test_... or Bearer zyn_live_...

Example

bash
curl https://backend.zayono.com/api/v1/payouts/b2c3d4e5-f6a7-8901-bcde-f23456789012 \
  -H "Authorization: Bearer zyn_test_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
javascript
const response = await fetch(
  'https://backend.zayono.com/api/v1/payouts/b2c3d4e5-f6a7-8901-bcde-f23456789012',
  {
    headers: {
      'Authorization': 'Bearer zyn_test_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
    },
  }
)

const data = await response.json()

Response — 200 OK

json
{
  "message": "Payout details retrieved.",
  "data": {
    "id": "b2c3d4e5-f6a7-8901-bcde-f23456789012",
    "type": "payout",
    "status": "success",
    "amount": 25000,
    "amount_charged": 25000,
    "currency": "XOF",
    "operator": "mtn_bj",
    "country": "BJ",
    "description": "Salary - May 2025",
    "failure_reason": null,
    "metadata": {
      "employee_id": "EMP-042"
    },
    "recipient": {
      "id": "c3d4e5f6-a7b8-9012-cdef-345678901234",
      "email": "marie.koffi@example.com",
      "first_name": "Marie",
      "last_name": "Koffi",
      "phone": "+22990123456"
    },
    "environment": "sandbox",
    "processed_at": "2025-05-15T14:01:00+00:00",
    "created_at": "2025-05-15T14:00:00+00:00",
    "updated_at": "2025-05-15T14:01:00+00:00"
  },
  "errors": null
}

Response fields

FieldTypeDescription
idstringUnique identifier (UUID)
typestringTransaction type (payout)
statusstringCurrent status
amountnumberAmount sent
amount_chargednumber | nullAmount actually charged
currencystringCurrency code
operatorstringOperator code used
countrystringCountry code
descriptionstring | nullPayout description
failure_reasonstring | nullFailure reason (if failed)
metadataobject | nullCustom data
recipientobject | nullRecipient information
environmentstringsandbox or live
processed_atstring | nullProcessing date (ISO 8601)
created_atstringCreation date
updated_atstringLast update date

Official Zayono API documentation