Pine LabsDOCS

API Playground

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

Create Customer

Create a new customer profile in the Pine Labs Online system. The customer profile can be used for tokenization and recurring payment operations.

POSThttps://pluraluat.v2.pinepg.in/api/v1/customer
Required
Request Body (editable JSON)
Request Body Schemarequired
FieldDetails
merchant_customer_reference
string

Unique customer reference assigned by the merchant.

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
country_code
string

Country code of the registered mobile number. Defaults to 91.

Constraints
Maximum length: 5 characters
mobile_number
string

Customer's mobile number.

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

Customer's email address.

Constraints
Maximum length: 50 characters
billing_address
object10 nested fields

Physical address.

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

Postal/ZIP code.

Constraints
Minimum length: 3 charactersMaximum length: 11 characters
Pattern: ^[a-zA-Z0-9 \-]*$
city
string

City name.

Constraints
Maximum length: 50 characters
Pattern: ^[\p{L}\p{M}\p{Nd}\s\-'&.()]*$
state
string

State or province.

Constraints
Maximum length: 50 characters
Pattern: ^[\p{L}\p{M}\p{Nd}\s\-'&.]*$
country
string

Country name.

Constraints
Maximum length: 50 characters
Pattern: ^[\p{L}\p{M}\p{Nd}\s\-'&.]*$
full_name
string

Full name of the address holder.

Constraints
Maximum length: 100 characters
Pattern: ^[\p{L}\p{M}\p{Nd}\s/\-,.'_]*$
address_type
string

Type of address (e.g., Home, Office).

Constraints
Maximum length: 20 characters
address_category
string

Category of the address.

Allowed values
billingshipping
Constraints
Maximum length: 20 characters
shipping_address
object10 nested fields

Physical address.

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

Postal/ZIP code.

Constraints
Minimum length: 3 charactersMaximum length: 11 characters
Pattern: ^[a-zA-Z0-9 \-]*$
city
string

City name.

Constraints
Maximum length: 50 characters
Pattern: ^[\p{L}\p{M}\p{Nd}\s\-'&.()]*$
state
string

State or province.

Constraints
Maximum length: 50 characters
Pattern: ^[\p{L}\p{M}\p{Nd}\s\-'&.]*$
country
string

Country name.

Constraints
Maximum length: 50 characters
Pattern: ^[\p{L}\p{M}\p{Nd}\s\-'&.]*$
full_name
string

Full name of the address holder.

Constraints
Maximum length: 100 characters
Pattern: ^[\p{L}\p{M}\p{Nd}\s/\-,.'_]*$
address_type
string

Type of address (e.g., Home, Office).

Constraints
Maximum length: 20 characters
address_category
string

Category of the address.

Allowed values
billingshipping
Constraints
Maximum length: 20 characters
gstin
string

Customer's unique GSTIN (Goods and Services Tax Identification Number).

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