API Playground
Test Pine Labs API endpoints with real requests. All endpoints are loaded dynamically from the OpenAPI specification.
Authentication
Orders
Refunds
Settlements
Split Settlements
Checkout
Payment Links
Card Payments
UPI Payments
NetBanking
Wallet
Pay by Points
E-Challans
Apple Pay
International Payments
Customers
Tokenization
Payouts
Affordability Suite
BNPL
Convenience Fee
Payment Option
Brand Wallet
Brand Wallet Payments
Subscriptions - Plans
Subscriptions - Subscriptions
Subscriptions - Presentations
UPI Reserve Pay
108 endpoints from openapi.yaml
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.
https://pluraluat.v2.pinepg.in/api/pay/v1/ordersmerchant_order_referencestringrequired**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.
order_amountobjectrequired2 nested fieldsMonetary amount with currency.
valueintegerrequiredAmount in the smallest currency unit (e.g., paisa for INR).
currencystringrequiredThree-letter ISO 4217 currency code.
pre_authbooleanWhether pre-authorization is needed.
allowed_payment_methodsstring[]Payment methods to offer the customer.
CARDUPINETBANKINGPOINTSWALLETCREDIT_EMIDEBIT_EMIBNPLCARDLESS_EMInotesstringNote to show against the order.
callback_urlstringURL to redirect customers after successful payment.
failure_callback_urlstringURL to redirect customers after failed payment. If not provided, callback_url is used for both.
purchase_detailsobject3 nested fieldsPurchase details including customer information.
customerobject9 nested fieldsCustomer information.
email_idstringCustomer's email address.
^[-!#$%&'*+/0-9=?A-Z^_a-z{|}~](\.?[-!#$%&'*+/0-9=?A-Z^_a-z{|}~])*@([\w-]+\.)+[\w-]+$first_namestringCustomer's first name.
^[\p{L}\p{M}\p{Nd}\s/\-,.'_]*$last_namestringCustomer's last name.
^[\p{L}\p{M}\p{Nd}\s/\-,.'_]*$customer_idstringUnique identifier of the customer.
mobile_numberstringCustomer's mobile number. Must be a valid phone number for the given country_code.
country_codestringCountry code of the registered mobile number. Defaults to 91.
^\+?\d{1,5}$billing_addressobject10 nested fieldsPhysical address.
address1stringAddress line 1.
address2stringAddress line 2.
address3stringAddress line 3.
pincodestringPostal/ZIP code.
^[a-zA-Z0-9 \-]*$citystringCity name.
^[\p{L}\p{M}\p{Nd}\s\-'&.()]*$statestringState or province.
^[\p{L}\p{M}\p{Nd}\s\-'&.]*$countrystringCountry name.
^[\p{L}\p{M}\p{Nd}\s\-'&.]*$full_namestringFull name of the address holder.
^[\p{L}\p{M}\p{Nd}\s/\-,.'_]*$address_typestringType of address (e.g., Home, Office).
address_categorystringCategory of the address.
billingshippingshipping_addressobject10 nested fieldsPhysical address.
address1stringAddress line 1.
address2stringAddress line 2.
address3stringAddress line 3.
pincodestringPostal/ZIP code.
^[a-zA-Z0-9 \-]*$citystringCity name.
^[\p{L}\p{M}\p{Nd}\s\-'&.()]*$statestringState or province.
^[\p{L}\p{M}\p{Nd}\s\-'&.]*$countrystringCountry name.
^[\p{L}\p{M}\p{Nd}\s\-'&.]*$full_namestringFull name of the address holder.
^[\p{L}\p{M}\p{Nd}\s/\-,.'_]*$address_typestringType of address (e.g., Home, Office).
address_categorystringCategory of the address.
billingshippingis_edit_customer_details_allowedbooleanWhether the customer is allowed to edit their details.
merchant_metadataobjectArbitrary key-value pairs for merchant use. Maximum 10 pairs, 256 characters each.
cart_detailsobject1 nested fieldCart details for the purchase.
cart_itemsCartItem[]9 nested fieldsArray of cart items.
item_idstringUnique identifier of the item.
item_namestringName of the item.
item_descriptionstringDescription of the item.
item_details_urlstringItem details URL.
item_image_urlstringImage URL of the item (24x24 recommended).
item_original_unit_priceintegerOriginal price of the item.
item_discounted_unit_priceintegerDiscounted price of the item.
item_quantityintegerNumber of items purchased.
item_currencystringCurrency type for the item purchase.
split_infoobject2 nested fieldsSplit settlement information for marketplace flows.
split_typestringType of split.
split_detailsSplitDetail[]7 nested fieldsArray of split details.
split_merchant_idstringUnique identifier of the partner merchant.
split_settlement_idstringUnique identifier of the split settlement.
merchant_settlement_referencestringUnique identifier entered while creating an order in split.
amountobject2 nested fieldsMonetary amount with currency.
valueintegerrequiredAmount in the smallest currency unit (e.g., paisa for INR).
currencystringrequiredThree-letter ISO 4217 currency code.
on_holdbooleanWhether the settlement is on hold for future release.
statusstringSplit settlement status.
RELEASEDHOLDupdated_atstringdate-timeISO 8601 UTC timestamp when the split order was created.
is_mcc_transactionstringIdentifies the order type for MCC transactions. Set to "true" for MCC transactions.
base_amountobject2 nested fieldsMonetary amount with currency.
valueintegerrequiredAmount in the smallest currency unit (e.g., paisa for INR).
currencystringrequiredThree-letter ISO 4217 currency code.
cart_coupon_discount_amountobject2 nested fieldsMonetary amount with currency.
valueintegerrequiredAmount in the smallest currency unit (e.g., paisa for INR).
currencystringrequiredThree-letter ISO 4217 currency code.
cross_border_detailsobject4 nested fieldsCross-border payment details for Cross Border Import enabled merchants. Required when the merchant is enabled for cross-border transactions.
settlement_currencystringThe currency in which the merchant wants to receive settlement. Defaults to the default settlement currency configured during merchant onboarding.
hs_codestringHarmonized System (HS) code for the goods/services being traded. Must be a 6-to-10 digit numeric code. Required when commodity_type is GOODS.
^\d{6,10}$hs_descriptionstringDescription of the goods/services corresponding to the HS code. Required when commodity_type is GOODS.
iec_codestringImporter-Exporter Code (IEC) issued by DGFT, India. Must be a 1-to-10 digit numeric code.
^\d{1,10}$