Integration Steps
Learn how to use Pine Labs Online APIs to validate your customer account and start accepting payments after successful account validation.
Follow the below steps to integrate with Pine Labs Online Third Party Validation APIs in your application.
Note
- Ensure you store your Client ID and Secret in your Backend securely.
- Integrate our APIs on your backend system.
- We strictly recommend not to call our APIs from the frontend.
- Failure to adhere to the above guidelines may result in legal implications. In such cases, you will be held responsible for any damage or loss arising from non-compliance.
1. [Prerequisite] Generate Token
Integrate our Generate Token API in your backend servers to generate the access token. Use the token generated to authenticate Pine Labs Online APIs.
Below are the sample requests and response for the Generate Token API.
curl --location 'https://pluraluat.v2.pinepg.in/api/auth/v1/token' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'Request-Timestamp: 2024-07-09T07:57:08.022Z' \
--header 'Request-ID: c17ce30f-f88e-4f81-ada1-c3b4909ed235' \
--data '
{
"client_id": "a17ce30e-f88e-4f81-ada1-c3b4909ed232",
"client_secret": "fgwei7egyhuggwp39w8rh",
"grant_type": "client_credentials"
}
'
curl --location 'https://api.pluralpay.in/api/auth/v1/token' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'Request-Timestamp: 2024-07-09T07:57:08.022Z' \
--header 'Request-ID: c17ce30f-f88e-4f81-ada1-c3b4909ed235' \
--data '
{
"client_id": "a17ce30e-f88e-4f81-ada1-c3b4909ed232",
"client_secret": "fgwei7egyhuggwp39w8rh",
"grant_type": "client_credentials"
}
'
{
"access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c",
"expires_in": 3600
}
Click here for request and response parameter information.
The table below lists the request parameters of our Generate Token API.
| Parameter | Type | Description |
|---|---|---|
| client_id required | string |
Unique client identifier in the Pine Labs Online database. Example: a17ce30e-f88e-4f81-ada1-c3b4909ed232Note: The Onboarding team has provided you with this information as part of the onboarding process. |
| client_secret required | string |
Unique client secret key provided while onboarding. Example: fgwei7egyhuggwp39w8rhNote: The Onboarding team has provided you with this information as part of the onboarding process. |
| grant_type required | string |
The grant type to generate an access token. Accepted value: client_credentials
|
The table below lists the response parameters of our Generate Token API.
| Parameter | Type | Description |
|---|---|---|
| access_token | string |
The access token generated by the system. • Minimum length: 1 character. • Maximum length: 8192 characters. Example: eyJhbGciOiJIUzI1NiIsInNote: Use this token in the authorization headers to authenticate Pine Labs Online APIs. |
| expires_at | string |
Access duration timestamp. Example: 2024-06-28T13:26:06.909140Z
|
Refer to our Generate Token API documentation to learn more.
2. Create Order
To create an Order, use our Create Order API, for authentication use the generated access token in the headers of the API request.
Below are the sample requests and response for a Create Order API.
curl --location 'https://pluraluat.v2.pinepg.in/api/pay/v1/orders' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c' \
--header 'Content-Type: application/json' \
--header 'Request-ID: c17ce30f-f88e-4f81-ada1-c3b4909ed235' \
--header 'Request-Timestamp: 2024-07-09T07:57:08.022Z' \
--header 'accept: application/json' \
--data '
{
"merchant_order_reference":112345,
"order_amount":{
"value":1100,
"currency":"INR"
},
"pre_auth":false,
"callback_url":"https://sample-callback-url",
"failure_callback_url": "https://sample-failure-callback-url",
"allowed_payment_methods":[
"CARD",
"UPI",
"NETBANKING",
"POINTS",
"WALLET"
],
"notes":"order1",
"purchase_details":{
"account_details":{
"bank_details":{
"account_number":"103101532234",
"ifsc_code":"",
"bank_name":""
}
},
"customer":{
"email_id":"[email protected]",
"first_name":"Kevin",
"last_name":"Bob",
"customer_id":"123456",
"mobile_number":"9876543210",
"country_code": "91",
"billing_address":{
"address1":"10 Downing Street Westminster London",
"address2":"Oxford Street Westminster London",
"address3":"Baker Street Westminster London",
"pincode":"51524036",
"city":"Westminster",
"state":"Westminster",
"country":"London"
},
"shipping_address":{
"address1":"10 Downing Street Westminster London",
"address2":"Oxford Street Westminster London",
"address3":"Baker Street Westminster London",
"pincode":"51524036",
"city":"Westminster",
"state":"Westminster",
"country":"London"
}
},
"merchant_metadata":{
"key1":"DD",
"key2":"XOF"
}
}
}
'
curl --location 'https://api.pluralpay.in/api/pay/v1/orders' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c' \
--header 'Content-Type: application/json' \
--header 'Request-ID: c17ce30f-f88e-4f81-ada1-c3b4909ed235' \
--header 'Request-Timestamp: 2024-07-09T07:57:08.022Z' \
--header 'accept: application/json' \
--data '
{
"merchant_order_reference":112345,
"order_amount":{
"value":1100,
"currency":"INR"
},
"pre_auth":false,
"callback_url":"https://sample-callback-url",
"failure_callback_url": "https://sample-failure-callback-url",
"allowed_payment_methods":[
"CARD",
"UPI",
"NETBANKING",
"POINTS",
"WALLET"
],
"notes":"order1",
"purchase_details":{
"account_details":{
"bank_details":{
"account_number":"103101532234",
"ifsc_code":"",
"bank_name":""
}
},
"customer":{
"email_id":"[email protected]",
"first_name":"Kevin",
"last_name":"Bob",
"customer_id":"123456",
"mobile_number":"9876543210",
"country_code": "91",
"billing_address":{
"address1":"10 Downing Street Westminster London",
"address2":"Oxford Street Westminster London",
"address3":"Baker Street Westminster London",
"pincode":"51524036",
"city":"Westminster",
"state":"Westminster",
"country":"London"
},
"shipping_address":{
"address1":"10 Downing Street Westminster London",
"address2":"Oxford Street Westminster London",
"address3":"Baker Street Westminster London",
"pincode":"51524036",
"city":"Westminster",
"state":"Westminster",
"country":"London"
}
},
"merchant_metadata":{
"key1":"DD",
"key2":"XOF"
}
}
}
'
{
"data":{
"order_id":"v1-4405071524-aa-qlAtAf",
"merchant_order_reference":"112345",
"type":"CHARGE",
"status":"CREATED",
"merchant_id":"104359",
"order_amount":{
"value":1100,
"currency":"INR"
},
"pre_auth":false,
"callback_url":"https://sample-callback-url",
"failure_callback_url": "https://sample-failure-callback-url",
"allowed_payment_methods":[
"CARD",
"UPI",
"NETBANKING",
"POINTS",
"WALLET"
],
"notes":"order1",
"purchase_details":{
"customer":{
"email_id":"[email protected]",
"first_name":"Kevin",
"last_name":"Bob",
"customer_id":"123456",
"mobile_number":"9876543210",
"country_code": "91",
"billing_address":{
"address1":"10 Downing Street Westminster London",
"address2":"Oxford Street Westminster London",
"address3":"Baker Street Westminster London",
"pincode":"51524036",
"city":"Westminster",
"state":"Westminster",
"country":"London"
},
"shipping_address":{
"address1":"10 Downing Street Westminster London",
"address2":"Oxford Street Westminster London",
"address3":"Baker Street Westminster London",
"pincode":"51524036",
"city":"Westminster",
"state":"Westminster",
"country":"London"
}
},
"merchant_metadata":{
"key1":"DD",
"key2":"XOF"
}
},
"payments":[
],
"created_at":"2024-07-15T05:44:51.174Z",
"updated_at":"2024-07-15T05:44:51.174Z"
}
}
Click here for request and response parameter information.
The table below lists the request parameters of our create order API.
| Parameter | Type | Description |
|---|---|---|
| merchant_order_reference required | string |
Enter a unique identifier for the order request.
1234567890Supported characters:
|
| order_amount required | object |
An object that contains the transaction amount details. Learn more about the order_amount child object.
|
| pre_auth | boolean |
The pre-authorization type. Possible values:
|
| allowed_payment_methods | array of strings |
The type of payment methods you want to offer customers. Accepted values:
CARDNote: Before selecting a payment method, ensure it is configured for you. |
| notes | string |
Note to show against an order. Example: Order1
|
| callback_url | string |
URL to redirect customers based on order details. Example: https://sample-callback-url
|
| purchase_details | object |
An object that contains purchase details. Learn more about the purchase_details child object.
|
Order Amount [Child Object]
The table below lists the various parameters in the order_amount child object. This object is part of the create order request object.
| Parameter | Type | Description |
|---|---|---|
| value required | integer |
Transaction amount in Paisa.
1000
|
| currency required | string |
Type of currency. Example: INR
|
Purchase Details [Child Object]
The table below lists the various parameters in the purchase_details child object. This object is part of the create order request object.
| Parameter | Type | Description |
|---|---|---|
| customer | object |
An object that contains the customer details. Learn more about the customer child object. |
| merchant_metadata | object |
An object of key-value pair that can be used to store additional information. Example: "key1": "DD" |
Customer [Child Object]
The table below lists the various parameters in the customer child object. This is part of the purchase_details object.
| Parameter | Type | Description |
|---|---|---|
| email_id | string |
Customer's email address.
[email protected] |
| first_name | string |
Customer's first name.
Kevin |
| last_name | string |
Customer's last name.
Bob |
| customer_id | string |
Unique identifier of the customer in the Pine Labs Online database.
123456 |
| mobile_number | string |
Customer's mobile number.
9876543210 |
| billing_address | object |
An object that contains the details of the billing address. Learn more about our billing_address child object. |
| shipping_address | object |
An object that contains the shipping address details. Learn more about our shipping_address child object. |
Billing Address [Child Object]
The table below lists the various parameters in the billing_address child object. This is part of the customer object.
| Parameter | Type | Description |
|---|---|---|
| address1 | string | Customer's billing address1.
10 Downing Street Westminster London |
| address2 | string | Customer's billing address2.
Oxford Street Westminster London |
| address3 | string | Customer's billing address3.
Baker Street Westminster London |
| pincode | string | Pincode of the billing address.
51524036 |
| city | string | City of the billing address.
Westminster |
| state | string | State of the billing address.
Westminster |
| country | string | Country of the billing address.
London |
Shipping Address [Child Object]
The table below lists the various parameters in the shipping_address child object. This is part of the customer object.
| Parameter | Type | Description |
|---|---|---|
| address1 | string | Customer's shipping address1.
10 Downing Street Westminster London |
| address2 | string | Customer's shipping address2.
Oxford Street Westminster London |
| address3 | string | Customer's shipping address3.
Baker Street Westminster London |
| pincode | string | Pincode of the shipping address.
51524036 |
| city | string | City of the shipping address.
Westminster |
| state | string | State of the shipping address.
Westminster |
| country | string | Country of the shipping address.
London |
The table below lists the various parameters returned in the Create order response objects.
| Parameter | Type | Description |
|---|---|---|
| order_id | string |
Unique identifier of the order in the Pine Labs Online database.
v1-5757575757-aa-hU1rUd |
| merchant_order_reference | string |
Unique identifier entered while creating an order.
82d57572-057c-4826-5775-385a52150554 |
| type | string |
Payment type. Possible values:
|
| status | string |
Order status. Possible values:
|
| challenge_url | string |
Use the generated challenge_url to accept payment.Note: This parameter is returned only after the payment is linked against the order_id. |
| merchant_id | string |
Unique identifier of the merchant in the Pine Labs Online database. Example: 123456 |
| order_amount | object |
An object that contains the transaction amount details. Learn more about our order_amount child object. |
| notes | string |
The note you want to show against an order. Example: Order1 |
| pre_auth | boolean |
The pre-authorization type. Possible values:
false |
| allowed_payment_methods | array of strings |
The type of payment methods you want to offer customers. Accepted values:
CARDNote: Before selecting a payment method, ensure it is configured for you. |
| callback_url | string |
URL to redirect customers to success or failure pages. Example: https://sample-callback-url |
| purchase_details | object |
An object that contains the purchase details. Learn more about the purchase_details child object.Note: The presence of the object key-values depends on the Input request. |
| payments | array of objects |
An array of objects that contains the payment details. Note: Payment object is returned only for the orders linked with a payment. |
| created_at | string |
The ISO 8601 UTC Timestamp when the order request was received. Example: 2024-07-09T07:57:08.022Z |
| updated_at | string |
The ISO 8601 UTC Timestamp when the order object was updated. Example: 2024-07-09T07:57:08.022Z |
Order Amount [Child Object]
The table below lists the various parameters in the order_amount child object. This object is part of the create order response object.
| Parameter | Type | Description |
|---|---|---|
| value | integer |
Transaction amount in Paisa.
1000
|
| currency | string |
Type of currency. Example: INR
|
Purchase Details [Child Object]
The table below lists the various parameters in the purchase_details child object. This object is part of the create order response object.
| Parameter | Type | Description |
|---|---|---|
| customer | object |
An object that contains the customer details. Learn more about the customer child object. |
| merchant_metadata | object |
An object of key-value pair that can be used to store additional information. Example: "key1": "DD" |
Customer [Child Object]
The table below lists the various parameters in the customer child object. This is part of the purchase_details object.
| Parameter | Type | Description |
|---|---|---|
| email_id | string |
Customer's email address.
[email protected] |
| first_name | string |
Customer's first name.
Kevin |
| last_name | string |
Customer's last name.
Bob |
| customer_id | string |
Unique identifier of the customer in the Pine Labs Online database.
123456 |
| mobile_number | string |
Customer's mobile number.
9876543210 |
| billing_address | object |
An object that contains the details of the billing address. Learn more about our billing_address child object. |
| shipping_address | object |
An object that contains the shipping address details. Learn more about our shipping_address child object. |
Billing Address [Child Object]
The table below lists the various parameters in the billing_address child object. This is part of the customer object.
| Parameter | Type | Description |
|---|---|---|
| address1 | string | Customer's billing address1.
10 Downing Street Westminster London |
| address2 | string | Customer's billing address2.
Oxford Street Westminster London |
| address3 | string | Customer's billing address3.
Baker Street Westminster London |
| pincode | string | Pincode of the billing address.
51524036 |
| city | string | City of the billing address.
Westminster |
| state | string | State of the billing address.
Westminster |
| country | string | Country of the billing address.
London |
Shipping Address [Child Object]
The table below lists the various parameters in the shipping_address child object. This is part of the customer object.
| Parameter | Type | Description |
|---|---|---|
| address1 | string | Customer's shipping address1.
10 Downing Street Westminster London |
| address2 | string | Customer's shipping address2.
Oxford Street Westminster London |
| address3 | string | Customer's shipping address3.
Baker Street Westminster London |
| pincode | string | Pincode of the shipping address.
51524036 |
| city | string | City of the shipping address.
Westminster |
| state | string | State of the shipping address.
Westminster |
| country | string | Country of the shipping address.
London |
Refer to our Create Order API documentation to learn more.
Watch Out:
- For PNB accounts, pass 16-digit account numbers with a prefix zero.
Example: If the account number is 123456789012345, pass it as 0123456789012345.- For PSBI, Canara, CITI and SBI accounts, pass 17-digit account numbers with a prefix zero.
Example: If the account number is 1234567890123456, pass it as 01234567890123456.- For all other banks, pass the account number as is.
3. Create Payment
To create a payment, use our Create Payment API, use the order_id returned in the response of a Create Order API to link the payment against an order.
3.1. Intent Flow
Below are the sample requests and sample response for a Create Payment API via Intent Flow.
curl --location 'https://pluraluat.v2.pinepg.in/api/pay/v1/orders/{order_id}/payments' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c' \
--header 'Content-Type: application/json' \
--header 'Request-ID: c17ce30f-f88e-4f81-ada1-c3b4909ed235' \
--header 'Request-Timestamp: 2024-07-09T07:57:08.022Z' \
--header 'accept: application/json' \
--data '
{
{
"payments": [
{
"merchant_payment_reference": "008cf04b-a770-4777-854e-b1e6c1230609",
"payment_method": "UPI",
"payment_amount": {
"value": 1100,
"currency": "INR"
},
"payment_option": {
"upi_details": {
"txn_mode": "INTENT"
}
}
}
]
}
'
curl --location 'https://api.pluralpay.in/api/pay/v1/orders/{order_id}/payments' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c' \
--header 'Content-Type: application/json' \
--header 'Request-ID: c17ce30f-f88e-4f81-ada1-c3b4909ed235' \
--header 'Request-Timestamp: 2024-07-09T07:57:08.022Z' \
--header 'accept: application/json' \
--data '
{
"payments": [
{
"merchant_payment_reference": "008cf04b-a770-4777-854e-b1e6c1230609",
"payment_method": "UPI",
"payment_amount": {
"value": 1100,
"currency": "INR"
},
"payment_option": {
"upi_details": {
"txn_mode": "INTENT"
}
}
}
]
}
'
{
"data":{
"order_id":"v1-4405071524-aa-qlAtAf",
"merchant_order_reference":"112345",
"type":"CHARGE",
"status":"PENDING",
"challenge_url":"https://api.pluralpay.in/web/auth/landing/?token=S50%2B0lOoYHlA03j3y8Of4%2BZEzhD8MuFFLKP6NXx9uiaBBXlNhpCRA4wqkPd%2Bs9eRz7H",
"merchant_id":"123456",
"order_amount":{
"value":1100,
"currency":"INR"
},
"pre_auth":false,
"callback_url":"https://sample-callback-url",
"failure_callback_url": "https://sample-failure-callback-url",
"allowed_payment_methods":[
"CARD",
"UPI",
"NETBANKING",
"POINTS",
"WALLET"
],
"notes":"order1",
"purchase_details":{
"customer":{
"email_id":"[email protected]",
"first_name":"Kevin",
"last_name":"Bob",
"customer_id":"123456",
"mobile_number":"9876543210",
"country_code": "91",
"billing_address":{
"address1":"10 Downing Street Westminster London",
"address2":"Oxford Street Westminster London",
"address3":"Baker Street Westminster London",
"pincode":"51524036",
"city":"Westminster",
"state":"Westminster",
"country":"London"
},
"shipping_address":{
"address1":"10 Downing Street Westminster London",
"address2":"Oxford Street Westminster London",
"address3":"Baker Street Westminster London",
"pincode":"51524036",
"city":"Westminster",
"state":"Westminster",
"country":"London"
}
},
"merchant_metadata":{
"key1":"value1",
"key2":"value2"
}
},
"payments":[
{
"id":"v1-5307071124-aa-dmkVNf-cc-c",
"merchant_payment_reference":"008cf04b-a770-4777-854e-b1e6c1230609",
"status":"PENDING",
"payment_amount":{
"value":1100,
"currency":"INR"
},
"payment_method":"CARD",
"payment_option":{
"card_data":{
"card_type":"CREDIT",
"network_name":"VISA",
"issuer_name":"KOTAK",
"card_category":"CONSUMER",
"country_code":"IND",
"token_txn_type":"ALT_TOKEN"
}
},
"created_at":"2024-07-11T07:53:43.358Z",
"updated_at":"2024-07-11T07:56:18.044Z"
}
],
"created_at":"2024-07-11T07:53:43.358Z",
"updated_at":"2024-07-11T07:56:18.044Z"
}
}
Click here for request and response parameter information.
Path Parameters
| Parameter | Type | Description |
|---|---|---|
| order_id required | string |
Unique identifier of the order in the Pine Labs Online database. Example: v1-5757575757-aa-hU1rUd |
Request Parameters
| Parameter | Type | Description |
|---|---|---|
| Payments | array of objects |
An array of objects that contains the payment details. Learn more about our payments array of objects. |
Payments [Child Object]
The table below lists the various parameters in the payment child object.
| Parameter | Type | Description |
|---|---|---|
| payment_method required | string |
Type of payment method. Accepted value: UPIExample: UPI |
| merchant_payment_reference required | string |
Unique Payment Reference ID sent by the merchant. Example: 008cf04b-a770-4777-854e-b1e6c1230609 |
| payment_amount required | object |
An object that contains the details of the payment amount details. Learn more about payment_amount child object. |
| payment_option required | object |
An object that contains the details of the payment options details. Learn more about the payment_option child object. |
Payment Amount [Child Object]
The table below lists the various parameters in the payment_amount child object. This object is part of the payments object.
| Parameter | Type | Description |
|---|---|---|
| value required | integer |
The transaction amount is in Paisa. Minimum value: 100 (₹1).Maximum value: 100000000 (₹10 lakh).Example: 100 |
| currency required | string |
Type of currency. Example: INR |
Payment Option [Child Object]
The table below lists the various parameters in the payment_option child object. This object is part of the payments object.
| Parameter | Type | Description |
|---|---|---|
| upi_details required | object |
An object that contains the UPI details. Learn more about the upi_details child object. |
UPI Details [Child Object]
The table below lists the various parameters in the upi_details child object. This object is part of the payments_option object.
| Parameter | Type | Description |
|---|---|---|
| txn_mode required | string |
The transaction mode in which you want to accept payment. Accepted value: INTENT |
The table below lists the various parameters returned in the Create Payment API response objects.
| Parameter | Type | Description |
|---|---|---|
| order_id | string |
Unique identifier of the order in the Pine Labs Online database. Example: v1-5757575757-aa-hU1rUd |
| merchant_order_reference | string |
Unique identifier entered while creating an order.
82d57572-057c-4826-5775-385a52150554 |
| type | string |
Payment type. Possible values:
|
| status | string |
Order status. Possible values:
|
| challenge_url | string |
Use the generated challenge_url URL to navigate your users to the checkout page. |
| merchant_id | string |
Unique identifier of the merchant in Pine Labs Online database. Example: 123456 |
| order_amount | object |
An object that contains the transaction amount details. Learn more about our order_amount child object. |
| pre_auth | boolean |
The pre-authorization type. Possible values:
falseLearn more about our pre-authorization. |
| allowed_payment_methods | array of strings |
The type of payment methods you want to offer your customers to accept payments. Accepted values:
UPINote: Before selecting a payment method, ensure it is configured for you. |
| notes | string |
The note you want to show against an order. Example: Order1 |
| callback_url | string |
Use this URL to redirect your customers to specific success or failure pages based on the order or product details. Example: https://sample-callback-url |
| purchase_details | object |
An object that contains the purchase details. Learn more about our purchase_details child object.Note: The presence of the key-values pairs in this object depends on the Input request. |
| payments | array of objects |
An array of objects that contains the payment details. Learn more about our payments child object.Note: Payments response object can vary based on the payment methods and payment status. |
| created_at | string |
The ISO 8601 UTC Timestamp, when the create order request was received by Pine Labs Online. Example: 2024-07-09T07:57:08.022Z |
| updated_at | string |
The ISO 8601 UTC Timestamp, when the order response object is updated. Example: 2024-07-09T07:57:08.022Z |
Order Amount [Child Object]
The table below lists the various parameters in the order_amount child object. This object is part of the payments sample response object.
| Parameter | Type | Description |
|---|---|---|
| value | integer |
The transaction amount is Paisa.
100 |
| currency | string |
Type of currency. Example: INR |
Purchase Details [Child Object]
The table below lists the various parameters in the purchase_details child object. This object is part of the payments sample response object.
| Parameter | Type | Description |
|---|---|---|
| customer | Object |
An object that contains the customer details. Learn more about our customer child object. |
| merchant_metadata | object |
An object of key-value pair that can be used to store additional information. Example: "key1": "DD" |
Customer [Child Object]
The table below lists the various parameters in the customer child object. This is part of the purchase_details object.
| Parameter | Type | Description |
|---|---|---|
| email_id | string |
Customer's email address.
[email protected] |
| first_name | string |
Customer's first name.
Kevin |
| last_name | string |
Customer's last name.
Bob |
| customer_id | string |
Unique identifier of the customer in the Pine Labs Online database.
123456 |
| mobile_number | string |
Customer's mobile number.
9876543210 |
| billing_address | object |
An object that contains the details of the billing address. Learn more about our billing_address child object. |
| shipping_address | object |
An object that contains the shipping address details. Learn more about our shipping_address child object. |
Billing Address [Child Object]
The table below lists the various parameters in the billing_address child object. This is part of the customer object.
| Parameter | Type | Description |
|---|---|---|
| address1 | string | Customer's billing address1.
10 Downing Street Westminster London |
| address2 | string | Customer's billing address2.
Oxford Street Westminster London |
| address3 | string | Customer's billing address3.
Baker Street Westminster London |
| pincode | string | Pincode of the billing address.
51524036 |
| city | string | City of the billing address.
Westminster |
| state | string | State of the billing address.
Westminster |
| country | string | Country of the billing address.
London |
Shipping Address [Child Object]
The table below lists the various parameters in the shipping_address child object. This is part of the customer object.
| Parameter | Type | Description |
|---|---|---|
| address1 | string | Customer's shipping address1.
10 Downing Street Westminster London |
| address2 | string | Customer's shipping address2.
Oxford Street Westminster London |
| address3 | string | Customer's shipping address3.
Baker Street Westminster London |
| pincode | string | Pincode of the shipping address.
51524036 |
| city | string | City of the shipping address.
Westminster |
| state | string | State of the shipping address.
Westminster |
| country | string | Country of the shipping address.
London |
Payments [Child Object]
The table below lists the various parameters in the payments child object. This object is part of the payments sample response object.
| Parameter | Type | Description |
|---|---|---|
| id | string |
Unique identifier of the payment in the Pine Labs Online database.
v1-5206071124-aa-mpLhF3-cc-l |
| merchant_payment_reference | string |
A unique Payment Reference id sent by merchant. Example: 008cf04b-a770-4777-854e-b1e6c1230609 |
| status | string |
Payment status. Possible values:
PENDING: When the create payment API request is successfully received by Pine Labs Online.PENDING |
| payment_amount | object |
An object that contains the details of the payment amount. Learn more about our payment_amount child object. |
| payment_method | string |
Type of payment method. Accepted values:
UPI |
| payment_option | object |
An object that contains the details of the payment options. Learn more about our payment_option child object. |
| acquirer_data | object |
An object that contains the details of the acquirer data. Learn more about our acquirer_data child object. |
| created_at | string |
The ISO 8601 UTC Timestamp, when the create payment request was received by Pine Labs Online. Example: 2024-07-11T06:52:12.484Z |
| updated_at | string |
The ISO 8601 UTC Timestamp, when the payment response object is updated. Example: 2024-07-11T06:59:38.260Z |
Payment Amount [Child Object]
The table below lists the various parameters in the payment_amount child object. This object is part of the payments object.
| Parameter | Type | Description |
|---|---|---|
| value | integer |
The transaction amount is Paisa.
100 |
| currency | string |
Type of currency. Example: INR |
Payment Option [Child Object]
The table below lists the various parameters in the payment_option child object. This object is part of the payments object.
| Parameter | Type | Description |
|---|---|---|
| upi_details | object |
An object that contains the UPI details. Learn more about our upi_details child object. |
UPI Details [Child Object]
The table below lists the various parameters in the upi_details child object. This object is part of the payment_option object.
| Parameter | Type | Description |
|---|---|---|
| txn_mode | string |
Type of UPI transaction. Accepted values:
INTENT |
Acquirer Data [Child Object]
The table below lists the various parameters in the acquirer_data child object. This object is part of the payments object.
| Parameter | Type | Description |
|---|---|---|
| approval_code | string |
Authorization code returned from acquirer against the payment. Example: 030376 |
| acquirer_reference | string |
Unique reference returned from acquirer for the payment. Example: 202455840588334 |
| rrn | string |
Retrieval reference number returned from acquirer for the payment. Example: 419335023601 |
| is_aggregator | boolean |
The selected aggregator model type. Accepted values:
|
