Gift Card Quote

Validate the selected brand, denomination values, quantities and customer details, then calculate the exact Pay2New wallet price for your account. No voucher purchase or Pay2New wallet debit is created by this endpoint. A quote does not reserve funds or guarantee later availability.

Request body

FieldTypeRequiredDescription
request_idstringYes8–30 characters: letters, digits, _ or -. Unique in your account across environments and transaction services. Preserve it throughout retries.
product_codeintegerYesCurrent Pay2New product code returned by List Gift Card Brands.
denomination_detailsarrayYes1–100 denomination/quantity entries. All current brand limits still apply.
denomination_details[].denominationnumberYesPositive amount in INR, with at most 2 decimal places. Select an allowed fixed value or stay within the flexible voucher range.
denomination_details[].quantityintegerYesPositive integer, at most 1000 per submitted entry, and within the brand's quantity limits. Duplicate denominations are merged before validation.
customer_detailsobjectYesCustomer details for the order.
customer_details.namestringYes2–50 Unicode letters/spaces. Numbers and punctuation are not accepted.
customer_details.phonestringYesIndian mobile: exactly 10 digits beginning with 6–9; omit country code and spaces.
customer_details.emailstringNoValid email of at most 100 characters. Omit or send empty to use the system default.
amountnumberNoIf supplied, it must equal the sum of denomination × quantity.

For FIXED brands, select from meta.amountRestrictions.denominations. For FLEXIBLE brands, stay between minVoucherAmount and maxVoucherAmount. In both cases, follow minOrderAmount, maxOrderAmount, maxVouchersPerOrder, maxVouchersPerDenomination and maxDenominationsPerOrder when present. The catalogue can change; refresh brand details before forming an order.

The example uses a catalogue product code observed when this documentation was prepared. Replace it with the current code and current limits returned to your account. Examples and monetary values are illustrative, not fixed commercial terms.

Response fields

Field in dataDescription
amountTotal voucher face value in INR.
commissionYour calculated commission amount, not a percentage.
surchargeApplicable surcharge amount.
tdsApplicable TDS amount.
gstApplicable GST amount.
wallet_debitFinal calculated debit; preserve the returned precision.
environmentActive environment. The documented base URL is live.

Show these amounts for customer/partner review. Send data.wallet_debit as expected_wallet_debit to Purchase Gift Card to guard against a changed wallet price. A new quote should be reviewed after any brand, denomination, quantity, package or pricing change.

Response examples

Illustrative values only. Always inspect the numeric JSON status and matching order references.

Quote

{
  "status": 1,
  "data": {
    "amount": 1000,
    "wallet_debit": 985.3,
    "commission": 15,
    "surcharge": 0,
    "tds": 0.3,
    "gst": 0,
    "environment": "production"
  }
}

Invalid denomination

{
  "status": 2,
  "message": "Select an allowed fixed denomination."
}

Headers

HeaderRequiredDescription
secretYesYour Pay2New-issued partner API secret.
Content-TypeFor JSON POST requestsapplication/json
AcceptRecommendedapplication/json

Your account, KYC, wallet, API access and Gift Card service must be active. Send requests from your registered backend IP. No outletId, browser session, or separate subscription credential is required by these endpoints.

cURL request

curl --request POST \
  --url 'https://pay2new.in/apis/v1/giftcards/quote' \
  --header 'secret: YOUR_PAY2NEW_SECRET' \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --data '{
  "request_id": "GC_PARTNER_20261016_0001",
  "product_code": 1004489,
  "denomination_details": [
    {
      "denomination": 1000,
      "quantity": 1
    }
  ],
  "customer_details": {
    "name": "Sample Customer",
    "phone": "9000000001",
    "email": "[email protected]"
  }
}'
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required
length between 8 and 30
^[A-Za-z0-9_-]{8,30}$

Stable unique request reference.

integer
required
≥ 1
denomination_details
array of objects
required
length between 1 and 100
denomination_details*
number
required
≥ 0.01

INR voucher face value, at most two decimal places.

integer
required
1 to 1000

Subject to stricter brand limits.

customer_details
object
required
number
≥ 0.01

Optional exact denomination total.

Response

Language
Credentials
Header
LoadingLoading…
Response
Choose an example:
application/json