Sandbox: Create a Card Authorization
Simulates a purchase authorization on a Card. Depending on the balance available to the card and the amount submitted, the authorization activity will result in a Pending Transaction of type card_authorization or a Declined Transaction of type card_decline. You can pass either a Card id or a Digital Wallet Token id to simulate the two different ways purchases can be made.
post/simulations/card_authorizations
Request body
Example request
{
"amount": 1000,
"card_id": "card_oubs0hwk5rn6knuecxg2",
"event_subscription_id": "event_subscription_001dzz0r20rcdxgb013zqb8m04g",
"merchant_acceptor_id": "5665270011000168",
"merchant_category_code": "5734",
"merchant_city": "New York",
"merchant_country": "US",
"merchant_descriptor": "AMAZON.COM",
"merchant_state": "NY"
}Response
Inbound Card Authorization Simulation Result
Example response
{
"declined_transaction": null,
"pending_transaction": {
"account_id": "account_in71c4amph0vgo2qllky",
"amount": 100,
"completed_at": null,
"created_at": "2020-01-31T23:59:59Z",
"currency": "USD",
"description": "INVOICE 2468",
"held_amount": 100,
"id": "pending_transaction_k1sfetcau2qbvjbzgju4",
"route_id": "card_oubs0hwk5rn6knuecxg2",
"route_type": "card",
"source": {
"card_authorization": {
"actioner": "increase",
"additional_amounts": {
"clinic": null,
"dental": null,
"original": null,
"prescription": null,
"surcharge": {
"amount": 10,
"currency": "USD"
},
"total_cumulative": null,
"total_healthcare": null,
"transit": null,
"unknown": null,
"vision": null
},
"amount": 100,
"card_payment_id": "card_payment_nd3k2kacrqjli8482ave",
"currency": "USD",
"digital_wallet_token_id": null,
"direction": "settlement",
"expires_at": "2020-01-31T23:59:59Z",
"id": "card_authorization_6iqxap6ivd0fo5eu3i8x",
"merchant_acceptor_id": "5665270011000168",
"merchant_category_code": "5734",
"merchant_city": "New York",
"merchant_country": "US",
"merchant_descriptor": "AMAZON.COM",
"merchant_postal_code": "10045",
"merchant_state": "NY",
"network_details": {
"category": "visa",
"pulse": null,
"visa": {
"electronic_commerce_indicator": "secure_electronic_commerce",
"point_of_service_entry_mode": "manual",
"stand_in_processing_reason": null,
"terminal_entry_capability": "magnetic_stripe"
}
},
"network_identifiers": {
"authorization_identification_response": null,
"retrieval_reference_number": "785867080153",
"trace_number": "487941",
"transaction_id": "627199945183184"
},
"network_risk_score": 10,
"pending_transaction_id": null,
"physical_card_id": null,
"presentment_amount": 100,
"presentment_currency": "USD",
"processing_category": "purchase",
"real_time_decision_id": null,
"scheme_fees": [
{
"amount": "0.137465",
"created_at": "2020-01-31T23:59:59Z",
"currency": "USD",
"fee_type": "visa_corporate_acceptance_fee",
"fixed_component": null,
"variable_rate": "0.0002"
}
],
"terminal_id": "RCN5VNXS",
"type": "card_authorization",
"verification": {
"card_verification_code": {
"result": "match"
},
"cardholder_address": {
"actual_line1": "33 Liberty Street",
"actual_postal_code": "94131",
"provided_line1": "33 Liberty Street",
"provided_postal_code": "94132",
"result": "postal_code_no_match_address_match"
},
"cardholder_name": null
}
},
"category": "card_authorization"
},
"status": "pending",
"type": "pending_transaction"
},
"type": "inbound_card_authorization_simulation_result"
}