Skip to content

Create a Payment Transaction Intent

POST
/intents/payment

Creates a new intent for a payment authorization. An intent helps prepare and track the details required before finalizing a transaction (capture).

Authorizations

BearerAuth
TypeHTTP (bearer)

Request Body

JSON
{
"external_id": "496de72d-d4a4-45eb-b426-3d04d2078a85",
"redirect_urls": {
"success": "https://www.example.com/success?trx_id=XYZ&order_id=ZYX",
"failure": "https://www.example.com/failure?trx_id=XYZ&order_id=ZYX"
},
"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"
}
}
}

Responses

New payment intent created.
application/json
JSON
{
"intent_id": "int_01J5XCMDXCFXCAQ1BV8HVG6644",
"reference_id": "496de72d-d4a4-45eb-b426-3d04d2078a85"
}

Samples

Powered by VitePress OpenAPI