Overview
Adds additional supporting documents to an existing payout. Documents are stored with UUID identifiers and can be added multiple times (up to 5 documents total per payout). Requirements:- Payout must exist and belong to your business
- Payout status must NOT be
SUCCESSFUL,FAILED, orREJECTED - Maximum 5 documents total per payout
- All document URLs must be HTTPS
- Documents are stored with UUID identifiers
- Duplicate URLs are automatically filtered out
- Returns all documents (existing + newly added)
Request
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string (UUID) | Yes | Payout identifier |
Headers
| Header | Required | Description |
|---|---|---|
x-api-key | Yes | Your API key |
Request Body
Request Fields
| Field | Type | Required | Description |
|---|---|---|---|
documents | array of strings (URLs) | Yes | Array of supporting document URLs (HTTPS required). Maximum 5 documents total per payout. |
Response
Response Fields
| Field | Type | Description |
|---|---|---|
payoutId | string (UUID) | Payout identifier |
totalDocuments | number | Total number of documents after adding |
documents | array | All supporting documents for this payout |
documents[].id | string (UUID) | Document UUID identifier |
documents[].url | string (URL) | Document URL |
documents[].uploadedAt | string (ISO 8601) | Upload timestamp |
Error Responses
400 Bad Request - Invalid Payout Status
PENDING or PROCESSING. Once a payout is SUCCESSFUL, FAILED, or REJECTED, documents cannot be added.
400 Bad Request - Maximum Documents Exceeded
400 Bad Request - Invalid URL Format
https://yala-staging.s3.us-east-1.amazonaws.com/1769262715606-Logo.png).
404 Not Found
401 Unauthorized
Usage Example
Notes
- Status Restrictions: Documents can only be added when payout status is
PENDINGorPROCESSING(notSUCCESSFUL,FAILED, orREJECTED) - Maximum Documents: 5 documents total per payout
- Duplicate Filtering: Duplicate URLs are automatically filtered out
- UUID Identifiers: Each document is assigned a UUID for tracking
- HTTPS Required: All document URLs must use HTTPS protocol