Skip to main content

Overview

Retrieve payout status and details by ID for the authenticated business. Returns conversion information, exchange rates, fees, timestamps, and attached supporting documents (from creation or added via PATCH /documents).

Request

GET /v1/payout-api/payouts/{id} HTTP/1.1
Host: gateway.staging.useyala.com
x-api-key: <YOUR_API_KEY>

Path Parameters

ParameterTypeRequiredDescription
idstring (UUID)YesPayout identifier

Headers

HeaderRequiredDescription
x-api-keyYesYour API key

Response

{
  "id": "payout-id-uuid",
  "payoutRef": "PAY-2024-001",
  "businessId": "business-id-uuid",
  "sourceAmount": 10000,
  "sourceCurrency": "NGN",
  "destinationAmount": 42.5,
  "destinationCurrency": "CNY",
  "status": "PENDING",
  "method": "ALIPAY",
  "transactionFees": 0,
  "narration": "Payment for services",
  "exchangeRate": 235.0,
  "createdAt": "2024-01-20T10:00:00Z",
  "updatedAt": "2024-01-20T10:00:00Z",
  "supportingDocuments": [
    {
      "id": "550e8400-e29b-41d4-a716-446655440000",
      "url": "https://example.com/document.pdf",
      "uploadedAt": "2024-01-20T10:00:00Z"
    }
  ]
}

Response Fields

FieldTypeDescription
idstring (UUID)Payout identifier
payoutRefstringHuman-readable payout reference
sourceAmountnumberAmount debited from source wallet
sourceCurrencystringSource currency
destinationAmountnumberAmount sent to beneficiary
destinationCurrencystringDestination currency
statusstringOne of: PENDING, PROCESSING, SUCCESSFUL, FAILED, REJECTED. Same values as webhooks.
methodstringPayment method used
transactionFeesnumberTransaction fees
exchangeRatenumberExchange rate used for conversion
createdAtstring (ISO 8601)Payout creation timestamp
updatedAtstring (ISO 8601)Last update timestamp
supportingDocumentsarrayAttached supporting documents (from initiation or PATCH /documents). Each item has id, url, and uploadedAt.

Error Responses

404 Not Found

{
  "statusCode": 404,
  "message": "Payout not found or not associated with your business",
  "error": "PAYOUT_NOT_FOUND"
}
Solution: Verify the payout ID and ensure it belongs to your business.

401 Unauthorized

{
  "statusCode": 401,
  "message": "Unauthorized"
}

Usage Example

const response = await fetch(
  `https://gateway.staging.useyala.com/v1/payout-api/payouts/${payoutId}`,
  {
    headers: {
      'x-api-key': apiKey,
    },
  }
);

const payout = await response.json();
console.log(`Status: ${payout.status}, Amount: ${payout.destinationAmount} ${payout.destinationCurrency}`);
Use this endpoint to check payout status after creation or to display payout details in your dashboard. Alternatively, subscribe to webhook notifications to receive real-time status updates.

Webhooks

Instead of polling this endpoint, you can subscribe to webhook notifications for real-time status updates:
  1. Activate webhooks in your Yala dashboard
  2. Configure your webhook endpoint URL
  3. Receive notifications when payout status changes
The webhook payload includes the payout id (matching the id field in this response) so you can identify which payout was updated.