> ## Documentation Index
> Fetch the complete documentation index at: https://docs.whop.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Payment Quotes

A Payment Quote prices a purchase exactly as a payment for it will be charged: the same line pricing, the same promo code, the same per-line tax calculation. The body is the `PaymentInput` a payment takes (the account, the variants or an inline plan, the promo code) plus where the buyer is: `address`, `shipping_address`, `tax_ids` and `ip_address`. Tax is calculated for the shipping address, else the billing address, else the IP address, and `located_by` says which one priced it. A seller who collects no tax on the purchase needs no location at all.

Pass the quote's `id` as `quote_id` when you create the payment and the buyer is charged exactly this quote: its purchase (which the payment may then omit), its promo code and its `tax_amount`, with no figure recomputed at charge time. A quote is priced once, in the plans' own currency, may be consumed by one payment, and expires at `expires_at`; quote again whenever the cart, the promo code or the address changes. A quote located by `ip_address` is a preview: show it, then quote again with the buyer's address to pay. `tax_status` says whether every line was priced (`calculated`), whether the seller collects no tax on this purchase (`not_applicable`), or whether tax could not be priced (`unavailable`, which a payment refuses: quote again, or charge without `quote_id` to have tax calculated at charge time).

## Endpoints

| Endpoint | Request |
| - | - |
| [Retrieve Payment Quote](/api-reference/beta/payment-quotes/retrieve-payment-quote) | <Badge color="blue" size="sm" stroke>GET</Badge> `/payment_quotes/{id}` |
| [Create Payment Quote](/api-reference/beta/payment-quotes/create-payment-quote) | <Badge color="green" size="sm" stroke>POST</Badge> `/payment_quotes` |
