This API Help to create an Order Token.

Request Parameters:

Attribute

Type

Details

merchant_id*

integer

merchant_id is the unique identifier of the merchant.

Merchant_access
_code*

string
(Length = 50 Characters)

Merchant unique identification id provided by Plural.

Merchant_return
_url*

string
(Length=500 Characters)

Merchant url is the url to be provided by the merchant.

merchant_order_id*

string
(Length = 200 Characters)

Unique Order id of transaction maintained at Merchant end

amount*

long

The amount of the order in paise.

currency_code*

string

Currency code in which in the payment is intended. The currency code for Indian rupee is 'INR'.

order_desc

string

The decription of the order.

country_code*

string
(Length = 10 Characters)

The country code of the mobile number.

mobile_number*

string
(Length = 20 Characters)

Mobile number of the customer.

email_id*

string
(Length = 100 Characters)

Email id of the cusotmer.

billing_address
_data

{}

first_name

string
(Length=50 Characters)

biller address First name.

last_name

string
(Length=50 Characters)

biller address Last name.

address1

string
(Length=200 Characters)

First line of the biller address .

address2

string
(Length=200 Characters)

Second line of the biller address.

address3

string
(Length=200 Characters)

Third line of the biller address.

pin_code

string
(Length=50 Characters)

PIN Code

city

string
(Length=50 Characters)

City

state

string
(Length=50 Characters)

State

country

string
string
(Length=50 Characters)

Country

shipping_address
_data

{}

first_name

string
(Length=50 Characters)

shipping address First name.

last_name

string
(Length=50 Characters)

shipping address Last name.

address1

string
(Length=200 Characters)

shipping address1.

address2

string
(Length=200 Characters)

shipping address 2.

address3

string
(Length=200 Characters)

shipping address 3.

pin_code

string
(Length=50 Characters)

Pincode

city

string
(Length=50 Characters)

city

state

string
(Length=50 Characters)

state

country

string
(Length=50 Characters)

country

product_info
_data

product_details[]
(Array of Product Details which)

Need to send for Implementing Brand EMI

product_details

()

product_code*

string

Product code of the products added in the order. This code is to be provided in case of offers applied on these products.

product_amount*

long

The product amount in paise.

additional_
info_data

()

rfu1

string
(Length=200 Characters)

RFU value is allowed as alpha-numeric with “#”, "_" and “-”

Request Body payload:

{
  "merchant_data": {
    "merchant_id": "11565",
    "merchant_access_code": "709ebcf1-3171-4b0a-891d-394fa259c63b",
    "merchant_return_url": "http://192.168.101.205:9073/chargingrespnew.aspx",
    "merchant_order_id": "MICROS"
  },
  "payment_info_data": {
    "amount": 500,
    "currency_code": "INR",
    "order_desc": "Test Order"
  },
  "customer_data": {
    "country_code": "91",
    "mobile_number": "xxx",
    "email_id": "[email protected]"
  },
  "billing_address_data": {
    "first_name": "Balwant",
    "last_name": "Singh",
    "address1": "Hisar",
    "address2": "Hisar",
    "address3": "Hisar",
    "pin_code": "125005",
    "city": "Hisar",
    "state": "Haryana",
    "country": "India"
  },
  "shipping_address_data": {
    "first_name": "Balwant",
    "last_name": "Singh",
    "address1": "Hisar",
    "address2": "Hisar",
    "address3": "Hisar",
    "pin_code": "125005",
    "city": "Hisar",
    "state": "Haryana",
    "country": "India"
  },
  "product_info_data": {
    "product_details": [
      {
        "product_code": "200",
        "product_amount": 500
      }
    ]
  },
  "additional_info_data": {
    "rfu1": "123"
  }
}

Request Base64 Body payload:

{
    "request": "ewogICJtZXJjaGFudF9kYXRhIjogewogICAgIm1lcmNoYW50X2lkIjogIjExNzIwIiwKICAgICJtZXJjaGFudF9hY2Nlc3NfY29kZSI6ICIwMjAyYTg3ZC1jNDc0LTRkYWQtYWMzOC1jMWY2MWIyMmQyMDciLAogICAgIm1lcmNoYW50X3JldHVybl91cmwiOiAiaHR0cDovLzEwLjIwMC4xNDYuMTM5OjkwMjAvY2hhcmdpbmdyZXNwbmV3LmFzcHgiLAogICAgIm1lcmNoYW50X29yZGVyX2lkIjogIk1WUF9UZXN0XzAwMyIKICB9LAogICJwYXltZW50X2luZm9fZGF0YSI6IHsKICAgICJhbW91bnQiOiA1MDAsCiAgICAiY3VycmVuY3lfY29kZSI6ICJJTlIiLAogICAgIm9yZGVyX2Rlc2MiOiAiVGVzdCBPcmRlciIKICB9LAogICJjdXN0b21lcl9kYXRhIjogewogICAgImNvdW50cnlfY29kZSI6ICI5MSIsCiAgICAibW9iaWxlX251bWJlciI6ICI5MDUwMTU3OTc4IiwKICAgICJlbWFpbF9pZCI6ICJiYWx3YW50LnNpbmdoQHBpbmVsYWJzLmNvbSIKICB9LAogICJiaWxsaW5nX2FkZHJlc3NfZGF0YSI6IHsKICAgICJmaXJzdF9uYW1lIjogIkJhbHdhbnQiLAogICAgImxhc3RfbmFtZSI6ICJTaW5naCIsCiAgICAiYWRkcmVzczEiOiAiSGlzYXIiLAogICAgImFkZHJlc3MyIjogIkhpc2FyIiwKICAgICJhZGRyZXNzMyI6ICJIaXNhciIsCiAgICAicGluX2NvZGUiOiAiMTI1MDA1IiwKICAgICJjaXR5IjogIkhpc2FyIiwKICAgICJzdGF0ZSI6ICJIYXJ5YW5hIiwKICAgICJjb3VudHJ5IjogIkluZGlhIgogIH0sCiAgInNoaXBwaW5nX2FkZHJlc3NfZGF0YSI6IHsKICAgICJmaXJzdF9uYW1lIjogIkJhbHdhbnQiLAogICAgImxhc3RfbmFtZSI6ICJTaW5naCIsCiAgICAiYWRkcmVzczEiOiAiSGlzYXIiLAogICAgImFkZHJlc3MyIjogIkhpc2FyIiwKICAgICJhZGRyZXNzMyI6ICJIaXNhciIsCiAgICAicGluX2NvZGUiOiAiMTI1MDA1IiwKICAgICJjaXR5IjogIkhpc2FyIiwKICAgICJzdGF0ZSI6ICJIYXJ5YW5hIiwKICAgICJjb3VudHJ5IjogIkluZGlhIgogIH0sCiAgInByb2R1Y3RfaW5mb19kYXRhIjogewogICAgInByb2R1Y3RfZGV0YWlscyI6IFsKICAgICAgewogICAgICAgICJwcm9kdWN0X2NvZGUiOiAiMjAwIiwKICAgICAgICAicHJvZHVjdF9hbW91bnQiOiA1MDAKICAgICAgfQogICAgXQogIH0sCiAgImFkZGl0aW9uYWxfaW5mb19kYXRhIjogewogICAgInJmdTEiOiAiMTIzIgogIH0KfQ=="
}

Response Payload:

{
    "token": "VKbSh6LbRRCoJmw31hBQI6ISeb%2Bl43FUki9CjQGIQcs%3D",
    "plural_order_id": "33902"
}
{
    "error_code": "1160",
    "error_message": "SECURE_HASH_RETURNED_FROM_MERCHANT_NOT_MATCH"
}

Response Parameters

Parameter Name

Type

Description

token

string

create order token to pass for payment url.

plural_order_id

string

unique order id.

Language
Authentication
Basic
base64
:
Click Try It! to start a request and see the response here!