Skip to content

Create a Transaction

POST
/transactions

Initiates a new transaction authorization (authorize) or an authorization with immediate capture (authcap). The operation type determines how the transaction will be processed.

Authorizations

BearerAuth
TypeHTTP (bearer)

Request Body

JSON
{
"operation": "string",
"external_id": "496de72d-d4a4-45eb-b426-3d04d2078a85",
"order": {
"order_id": "496de72d-d4a4-45eb-b426-3d04d2078a85",
"order_amount": 10000,
"order_currency": "string",
"order_items": [
{
"item_title": "Lorem ipsum donet",
"item_id": "string",
"item_qty": 2,
"item_price": 0
}
],
"card_holder": {
"first_name": "string",
"middle_name": "string",
"last_name": "string",
"dob": "string",
"email": "string",
"phone": "string",
"address_1": "string",
"address_2": "string",
"postal_code": "string",
"city": "string",
"state": "string",
"country": "string"
}
},
"token": "tkn_01J5XCMDXCFXCAQ1BV8HVG6644_215626ca92fcc591fd2491b483c9d496",
"card": {
"pan": "string",
"code": "012",
"expiry": "122030",
"name": "John Doe",
"country": "string",
"zip": "string"
}
}

Responses

Details of the newly created transaction.
application/json
JSON
{
"id": "trx_01J5XCMDXCFXCAQ1BV8HVG6644",
"type": "string",
"status": "string",
"order_amount": 10000,
"order_currency": "string",
"amount_authorized": 10000,
"amount_captured": 0,
"amount_voided": 0,
"amount_refunded": 0,
"external_id": "496de72d-d4a4-45eb-b426-3d04d2078a85",
"updated_at": "2024-09-05T05:05:25Z"
}

Samples

Powered by VitePress OpenAPI