Pine LabsDOCS

API Playground

Test Pine Labs API endpoints with real requests. All endpoints are loaded dynamically from the OpenAPI specification.

Create a Payment Order

An order contains the total amount and the purchase details against an order. For every order, we generate a unique order ID. It ensures that each order can be identified, referenced, and accessed without confusion or ambiguity. This order_id must be used in our payments API to accept payment against an order.

POSThttps://pluraluat.v2.pinepg.in/api/pay/v1/orders
Required
Request Body (editable JSON)
Request Body Schemarequired
FieldDetails
merchant_order_reference
stringrequired

**Idempotency Key.** Unique order reference assigned by the merchant. Duplicate requests with the same `merchant_order_reference` will return the existing order instead of creating a new one.

Constraints
Minimum length: 1 characterMaximum length: 50 characters
order_amount
objectrequired2 nested fields

Monetary amount with currency.

value
integerrequired

Amount in the smallest currency unit (e.g., paisa for INR).

Constraints
Minimum value: 100Maximum value: 50000000000
currency
stringrequired

Three-letter ISO 4217 currency code.

Constraints
Default value: INR
pre_auth
boolean

Whether pre-authorization is needed.

allowed_payment_methods
string[]

Payment methods to offer the customer.

Constraints
Allowed item values:
CARDUPINETBANKINGPOINTSWALLETCREDIT_EMIDEBIT_EMIBNPLCARDLESS_EMI
notes
string

Note to show against the order.

Constraints
Maximum length: 100 characters
callback_url
string

URL to redirect customers after successful payment.

failure_callback_url
string

URL to redirect customers after failed payment. If not provided, callback_url is used for both.

purchase_details
object3 nested fields

Purchase details including customer information.

customer
object9 nested fields

Customer information.

email_id
string

Customer's email address.

Constraints
Minimum length: 1 characterMaximum length: 100 characters
Pattern: ^[-!#$%&'*+/0-9=?A-Z^_a-z{|}~](\.?[-!#$%&'*+/0-9=?A-Z^_a-z{|}~])*@([\w-]+\.)+[\w-]+$
first_name
string

Customer's first name.

Constraints
Maximum length: 50 characters
Pattern: ^[\p{L}\p{M}\p{Nd}\s/\-,.'_]*$
last_name
string

Customer's last name.

Constraints
Maximum length: 50 characters
Pattern: ^[\p{L}\p{M}\p{Nd}\s/\-,.'_]*$
customer_id
string

Unique identifier of the customer.

Constraints
Minimum length: 1 characterMaximum length: 100 characters
mobile_number
string

Customer's mobile number. Must be a valid phone number for the given country_code.

Constraints
Minimum length: 10 charactersMaximum length: 20 characters
country_code
string

Country code of the registered mobile number. Defaults to 91.

Constraints
Maximum length: 5 characters
Pattern: ^\+?\d{1,5}$
billing_address
object10 nested fields

Physical address.

address1
string

Address line 1.

Constraints
Maximum length: 100 characters
address2
string

Address line 2.

Constraints
Maximum length: 100 characters
address3
string

Address line 3.

Constraints
Maximum length: 100 characters
pincode
string

Postal/ZIP code.

Constraints
Minimum length: 3 charactersMaximum length: 11 characters
Pattern: ^[a-zA-Z0-9 \-]*$
city
string

City name.

Constraints
Maximum length: 50 characters
Pattern: ^[\p{L}\p{M}\p{Nd}\s\-'&.()]*$
state
string

State or province.

Constraints
Maximum length: 50 characters
Pattern: ^[\p{L}\p{M}\p{Nd}\s\-'&.]*$
country
string

Country name.

Constraints
Maximum length: 50 characters
Pattern: ^[\p{L}\p{M}\p{Nd}\s\-'&.]*$
full_name
string

Full name of the address holder.

Constraints
Maximum length: 100 characters
Pattern: ^[\p{L}\p{M}\p{Nd}\s/\-,.'_]*$
address_type
string

Type of address (e.g., Home, Office).

Constraints
Maximum length: 20 characters
address_category
string

Category of the address.

Allowed values
billingshipping
Constraints
Maximum length: 20 characters
shipping_address
object10 nested fields

Physical address.

address1
string

Address line 1.

Constraints
Maximum length: 100 characters
address2
string

Address line 2.

Constraints
Maximum length: 100 characters
address3
string

Address line 3.

Constraints
Maximum length: 100 characters
pincode
string

Postal/ZIP code.

Constraints
Minimum length: 3 charactersMaximum length: 11 characters
Pattern: ^[a-zA-Z0-9 \-]*$
city
string

City name.

Constraints
Maximum length: 50 characters
Pattern: ^[\p{L}\p{M}\p{Nd}\s\-'&.()]*$
state
string

State or province.

Constraints
Maximum length: 50 characters
Pattern: ^[\p{L}\p{M}\p{Nd}\s\-'&.]*$
country
string

Country name.

Constraints
Maximum length: 50 characters
Pattern: ^[\p{L}\p{M}\p{Nd}\s\-'&.]*$
full_name
string

Full name of the address holder.

Constraints
Maximum length: 100 characters
Pattern: ^[\p{L}\p{M}\p{Nd}\s/\-,.'_]*$
address_type
string

Type of address (e.g., Home, Office).

Constraints
Maximum length: 20 characters
address_category
string

Category of the address.

Allowed values
billingshipping
Constraints
Maximum length: 20 characters
is_edit_customer_details_allowed
boolean

Whether the customer is allowed to edit their details.

merchant_metadata
object

Arbitrary key-value pairs for merchant use. Maximum 10 pairs, 256 characters each.

Constraints
Maximum properties: 10
Additional properties: string · Maximum length: 256 characters
cart_details
object1 nested field

Cart details for the purchase.

cart_items
CartItem[]9 nested fields

Array of cart items.

item_id
string

Unique identifier of the item.

item_name
string

Name of the item.

item_description
string

Description of the item.

item_details_url
string

Item details URL.

item_image_url
string

Image URL of the item (24x24 recommended).

item_original_unit_price
integer

Original price of the item.

item_discounted_unit_price
integer

Discounted price of the item.

item_quantity
integer

Number of items purchased.

item_currency
string

Currency type for the item purchase.

split_info
object2 nested fields

Split settlement information for marketplace flows.

split_type
string

Type of split.

split_details
SplitDetail[]7 nested fields

Array of split details.

split_merchant_id
string

Unique identifier of the partner merchant.

split_settlement_id
string

Unique identifier of the split settlement.

Constraints
Maximum length: 50 characters
merchant_settlement_reference
string

Unique identifier entered while creating an order in split.

Constraints
Maximum length: 50 characters
amount
object2 nested fields

Monetary amount with currency.

value
integerrequired

Amount in the smallest currency unit (e.g., paisa for INR).

Constraints
Minimum value: 100Maximum value: 50000000000
currency
stringrequired

Three-letter ISO 4217 currency code.

Constraints
Default value: INR
on_hold
boolean

Whether the settlement is on hold for future release.

status
string

Split settlement status.

Allowed values
RELEASEDHOLD
updated_at
stringdate-time

ISO 8601 UTC timestamp when the split order was created.

is_mcc_transaction
string

Identifies the order type for MCC transactions. Set to "true" for MCC transactions.

base_amount
object2 nested fields

Monetary amount with currency.

value
integerrequired

Amount in the smallest currency unit (e.g., paisa for INR).

Constraints
Minimum value: 100Maximum value: 50000000000
currency
stringrequired

Three-letter ISO 4217 currency code.

Constraints
Default value: INR
cart_coupon_discount_amount
object2 nested fields

Monetary amount with currency.

value
integerrequired

Amount in the smallest currency unit (e.g., paisa for INR).

Constraints
Minimum value: 100Maximum value: 50000000000
currency
stringrequired

Three-letter ISO 4217 currency code.

Constraints
Default value: INR
cross_border_details
object4 nested fields

Cross-border payment details for Cross Border Import enabled merchants. Required when the merchant is enabled for cross-border transactions.

settlement_currency
string

The currency in which the merchant wants to receive settlement. Defaults to the default settlement currency configured during merchant onboarding.

hs_code
string

Harmonized System (HS) code for the goods/services being traded. Must be a 6-to-10 digit numeric code. Required when commodity_type is GOODS.

Constraints
Pattern: ^\d{6,10}$
hs_description
string

Description of the goods/services corresponding to the HS code. Required when commodity_type is GOODS.

Constraints
Maximum length: 200 characters
iec_code
string

Importer-Exporter Code (IEC) issued by DGFT, India. Must be a 1-to-10 digit numeric code.

Constraints
Pattern: ^\d{1,10}$