---
title: "Create Payment Quote"
method: POST
path: "/payment_quotes"
tags: ["Payment Quotes"]
---

# Create Payment Quote

`POST /payment_quotes`

## Request

- Base URL: `https://api.whop.com/api/v1`
- URL: `https://api.whop.com/api/v1/payment_quotes`
- Auth: HTTP bearer

Prices a purchase the way a payment for it will be charged. The body is the `PaymentInput` a payment takes plus where the buyer is, which a seller that collects no tax on the purchase can leave out. The purchase is priced from exactly what you send: no buyer is looked up, so no stored registration or purchase history applies. Pass the quote's `id` as `quote_id` when you create the payment to charge exactly the purchase, promo code, and tax shown here. A quote is priced once and may be consumed by one payment before `expires_at`. Cart entries must name existing variants with `variant_id`.

## Headers

- `Api-Version-Date` string
- `Idempotency-Key` string

## Request body

- intersection
  - [`PaymentInput`](https://skmtc.dev/whop/apis/whop-api/revisions/b10d1ab093e8/schema?at=%2Fcomponents%2Fschemas%2FPaymentInput)
  - object
    - `address` object, nullable: The buyer's billing address. Where tax is calculated when no shipping address is given, and the address a tax registration belongs to. A seller that collects tax on this purchase needs the buyer located by a `country` here, on `shipping_address`, a `presentment_country`, or an `ip_address`; without one the quote is refused with `quote_location_required`. Only the keys you supply are kept. The payment that consumes the quote must put the buyer in the same place, by country, state and postal code, through its own `shipping_address` or its confirmation token's billing address, or it is refused with `quote_mismatch`.
      - `city` string, nullable: City name.
      - `country` string, nullable: ISO 3166-1 alpha-2 country code, such as `US`.
      - `line1` string, nullable: First line of the street address.
      - `line2` string, nullable: Second line of the street address.
      - `name` string, nullable: The full name on the address.
      - `postal_code` string, nullable: Postal or ZIP code.
      - `state` string, nullable: State, province, or region code, such as `CA`.
    - `ip_address` string, nullable: The buyer's IP address, when your server makes the call on their behalf. Locates the buyer when neither address carries a country and no `presentment_country` is sent. A quote located this way (`located_by` is `ip_address`) is a preview: a payment refuses it with `quote_preview_only`, so quote again with the buyer's address before paying. Also where `presentment_currency` `auto` and `recommended_currencies` find the buyer's local currency, and where a payment method must be able to collect it.
    - `line_items` object[]: What the buyer is purchasing. Each entry names an existing variant by `variant_id`. Several entries form a cart, which requires every variant to be compatible, belong to this account, and use the same currency.
      - `quantity` integer, nullable: How many units of the variant to purchase. Defaults to 1; more than 1 requires the variant to allow multiple quantities.
      - `variant_id` string, required: An existing variant to charge for, prefixed `plan_`. Each variant may appear once — use `quantity` for multiple units.
    - `presentment_country` string, nullable: The country to price the purchase for, as an ISO 3166-1 alpha-2 code such as `JP`, when the buyer chose one: a store's country picker. Prices in the currency `auto` would pick for a buyer in that country, so send it instead of `presentment_currency`, never with it. Whether a payment method can collect that currency is still judged where the buyer is: by `ip_address`, and by this country only without one. With no address that carries a country, tax is estimated for this country (`located_by` is `presentment_country`) at the country level, and a quote located this way is a preview a payment refuses with `quote_preview_only`. Send it only once the buyer has chosen a country: without it, an `ip_address` estimates more precisely, such as for a US state. For a country Whop has no currency for, the quote is priced as `auto` for the buyer's `ip_address`, and tax is still estimated for the country.
    - `presentment_currency` string, nullable: The currency to price and charge the purchase in. Omit it, or send null, to price in the variants' own currency. `auto` prices in the currency of the country Whop places the buyer's `ip_address` in when the purchase can be converted into it and a payment method can collect it, and in the variants' own currency otherwise, including when no `ip_address` is sent or Whop cannot place it in a country. To choose that country instead, send `presentment_country` in place of this. A three-letter ISO 4217 code, such as `eur`, prices in that currency or is refused: with `presentment_currency_unsupported` when the purchase cannot be converted into it (adaptive pricing is off for the variant, the variant is not a one-time purchase, or `plan` describes a variant that does not exist yet), and with `presentment_currency_not_payable` when no payment method can collect it. A converted quote states every amount in this currency at an `exchange_rate` fixed until `expires_at`, and the payment that consumes it is charged in this currency at that rate.
    - `shipping_address` object, nullable: Where physical goods ship. When present it is where tax is calculated; omit it for digital goods. Only the keys you supply are kept. The payment that consumes the quote must ship to the same place, by country, state and postal code, or it is refused with `quote_mismatch`.
      - `city` string, nullable: City name.
      - `country` string, nullable: ISO 3166-1 alpha-2 country code, such as `US`.
      - `line1` string, nullable: First line of the street address.
      - `line2` string, nullable: Second line of the street address.
      - `name` string, nullable: The full name on the address.
      - `postal_code` string, nullable: Postal or ZIP code.
      - `state` string, nullable: State, province, or region code, such as `CA`.
    - `tax_ids` object[], nullable: The buyer's tax registration, for a business purchase. One entry. Prices the purchase as business-to-business where that applies (EU reverse charge, for one) and requires an `address` to belong to.
      - `type` 'ad_nrt' | 'ao_tin' | 'ar_cuit' | 'al_tin' | 'am_tin' | 'aw_tin' | 'au_abn' | 'au_arn' | 'eu_vat' | 'az_tin' | 'bs_tin' | 'bh_vat' | 'bd_bin' | 'bb_tin' | 'by_tin' | 'bj_ifu' | 'bo_tin' | 'ba_tin' | 'br_cnpj' | 'br_cpf' | 'bg_uic' | 'bf_ifu' | 'kh_tin' | 'cm_niu' | 'ca_bn' | 'ca_gst_hst' | 'ca_pst_bc' | 'ca_pst_mb' | 'ca_pst_sk' | 'ca_qst' | 'cv_nif' | 'cl_tin' | 'cn_tin' | 'co_nit' | 'cd_nif' | 'cr_tin' | 'hr_oib' | 'do_rcn' | 'ec_ruc' | 'eg_tin' | 'sv_nit' | 'et_tin' | 'eu_oss_vat' | 'ge_vat' | 'gh_tin' | 'de_stn' | 'gb_vat' | 'gn_nif' | 'hk_br' | 'hu_tin' | 'is_vat' | 'in_gst' | 'id_npwp' | 'il_vat' | 'jp_cn' | 'jp_rn' | 'jp_trn' | 'kz_bin' | 'ke_pin' | 'kg_tin' | 'la_tin' | 'li_uid' | 'li_vat' | 'my_frp' | 'my_itn' | 'my_sst' | 'mr_nif' | 'mx_rfc' | 'md_vat' | 'me_pib' | 'ma_vat' | 'np_pan' | 'nz_gst' | 'ng_tin' | 'mk_vat' | 'no_vat' | 'no_voec' | 'om_vat' | 'pe_ruc' | 'ph_tin' | 'pl_nip' | 'ro_tin' | 'ru_inn' | 'ru_kpp' | 'sa_vat' | 'sn_ninea' | 'rs_pib' | 'sg_gst' | 'sg_uen' | 'si_tin' | 'za_vat' | 'kr_brn' | 'es_cif' | 'ch_uid' | 'ch_vat' | 'tw_vat' | 'tj_tin' | 'tz_vat' | 'th_vat' | 'tr_tin' | 'ug_tin' | 'ua_vat' | 'ae_trn' | 'us_ein' | 'uy_ruc' | 'uz_tin' | 'uz_vat' | 've_rif' | 'vn_tin' | 'zm_tin' | 'zw_tin' | 'sr_fin' | 'xi_vat', required: The registration type. See the [tax IDs guide](/developer/guides/tax-ids) for an example of each type.
      - `value` string, required: The registration number as issued. An `eu_vat` number must start with its two-letter country code (Greece uses `EL`). See the [tax IDs guide](/developer/guides/tax-ids).

## Response `201`

payment quote priced

- PaymentQuote
  - `account_id` string, required: The account the purchase is priced for, prefixed `biz_`.
  - `address` PaymentAddress, nullable, required
    - `city` string, nullable, required: The city.
    - `country` string, nullable, required: The ISO 3166-1 alpha-2 country code.
    - `line1` string, nullable, required: The first street address line.
    - `line2` string, nullable, required: The second street address line.
    - `name` string, nullable, required: The name on the address.
    - `postal_code` string, nullable, required: The postal or ZIP code.
    - `state` string, nullable, required: The state, province or region.
  - `base_currency` string, required: Three-letter ISO 4217 code of the variants' own currency, lowercase. Equal to `currency` when nothing was converted.
  - `base_total` Money, required: `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`.
    - `amount` string, required: The amount in major units, as an exact decimal string. For example, `"10.00"` is ten dollars. It is a string so that no float rounds it in transit.
    - `currency` string, required: Three-letter ISO 4217 currency code, lowercase.
    - `decimals` integer, required: How many decimal places the amount carries. This is the precision the charge itself runs at.
    - `display_decimals` integer, required: How many decimal places to SHOW. Usually equal to `decimals`, and deliberately not always: COP is charged in centavos but written in whole pesos, so it is `2` and `0`. Format the number in your own locale using this.
  - `created_at` string, required: When the quote was priced, as an ISO 8601 timestamp.
  - `currency` string, required: 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.
  - `discount` Money, required: What the promo code takes off. Zero without a code.
    - `amount` string, required: The amount in major units, as an exact decimal string. For example, `"10.00"` is ten dollars. It is a string so that no float rounds it in transit.
    - `currency` string, required: Three-letter ISO 4217 currency code, lowercase.
    - `decimals` integer, required: How many decimal places the amount carries. This is the precision the charge itself runs at.
    - `display_decimals` integer, required: How many decimal places to SHOW. Usually equal to `decimals`, and deliberately not always: COP is charged in centavos but written in whole pesos, so it is `2` and `0`. Format the number in your own locale using this.
  - `exchange_rate` string, nullable, required: 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.
  - `expires_at` string, required: When the quote stops being chargeable, as an ISO 8601 timestamp. Quote again after it.
  - `id` string, required: Payment quote ID, prefixed `pq_`.
  - `line_items` PaymentQuoteLineItem[], required
    - `discount` Money, required: The promo code's share on this line. Zero without a code.
      - `amount` string, required: The amount in major units, as an exact decimal string. For example, `"10.00"` is ten dollars. It is a string so that no float rounds it in transit.
      - `currency` string, required: Three-letter ISO 4217 currency code, lowercase.
      - `decimals` integer, required: How many decimal places the amount carries. This is the precision the charge itself runs at.
      - `display_decimals` integer, required: How many decimal places to SHOW. Usually equal to `decimals`, and deliberately not always: COP is charged in centavos but written in whole pesos, so it is `2` and `0`. Format the number in your own locale using this.
    - `quantity` integer, required: How many units of the variant the line covers.
    - `subtotal` Money, required: The line's price before the promo code's share and tax; `subtotal` minus `discount` is what the line comes to after the discount. The lines' subtotals sum to the quote's `subtotal`.
      - `amount` string, required: The amount in major units, as an exact decimal string. For example, `"10.00"` is ten dollars. It is a string so that no float rounds it in transit.
      - `currency` string, required: Three-letter ISO 4217 currency code, lowercase.
      - `decimals` integer, required: How many decimal places the amount carries. This is the precision the charge itself runs at.
      - `display_decimals` integer, required: How many decimal places to SHOW. Usually equal to `decimals`, and deliberately not always: COP is charged in centavos but written in whole pesos, so it is `2` and `0`. Format the number in your own locale using this.
    - `tax_amount` Money, required: The tax on this line. Zero when `tax_status` is not `calculated`.
      - `amount` string, required: The amount in major units, as an exact decimal string. For example, `"10.00"` is ten dollars. It is a string so that no float rounds it in transit.
      - `currency` string, required: Three-letter ISO 4217 currency code, lowercase.
      - `decimals` integer, required: How many decimal places the amount carries. This is the precision the charge itself runs at.
      - `display_decimals` integer, required: How many decimal places to SHOW. Usually equal to `decimals`, and deliberately not always: COP is charged in centavos but written in whole pesos, so it is `2` and `0`. Format the number in your own locale using this.
    - `total` Money, required: `subtotal` minus `discount`, plus `tax_amount` when tax is added on top, or without it when the price already includes it.
      - `amount` string, required: The amount in major units, as an exact decimal string. For example, `"10.00"` is ten dollars. It is a string so that no float rounds it in transit.
      - `currency` string, required: Three-letter ISO 4217 currency code, lowercase.
      - `decimals` integer, required: How many decimal places the amount carries. This is the precision the charge itself runs at.
      - `display_decimals` integer, required: How many decimal places to SHOW. Usually equal to `decimals`, and deliberately not always: COP is charged in centavos but written in whole pesos, so it is `2` and `0`. Format the number in your own locale using this.
    - `variant_id` string, nullable, required: The variant this line prices, prefixed `plan_`. Null when the purchase describes the variant by `variant` and no variant with those attributes exists yet: the payment that consumes the quote creates it, and the line names it from then on.
  - `located_by` 'shipping_address' | 'address' | 'presentment_country' | 'ip_address' | 'null', nullable, required: 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`.
  - `payment_id` string, nullable, required: 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`.
  - `promo_code_id` string, nullable, required: The promo code the quote applied, prefixed `promo_`, or null.
  - `recommended_currencies` string[], required
  - `shipping_address` PaymentAddress, nullable, required
    - `city` string, nullable, required: The city.
    - `country` string, nullable, required: The ISO 3166-1 alpha-2 country code.
    - `line1` string, nullable, required: The first street address line.
    - `line2` string, nullable, required: The second street address line.
    - `name` string, nullable, required: The name on the address.
    - `postal_code` string, nullable, required: The postal or ZIP code.
    - `state` string, nullable, required: The state, province or region.
  - `subtotal` Money, required: The price of every line before the promo code, tax and fees.
    - `amount` string, required: The amount in major units, as an exact decimal string. For example, `"10.00"` is ten dollars. It is a string so that no float rounds it in transit.
    - `currency` string, required: Three-letter ISO 4217 currency code, lowercase.
    - `decimals` integer, required: How many decimal places the amount carries. This is the precision the charge itself runs at.
    - `display_decimals` integer, required: How many decimal places to SHOW. Usually equal to `decimals`, and deliberately not always: COP is charged in centavos but written in whole pesos, so it is `2` and `0`. Format the number in your own locale using this.
  - `tax_amount` Money, required: The tax a payment consuming this quote charges. Zero unless `tax_status` is `calculated`.
    - `amount` string, required: The amount in major units, as an exact decimal string. For example, `"10.00"` is ten dollars. It is a string so that no float rounds it in transit.
    - `currency` string, required: Three-letter ISO 4217 currency code, lowercase.
    - `decimals` integer, required: How many decimal places the amount carries. This is the precision the charge itself runs at.
    - `display_decimals` integer, required: How many decimal places to SHOW. Usually equal to `decimals`, and deliberately not always: COP is charged in centavos but written in whole pesos, so it is `2` and `0`. Format the number in your own locale using this.
  - `tax_behavior` 'inclusive' | 'exclusive' | 'null', nullable, required: Whether tax is added on top of the price (`exclusive`) or already inside it (`inclusive`). Null when no tax was calculated.
  - `tax_ids` TaxId[], required
    - `type` 'ad_nrt' | 'ao_tin' | 'ar_cuit' | 'al_tin' | 'am_tin' | 'aw_tin' | 'au_abn' | 'au_arn' | 'eu_vat' | 'az_tin' | 'bs_tin' | 'bh_vat' | 'bd_bin' | 'bb_tin' | 'by_tin' | 'bj_ifu' | 'bo_tin' | 'ba_tin' | 'br_cnpj' | 'br_cpf' | 'bg_uic' | 'bf_ifu' | 'kh_tin' | 'cm_niu' | 'ca_bn' | 'ca_gst_hst' | 'ca_pst_bc' | 'ca_pst_mb' | 'ca_pst_sk' | 'ca_qst' | 'cv_nif' | 'cl_tin' | 'cn_tin' | 'co_nit' | 'cd_nif' | 'cr_tin' | 'hr_oib' | 'do_rcn' | 'ec_ruc' | 'eg_tin' | 'sv_nit' | 'et_tin' | 'eu_oss_vat' | 'ge_vat' | 'gh_tin' | 'de_stn' | 'gb_vat' | 'gn_nif' | 'hk_br' | 'hu_tin' | 'is_vat' | 'in_gst' | 'id_npwp' | 'il_vat' | 'jp_cn' | 'jp_rn' | 'jp_trn' | 'kz_bin' | 'ke_pin' | 'kg_tin' | 'la_tin' | 'li_uid' | 'li_vat' | 'my_frp' | 'my_itn' | 'my_sst' | 'mr_nif' | 'mx_rfc' | 'md_vat' | 'me_pib' | 'ma_vat' | 'np_pan' | 'nz_gst' | 'ng_tin' | 'mk_vat' | 'no_vat' | 'no_voec' | 'om_vat' | 'pe_ruc' | 'ph_tin' | 'pl_nip' | 'ro_tin' | 'ru_inn' | 'ru_kpp' | 'sa_vat' | 'sn_ninea' | 'rs_pib' | 'sg_gst' | 'sg_uen' | 'si_tin' | 'za_vat' | 'kr_brn' | 'es_cif' | 'ch_uid' | 'ch_vat' | 'tw_vat' | 'tj_tin' | 'tz_vat' | 'th_vat' | 'tr_tin' | 'ug_tin' | 'ua_vat' | 'ae_trn' | 'us_ein' | 'uy_ruc' | 'uz_tin' | 'uz_vat' | 've_rif' | 'vn_tin' | 'zm_tin' | 'zw_tin' | 'sr_fin' | 'xi_vat', required: The registration's type, such as `eu_vat`.
    - `value` string, required: The registration number as the buyer entered it, whitespace removed (`eu_vat` values also drop dots and dashes).
  - `tax_status` 'calculated' | 'not_applicable' | 'unavailable', required: `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.
  - `total` Money, required: What the buyer pays: the subtotal less the discount, plus `tax_amount` when tax is added on top.
    - `amount` string, required: The amount in major units, as an exact decimal string. For example, `"10.00"` is ten dollars. It is a string so that no float rounds it in transit.
    - `currency` string, required: Three-letter ISO 4217 currency code, lowercase.
    - `decimals` integer, required: How many decimal places the amount carries. This is the precision the charge itself runs at.
    - `display_decimals` integer, required: How many decimal places to SHOW. Usually equal to `decimals`, and deliberately not always: COP is charged in centavos but written in whole pesos, so it is `2` and `0`. Format the number in your own locale using this.

## Other responses

- `400`: variant_id and line_items together
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Resource not found
- `409`: Conflict

## Changes

- **2026-11-16** `e9f28ee4a2df`: 1 info
  - added the new `hnl` enum value to the request property `allOf[#/components/schemas/PaymentInput]/variant/currency`
- **2026-11-15** `378d7c6ba6d1`: 1 info
  - added the new optional request property `allOf[#/components/schemas/PaymentInput]/variant/redirect_url`
- **2026-11-05** `73d93b237542`: 1 info
  - added the new optional request property `allOf[#/components/schemas/PaymentInput]/variant/split_pay_required_payments`
- **2026-10-27** `3f9894af7679`: 2 breaking, 3 warning, 3 info
  - added the new required request property `allOf[subschema #2]/line_items/items/variant_id`
  - removed the required property `line_items/items/plan_id` from the response with the `201` status
  - removed the request property `allOf[#/components/schemas/PaymentInput]/plan`
  - removed the request property `allOf[#/components/schemas/PaymentInput]/plan_id`
  - …4 more
- **2026-10-14** `507636677fe9`: 1 warning, 2 info
  - removed the request property `allOf[#/components/schemas/PaymentInput]/line_items`
  - added the new optional request property `allOf[#/components/schemas/PaymentInput]/plan/allow_multiple_quantity`
  - added the new optional request property `allOf[subschema #2]/line_items`

[Operation history](https://skmtc.dev/whop/apis/whop-api/changes/payment_quotes/post.md)

---

[API](https://skmtc.dev/whop/apis/whop-api.md) - [All operations](https://skmtc.dev/whop/apis/whop-api/llms.txt) - [OpenAPI document](https://skmtc.dev/whop/apis/whop-api/revisions/b10d1ab093e8?raw)
