# PostQuotesQuoteAccept

From **Stripe API**.

`POST /v1/quotes/{quote}/accept`

<p>Accepts the specified quote.</p>

## Parameters

### `quote`

- Location: path
- Required: true
- Type: `string`
- maxLength: `5000`

## Request body

- Required: false
### `application/x-www-form-urlencoded`

- Type: `object`

```json
{"additionalProperties":false,"properties":{"expand":{"description":"Specifies which fields in the response should be expanded.","items":{"maxLength":5000,"type":"string"},"type":"array"}},"type":"object"}
```

## Security

### `basicAuth`

- Type: `http`
- Request header: `Authorization`
- Scheme: `basic`
Send credentials in the `Authorization` request header using the `Basic` scheme.

Basic HTTP authentication. Allowed headers-- Authorization: Basic <api_key> | Authorization: Basic <base64 hash of `api_key:`>

### `bearerAuth`

- Type: `http`
- Request header: `Authorization`
- Scheme: `bearer`
- Bearer format: `auth-scheme`
Send the token in the `Authorization` request header using the `Bearer` scheme.

Bearer HTTP authentication. Allowed headers-- Authorization: Bearer <api_key>

## Responses

### `200`

Successful response.

### `application/json`

- Type: `object`

A Quote is a way to model prices that you'd like to provide to a customer.
Once accepted, it will automatically create an invoice, subscription or subscription schedule.

```json
{"description":"A Quote is a way to model prices that you'd like to provide to a customer.\nOnce accepted, it will automatically create an invoice, subscription or subscription schedule.","properties":{"amount_subtotal":{"description":"Total before any discounts or taxes are applied.","type":"integer"},"amount_total":{"description":"Total after discounts and taxes are applied.","type":"integer"},"application_fee_amount":{"description":"The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. Only applicable if there are no line items with recurring prices on the quote.","nullable":true,"type":"integer"},"application_fee_percent":{"description":"A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice subtotal that will be transferred to the application owner's Stripe account. Only applicable if there are line items with recurring prices on the quote.","nullable":true,"type":"number"},"automatic_tax":{"$ref":"#/components/schemas/quotes_resource_automatic_tax"},"collection_method":{"description":"Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay invoices at the end of the subscription cycle or on finalization using the default payment method attached to the subscription or customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions. Defaults to `charge_automatically`.","enum":["charge_automatically","send_invoice"],"type":"string"},"computed":{"$ref":"#/components/schemas/quotes_resource_computed"},"created":{"description":"Time at which the object was created. Measured in seconds since the Unix epoch.","format":"unix-time","type":"integer"},"currency":{"description":"Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).","maxLength":5000,"nullable":true,"type":"string"},"customer":{"anyOf":[{"maxLength":5000,"type":"string"},{"$ref":"#/components/schemas/customer"},{"$ref":"#/components/schemas/deleted_customer"}],"description":"The customer which this quote belongs to. A customer is required before finalizing the quote. Once specified, it cannot be changed.","nullable":true,"x-expansionResources":{"oneOf":[{"$ref":"#/components/schemas/customer"},{"$ref":"#/components/schemas/deleted_customer"}]}},"default_tax_rates":{"description":"The tax rates applied to this quote.","items":{"anyOf":[{"maxLength":5000,"type":"string"},{"$ref":"#/components/schemas/tax_rate"}],"x-expansionResources":{"oneOf":[{"$ref":"#/components/schemas/tax_rate"}]}},"type":"array"},"description":{"description":"A description that will be displayed on the quote PDF.","maxLength":5000,"nullable":true,"type":"string"},"discounts":{"description":"The discounts applied to this quote.","items":{"anyOf":[{"maxLength":5000,"type":"string"},{"$ref":"#/components/schemas/discount"}],"x-expansionResources":{"oneOf":[{"$ref":"#/components/schemas/discount"}]}},"type":"array"},"expires_at":{"description":"The date on which the quote will be canceled if in `open` or `draft` status. Measured in seconds since the Unix epoch.","format":"unix-time","type":"integer"},"footer":{"description":"A footer that will be displayed on the quote PDF.","maxLength":5000,"nullable":true,"type":"string"},"from_quote":{"anyOf":[{"$ref":"#/components/schemas/quotes_resource_from_quote"}],"description":"Details of the quote that was cloned. See the [cloning documentation](https://stripe.com/docs/quotes/clone) for more details.","nullable":true},"header":{"description":"A header that will be displayed on the quote PDF.","maxLength":5000,"nullable":true,"type":"string"},"id":{"description":"Unique identifier for the object.","maxLength":5000,"type":"string"},"invoice":{"anyOf":[{"maxLength":5000,"type":"string"},{"$ref":"#/components/schemas/invoice"},{"$ref":"#/components/schemas/deleted_invoice"}],"description":"The invoice that was created from this quote.","nullable":true,"x-expansionResources":{"oneOf":[{"$ref":"#/components/schemas/invoice"},{"$ref":"#/components/schemas/deleted_invoice"}]}},"invoice_settings":{"anyOf":[{"$ref":"#/components/schemas/invoice_setting_quote_setting"}],"description":"All invoices will be billed using the specified settings.","nullable":true},"line_items":{"description":"A list of items the customer is being quoted for.","properties":{"data":{"description":"Details about each object.","items":{"$ref":"#/components/schemas/item"},"type":"array"},"has_more":{"description":"True if this list has another page of items after this one that can be fetched.","type":"boolean"},"object":{"description":"String representing the object's type. Objects of the same type share the same value. Always has the value `list`.","enum":["list"],"type":"string"},"url":{"description":"The URL where this list can be accessed.","maxLength":5000,"type":"string"}},"required":["data","has_more","object","url"],"title":"QuotesResourceListLineItems","type":"object","x-expandableFields":["data"]},"livemode":{"description":"Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.","type":"boolean"},"metadata":{"additionalProperties":{"maxLength":500,"type":"string"},"description":"Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.","type":"object"},"number":{"description":"A unique number that identifies this particular quote. This number is assigned once the quote is [finalized](https://stripe.com/docs/quotes/overview#finalize).","maxLength":5000,"nullable":true,"type":"string"},"object":{"description":"String representing the object's type. Objects of the same type share the same value.","enum":["quote"],"type":"string"},"on_behalf_of":{"anyOf":[{"maxLength":5000,"type":"string"},{"$ref":"#/components/schemas/account"}],"description":"The account on behalf of which to charge. See the [Connect documentation](https://support.stripe.com/questions/sending-invoices-on-behalf-of-connected-accounts) for details.","nullable":true,"x-expansionResources":{"oneOf":[{"$ref":"#/components/schemas/account"}]}},"status":{"description":"The status of the quote.","enum":["accepted","canceled","draft","open"],"type":"string"},"status_transitions":{"$ref":"#/components/schemas/quotes_resource_status_transitions"},"subscription":{"anyOf":[{"maxLength":5000,"type":"string"},{"$ref":"#/components/schemas/subscription"}],"description":"The subscription that was created or updated from this quote.","nullable":true,"x-expansionResources":{"oneOf":[{"$ref":"#/components/schemas/subscription"}]}},"subscription_data":{"$ref":"#/components/schemas/quotes_resource_subscription_data"},"subscription_schedule":{"anyOf":[{"maxLength":5000,"type":"string"},{"$ref":"#/components/schemas/subscription_schedule"}],"description":"The subscription schedule that was created or updated from this quote.","nullable":true,"x-expansionResources":{"oneOf":[{"$ref":"#/components/schemas/subscription_schedule"}]}},"total_details":{"$ref":"#/components/schemas/quotes_resource_total_details"},"transfer_data":{"anyOf":[{"$ref":"#/components/schemas/quotes_resource_transfer_data"}],"description":"The account (if any) the payments will be attributed to for tax reporting, and where funds from each payment will be transferred to for each of the invoices.","nullable":true}},"required":["amount_subtotal","amount_total","automatic_tax","collection_method","computed","created","discounts","expires_at","id","livemode","metadata","object","status","status_transitions","subscription_data","total_details"],"title":"Quote","type":"object","x-expandableFields":["automatic_tax","computed","customer","default_tax_rates","discounts","from_quote","invoice","invoice_settings","line_items","on_behalf_of","status_transitions","subscription","subscription_data","subscription_schedule","total_details","transfer_data"],"x-resourceId":"quote"}
```

### `default`

Error response.

### `application/json`

- Type: `object`

An error response from the Stripe API

```json
{"description":"An error response from the Stripe API","properties":{"error":{"$ref":"#/components/schemas/api_errors"}},"required":["error"],"type":"object"}
```

## Request examples

### cURL

```shell
curl --request POST \
  --url https://api.stripe.com/v1/quotes/{quote}/accept \
  --header 'content-type: application/x-www-form-urlencoded' \
  --data '{
  "expand": [
    "string"
  ]
}'
```
