v1

latestOpenAPI 3.1.02026-07-24360204.4 KB

Create Payment Token

Create Token API will give the token in the response which will be used in .js function.

post/v1/pg/sandbox/payment_token

Request body

amountnumber float required

The amount of transaction

contact_numberstring required

Mobile number of the customer. Please make sure you are passing actual customer mobile number. If you pass a hardcoded value, if the customer doesn't change the mobile number from layer the transaction will appear with hardcoded mobile number and name associated with it.

email_idstring required

Email Id of the customer

currencystring required

INR

mtxstring required

Reference id for the transaction. This should be unique for each transaction.

sub_accounts_idstring

Mandatory Only in case of Split settlement use-case

Response

200

amountstring
currencystring
mtxstring
attemptsinteger
sub_accounts_idstring
users_idinteger
created_atstring
idstring
entitystring
statusstring

Example response

{
  "amount": "10.00",
  "currency": "INR",
  "mtx": "1764931973",
  "sub_accounts_id": "sa_da4f9f84ac6d",
  "users_id": 366411705,
  "created_at": "2025-12-05 16:22:52",
  "id": "pt_676932b984f1203",
  "entity": "payment_token",
  "status": "created",
  "customer": {
    "contact_number": "7356697492",
    "email_id": "john.doe@bankopen.co",
    "id": "cs_d86932b740dfDa6",
    "entity": "customer"
  }
}