Check Status of Payout

This API is used to inquire about the current status of the requested payout based on the payout id.

Endpoint

Request parameters

ParameterTypeRequiredDescriptionValidation

payout_id

string

Yes

A unique ID of the payout, created by Coda

-

Response parameters

ParameterDescription

payout_id

A unique ID of the payout, created by Coda

request_id

A unique request ID that is attached to the payout request, created by Merchant

request_amount

Total requested payout amount

target_amount

Total final amount paid out to beneficiary (after deducting fees, gst, various taxes depending on Merchant contract with Coda)

Note: request_amount and target_amount can be in different currencies

payout_status

The status of the payout. Refer to the table below for the different statuses.

error

This will show the error message if there is an error.

Payout Statuses

Payout StatusDescription

Initiated

Payout request has been received and will be reviewed.

Rejected

Payout request has been rejected by Coda, refer to the error message for more details. This status is the final status.

Processing

Payout request is being processed. This status is the in progress status.

Success

Payout is successful. This status is the final status.

Failed

Payout has failed, refer to the error message for more details. This status is the final status.

For information on transaction fees for Failed status, please contact Coda Payments.

Request and response samples

Check Status Request

curl --location 'https://payout.codapayments.com/payouts/<payout_id>' \
--header 'X-API-Key: [Test_API_Key]' \
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwYXJ0bmVyX2lkIjoicGFyX3NnMTg3MzI2ZjA4ZjB3cmtyMTA2IiwiaWF0IjoxNjgzMTA0MTc3fQ.JLm21T7EE-papCtiAvDeU1SftBlDuwvI4VtAf2WcOKY'

Check Status Response

{
    "payout_id": "MDAwLjAuMTY4MDAxMjM3MC4xMw==",
    "request_id": "request_id",
    "request_amount": {
        "value": 10.0,
        "currency_code": "USD"
    },
    "target_amount": {
        "value": 10.0,
        "currency_code": "PHP"
    },
    "payout_status": {
        "code": "Success",
        "message": "Payout is successful"
    },
    "error": null
}

Last updated