POST
/
utilities
/
pars
curl --request POST \
  --url https://sandbox.cashfree.com/pg/utilities/pars \
  --header 'Content-Type: application/json' \
  --header 'x-api-version: <x-api-version>' \
  --header 'x-client-id: <api-key>' \
  --header 'x-client-secret: <api-key>' \
  --data '{
  "card_number": "xxxx...xxx",
  "card_cvv": "xxx",
  "card_expiry_mm": "xx",
  "card_expiry_yy": "xx",
  "card_type": "PLAIN_CARD"
}'
{
  "par": "V0010014623022637739353641436"
}

Authorizations

x-client-id
string
header
required

Client app ID. You can find your app id in the merchant dashboard.

x-client-secret
string
header
required

Client secret key. You can find your secret in the merchant dashboard.

Headers

x-api-version
string
default:2025-01-01
required

API version to be used. Format is in YYYY-MM-DD

x-request-id
string

Request ID for the API call. It can be used to resolve technical issues. Include this in your tech-related queries to Cashfree.

x-idempotency-key
string

An idempotency key is a unique identifier in your API call. If the request fails or times out, you can retry it with the same key to prevent duplicate actions.

Body

application/json
Request payload for creating PAR.
card_number
string
required

The card number, containing 15 to 19 numeric digits without spaces or special characters.

Example:

"xxxx...xxx"

card_cvv
string
required

The Card Verification Value (CVV), a 3-digit code for most cards (Visa, Mastercard) and a 4-digit code for American Express, used for transaction authentication.

Example:

"xxx"

card_expiry_mm
string
required

The two-digit expiry month (01-12), indicating when the card will expire.

Example:

"xx"

card_expiry_yy
string
required

The two-digit expiry year, representing the last two digits of the card’s expiration year.

Example:

"xx"

card_type
enum<string>
required

Specifies the type of card, with the only accepted value being PLAIN_CARD.

Available options:
PLAIN_CARD
Example:

"PLAIN_CARD"

Response

200
application/json
OK
par
string
Example:

"V0010014623022637739353641436"