Approve or decline a pending payout request using its authorization code.
authCode from the pending approval record along with the desired action. A reason is required when declining.
POST
URL: /v1/payouts/approvals/approve
| Name | In | Type | Required | Description |
|---|---|---|---|---|
x-carbon-key | Header | string | Yes | API key for authentication. |
| Field | Type | Required | Description |
|---|---|---|---|
authCode | string | Yes | Authorization code of the pending payout (e.g. TRF-...). |
action | string | Yes | Action to take: approve or decline. |
reason | string | Required if action is decline | Reason for declining the payout. |
action is decline, the reason field is required. For approve, it can be left as an empty string or omitted.200 OK
Content-Type: application/json
400 Bad Request
422 Unprocessable Entity
Returned when action is decline but reason is missing.
Provide your API key in the 'apikey' header.
Provide the required values for the request body.
OK
The response is of type object.