Pine LabsDOCS

API Playground

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

Create a Payment Link

Create a payment link for collecting payments. Ensure that your Merchant ID is configured for Pay by Link, split payments, and pre-authorization before creating a payment link.

POSThttps://pluraluat.v2.pinepg.in/api/pay/v1/paymentlink
Required
Request Body (editable JSON)
Request Body Schemarequired
FieldDetails
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
description
string

Description corresponding to the payment.

expire_by
stringdate-time

The desired expiration timestamp for the payment link (ISO 8601 UTC). Must be set within a maximum of 180 days from the current date.

allowed_payment_methods
string[]

The type of payment methods you want to offer your customers.

Constraints
Allowed item values:
CARDUPIPOINTSNETBANKINGWALLETCREDIT_EMIDEBIT_EMIBNPL
pre_auth
string

The pre-authorization type. Possible values: "false" (default), "true".

is_mcc_transaction
string

Identifies the Payment Link type. "true": The payment link is processed for a MCC transaction. "false" (default): The payment link is processed for a regular transaction.

failure_callback_url
string

URL specifically used to redirect customers to a failure page. If not provided, customers will be redirected to the callback_url for both successful and failed transactions.

merchant_payment_link_reference
stringrequired

**Idempotency Key.** Unique identifier for the payment link request. Duplicate requests with the same `merchant_payment_link_reference` will return the existing payment link instead of creating a new one.

Constraints
Minimum length: 1 characterMaximum length: 50 characters
customer
object10 nested fields

Customer information for payment link.

email_id
string

Customer's email address.

Constraints
Minimum length: 1 characterMaximum length: 50 characters
first_name
string

Customer's first name.

Constraints
Minimum length: 1 characterMaximum length: 50 characters
last_name
string

Customer's last name.

Constraints
Minimum length: 1 characterMaximum length: 50 characters
customer_id
string

Unique identifier of the customer in the Pine Labs Online database.

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

Customer's mobile number.

Constraints
Minimum length: 10 charactersMaximum length: 20 characters
Pattern: ^[0-9]+$
country_code
string

Country code of the mobile number.

billing_address
object7 nested fields

Address details for payment link.

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

Pincode of the address.

Constraints
Minimum length: 6 charactersMaximum length: 10 characters
Pattern: ^[0-9]+$
city
string

City of the address.

Constraints
Maximum length: 50 characters
state
string

State of the address.

Constraints
Maximum length: 50 characters
country
string

Country of the address.

Constraints
Maximum length: 50 characters
shipping_address
object7 nested fields

Address details for payment link.

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

Pincode of the address.

Constraints
Minimum length: 6 charactersMaximum length: 10 characters
Pattern: ^[0-9]+$
city
string

City of the address.

Constraints
Maximum length: 50 characters
state
string

State of the address.

Constraints
Maximum length: 50 characters
country
string

Country of the address.

Constraints
Maximum length: 50 characters
merchant_customer_reference
string

Unique identifier of the customer for the request.

Constraints
Minimum length: 1 characterMaximum length: 50 characters
gstin
string

Customer's GSTIN.

product_details
PaymentLinkProductDetail[]3 nested fields

An array of objects that contains the list of products associated with the payment.

product_code
string

Unique product identifier.

product_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
product_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
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
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
split_info
object2 nested fields

Split settlement information.

split_type
string

Type of split.

split_details
PaymentLinkSplitDetail[]7 nested fields

An array of objects that contains the split details.

split_merchant_id
string

Unique identifier of your partner merchant in the Pine Labs Online database.

merchant_settlement_reference
string

Unique identifier entered while creating an order in split.

Constraints
Maximum length: 50 characters
split_settlement_id
string

Unique identifier of the split settlement in the Pine Labs Online database.

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

Indicate whether the settlement is on hold for future release. true: The settlement is placed on hold. false: The settlement is processed immediately.

status
string

Split Settlement status.

Allowed values
RELEASEDHOLD
updated_at
stringdate-time

ISO 8601 UTC Timestamp when the split order was created.

account_details
object1 nested field

Customer's bank account details.

bank_details
object3 nested fields

Bank details for the customer.

account_number
string

Customer's bank account number.

ifsc_code
string

Customer's bank IFSC code.

bank_name
string

Customer's account holding bank name.

callback_url
string

URL to which your customers are redirected based on the order or product details, leading them to either a success or failure page.

part_payment
boolean

Indicates whether the order is for part payments or full. true: The order created is for a part payment. false: The order is created for a full payment.

cart_details
object1 nested field

Cart details. If provided, cart information will be displayed during checkout.

items
PaymentLinkCartItem[]2 nested fields

Array of cart items.

product_code
string

Unique product identifier.

product_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