Skip to main content

Overview

Adds supporting documents to an existing payout. Use this when you initiated without a document or need to add more files later.
Most payouts need at least one supporting document before they can be processed. Withdrawals to your business account or a UBO’s account are the exception.
Each URL in documents must be a documentUrl from POST /documents/upload-url after you PUT the file to S3. Do not send file bytes to this PATCH endpoint. See Uploading Supporting Documents.If we have requested additional documents (ADDITIONAL_INFO_REQUIRED) and you need to send more than one file, merge them into one PDF before uploading to S3, then pass that documentUrl in this PATCH request.
Requirements:
  • Payout must exist and belong to your business
  • Payout status must NOT be SUCCESSFUL, FAILED, or REJECTED
  • Maximum 5 documents total per payout
  • All document URLs must be HTTPS
  • Accepted file formats: PDF, JPEG/JPG, and PNG only
Behavior:
  • Documents are stored with UUID identifiers
  • Duplicate URLs are automatically filtered out
  • Returns all documents (existing + newly added)

Request

Path Parameters

Headers

Request Body

Request Fields

Response

Response Fields

Error Responses

400 Bad Request - Invalid Payout Status

Solution: Documents can only be added when payout status is PENDING, ADDITIONAL_INFO_REQUIRED, or PROCESSING. Once a payout is SUCCESSFUL, FAILED, or REJECTED, documents cannot be added.

400 Bad Request - Maximum Documents Exceeded

Solution: Remove some existing documents or add fewer documents. Maximum 5 documents total per payout.

400 Bad Request - Invalid URL Format

Solution: Ensure all document URLs are valid HTTPS URLs (e.g., https://yala-staging.s3.us-east-1.amazonaws.com/1769262715606-Logo.png).

404 Not Found

Solution: Verify the payout ID is correct and belongs to your business.

401 Unauthorized

Usage Example

Notes

  • Status Restrictions: Documents can only be added when payout status is PENDING, ADDITIONAL_INFO_REQUIRED, or PROCESSING (not SUCCESSFUL, FAILED, or REJECTED)
  • 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
  • Accepted Formats: Only PDF (.pdf), JPEG (.jpeg, .jpg), and PNG (.png) files are accepted