Pine LabsDOCS

API Playground

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

Get Payment Option API

Verifies a customer's UPI VPA details or checks reward points balance. Supports fetching UPI VPA details based on the payer's phone number, as well as checking reward points balance and card eligibility.

POSThttps://pluraluat.v2.pinepg.in/payment-option
Required
Request Body (editable JSON)
Request Body Schemarequired
FieldDetails
payment_method
string

Type of payment method to check eligibility for.

Allowed values
UPIPOINTS
payment_option
objectrequired2 nested fields

An object that contains the payment option details. Use `upi_details` for UPI or `points_card_details` for points. One is mandatory to process the request.

upi_details
object1 nested field

UPI-specific payment option details.

payer
objectrequired2 nested fields

Payer details for fetching VPA.

fetch_vpa
booleanrequired

Indicates whether VPA should be fetched for the payer.

phone_number
stringrequired

Payer phone number.

points_card_details
object3 nested fields

**Mandatory when payment_method is `POINTS`**. An object that contains the point card details.

card_last4
string

Last four digits of the card.

Constraints
Minimum length: 4 charactersMaximum length: 4 characters
card_number
string

Card number to check points balance.

Constraints
Minimum length: 12 charactersMaximum length: 23 characters
registered_mobile_number
string

Registered mobile number on the card.

Constraints
Minimum length: 9 charactersMaximum length: 20 characters
order_details
object1 nested field

Order details for the points balance check. Required when using points_card_details.

order_amount
objectrequired2 nested fields

Order amount for the points balance check.

value
integer

Order amount in smallest currency unit (e.g., paisa).

currency
string

Currency code.