Pine LabsDOCS

Generate Cryptogram

POST/api/v1/tokens/{token_id}/token-transactional-data

Generate a cryptogram for a tokenized card transaction. The cryptogram is used for secure network-level token transactions.

Requires Bearer token. Get token →

Path Parameters

NameTypeDescription
token_id
stringrequired

Unique token ID for which to generate the cryptogram.

Request Body

NameTypeDescription
merchant_unique_reference
stringrequired

Unique reference for this cryptogram generation request.

service_provider_token_id
stringrequired

Service provider token identifier.

Status Codes

201Cryptogram generated successfully.
400The request was malformed or missing required fields.
401Authentication failed — missing, expired, or invalid Bearer token.
403The authenticated client does not have permission for this operation.
500An unexpected error occurred on the server.
503Service temporarily unavailable.
Request
curl --request POST \
  --url https://pluraluat.v2.pinepg.in/api/v1/tokens/token-v1-1234567890-aa-ABCDEF/token-transactional-data \
  --header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  --header 'Content-Type: application/json' \
  --data '{
  "merchant_unique_reference": "crypto-ref-001",
  "service_provider_token_id": "sp-token-001"
}'

Run this request

token_id
201 Created
{
  "token_id": "token-v1-1234567890-aa-ABCDEF",
  "merchant_token_reference": "token-ref-001",
  "service_provider_token_id": "sp-token-001",
  "token_data": {
    "cryptogram": "AQBBBBBBBBFIkbMHAAdRAAAAAAA=",
    "token_reference": "4895370012003478",
    "payment_account_reference": "Q1HJZ28RKA1EBL470G9XYG90R5SFN",
    "token_expiry_month": "12",
    "token_expiry_year": "2025"
  }
}