Simulate an authorization request with a card you issued previously.
object (IssuingSimulateCard) The card to simulate an authorization with. | |
object (IssuingSimulateTransaction) The transaction to simulate with the specified card. For example, a purchase. |
Authorization processed successfully
Unauthorized
Invalid data was sent
Internal Server Error
{- "card": {
- "id": "crd_fa6psq242dcd6fdn5gifcq1491",
- "expiry_month": 5,
- "expiry_year": 2025
}, - "transaction": {
- "type": "purchase",
- "amount": 2500,
- "currency": "GBP",
- "merchant": {
- "category_code": "7399"
}
}
}{- "id": "trx_aaqc4uaaybigcaaqc4uaayfiga",
- "status": "Authorized"
}Simulate an incremental authorization request for an existing approved transaction.
Incremental authorizations increase the total authorized amount of the transaction. For example, adding a restaurant bill to an existing hotel booking.
| amount | integer >= 0 You must provide the amount in the transaction currency's minor currency units. |
Authorization processed successfully
Unauthorized
Authorization not found
Invalid data was sent
Internal Server Error
{- "amount": 3500
}{- "status": "Authorized"
}Simulate the clearing of an existing approved authorization.
| amount | integer >= 0 The amount to clear. If not specified, the full authorized amount will be cleared. You must provide the amount in the transaction currency's minor currency units. |
Presentment accepted
Unauthorized
Authorization not found
Invalid data was sent
Internal Server Error
{- "amount": 2500
}{- "request_id": "0HLHPN8802NUF:00000003",
- "error_type": "request_invalid",
- "error_codes": [
- "request_body_malformed"
]
}Simulate the refund of an existing approved authorization, after it has been cleared.
| amount | integer >= 0 The amount to refund. If not specified, the full cleared amount will be refunded. You must provide the amount in the transaction currency's minor currency units . |
Refund accepted
Unauthorized
Presentment not found
Invalid data was sent
Internal Server Error
{- "amount": 2500
}{- "request_id": "0HLHPN8802NUF:00000003",
- "error_type": "request_invalid",
- "error_codes": [
- "request_body_malformed"
]
}Simulate the reversal of an existing approved authorization.
| amount | integer >= 0 The amount to reverse. If unspecified, the full transaction amount will be reversed. You must provide the amount in the transaction currency's minor currency units. |
Reversal processed successfully
Unauthorized
Authorization not found
Invalid data was sent
Internal Server Error
{- "amount": 2500
}{- "status": "Reversed"
}