Skip to content
PGSwift Docs

Payout

The Payout API allows merchants to create payout requests, execute fund transfers, and query account balances.

Three-Step Payout Flow

Step Endpoint Purpose
1. Inquiry POST /api/inquiry Validate the destination bank account and reserve funds. Returns inquiry_id. Expires after 30 minutes.
2. Transfer POST /api/transfer Execute the payout using the inquiry_id from step 1. A true response means submitted, not completed.
3. Webhook / Check Webhook or POST /api/check/inquiry Receive the final result via disbursement.v2.completed, disbursement.v2.fail, or disbursement.v2.expired.

For a full flow diagram, see Integration Flows.

Error codes

Every error code the Payout API returns, across both endpoints:

codeHTTPMeaningRecommended action

DUPLICATE_TRANSFER

/api/transfer

409The inquiry was already executed — successfully, or it is still in progressDo not re-send. data.status is the current state; confirm the final result via webhook or /check/inquiry

TRANSFER_ALREADY_FAILED

/api/transfer

409The transfer for this inquiry already failedStart a new inquiry with a new merchant_transaction_id

INQUIRY_NOT_FOUND

/api/transfer

404Unknown or missing inquiry_id for this accountVerify the id, or look it up via Check Inquiry Status

INQUIRY_EXPIRED

/api/transfer

409The inquiry passed its 30-minute expiry before being transferredStart a new inquiry; reserved funds are returned automatically

INQUIRY_IN_PROGRESS

/api/inquiry

409A request with the same merchant_transaction_id is already being processedRetry shortly to receive the stored inquiry

INVALID_BANK_CODE

/api/inquiry

400bank_code is not a supported payout destinationUse a valid code from the Appendix and re-send

INVALID_ACCOUNT_NUMBER

/api/inquiry

400account_number is not numeric, or is longer than 30 digitsFix the account number and re-send

PAYOUT_NOT_CONFIGURED

/api/inquiry

403Payout is not set up for your account on this destination's channelContact support; do not retry

See Transfer fund and Inquiry for the full response shape and worked examples of each.

© 2026 PGSwift. All rights reserved.