Retrieve Payment Quote
Changed onRetrieves a payment quote. Use it to check which payment holds the quote, through payment_id, and when it expires.
Request
- Base URLhttps://api.whop.com/api/v1
- AuthHTTP bearer
Path parameters
The payment quote ID, prefixed pq_.
Headers
Pins the request to a dated API version.
Response
payment quote retrieved
The account the purchase is priced for, prefixed biz_.
Three-letter ISO 4217 code of the variants' own currency, lowercase. Equal to currency when nothing was converted.
total in base_currency at exchange_rate: the variants' own prices after the promo code, plus tax_amount converted at exchange_rate when tax is added on top. Equal to total when nothing was converted. The payment charges total, in currency.
When the quote was priced, as an ISO 8601 timestamp.
Three-letter ISO 4217 currency code the purchase is priced and charged in, lowercase: the variants' own currency, or the presentment_currency it was converted into.
What the promo code takes off. Zero without a code.
How many units of currency one unit of base_currency buys, as a decimal string such as "5.4321": the rate the variants' prices were converted at, fixed until expires_at, and the rate a payment consuming the quote is charged at. A string, like money amounts, so no float rounds it in transit. Null when nothing was converted.
When the quote stops being chargeable, as an ISO 8601 timestamp. Quote again after it.
Payment quote ID, prefixed pq_.
Which location tax was calculated for: shipping_address when it carries a country, else the billing address when it does, else the presentment_country sent, else the buyer's ip_address. A quote located by presentment_country or ip_address is a preview that estimates tax: a payment cannot use it, so quote again with the buyer's address to pay. Null when nothing in the request located the buyer, which only a seller that collects no tax on this purchase is quoted without; tax_status is then not_applicable.
The payment holding this quote, prefixed pay_, or null while it is unspent. A declined payment keeps its quote and can be retried; check that payment's status.
The promo code the quote applied, prefixed promo_, or null.
The price of every line before the promo code, tax and fees.
The tax a payment consuming this quote charges. Zero unless tax_status is calculated.
Whether tax is added on top of the price (exclusive) or already inside it (inclusive). Null when no tax was calculated.
calculated: every line was priced and a payment may consume the quote. not_applicable: this seller collects no tax on this purchase, so the quote owes none and may still be consumed. unavailable: tax could not be priced — the provider did not answer, or this seller's tax setup cannot price a purchase here — so a payment refuses the quote; quote again, or charge without quote_id to have tax calculated at charge time.
What the buyer pays: the subtotal less the discount, plus tax_amount when tax is added on top.
Example response
{
"account_id": "biz_xxxxxxxxxxxxxx",
"address": {
"city": "Austin",
"country": "US",
"line1": "1114 Bouldin Ave",
"line2": "Unit B",
"name": "Dana Whitfield",
"postal_code": "78704",
"state": "TX"
},
"base_currency": "usd",
"base_total": {
"amount": "-1234.56",
"currency": "usd",
"decimals": 2,
"display_decimals": 2
},
"created_at": "2026-01-01T12:00:00.000Z",
"currency": "usd",
"discount": {
"amount": "-1234.56",
"currency": "usd",
"decimals": 2,
"display_decimals": 2
},
"exchange_rate": "0.918",
"expires_at": "2026-01-01T12:00:00.000Z",
"id": "pq_xxxxxxxxxxxxxx",
"line_items": [
{
"discount": {
"amount": "-1234.56",
"currency": "usd",
"decimals": 2,
"display_decimals": 2
},
"quantity": 1,
"subtotal": {
"amount": "-1234.56",
"currency": "usd",
"decimals": 2,
"display_decimals": 2
},
"tax_amount": {
"amount": "-1234.56",
"currency": "usd",
"decimals": 2,
"display_decimals": 2
},
"total": {
"amount": "-1234.56",
"currency": "usd",
"decimals": 2,
"display_decimals": 2
},
"variant_id": "plan_xxxxxxxxxxxxxx"
}
],
"located_by": "address",
"payment_id": "pay_xxxxxxxxxxxxxx",
"recommended_currencies": [
"usd"
],
"shipping_address": {
"city": "Austin",
"country": "US",
"line1": "1114 Bouldin Ave",
"line2": "Unit B",
"name": "Dana Whitfield",
"postal_code": "78704",
"state": "TX"
},
"subtotal": {
"amount": "-1234.56",
"currency": "usd",
"decimals": 2,
"display_decimals": 2
},
"tax_amount": {
"amount": "-1234.56",
"currency": "usd",
"decimals": 2,
"display_decimals": 2
},
"tax_behavior": "exclusive",
"tax_ids": [
{
"type": "us_ein",
"value": "12-3456789"
}
],
"tax_status": "calculated",
"total": {
"amount": "-1234.56",
"currency": "usd",
"decimals": 2,
"display_decimals": 2
}
}Changes
- breaking
removed the required property
line_items/items/plan_idfrom the response with the status - info
added the required property
line_items/items/variant_idto the response with the status
- breaking
- warning
added the new
presentment_countryenum value to thelocated_byresponse property for the response status
- warning