cURL
curl --request POST \ --url https://dev.sbx.imprint.co/v2/simulate_transaction_event \ --header 'Content-Type: application/json' \ --data '{ "event_id": "e2806932-5f1b-4518-8b15-156d773e9496", "transaction_id": "e2806932-5f1b-4518-8b15-156d773e9496", "payment_method_id": "7f754378-dd84-4a9a-b1ce-0646bb769c29", "status": "APPROVED", "amount": 5000, "currency": "USD", "authorization_code": "645432", "network_transaction_id": "txn-789456", "purchase_method": "CHIP", "merchant": { "network_id": "234923454545", "name": "Target", "category": "Grocery Stores", "category_code": "5411", "address": { "street_line1": "123 Main St", "street_line2": "Apt 4B", "city": "San Francisco", "state": "CA", "postal_code": "94105", "country": "USA" } } }'
{ "transaction_id": "E777214A-2D11-4CAD-9E8F-E1BD71D9FE67", "event_id": "E777214A-2D11-4CAD-9E8F-E1BD71D9FE67", "status": "APPROVED" }
Bearer HTTP authentication. Allowed headers-- Authorization: Bearer <api_key>
Transaction event created successfully
The response is of type object.
object