Pine LabsDOCS

API Playground

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

Create Offer Discovery V2 API

Use this API to discover offers available on cart amount or product and calculate the EMI. V2 returns an entity-based response structure with support for multiple entity types including UPI.

POSThttps://pluraluat.v2.pinepg.in/api/affordability/v2/offer/discovery
Required
Request Body (editable JSON)
Request Body Schemarequired
FieldDetails
order_amount
objectrequired2 nested fields

An object that contains the transaction amount details.

value
integerrequired

The transaction amount in Paisa. Minimum value: 100 (₹1). Maximum value: 100000000 (₹10 lakh).

currency
stringrequired

Type of currency.

product_details
object[]3 nested fields

Mandatory for Brand EMI. An object that contains product details.

product_code
stringrequired

Unique identifier for the product.

product_amount
object2 nested fields

Mandatory Object. An object that contains product amount.

value
integerrequired

The transaction amount in Paisa.

currency
stringrequired

Type of currency.

product_coupon_discount_amount
object2 nested fields

An object that contains the product coupon discount amount details.

value
integerrequired

The transaction amount in Paisa.

currency
stringrequired

Type of currency.

cart_coupon_discount_amount
object2 nested fields

An object that contains the cart coupon discount amount details.

value
integerrequired

The transaction amount in Paisa.

currency
stringrequired

Type of currency.

issuer
object4 nested fields

An object that contains the issuer details.

bin
string

Bank Identification Number, First 8 digits of your Card. Has to be 8 digits. Note: Passing the card information will filter the results based on the specific BIN.

id
string

Mandatory for EMI with Downpayment. Unique Identifier of the issuer.

name
string

Mandatory for EMI with Downpayment. Name of the issuer.

issuer_type
string

Mandatory for EMI with Downpayment. The category of the issuer.

Allowed values
CC_BANKDC_BANKCARDLESS_BANKCC_NBFCDC_NBFCCARDLESS_NBFCNTBNTB_BANKNTB_NBFC
downpayment_details
object1 nested field

Mandatory for EMI with Downpayment. An object that contains the downpayment amount details.

downpayment_amount
object2 nested fields

An object that contains the downpayment amount details.

value
integerrequired

The transaction amount in Paisa.

currency
stringrequired

Type of currency.

payment_options
object2 nested fields

An object that contains the details of the payment options. You can use either `card_details` or `card_token_details` as a payment option.

card_details
object1 nested field

An object that contains the card details.

card_number
string

Card Number. Maximum length: 19 characters. Minimum length: 12 characters.

card_token_details
object2 nested fields

An object that contains the card token details.

token
string

Either `token` or `token_id` is Mandatory. Unique identifier of the card as per the token transaction type. Minimum: 1 character. Maximum: 50 characters.

token_id
string

Either `token` or `token_id` is Mandatory. Unique identifier of the token in the Pine Labs database. Maximum length: 50 characters. Note: When `token_id` is included, the `customer_details` object is required.

customer_details
object1 nested field

An object that contains the customer details.

customer_id
string

Mandatory when `token_id` is included in the `card_token_details` object. Unique identifier of the customer in the Pine Labs Online database. Minimum length: 1 character. Maximum length: 19 characters.