Seamless Authentication
Your customers can complete the entire authentication flow on your platform without redirections.
Learn how you can integrate with Pine Labs Online APIs to start accepting payments on your website using OTP.
Pine Labs Online 3D Secure Native OTP feature empowers you to manage the entire authentication process within your platform by eliminating the need to redirect users to the Access Control Server (ACS) page. By leveraging this feature, you can generate, resend, and verify One-Time Passwords (OTPs) through our APIs, ensuring a smooth authentication experience while maintaining complete control over the user interface.
Your customers can complete the entire authentication flow on your platform without redirections.
This allows you to customize the OTP entry interface to align with your brand identity.
Reduce transaction abandonment due to redirection delays or network issues.
Helps you to gain better visibility of your customer authentication behavior.
Improve authentication success rates by 2-3%.
Supports fallback to traditional ACS redirection when necessary.
Instead of directing your customers to an external 3D Secure page, the entire OTP-based authentication process happens within your website or application:
The customer initiates a payment on your platform.
The system triggers an OTP request via API.
The issuing bank sends the OTP to the customer.
The customer enters the OTP using your customized interface.
The OTP is submitted via API for verification.
The transaction is processed seamlessly without redirection.
This approach enhances user experience, reduces friction, and improves transaction success rates by keeping customers engaged within your platform.
| Card Issuer | NETWORK | ||
|---|---|---|---|
| VISA | MASTERCARD | RUPAY | |
| ICICI Credit Card | ✔ | ✔ | |
| ICICI Debit Card | ✔ | ✔ | |
| HDFC Credit Card | ✔ | ✔ | ✔ |
| HDFC Debit Card | ✔ | ✔ | |
| AXIS Credit Card | ✔ | ✔ | |
| AXIS Debit Card | ✔ | ✔ | |
| SBI Credit Card | ✔ | ✔ | ✔ |
| SBI Debit Card | ✔ | ✔ | |
| KOTAK Credit Card | ✔ | ||
| KOTAK Debit Card | ✔ | ||
| YESBANK Credit Card | ✔ | ✔ | |
Important
- The Native OTP flow enables you to cover
88.52%of all transactions across all card issuers.
Follow the below steps to integrate with Pine Labs Online Native OTP 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.
Watch Out
- To Integrate with Pine Labs Online seamless checkout flow you must have a PCI compliance certificate.
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
}
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.
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,
"notes": "order1",
"callback_url": "https://sample-callback-url",
"purchase_details": {
"customer": {
"email_id": "[email protected]",
"first_name": "Kevin",
"last_name": "Bob",
"customer_id": "123456",
"mobile_number": "9876543210",
"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,
"notes": "order1",
"callback_url": "https://sample-callback-url",
"purchase_details": {
"customer": {
"email_id": "[email protected]",
"first_name": "Kevin",
"last_name": "Bob",
"customer_id": "123456",
"mobile_number": "9876543210",
"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,
"notes": "order1",
"purchase_details": {
"customer": {
"email_id": "[email protected]",
"first_name": "Kevin",
"last_name": "Bob",
"customer_id": "123456",
"mobile_number": "9876543210",
"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"
}
}
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.
|
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
|
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" |
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. |
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 |
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 |
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
|
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" |
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. |
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 |
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.
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.
Below are the sample requests and sample response for Card Payment API.
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": "merchant-payment-reference-r4y",
"payment_method": "CARD",
"payment_amount": {
"value": 35000,
"currency": "INR"
},
"payment_option": {
"card_details": {
"name": "Kevin",
"card_number": "2870-2870-2870-2870",
"cvv": "235",
"expiry_month": "03",
"expiry_year": "30"
}
},
"device_info": {
"browser_accept_header": "*/*",
"browser_user_agent": "mozilla/5.0+x11;+ubuntu;+linux+x86_64;+rv:72.0)+gecko/20100101+firefox/72.0",
"browser_language": "en",
"browser_screen_height": "768",
"browser_screen_width": "1366",
"browser_timezone": "-330",
"browser_window_size": "1366x768",
"browser_screen_color_depth": "24",
"browser_java_enabled_val": "true",
"browser_javascript_enabled_val": "true",
"device_channel": "browser"
}
}
]
}
'
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": "merchant-payment-reference-r4y",
"payment_method": "CARD",
"payment_amount": {
"value": 35000,
"currency": "INR"
},
"payment_option": {
"card_details": {
"name": "Kevin",
"card_number": "2870-2870-2870-2870",
"cvv": "235",
"expiry_month": "03",
"expiry_year": "30"
}
},
"device_info": {
"browser_accept_header": "*/*",
"browser_user_agent": "mozilla/5.0+x11;+ubuntu;+linux+x86_64;+rv:72.0)+gecko/20100101+firefox/72.0",
"browser_language": "en",
"browser_screen_height": "768",
"browser_screen_width": "1366",
"browser_timezone": "-330",
"browser_window_size": "1366x768",
"browser_screen_color_depth": "24",
"browser_java_enabled_val": "true",
"browser_javascript_enabled_val": "true",
"device_channel": "browser"
}
}
]
}
'
{
"data": {
"order_id": "v1-5312042524-aa-0YO29z",
"merchant_order_reference": "merchant-reference-r4y",
"type": "CHARGE",
"status": "CREATED",
"challenge_url": "https://pluraluat.v2.pinepg.in/web/auth/landing/?token=S50w2VcwX9f3EQ%2B%2BYUb5lb%2FBp1TDpaXXuCSoyDmAfTQtxQFv09dv7LS4%2BApSGcMXFom",
"merchant_id": "merchant-123",
"order_amount": {
"value": 35000,
"currency": "INR"
},
"pre_auth": false,
"payments": [
{
"id": "v1-0252192429-wa-0IOa9q",
"merchant_payment_reference": "merchant-payment-reference-r4y",
"status": "PENDING",
"payment_amount": {
"value": 35000,
"currency": "INR"
},
"payment_method": "CARD",
"payment_option": {
"card_data": {
"card_type": "CREDIT",
"network_name": "VISA",
"issuer_name": "HDFC",
"country_code": "IND"
}
},
"convenience_fee_breakdown": {
"fee_amount": {
"value": 5000,
"currency": "INR"
},
"tax_amount": {
"value": 1080,
"currency": "INR"
},
"additional_fee_amount": {
"value": 1000,
"currency": "INR"
},
"maximum_fee_amount": {
"value": 4999,
"currency": "INR"
},
"applicable_fee_amount": {
"value": 4999,
"currency": "INR"
}
},
"created_at": "2024-04-30T08:01:32Z",
"updated_at": "2024-04-30T08:01:32Z"
}
],
"created_at": "2024-04-30T08:01:32Z",
"updated_at": "2024-04-30T08:01:32Z"
}
}
The table below lists the path parameters of our Create Card Payment API.
| Parameter | Type | Description |
|---|---|---|
| order_id required | string |
Unique identifier of the order in the Pine Labs Online database. Example: v1-5757575757-aa-hU1rUd |
The table below lists the request parameters of our Create Card Payment API.
| Parameter | Type | Description |
|---|---|---|
| Payments required | array of objects |
An array of objects that contains the payment details. Learn more about our payments child object |
The table below lists the various parameters in the payments child object. This object is part of the create card payment request object.
| Parameter | Type | Description |
|---|---|---|
| merchant_payment_reference required | string |
Unique Payment Reference id sent by merchant. Example: 008cf04b-a770-4777-854e-b1e6c1230609 |
| payment_method required | string |
Type of payment method you want to use to accept a payment. Accepted value: CARDExample: CARD
|
| payment_amount required | object |
An object that contains the details of the payment amount. Learn more about our payment_amount child object. |
| payment_option required | object |
An object that contains the details of the payment options. Learn more about our payment_option 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 payment amount is Paisa.
100 |
| currency required | string |
Type of currency. Example: INR |
The table below lists the various parameters in the payment_option child object. This object is part of the payments object.
| Parameter | Type | Description |
|---|---|---|
| card_details | object | An object that contains the card details. Learn more about the card_details child object. |
The table below lists the various parameters in the card_details child object. This object is part of the payment_option object.
| Parameter | Type | Description |
|---|---|---|
| name required | string | Name on the card.
Kevin |
| card_number required | string | Card Number.
123456789012 |
| cvv required | string | Card Verification Value [CVV] of the card.
123Supported characters: 0-9 |
| expiry_month required | string | Card expiry month. Has to be 2 digits. Example: 08Supported characters: 0-9 |
| expiry_year required | string | Card expiry year. Has to be 4 digits. Example: 2024Supported characters: 0-9 |
| registered_mobile_number | string | Card registered mobile number.
9876543210Supported characters: 0-9 |
The table below lists the various parameters returned in the Create Card Payments 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 URL to navigate your users the checkout page. |
| 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 objectNote: 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. Learn more about the payments child object.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 |
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 | integer |
Transaction amount in Paisa.
1000
|
| currency | string |
Type of currency. Example: INR
|
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" |
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. |
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 |
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 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:
CARD |
| 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 |
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 |
The table below lists the various parameters in the payment_option child object. This object is part of the payments object.
| Parameter | Type | Description |
|---|---|---|
| card_data | object |
An object that contains the card details. Learn more about our card_data child object. |
The table below lists the various parameters in the card_data child object. This object is part of the payment_option object.
| Parameter | Type | Description |
|---|---|---|
| card_type | string |
Type of card. Possible values:
CREDIT |
| network_name | string |
Card network providers. Example: VISA |
| issuer_name | string |
Card issuer entity. Example: HDFC |
| card_category | string |
The card category type. Possible values:
|
| country_code | string |
Card issuer's country. Example: IND |
| token_txn_type | string |
Transaction token type. Possible values:
ALT_TOKEN |
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:
|
Refer to our Create Payment API documentation to learn more.
Note:
- Follow the steps below to process the transaction using the native OTP flow. Or you can use the
chanllenge_urlto continue with the standard ACS [Access Control Server] flow.
Use this API to fetch the card details.
Below are the sample requests and sample response for a Get Card Details API.
curl --request POST \
--url https://pluraluat.v2.pinepg.in/api/pay/v1/getCardDetails \
--header 'Authorization: Bearer <access_token>' \
--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 '
{
"amount": "100",
"card_details": [
{
"payment_identifier": "4012001037141112",
"payment_reference_type": "CARD"
}
]
}
'
curl --request POST \
--url https://api.pluralpay.in/api/pay/v1/getCardDetails \
--header 'Authorization: Bearer <access_token>' \
--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 '
{
"amount": "100",
"card_details": [
{
"payment_identifier": "4012001037141112",
"payment_reference_type": "CARD"
}
]
}
'
{
"card_payment_details":[
{
"card_network":"VISA",
"card_issuer":"INTL HDQTRS-CENTER OWNED",
"card_type":"CREDIT",
"card_category":"NONE",
"is_international_card":false,
"is_native_otp_supported":true,
"country_code":"IND",
"currency":"INR",
"is_currency_supported":true
}
]
}
The table below lists the request parameters of our Get Card Details API.
| Parameter | Type | Description |
|---|---|---|
| card_details required | array of objects |
An object that contains the card details.. Learn more about our card_details child object |
The table below lists the various parameters in the card_details child object. This object is part of the Get Card Details request object.
| Parameter | Type | Description |
|---|---|---|
| payment_identifier required | string |
Card Number.
123456789012Supported characters: 0-9 |
| payment_reference_type required | string |
Type of payment method you want to use to accept a payment. Accepted values:
CARD |
The table below lists the various parameters returned in our Get Card Details API response object.
| Parameter | Type | Description |
|---|---|---|
| card_payment_details | array of objects |
An array of objects that contains the card payment details. Learn more about our card_payment_details child object. |
The table below lists the various parameters in the card_payment_details child object. This object is part of the Get Card Details API response object.
| Parameter | Type | Description |
|---|---|---|
| card_network | string |
Card network providers. Example: VISA |
| card_issuer | string |
Card Issuing entity. Example: HDFC |
| card_type | string |
Type of card. Possible values:
CREDIT |
| card_category | string |
The card category type. Possible values:
|
| is_international_card | boolean |
Status of the card classified as domestic or international. Possible values:
|
| is_native_otp_supported | boolean |
Native OTP supported status. Possible values:
|
| country_code | string |
Card issuer's country. Example: IND |
| currency | string |
Type of currency. Example: INR |
| is_currency_supported | boolean |
Currency support status. Possible values:
|
Refer to our Get Card Details API documentation to learn more.
Use this API to generate and send an OTP to the registered mobile number.
Below are the sample requests and sample response for a Generate OTP API.
curl --request POST \
--url https://pluraluat.v2.pinepg.in/api/pay/v1/otp/generate \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"payment_id": "v1-250219120455-aa-Lc5FbR-cc-a"
}
'
curl --request POST \
--url https://api.pluralpay.in/api/pay/v1/otp/generate \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"payment_id": "v1-250219120455-aa-Lc5FbR-cc-a"
}
'
{
"next": [
"SUBMIT_OTP",
"RESEND_OTP"
],
"meta_data": {
"resend_after": "180"
}
}
The table below lists the request parameters of our Generate OTP API.
| Parameter | Type | Description |
|---|---|---|
| payment_id required | string |
Unique identifier of the payment in the Pine Labs Online database.
v1-5206071124-aa-mpLhF3-cc-l |
The table below lists the various parameters returned in our Generate OTP API response object.
| Parameter | Type | Description |
|---|---|---|
| next | array of strings |
An array of strings that contains the details of the next steps. Possible values:
|
| meta_data | object |
An object that contains the metadata information. Learn more about the meta_data child object. |
The table below lists the various parameters in the metadata child object. This object is part of the OTP APIs response object.
| Parameter | Type | Description |
|---|---|---|
| resend_after | string |
The time after which you can initiate the Resend OTP API. Time in seconds. Example: 180 |
Refer to our Generate OTP API documentation to learn more.
Use this API to submit the OTP for verification.
Below are the sample requests and sample response for a Submit OTP API.
curl --request POST \
--url https://pluraluat.v2.pinepg.in/api/pay/v1/otp/submit \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"payment_id": "v1-250219120455-aa-Lc5FbR-cc-a",
"otp": 1234
}
'
curl --request POST \
--url https://api.pluralpay.in/api/pay/v1/otp/submit \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"payment_id": "v1-250219120455-aa-Lc5FbR-cc-a",
"otp": 1234
}
'
{
"status": "SUCCESS"
}
The table below lists the request parameters of our Submit OTP API.
| Parameter | Type | Description |
|---|---|---|
| payment_id required | string |
Unique identifier of the payment in the Pine Labs Online database.
v1-5206071124-aa-mpLhF3-cc-l |
| otp required | string |
Enter the OTP received on your registered mobile number.
1234 |
The table below lists the various parameters returned in our Submit OTPAPI response object.
| Parameter | Type | Description |
|---|---|---|
| status | string |
OTP Verification status. Possible values:
|
Refer to our Submit OTP API documentation to learn more.
Use this API to resend a OTP to the registered mobile number.
Below are the sample requests and sample response for a Resend OTP API.
curl --request POST \
--url https://pluraluat.v2.pinepg.in/api/pay/v1/otp/resend \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"payment_id": "v1-250219120455-aa-Lc5FbR-cc-a"
}
'
curl --request POST \
--url https://api.pluralpay.in/api/pay/v1/otp/resend \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"payment_id": "v1-250219120455-aa-Lc5FbR-cc-a"
}
'
{
"status": "SUCCESS",
"next": [
"SUBMIT_OTP",
"RESEND_OTP"
],
"meta_data": {
"resend_after": "180"
}
}
The table below lists the request parameters of our Resend OTP API.
| Parameter | Type | Description |
|---|---|---|
| payment_id required | string |
Unique identifier of the payment in the Pine Labs Online database.
v1-5206071124-aa-mpLhF3-cc-l |
The table below lists the various parameters returned in Resend OTP API response object.
| Parameter | Type | Description |
|---|---|---|
| next | array of strings |
An array of strings that contains the details of the next steps. Possible values:
|
| meta_data | object |
An object that contains the metadata information. Learn more about the meta_data child object. |
| status | string |
OTP Verification status. Possible values:
|
The table below lists the various parameters in the metadata child object. This object is part of the OTP APIs response object.
| Parameter | Type | Description |
|---|---|---|
| resend_after | string |
The time after which you can initiate the Resend OTP API. Time in seconds. Example: 180 |
Refer to our Resend OTP API documentation to learn more.
In create payment API response we return a challenge_url, use this challenge url to navigate your customers to the checkout page to accept payment.
Note:
- On successful payment we send the webhook event
ORDER_AUTHORIZEDand the status of the payment is updated toauthorized.- You can capture or cancel an order only when the order status is
authorized.
On a successful and failed payment we return the following fields to the return url.
{
"order_id": "v1-4405071524-aa-qlAtAf",
"status": "AUTHORIZED",
"signature": "ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad"
}
{
"order_id": "v1-4405071524-aa-qlAtAf",
"status": "AUTHORIZED",
"error_code": "USER_AUTHENTICATION_REQUIRED",
"error_message": "Consumer Authentication Required",
"signature": "ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad"
}
Ensure you follow this as a mandatory step to verify the authenticity of the details returned to the checkout form for successful payments.
Follow the below steps to verify the signature.
order_id: Unique Identifier generated for an order request on Pine Labs Online database.payment_status: Payment status.error_code: Short code for the error returned.error_message: Corresponding error message for the code.secret_key: The Onboarding team has provided you with this information as part of the onboarding process.Use the below sample code to construct HashMap signature using the SHA256 algorithm.
import java.io.UnsupportedEncodingException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import javax.crypto.Mac;
import javax.crypto.spec.SecretKeySpec;
public class hash {
public static void main(String[] args) {
// Test the GenerateHash method
String input = "<string>";
String secretKey = "<secret_key>"; // Example key in hex
String hash = GenerateHash(input, secretKey);
System.out.println("Generated Hash: " + hash);
}
public static String GenerateHash(String input, String strSecretKey) {
String strHash = "";
try {
if (!isValidString(input) || !isValidString(strSecretKey)) {
return strHash;
}
byte[] convertedHashKey = new byte[strSecretKey.length() / 2];
for (int i = 0; i < strSecretKey.length() / 2; i++) {
convertedHashKey[i] =
(byte)Integer.parseInt(strSecretKey.substring(i * 2, (i*2)+2),16); //hexNumber radix
}
strHash = hmacDigest(input.toString(), convertedHashKey,
"HmacSHA256");
} catch (Exception ex) {
strHash = "";
}
return strHash.toUpperCase();
}
private static String hmacDigest(String msg, byte[] keyString, String algo) {
String digest = null;
try {
SecretKeySpec key = new SecretKeySpec(keyString, algo);
Mac mac = Mac.getInstance(algo);
mac.init(key);
byte[] bytes = mac.doFinal(msg.getBytes("UTF-8"));
StringBuffer hash = new StringBuffer();
for (int i = 0; i < bytes.length; i++) {
String hex = Integer.toHexString(0xFF & bytes[i]);
if (hex.length() == 1) {
hash.append('0');
}
hash.append(hex);
}
digest = hash.toString();
} catch (UnsupportedEncodingException e) {
// logger.error("Exception occured in hashing the pine payment gateway request"+e);
} catch (InvalidKeyException e) {
// logger.error("Exception occured in hashing the pine payment gateway request"+e);
} catch (NoSuchAlgorithmException e) {
// logger.error("Exception occured in hashing the pine payment gateway request"+e);
}
return digest;
}
public static boolean isValidString(String str){
if(str != null && !"".equals(str.trim())){
return true;
}
return false;
}
}
Note:
To create a request string, format the key-value pairs of data returned to the return URL. The pairs are separated by
&and arranged in ascending order based on a lexicographical comparison of the keys.
Shown below is a example to create a request string.
"key1=value1&key2=value2", ["order_id=random_order_id&status=AUTHORIZED"]
"key1=value1&key2=value2&key3=value3&key4=value4", ["error_code=USER_AUTHENTICATION_FAILED&error_message=Consumer Authentication required&order_id=<order_id>&status=FAILED"]
AUTHORIZED you can either capture or cancel an order.Important:
- With pre-authorization set to true, you can capture or cancel a payment for an order.
Use this API to capture the payment against an order. On successful capture of an order the order status is updated as processed.
Shown below are the sample requests and sample response for a Capture Order API.
curl --request PUT \
--url https://pluraluat.v2.pinepg.in/api/pay/v1/orders/order_id/capture \
--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_capture_reference": "merchant-capture-ref-r4y",
"capture_amount": {
"value": 4000,
"currency": "INR"
}
}
'
curl --request PUT \
--url https://api.pluralpay.in/api/pay/v1/orders/order_id/capture \
--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_capture_reference": "merchant-capture-ref-r4y",
"capture_amount": {
"value": 4000,
"currency": "INR"
}
}
'
{
"data": {
"order_id": "v1-5757575757-aa-hU1rUd",
"merchant_order_reference": "f4548bbf-a029-43d3-9209-e3385c80b1e9",
"type": "CHARGE",
"status": "PROCESSED",
"merchant_id": "123456",
"order_amount": {
"value": 1100,
"currency": "INR"
},
"pre_auth": true,
"notes": "order1",
"purchase_details": {
"customer": {
"email_id": "[email protected]",
"first_name": "Kevin",
"last_name": "Bob",
"customer_id": "232323",
"mobile_number": "9876543210",
"billing_address": {
"address1": "H.No 15, Sector 17",
"address2": "",
"address3": "",
"pincode": "61232112",
"city": "CHANDIGARH",
"state": "PUNJAB",
"country": "INDIA"
},
"shipping_address": {
"address1": "H.No 15, Sector 17",
"address2": "string",
"address3": "string",
"pincode": "144001123",
"city": "CHANDIGARH",
"state": "PUNJAB",
"country": "INDIA"
}
},
"merchant_metadata": {
"key1": "DD",
"key2": "XOF"
}
},
"payments": [
{
"id": "v1-1111071924-aa-zzSkOA-cc-G",
"status": "PROCESSED",
"payment_amount": {
"value": 1100,
"currency": "INR"
},
"payment_method": "CARD",
"payment_option": {
"card_data": {
"card_type": "CREDIT",
"network_name": "VISA",
"issuer_name": "NONE",
"card_category": "CONSUMER",
"country_code": "IND",
"token_txn_type": "ALT_TOKEN"
}
},
"acquirer_data": {
"approval_code": "000000",
"acquirer_reference": "202456643801053",
"rrn": "420145000226"
},
"capture_data": [
{
"merchant_capture_reference": "f31d8c60-0dc8-4788-a577-5ced930cc175",
"capture_amount": {
"value": 1100,
"currency": "INR"
},
"created_at": "2024-07-19T11:13:21.523Z"
}
],
"created_at": "2024-07-19T11:11:48.944Z",
"updated_at": "2024-07-19T11:13:23.962Z"
}
],
"created_at": "2024-07-19T11:11:48.944Z",
"updated_at": "2024-07-19T11:13:23.962Z"
}
}
The table below lists the path parameter of our Capture Order API.
| Parameter | Type | Description |
|---|---|---|
| order_id required | string |
Unique identifier of the order in the Pine Labs Online database. Example: v1-5757575757-aa-hU1rUd
|
The table below lists the request parameter of our Capture Order API.
| Parameter | Type | Description |
|---|---|---|
| merchant_capture_reference required | string |
Enter a unique identifier for the capture order request.
123456789Supported characters:
|
| capture_amount | object |
Mandatory for a partial capture request. An object that contains the capture amount details. Learn more about our capture_amount child object.
|
The table below lists the various parameters in the capture_amount child object. This object is part of the capture_order request object.
| Parameter | Type | Description |
|---|---|---|
| value required | integer |
The split amount in Paisa.
100
|
| currency required | string |
Type of currency. Example: INR
|
The table below lists the various parameters returned in the orders 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:
|
| 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. Learn more about the payments child object.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 |
| integration_mode | string> |
Type of integration. Example: SEAMLESS
|
| payment_retries_remaining | integer> |
Number of retry attempts left. Example: 9
|
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 | integer |
Transaction amount in Paisa.
1000
|
| currency | string |
Type of currency. Example: INR
|
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" |
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. |
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 |
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 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:
CARD |
| 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. |
| capture_data | object |
An object that contains the details of the capture data. Learn more about our capture_data child object.Note: The presence of the key-value pairs against this object depends on the pre-authorization type. |
| 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 |
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 |
The table below lists the various parameters in the payment_option child object. This object is part of the payments object.
| Parameter | Type | Description |
|---|---|---|
| card_data | object |
An object that contains the card details. Learn more about our card_data child object. |
The table below lists the various parameters in the card_data child object. This object is part of the payment_option object.
| Parameter | Type | Description |
|---|---|---|
| card_type | string |
Type of card. Possible values:
CREDIT |
| network_name | string |
Card network providers. Example: VISA |
| issuer_name | string |
Card issuer entity. Example: HDFC |
| card_category | string |
The card category type. Possible values:
|
| country_code | string |
Card issuer's country. Example: IND |
| token_txn_type | string |
Transaction token type. Possible values:
ALT_TOKEN |
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:
|
The table below lists the various parameters in the capture_data child object. This object is part of the payments object.
| Parameter | Type | Description |
|---|---|---|
| merchant_capture_reference | string |
Unique identifier passed while creating the capture payment request. Example: 5742ef1e-4606-4c11-5757-705f4d415b6d |
| capture_amount | object |
An object that contains the capture amount details. Learn more about our capture_amount child object. |
| created_at | string |
The ISO 8601 UTC Timestamp, when the amount was captured. Example: 2024-07-11T11:52:12.484105Z |
The table below lists the various parameters in the capture_amount child object. This object is part of the capture_data object.
| Parameter | Type | Description |
|---|---|---|
| value | integer |
The transaction amount is in Paisa.
100 |
| currency | string |
Type of currency. Example: INR |
Refer to our Capture Order API documentation to learn more.
Use this API to cancel the payment against an order.
Use the below endpoint to cancel the payment against the order.
PUT: https://pluraluat.v2.pinepg.in/api/pay/v1/orders/{order_id}/cancel
PUT: https://api.pluralpay.in/api/pay/v1/orders/{order_id}/cancel
Shown below is a sample request and sample response for a Cancel Order API.
{
"data": {
"order_id": "v1-5757575757-aa-hU1rUd",
"merchant_order_reference": "2177120b-3be1-4330-a15f-53ce14d19841",
"type": "CHARGE",
"status": "CANCELLED",
"merchant_id": "123456",
"order_amount": {
"value": 50000,
"currency": "INR"
},
"pre_auth": true,
"notes": "order1",
"purchase_details": {
"customer": {
"email_id": "[email protected]",
"first_name": "Kevin",
"last_name": "Bob",
"customer_id": "232323",
"mobile_number": "9876543210",
"billing_address": {
"address1": "H.No 15, Sector 17",
"address2": "",
"address3": "",
"pincode": "61232112",
"city": "CHANDIGARH",
"state": "PUNJAB",
"country": "INDIA"
},
"shipping_address": {
"address1": "H.No 15, Sector 17",
"address2": "",
"address3": "",
"pincode": "144001123",
"city": "CHANDIGARH",
"state": "PUNJAB",
"country": "INDIA"
}
},
"merchant_metadata": {
"key1": "DD",
"key2": "XOF"
}
},
"payments": [
{
"id": "v1-2711071924-aa-VxIzq1-cc-Z",
"status": "CANCELLED",
"payment_amount": {
"value": 1100,
"currency": "INR"
},
"payment_method": "CARD",
"payment_option": {
"card_data": {
"card_type": "CREDIT",
"network_name": "VISA",
"issuer_name": "NONE",
"card_category": "CONSUMER",
"country_code": "IND",
"token_txn_type": "ALT_TOKEN"
}
},
"acquirer_data": {
"approval_code": "000000",
"acquirer_reference": "202456644249243",
"rrn": "420123000239"
},
"created_at": "2024-07-19T11:27:55.664Z",
"updated_at": "2024-07-19T11:28:52.487Z"
}
],
"created_at": "2024-07-19T11:27:55.664Z",
"updated_at": "2024-07-19T11:28:52.487Z"
}
}
The table below lists the path parameter of our Capture Order API.
| Parameter | Type | Description |
|---|---|---|
| order_id required | string |
Unique identifier of the order in the Pine Labs Online database. Example: v1-5757575757-aa-hU1rUd
|
The table below lists the various parameters returned in the orders 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:
|
| 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 |
| 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. Learn more about the payments child object.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 |
| integration_mode | string> |
Type of integration. Example: SEAMLESS
|
| payment_retries_remaining | integer> |
Number of retry attempts left. Example: 9
|
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 | integer |
Transaction amount in Paisa.
1000
|
| currency | string |
Type of currency. Example: INR
|
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" |
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. |
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 |
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 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:
CARD |
| 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 |
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 |
The table below lists the various parameters in the payment_option child object. This object is part of the payments object.
| Parameter | Type | Description |
|---|---|---|
| card_data | object |
An object that contains the card details. Learn more about our card_data child object. |
The table below lists the various parameters in the card_data child object. This object is part of the payment_option object.
| Parameter | Type | Description |
|---|---|---|
| card_type | string |
Type of card. Possible values:
CREDIT |
| network_name | string |
Card network providers. Example: VISA |
| issuer_name | string |
Card issuer entity. Example: HDFC |
| card_category | string |
The card category type. Possible values:
|
| country_code | string |
Card issuer's country. Example: IND |
| token_txn_type | string |
Transaction token type. Possible values:
ALT_TOKEN |
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:
|
Refer to our Cancel Order API documentation to learn more.
Updated 17 days ago