Pine LabsDOCS

API Playground

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

Generate Card Token

Generate a network token for a card linked to a customer. This tokenizes the card details and returns a token that can be used for subsequent transactions.

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

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

Constraints
Maximum length: 50 characters
merchant_token_reference
stringrequired

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

Constraints
Maximum length: 50 characters
payment_method
stringrequired

Payment method for which the token is being generated. Currently only CARD is supported.

Allowed values
CARD
payment_option
object1 nested field

An object that contains the payment option details.

encrypted_card_details
string

Encrypted card details.

Constraints
Minimum length: 1 characterMaximum length: 50 characters
payment
object1 nested field

An object that contains the payment details.

acquirer_data
object4 nested fields

An object that contains the acquirer details.

approval_code
string

Authorization code returned from acquirer against the payment.

acquirer_reference
string

Unique reference returned from acquirer for the payment.

rrn
string

Retrieval reference number returned from acquirer for the payment.

auth_reference
string

**Mandatory** for rupay transaction. A unique identifier linking the authorization request to the transaction.

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