Card testing
Simulate authorization
Simulate an authorization request with a card you issued previously.
post/issuing/simulate/authorizations
Request
- Base URLhttps://{prefix}.api.sandbox.checkout.com
- AuthOAuth 2Client credentialsToken URLstringScopesissuing:transactions-write
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"card": {
"id": "crd_fa6psq242dcd6fdn5gifcq1491",
"expiry_month": 5,
"expiry_year": 2025
},
"transaction": {
"type": "purchase",
"amount": 6540,
"currency": "GBP",
"merchant": {
"category_code": "7399"
},
"authorization_type": "authorization"
}
}Response
Authorization processed successfully
Example response
{
"id": "trx_aaqc4uaaybigcaaqc4uaayfiga",
"status": "Authorized"
}Changes
No recorded changes to this operation across all 1 revision of this API.