Payments
Increment authorization
Request an incremental authorization to increase the authorization amount or extend the authorization's validity period.
post/payments/{id}/authorizations
Request
- Base URLhttps://{prefix}.api.sandbox.checkout.com
- Auth
- OAuth 2Client credentialsToken URLstringScopesgateway, gateway:payment-authorizations
- or API key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idstring required
The payment identifier
Headers
Cko-Idempotency-Keystring
An optional idempotency key for safely retrying payment requests
Request body
Example request
{
"amount": 6540,
"reference": "ORD-5023-4E89",
"metadata": {
"coupon_code": "NY2018",
"partner_id": 123989
}
}Response
Authorization processed successfully
Example response
{
"action_id": "act_y3oqhf46pyzuxjbcn2giaqnb44",
"amount": 6540,
"currency": "USD",
"approved": true,
"status": "Authorized",
"auth_code": "643381",
"response_code": "10000",
"response_summary": "Approved",
"balances": {
"total_authorized": 6540,
"available_to_void": 6540,
"available_to_capture": 6540
},
"reference": "ORD-5023-4E89",
"processing": {
"retrieval_reference_number": "909913440644",
"acquirer_transaction_id": "440644309099499894406",
"recommendation_code": "02",
"surcharge_amount": 200
},
"eci": "06",
"scheme_id": "489341065491658",
"_links": {
"self": {
"href": "https://{prefix}.api.checkout.com/payments/pay_y3oqhf46pyzuxjbcn2giaqnb44"
},
"actions": {
"href": "https://{prefix}.api.checkout.com/payments/pay_y3oqhf46pyzuxjbcn2giaqnb44/actions"
},
"authorize": {
"href": "https://{prefix}.api.checkout.com/payments/pay_y3oqhf46pyzuxjbcn2giaqnb44/authorizations"
},
"void": {
"href": "https://{prefix}.api.checkout.com/payments/pay_y3oqhf46pyzuxjbcn2giaqnb44/voids"
},
"capture": {
"href": "https://{prefix}.api.checkout.com/payments/pay_y3oqhf46pyzuxjbcn2giaqnb44/capture"
}
}
}Changes
No recorded changes to this operation across all 1 revision of this API.