# Reissue a quote

`POST /quotes/{id}/reissue`

> This is a subset of the full specification, limited to the `POST /quotes/{id}/reissue` operation.
>
> You can find the full specification here: /_bundle/docs/dev-docs/api/index.yaml

```yaml
openapi: 3.1.1
info:
  version: latest
  title: Core APIs
  contact:
    name: Rebilly API Support
    url: https://www.rebilly.com/contact/
    email: integrations@rebilly.com
  license:
    name: Rebilly
    url: https://www.rebilly.com/api-license/
  termsOfService: https://www.rebilly.com/terms-of-use/
  x-logo:
    url: https://rebilly-core.redoc.ly/rb_apiLogo.svg
    backgroundColor: '#0044d4'
  description: This is a subset of the full specification, limited to the `POST /quotes/{id}/reissue` operation. Components more than 3 `$ref` hops away are not included.
  x-metadata:
    description: The most common APIs used to automate common workflows.
    redocly_category: API Reference
servers:
  - url: https://api-sandbox.rebilly.com/organizations/{organizationId}
    description: Sandbox server
    variables:
      organizationId:
        default: '{organizationId}'
        description: |-
          Unique organization identifier.
          An organization is an entity that represents a company.
          For more information, see [Obtain an organization ID](https://www.rebilly.com/docs/settings/organizations-and-websites/#obtain-your-organization-id-and-website-id).
  - url: https://api.rebilly.com/organizations/{organizationId}
    description: Live server
    variables:
      organizationId:
        default: '{organizationId}'
        description: |-
          Unique organization identifier.
          An organization is an entity that represents a company.
          For more information, see [Obtain an organization ID](https://www.rebilly.com/docs/settings/organizations-and-websites/#obtain-your-organization-id-and-website-id).
security:
  - SecretApiKey: []
  - JWT: []
tags:
  - name: Quotes
    description: |-
      Use quote operations to create and manage quotations.
      Quotations describe the cost of goods or services to potential customers before they commit to a purchase.
      A quote contains an initial invoice preview that can be accepted to become an order.

      A quote can contain subscription and one-time sale items.
      When a quote contains one or more subscription items, it is a subscription order quote.
x-tagGroups:
  - name: Orders & Invoices
    tags:
      - Quotes
paths:
  /quotes/{id}/reissue:
    parameters:
      - $ref: '#/components/parameters/resourceId'
    post:
      x-products:
        - Core
      tags:
        - Quotes
      summary: Reissue a quote
      operationId: PostQuoteReissue
      x-sdk-operation-name: reissue
      description: |-
        Reissues an expired, canceled, or rejected quote with a specified ID.
        This operation assigns the quote the `status` of `issued`,
        clears the `canceledTime` and `rejectedTime` fields,
        and resets the fulfilled acceptance conditions.
        If the request omits `expirationTime` and the current expiration time has not passed, the current expiration time is retained.
        If the request omits `expirationTime` and the current expiration time has passed, the quote expires one month after it is reissued.

        This operation restores the voided quotation invoice to the `quotation` status,
        and recalculates the invoice from the current quote items and order.
        Reissuing a quote triggers the same webhooks, rules, and timeline entries as issuing it.
        To reissue a change or reactivation quote, the order must still allow that quote type,
        and no other draft or issued quote may exist for the same order.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/QuoteReissue'
        description: Quote reissue resource.
      responses:
        '200':
          description: Quote reissued.
          headers:
            Rate-Limit-Limit:
              $ref: '#/components/headers/Rate-Limit-Limit'
            Rate-Limit-Remaining:
              $ref: '#/components/headers/Rate-Limit-Remaining'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Quote'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/Conflict'
        '422':
          $ref: '#/components/responses/ValidationError'
        '429':
          $ref: '#/components/responses/TooManyRequests'
components:
  securitySchemes:
    JWT:
      description: |-
        JWT is a short lifetime token that can be assigned a specific expiration time.

        Usage format: `Bearer <JWT>`.
      type: http
      scheme: bearer
      bearerFormat: JWT
    SecretApiKey:
      description: |-
        Never share your secret keys.
        Keep them guarded and secure.

        Use your secret API key only to make requests from the server side.
        To authenticate, provide your secret key in the request header.
      name: REB-APIKEY
      type: apiKey
      in: header
  parameters:
    resourceId:
      name: id
      in: path
      description: ID of the resource.
      required: true
      schema:
        type: string
        maxLength: 50
        pattern: ^[@~\-\.\w]+$
  headers:
    Rate-Limit-Limit:
      description: |-
        Maximum number of requests available at one time for this rate limit.
        For more information, see [Rate limits](#section/Rate-limits).
      schema:
        type: integer
      example: 500
    Rate-Limit-Remaining:
      description: |-
        Number of requests still available for this rate limit.
        For more information, see [Rate limits](#section/Rate-limits).
      schema:
        type: integer
      example: 499
    Rate-Limit-Retry-After:
      description: Number of seconds to wait before retrying the request.
      schema:
        type: integer
      example: 1
  schemas:
    CreatedTime:
      type: string
      description: |-
        Date and time when the resource is created.
        This value is set automatically when the resource is created.
      format: date-time
      readOnly: true
      x-sortable: true
      x-label: Creation Time
    UpdatedTime:
      type: string
      description: |-
        Date and time when the resource is updated.
        This value is set automatically when the resource is updated.
      format: date-time
      readOnly: true
      x-sortable: true
      x-label: Last Update Time
    BaseProblem:
      type: object
      additionalProperties: true
      minProperties: 1
      description: RFC-7807 [problem details](https://tools.ietf.org/html/rfc7807) JSON object.
      properties:
        type:
          type: string
          description: |-
            Problem type in the form of a [URI](https://tools.ietf.org/html/rfc3986) reference.
            It should provide human-readable documentation for the problem type.
            When this member is not present, its value is assumed to be "about:blank".
          format: uri
        title:
          type: string
          description: |-
            Short, human-readable summary of the problem type.
            Other than for the purposes of localization, this should not change from occurrence to occurrence of the problem.
        detail:
          type: string
          description: Human-readable explanation that is specific to this occurrence of the problem.
        instance:
          type: string
          description: |-
            URI reference that identifies the specific occurrence of the problem.
            It may or may not yield further information if dereferenced.
    Unauthorized:
      allOf:
        - title: Unauthorized
        - type: object
          properties:
            status:
              type: integer
              description: HTTP status code.
              minimum: 401
              maximum: 401
        - $ref: '#/components/schemas/BaseProblem'
    OrganizationId:
      type: string
      description: |-
        Unique organization identifier.
        An organization is an entity that represents a company.
        For more information, see [Obtain an organization ID](https://www.rebilly.com/docs/settings/organizations-and-websites/#obtain-your-organization-id-and-website-id).
      maxLength: 50
      example: org_0YVDM8RC7GDADADSBSMW124JA8
    Forbidden:
      allOf:
        - title: Forbidden
        - type: object
          properties:
            status:
              type: integer
              description: HTTP status code.
              minimum: 403
              maximum: 403
            error:
              type: string
              description: |-
                Message that describes why the request is forbidden.
                Most responses use a descriptive message, such as `Not allowed to change security settings`.
                If the organization requires multi-factor authentication (MFA) and MFA verification has not been completed for the session, this value is `mfa_required`.
                If MFA verification has not been completed for the session and the operation requires a confirmed session, this value is `mfa_required_for_caller`.
                This includes turning on `requireMfa` and resetting MFA for a user.
                If the organization restricts access to a list of IP addresses and the request comes from an IP address that is not in the list, this value is `ip_not_allowed`.
            organizationId:
              description: |-
                ID of the organization that requires MFA or does not allow the IP address of the request.
                This property is present only if `error` is `mfa_required` or `ip_not_allowed`.
                The organization is the organization of the request or another organization that the request acts on.
              $ref: '#/components/schemas/OrganizationId'
        - $ref: '#/components/schemas/BaseProblem'
    NotFound:
      allOf:
        - type: object
          properties:
            status:
              type: integer
              description: HTTP status code.
              minimum: 404
              maximum: 404
        - $ref: '#/components/schemas/BaseProblem'
    InvalidFields:
      type: array
      description: Invalid field details.
      items:
        type: object
        properties:
          field:
            type: string
            description: |-
              Name of the field.
              Dot notation is used for nested object field names.
          message:
            description: Message field.
            type: string
      example:
        - field: field1
          message: field1 is invalid
        - field: subObject.field2
          message: field2 is invalid
        - field: subObject.field2
          message: another error in the field2
    ValidationError:
      allOf:
        - title: Validation error
        - type: object
          properties:
            status:
              type: integer
              description: HTTP status code.
              minimum: 422
              maximum: 422
        - $ref: '#/components/schemas/BaseProblem'
        - type: object
          properties:
            invalidFields:
              $ref: '#/components/schemas/InvalidFields'
    TooManyRequests:
      type: object
      additionalProperties: true
      minProperties: 1
      description: RFC-7807 [problem details](https://tools.ietf.org/html/rfc7807) JSON object.
      properties:
        type:
          type: string
          description: |-
            Problem type in the form of a [URI](https://tools.ietf.org/html/rfc3986) reference.
            It should provide human-readable documentation for the problem type.
            When this member is not present, its value is assumed to be "about:blank".
          format: uri
          example: about:blank
        title:
          type: string
          description: |-
            Short, human-readable summary of the problem type.
            Other than for the purposes of localization, this should not change from occurrence to occurrence of the problem.
          example: Rate Limit Exceeded
        status:
          type: integer
          description: HTTP status code.
          minimum: 429
          maximum: 429
        detail:
          type: string
          description: Human-readable explanation that is specific to this occurrence of the problem.
          example: A request cannot be executed because the user has sent too many requests within a certain period of time
        instance:
          type: string
          description: |-
            URI reference that identifies the specific occurrence of the problem.
            It may or may not yield further information if dereferenced.
    Conflict:
      allOf:
        - title: Conflict
        - type: object
          properties:
            status:
              type: integer
              description: HTTP status code.
              minimum: 409
              maximum: 409
        - $ref: '#/components/schemas/BaseProblem'
    CustomerId:
      type: string
      description: ID of the customer resource.
      maxLength: 50
      example: cus_0YV7DDSDD1C8DA64KHH2W33CPF
      x-basic: true
    CurrencyCode:
      type: string
      description: Currency code in ISO 4217 format.
      minLength: 3
      maxLength: 3
      example: USD
      x-label: Currency
    WebsiteId:
      type: string
      description: |-
        ID of the website.
        A website is where an organization obtains a customer.
        For more information, see [Obtain an organization ID and website ID](https://www.rebilly.com/docs/settings/organizations-and-websites/#obtain-your-organization-id-and-website-id).
      maxLength: 50
      example: web_0YV7DE4Z26DQSA1AC92FBJ7SEG
    ContactObject:
      type: object
      description: Contact's information.
      properties:
        firstName:
          description: Contact's first name.
          type:
            - string
            - 'null'
          pattern: ^[\u0000-\uFFFF]+$
          maxLength: 45
          example: Benjamin
        lastName:
          description: Contact's last name.
          type:
            - string
            - 'null'
          pattern: ^[\u0000-\uFFFF]+$
          maxLength: 45
          example: Franklin
        organization:
          description: Contact's organization.
          type:
            - string
            - 'null'
          pattern: ^[\u0000-\uFFFF]+$
          maxLength: 255
          example: Rebilly
        address:
          description: First line of the contact's street address.
          type:
            - string
            - 'null'
          pattern: ^[\u0000-\uFFFF]+$
          maxLength: 60
          example: 36 Craven St
        address2:
          description: Second line of the contact's street address.
          type:
            - string
            - 'null'
          pattern: ^[\u0000-\uFFFF]+$
          maxLength: 60
        city:
          description: Contact's city of residence.
          type:
            - string
            - 'null'
          pattern: ^[\u0000-\uFFFF]+$
          maxLength: 45
          example: Austin
        region:
          description: Contact's region of residence.
          type:
            - string
            - 'null'
          pattern: ^[\u0000-\uFFFF]+$
          maxLength: 45
          example: Texas
        country:
          description: |-
            Contact's country of residence in ISO 3166 alpha-2 country code.
            For examples, see [ISO.org](https://www.iso.org/obp/ui/#search/code/).
          type:
            - string
            - 'null'
          pattern: ^[A-Z]{2}$
          maxLength: 2
          example: GB
        postalCode:
          description: Contact's postal code.
          type:
            - string
            - 'null'
          pattern: ^[\w\s\-]+$
          maxLength: 10
          example: WC2N 5NF
        phoneNumbers:
          $ref: '#/components/schemas/ContactPhoneNumbers'
        emails:
          $ref: '#/components/schemas/ContactEmails'
        dob:
          description: Contact's date of birth in ISO-8601 `YYYY-MM-DD` format.
          type:
            - string
            - 'null'
          format: date
          example: '1980-04-01'
        jobTitle:
          description: Contact's job title.
          type:
            - string
            - 'null'
          pattern: ^[\u0000-\uFFFF]+$
          maxLength: 255
          example: CEO
        hash:
          description: |-
            Hash value for the contact.
            Use this value to compare contacts for identical attribute values.
          type: string
          maxLength: 40
          example: 056ae6d97c788b9e98b049ebafd7b229bf852221
          readOnly: true
    Shipping:
      description: Shipping settings.
      type: object
      discriminator:
        propertyName: calculator
        mapping:
          manual: '#/components/schemas/ManualShipping'
          rebilly: '#/components/schemas/RebillyShipping'
      oneOf:
        - $ref: '#/components/schemas/ManualShipping'
        - $ref: '#/components/schemas/RebillyShipping'
    Taxes:
      description: Taxes.
      type: object
      discriminator:
        propertyName: calculator
        mapping:
          manual: '#/components/schemas/ManualTax'
          rebilly-taxjar: '#/components/schemas/RebillyTaxJarTax'
          rebilly-avalara: '#/components/schemas/RebillyAvalaraTax'
      oneOf:
        - $ref: '#/components/schemas/ManualTax'
        - $ref: '#/components/schemas/RebillyTaxJarTax'
        - $ref: '#/components/schemas/RebillyAvalaraTax'
    QuoteItem:
      type: object
      discriminator:
        propertyName: type
        mapping:
          subscription: '#/components/schemas/QuoteSubscriptionItem'
          one-time-sale: '#/components/schemas/QuoteOneTimeSaleItem'
      oneOf:
        - $ref: '#/components/schemas/QuoteSubscriptionItem'
        - $ref: '#/components/schemas/QuoteOneTimeSaleItem'
    CreationQuote:
      type: object
      title: CreationQuote
      required:
        - websiteId
        - customerId
        - order
        - type
      properties:
        id:
          readOnly: true
          description: ID of the quote.
          type: string
          maxLength: 50
          example: qt_01HXBZMEGPETPHJZH6V4RHBMA8
        type:
          description: |-
            Type of the quote.
            When a quote is accepted, a new order is created.
          type: string
          enum:
            - creation
        acceptanceConditions:
          type: array
          writeOnly: true
          description: Conditions that must be met for the quote to be automatically accepted.
          items:
            type: string
            enum:
              - customer
              - payment
            x-enumDescriptions:
              customer: Quote can be accepted by customer.
              payment: Related invoice must be paid in full.
          example:
            - payment
          default:
            - customer
        acceptanceFulfillment:
          type: array
          readOnly: true
          description: List of `acceptanceConditions` with fulfillment status.
          items:
            type: object
            properties:
              condition:
                type: string
                enum:
                  - customer
                  - payment
                  - organization
              isFulfilled:
                type: boolean
        isNewOrder:
          description: Specifies if the order is a new order.
          type: boolean
          readOnly: true
          example: true
        invoiceId:
          type: string
          description: ID of the payment invoice.
          readOnly: true
          maxLength: 50
          example: in_0YVF9605RKC62BP14NE2R7V2XT
        status:
          description: Status of the quote.
          type: string
          readOnly: true
          enum:
            - draft
            - issued
            - accepted
            - rejected
            - canceled
            - expired
          x-enumDescriptions:
            draft: Quote can be edited. This quote cannot be sent to a customer.
            issued: Quote cannot be edited. This quote can be sent to a customer.
            accepted: Customer accepted the quote and created an order.
            rejected: Customer rejected the quote.
            canceled: Organization or customer canceled the quote.
            expired: Expired before customer or organization interaction.
        websiteId:
          $ref: '#/components/schemas/WebsiteId'
        customerId:
          $ref: '#/components/schemas/CustomerId'
        order:
          type: object
          description: Properties of the related order.
          required:
            - items
          properties:
            id:
              description: ID of the related order.
              readOnly: true
              type:
                - string
                - 'null'
              maxLength: 50
              example: ord_01HVKA5975PJBSQ1SX72G3MSZC
            items:
              type: array
              description: Items included in the quote.
              minItems: 1
              items:
                $ref: '#/components/schemas/QuoteItem'
            autopay:
              type: boolean
              default: false
              description: |-
                Specifies if payment attempts for the related order are made automatically.
                If autopay is enabled, the payment is retrieved from the customer on the renewal date using the payment instrument that is set at `paymentInstrumentId`,
                or the default payment instrument on the order.
            shipping:
              $ref: '#/components/schemas/Shipping'
            deliveryAddress:
              description: Delivery address of the order.
              oneOf:
                - $ref: '#/components/schemas/ContactObject'
                - type: 'null'
            billingAddress:
              description: Billing address of the order.
              oneOf:
                - $ref: '#/components/schemas/ContactObject'
                - type: 'null'
            startTime:
              description: |-
                Date and time when the created order starts.
                If this value is `null`, the quote acceptance time is used.
              type:
                - string
                - 'null'
              x-sortable: true
              x-basic: true
              format: date-time
            isLegacy:
              description: |-
                Specifies if the order is a legacy order.
                If omitted when the quote is created, the value follows the order model that is used by the organization: `false` for the current order model and `true` for the legacy order model.
                If omitted when the quote is updated, the value does not change.
                Organizations that use the current order model cannot set this value to `true`.
              type: boolean
              example: true
        invoicePreview:
          type: object
          description: Preview of the quote invoice.
          readOnly: true
          properties:
            currency:
              description: Currency of the invoice.
              $ref: '#/components/schemas/CurrencyCode'
            initialAmounts:
              type: object
              description: Total amounts of the initial invoice.
              properties:
                amount:
                  description: Amount of the invoice.
                  type: number
                  x-type: Money
                  format: double
                subtotalAmount:
                  description: Subtotal amount of the invoice.
                  type: number
                  x-type: Money
                  format: double
                discountAmount:
                  description: Discount amount that is applied to the invoice.
                  type: number
                  x-type: Money
                  format: double
                shippingAmount:
                  description: Shipping amount that is applied to the invoice.
                  type: number
                  x-type: Money
                  format: double
                taxAmount:
                  description: Tax amount that is applied to the invoice.
                  type: number
                  x-type: Money
                  format: double
            recurringAmounts:
              type:
                - object
                - 'null'
              description: |-
                Total amounts of the recurring invoice.
                This includes recurring items only.
                If the quote does not have recurring items, the value of this field is `null`.
              properties:
                amount:
                  description: Amount of the invoice.
                  type: number
                  x-type: Money
                  format: double
                subtotalAmount:
                  description: Subtotal amount of the invoice.
                  type: number
                  x-type: Money
                  format: double
                discountAmount:
                  description: Discount amount that is applied to the invoice.
                  type: number
                  x-type: Money
                  format: double
                shippingAmount:
                  description: Shipping amount that is applied to the invoice.
                  type: number
                  x-type: Money
                  format: double
                taxAmount:
                  description: Tax amount that is applied to the invoice.
                  type: number
                  x-type: Money
                  format: double
            items:
              type: array
              description: Invoice items.
              items:
                type: object
                properties:
                  quoteItemId:
                    description: ID of the related quote item.
                    type: string
                    example: qt_itm_01HXCEQNR3F1G2A6RX6HPS3KFY
                  type:
                    type: string
                    description: Type of the invoice item.
                    x-basic: true
                    enum:
                      - debit
                      - credit
                  name:
                    description: Name of the invoice item.
                    type: string
                    maxLength: 1000
                  description:
                    description: Description of the invoice item.
                    type: string
                    example: Charge per approved transaction with DCC
                    maxLength: 255
                  priceDescription:
                    type: string
                    description: Price description of the invoice item.
                    example: 50% of the markup for approved transactions
                    maxLength: 255
                  unitPrice:
                    description: Unit price of the invoice item.
                    type:
                      - number
                      - 'null'
                    format: double
                  quantity:
                    description: Quantity of the invoice item.
                    type: integer
                  period:
                    description: Date interval of the invoice item.
                    type:
                      - string
                      - 'null'
                  setupUnitPrice:
                    description: Unit price of the invoice item.
                    type:
                      - number
                      - 'null'
                    format: double
                  trialUnitPrice:
                    description: Unit price of the invoice item.
                    type:
                      - number
                      - 'null'
                    format: double
                  trialPeriod:
                    description: Date interval of the invoice item trial.
                    type:
                      - string
                      - 'null'
                  taxAmount:
                    description: Tax amount of the invoice item.
                    type:
                      - number
                      - 'null'
                    format: double
                  setupTaxAmount:
                    description: Tax amount of the setup that is applied to the invoice.
                    type:
                      - number
                      - 'null'
                    format: double
                  trialTaxAmount:
                    description: Tax amount of the trial that is applied to the invoice.
                    type:
                      - number
                      - 'null'
                    format: double
        paymentTerms:
          description: Payment terms for the customer which are displayed on the quote.
          type: string
        expirationTime:
          description: |-
            Date and time when the quote expires.
            A new or updated expiration time must be later than the current time.
            The default expiration time is one month from the time the quote is issued.
            In a `draft` state, this field may be `null`.
          type:
            - string
            - 'null'
          format: date-time
        issuedTime:
          description: Date and time when the quote is issued.
          type:
            - string
            - 'null'
          readOnly: true
          format: date-time
        acceptedTime:
          description: Date and time when the quote is accepted.
          type:
            - string
            - 'null'
          readOnly: true
          format: date-time
        rejectedTime:
          description: Date and time when the quote is rejected.
          type:
            - string
            - 'null'
          readOnly: true
          format: date-time
        canceledTime:
          description: Date and time when the quote is canceled.
          type:
            - string
            - 'null'
          readOnly: true
          format: date-time
        createdTime:
          $ref: '#/components/schemas/CreatedTime'
        updatedTime:
          $ref: '#/components/schemas/UpdatedTime'
        redirectUrl:
          description: |-
            URL to redirect the customer to when a quote is rejected.
            The default value is the website URL.
          type: string
          maxLength: 2083
          format: uri
        signature:
          type: object
          description: Written signature and printed organization name.
          properties:
            showWrittenSignatureLines:
              type: boolean
              default: false
              description: Specifies whether to show written signature lines.
            organizationPrintedName:
              type:
                - string
                - 'null'
              description: Printed name of the organization.
              default: null
        tax:
          $ref: '#/components/schemas/Taxes'
        couponIds:
          type:
            - array
            - 'null'
          description: |-
            List of coupons to redeem on the customer and apply to the related invoice.

            For more information, see [Coupons](https://www.rebilly.com/docs/settings/coupons-and-discounts/).
          items:
            type: string
            description: Coupon ID.
        _links:
          type: array
          description: Related links.
          readOnly: true
          items:
            type: object
            properties:
              href:
                description: Link URL.
                type: string
              rel:
                description: |-
                  Type of link.
                  If the quote is issued, a customer can be redirected to the `invoicePaymentFormUrl` value
                  to pay the related invoice using one of the methods which are available to the customer.
                type: string
                enum:
                  - self
                  - quoteAcceptanceFormUrl
                  - invoicePaymentFormUrl
        _embedded:
          type: object
          description: Embedded objects that are requested by the `expand` query parameter.
          readOnly: true
          properties:
            customer:
              type: object
            website:
              type: object
            order:
              type: object
            invoice:
              type: object
    ChangeQuote:
      type: object
      title: ChangeQuote
      required:
        - websiteId
        - customerId
        - order
        - type
      properties:
        id:
          readOnly: true
          description: ID of the quote.
          type: string
          maxLength: 50
          example: qt_01HXBZMEGPETPHJZH6V4RHBMA8
        type:
          description: |-
            Type of the quote.
            When a quote is accepted, quote items and settings are applied to the related order.
            Change quotes can only be created for orders with `active` or `trial-ended` status.
            For `trial-ended` orders, use this quote type to convert a trial-only order to a regular recurring order.
          type: string
          enum:
            - change
        acceptanceConditions:
          type: array
          writeOnly: true
          description: Conditions that must be met for the quote to be automatically accepted.
          items:
            type: string
            enum:
              - customer
              - payment
            x-enumDescriptions:
              customer: Quote can be accepted by customer.
              payment: Related invoice must be paid in full.
          example:
            - payment
          default:
            - customer
        acceptanceFulfillment:
          type: array
          readOnly: true
          description: List of `acceptanceConditions` with fulfillment status.
          items:
            type: object
            properties:
              condition:
                type: string
                enum:
                  - customer
                  - payment
                  - organization
              isFulfilled:
                type: boolean
        isNewOrder:
          description: Specifies if the order is a new order.
          type: boolean
          readOnly: true
          example: true
        invoiceId:
          type: string
          description: ID of the payment invoice.
          readOnly: true
          maxLength: 50
          example: in_0YVF9605RKC62BP14NE2R7V2XT
        status:
          description: Status of the quote.
          type: string
          readOnly: true
          enum:
            - draft
            - issued
            - accepted
            - rejected
            - canceled
            - expired
          x-enumDescriptions:
            draft: Quote can be edited. This quote cannot be sent to a customer.
            issued: Quote cannot be edited. This quote can be sent to a customer.
            accepted: Customer accepted the quote. Quote items and settings are applied to the order.
            rejected: Customer rejected the quote.
            canceled: Organization or customer canceled the quote.
            expired: Expired before customer or organization interaction.
        websiteId:
          $ref: '#/components/schemas/WebsiteId'
        customerId:
          $ref: '#/components/schemas/CustomerId'
        order:
          type: object
          description: Properties of the related order.
          required:
            - id
            - items
          properties:
            id:
              description: ID of the related order.
              type: string
              maxLength: 50
              example: ord_01HVKA5975PJBSQ1SX72G3MSZC
            items:
              type: array
              description: Items included in the quote.
              minItems: 1
              items:
                $ref: '#/components/schemas/QuoteItem'
            renewalPolicy:
              description: |-
                Policy for managing service periods and trial state of the related order when the quote is accepted.

                The `reset` and `retain` values are deprecated.
                The deprecated `keepTrial` flag is ignored unless `retain` is used, or this field is omitted.
                If this field is omitted, this value defaults to `retainRecurring`.
                If this field is omitted and `keepTrial` is `true`, `renewalPolicy` is set to `retainTrialThenRecurring`.
              type: string
              default: retainRecurring
              enum:
                - resetToRecurring
                - retainRecurring
                - retainTrialThenRecurring
                - reset
                - retain
              x-enumDescriptions:
                resetToRecurring: Resets the service periods, ends any trial, and converts trial-only items to recurring.
                retainRecurring: Retains the current service periods, ends any trial, and converts trial-only items to recurring.
                retainTrialThenRecurring: |-
                  Retains the trial until it ends, then converts the item to recurring.
                  Returns a validation error if the order has no trial.
                reset: |-
                  Deprecated.
                  Use `resetToRecurring` instead.
                  Resets the `renewalTime` to a newly calculated value.
                retain: |-
                  Deprecated.
                  Use `retainRecurring` or `retainTrialThenRecurring` instead.
                  Retains the current `renewalTime`.
            prorated:
              description: |-
                Specifies whether to give a pro rata credit for the amount of time remaining between the `effectiveTime` and the end of the current period.
                In addition, if the `renewalTime` is retained, by setting the `renewalPolicy` to `retainRecurring` or `retainTrialThenRecurring`,
                a pro rata debit occurs for the amount between the `effectiveTime` and the `renewalTime` as a percentage of the normal period length.
              type: boolean
            effectiveTime:
              description: |-
                Date from which the renewal time for `reset` operations and proration calculations are made.
                If this field is omitted, this value defaults to the time of quote acceptance.
              type:
                - string
                - 'null'
              format: date-time
            applyAt:
              description: |-
                Time when the new items are applied.

                - `now`: The items change immediately.
                  `prorated`, `renewalPolicy` and `effectiveTime` apply.
                - `nextRenewal`: The current items stay until the next renewal.
                  The new items are billed on the next renewal invoice.
                  `prorated` and `renewalPolicy` are ignored.
                  Omit `effectiveTime`.
                  If the request includes `effectiveTime`, a validation error is returned.
                  `couponIds` and `usageSettings` are not supported.
                  If the request includes either field, a validation error is returned.
                  `interimOnly` must be `true`.
                  A later request replaces the pending change.
                  The pending change is locked when the next renewal invoice is issued.
                  One-time sale items that are already on the order are retained.
                  A one-time sale item cannot be added with `nextRenewal`.
              type: string
              enum:
                - now
                - nextRenewal
              default: now
            keepTrial:
              deprecated: true
              description: |-
                Deprecated.
                Use the `retainTrialThenRecurring` value of `renewalPolicy` instead.

                Specifies if the active trial of the order is retained.
                This field is only applicable if `renewalPolicy` is set to the deprecated value `retain`, or omitted.
                If `renewalPolicy` is omitted and this field is `true`, `renewalPolicy` is set to `retainTrialThenRecurring`.
              type: boolean
              default: false
            interimOnly:
              type: boolean
              default: true
              description: |-
                Specifies if the quotation invoice must include interim items only.
                If this value is set to `false`, all upcoming items are included.
                If `applyAt` is set to `nextRenewal`, this value must be `true`.
                To bill the next period now, issue the upcoming invoice of the order.
            usageSettings:
              type: array
              default: []
              description: Usage settings for items with metered billing.
              items:
                type: object
                required:
                  - productId
                  - policy
                properties:
                  productId:
                    type: string
                    description: |-
                      ID of the product to use to transfer usage.
                      If the `policy` value is `transfer`,
                      and an existing item and a new item are of the same product,
                      usage can be transferred to the new item.
                      If a new item of the same product does not exist,
                      or does not have a metered billing plan,
                      this transfer is ignored.
                    example: prod_0YV7DENSVGDBW9S71XZNNYYQ0X
                  policy:
                    type: string
                    enum:
                      - reset
                      - transfer
                    description: Policy for removed items that have a metered billing plan.
                    x-enumDescriptions:
                      reset: Delete existing usages.
                      transfer: Transfer usages from removed item to new item of the same product.
            autopay:
              type:
                - boolean
                - 'null'
              description: |-
                Specifies if payment attempts for the related order are made automatically.
                If autopay is enabled, the payment is retrieved from the customer on the renewal date using the payment instrument that is set at `paymentInstrumentId`,
                or the default payment instrument on the order.
                If this value is `null`, the related order autopay is not affected.
            shipping:
              description: |-
                Shipping settings of the order.
                If this value is omitted, the order shipping is not affected.
              allOf:
                - $ref: '#/components/schemas/Shipping'
            deliveryAddress:
              description: |-
                Delivery address of the order.
                If this value is `null`, the order delivery address is not affected.
              oneOf:
                - $ref: '#/components/schemas/ContactObject'
                - type: 'null'
            billingAddress:
              description: |-
                Billing address of the order.
                If this value is `null`, the order billing address is not affected.
              oneOf:
                - $ref: '#/components/schemas/ContactObject'
                - type: 'null'
        invoicePreview:
          type: object
          description: Preview of the quote invoice.
          readOnly: true
          properties:
            currency:
              description: Currency of the invoice.
              $ref: '#/components/schemas/CurrencyCode'
            initialAmounts:
              type: object
              description: Total amounts of the initial invoice.
              properties:
                amount:
                  description: Amount of the invoice.
                  type: number
                  x-type: Money
                  format: double
                subtotalAmount:
                  description: Subtotal amount of the invoice.
                  type: number
                  x-type: Money
                  format: double
                discountAmount:
                  description: Discount amount that is applied to the invoice.
                  type: number
                  x-type: Money
                  format: double
                shippingAmount:
                  description: Shipping amount that is applied to the invoice.
                  type: number
                  x-type: Money
                  format: double
                taxAmount:
                  description: Tax amount that is applied to the invoice.
                  type: number
                  x-type: Money
                  format: double
            recurringAmounts:
              type:
                - object
                - 'null'
              description: |-
                Total amounts of the recurring invoice.
                This includes recurring items only.
                If the quote does not have recurring items, the value of this field is `null`.
              properties:
                amount:
                  description: Amount of the invoice.
                  type: number
                  x-type: Money
                  format: double
                subtotalAmount:
                  description: Subtotal amount of the invoice.
                  type: number
                  x-type: Money
                  format: double
                discountAmount:
                  description: Discount amount that is applied to the invoice.
                  type: number
                  x-type: Money
                  format: double
                shippingAmount:
                  description: Shipping amount that is applied to the invoice.
                  type: number
                  x-type: Money
                  format: double
                taxAmount:
                  description: Tax amount that is applied to the invoice.
                  type: number
                  x-type: Money
                  format: double
            items:
              type: array
              description: Invoice items.
              items:
                type: object
                properties:
                  quoteItemId:
                    description: ID of the related quote item.
                    type: string
                    example: qt_itm_01HXCEQNR3F1G2A6RX6HPS3KFY
                  type:
                    type: string
                    description: Type of the invoice item.
                    x-basic: true
                    enum:
                      - debit
                      - credit
                  name:
                    description: Name of the invoice item.
                    type: string
                    maxLength: 1000
                  description:
                    description: Description of the invoice item.
                    type: string
                    example: Charge per approved transaction with DCC
                    maxLength: 255
                  priceDescription:
                    type: string
                    description: Price description of the invoice item.
                    example: 50% of the markup for approved transactions
                    maxLength: 255
                  unitPrice:
                    description: Unit price of the invoice item.
                    type:
                      - number
                      - 'null'
                    format: double
                  quantity:
                    description: Quantity of the invoice item.
                    type: integer
                  period:
                    description: Date interval of the invoice item.
                    type:
                      - string
                      - 'null'
                  setupUnitPrice:
                    description: Unit price of the invoice item.
                    type:
                      - number
                      - 'null'
                    format: double
                  trialUnitPrice:
                    description: Unit price of the invoice item.
                    type:
                      - number
                      - 'null'
                    format: double
                  trialPeriod:
                    description: Date interval of the invoice item trial.
                    type:
                      - string
                      - 'null'
                  taxAmount:
                    description: Tax amount of the invoice item.
                    type:
                      - number
                      - 'null'
                    format: double
                  setupTaxAmount:
                    description: Tax amount of the setup that is applied to the invoice.
                    type:
                      - number
                      - 'null'
                    format: double
                  trialTaxAmount:
                    description: Tax amount of the trial that is applied to the invoice.
                    type:
                      - number
                      - 'null'
                    format: double
        paymentTerms:
          description: Payment terms for the customer which are displayed on the quote.
          type: string
        expirationTime:
          description: |-
            Date and time when the quote expires.
            A new or updated expiration time must be later than the current time.
            The default expiration time is one month from the time the quote is issued.
            In a `draft` state, this field may be `null`.
          type:
            - string
            - 'null'
          format: date-time
        issuedTime:
          description: Date and time when the quote is issued.
          type:
            - string
            - 'null'
          readOnly: true
          format: date-time
        acceptedTime:
          description: Date and time when the quote is accepted.
          type:
            - string
            - 'null'
          readOnly: true
          format: date-time
        rejectedTime:
          description: Date and time when the quote is rejected.
          type:
            - string
            - 'null'
          readOnly: true
          format: date-time
        canceledTime:
          description: Date and time when the quote is canceled.
          type:
            - string
            - 'null'
          readOnly: true
          format: date-time
        createdTime:
          $ref: '#/components/schemas/CreatedTime'
        updatedTime:
          $ref: '#/components/schemas/UpdatedTime'
        redirectUrl:
          description: |-
            URL to redirect the customer to when a quote is rejected.
            The default value is the website URL.
          type: string
          maxLength: 2083
          format: uri
        signature:
          type: object
          description: Written signature and printed organization name.
          properties:
            showWrittenSignatureLines:
              type: boolean
              default: false
              description: Specifies whether to show written signature lines.
            organizationPrintedName:
              type:
                - string
                - 'null'
              description: Printed name of the organization.
              default: null
        tax:
          $ref: '#/components/schemas/Taxes'
        couponIds:
          type:
            - array
            - 'null'
          description: |-
            List of coupons to redeem on the customer and apply to the related invoice.

            For more information, see [Coupons](https://www.rebilly.com/docs/settings/coupons-and-discounts/).
          items:
            type: string
            description: Coupon ID.
        _links:
          type: array
          description: Related links.
          readOnly: true
          items:
            type: object
            properties:
              href:
                description: Link URL.
                type: string
              rel:
                description: |-
                  Type of link.
                  If the quote is issued, a customer can be redirected to the `invoicePaymentFormUrl` value
                  to pay the related invoice using one of the methods which are available to the customer.
                type: string
                enum:
                  - self
                  - quoteAcceptanceFormUrl
                  - invoicePaymentFormUrl
        _embedded:
          type: object
          description: Embedded objects that are requested by the `expand` query parameter.
          readOnly: true
          properties:
            customer:
              type: object
            website:
              type: object
            order:
              type: object
            invoice:
              type: object
    ReactivationQuote:
      type: object
      title: ReactivationQuote
      required:
        - websiteId
        - customerId
        - order
        - type
      properties:
        id:
          readOnly: true
          description: ID of the quote.
          type: string
          maxLength: 50
          example: qt_01HXBZMEGPETPHJZH6V4RHBMA8
        type:
          description: |-
            Type of the quote.
            When a quote is accepted, quote items and settings are applied to the order and the order is reactivated.
          type: string
          enum:
            - reactivation
        acceptanceConditions:
          type: array
          writeOnly: true
          description: Conditions that must be met for the quote to be automatically accepted.
          items:
            type: string
            enum:
              - customer
              - payment
            x-enumDescriptions:
              customer: Quote can be accepted by customer.
              payment: Related invoice must be paid in full.
          example:
            - payment
          default:
            - customer
        acceptanceFulfillment:
          type: array
          readOnly: true
          description: List of `acceptanceConditions` with fulfillment status.
          items:
            type: object
            properties:
              condition:
                type: string
                enum:
                  - customer
                  - payment
                  - organization
              isFulfilled:
                type: boolean
        isNewOrder:
          description: Specifies if the order is a new order.
          type: boolean
          readOnly: true
          example: true
        invoiceId:
          type: string
          description: ID of the payment invoice.
          readOnly: true
          maxLength: 50
          example: in_0YVF9605RKC62BP14NE2R7V2XT
        status:
          description: Status of the quote.
          type: string
          readOnly: true
          enum:
            - draft
            - issued
            - accepted
            - rejected
            - canceled
            - expired
          x-enumDescriptions:
            draft: Quote can be edited. This quote cannot be sent to a customer.
            issued: Quote cannot be edited. This quote can be sent to a customer.
            accepted: Customer accepted the quote. The related order is reactivated and quote items and settings are applied to the order.
            rejected: Customer rejected the quote.
            canceled: Organization or customer canceled the quote.
            expired: Expired before customer or organization interaction.
        websiteId:
          $ref: '#/components/schemas/WebsiteId'
        customerId:
          $ref: '#/components/schemas/CustomerId'
        order:
          type: object
          description: Properties of the related order.
          required:
            - id
            - items
          properties:
            id:
              description: ID of the related order.
              type: string
              maxLength: 50
              example: ord_01HVKA5975PJBSQ1SX72G3MSZC
            items:
              type: array
              description: Items included in the quote.
              minItems: 1
              items:
                $ref: '#/components/schemas/QuoteItem'
            effectiveTime:
              description: |-
                Date and time when the service period starts,
                unless the order is canceled but still active.
                If the order is still active,
                the order continues for the current service period.

                If this field is omitted, this value defaults to the current time.
              type:
                - string
                - 'null'
              format: date-time
            renewalTime:
              description: |-
                Date and time of the next order renewal.
                If this field is omitted, this value is computed from the `effectiveTime` field.

                If the order is canceled but still active,
                it is ignored and the next renewal occurs as scheduled.
              type:
                - string
                - 'null'
              format: date-time
            paymentInstrumentId:
              description: |-
                ID of the payment instrument.
                If this field is omitted, the order payment instrument remains unchanged.
              type:
                - string
                - 'null'
              maxLength: 50
              example: inst_0YVB8KPKNXCBR9EDX7JHSED75N
            autopay:
              type:
                - boolean
                - 'null'
              description: |-
                Specifies if payment attempts for the related order are made automatically.
                If autopay is enabled, the payment is retrieved from the customer on the renewal date using the payment instrument that is set at `paymentInstrumentId`,
                or the default payment instrument on the order.
                If this value is `null`, the related order autopay is not affected.
            includeUnpaidInvoices:
              type: boolean
              default: false
              example: false
              description: |-
                Specifies whether the quote invoice includes items from outstanding unpaid and past-due invoices for the related order.
                When this value is `true`, the quote invoice includes charges for eligible items from those invoices.
                When the quote is accepted, only invoices included in the quote that remain unpaid or past due and can be voided are voided.
            shipping:
              description: |-
                Shipping settings of the order.
                If this value is omitted, the order shipping is not affected.
              allOf:
                - $ref: '#/components/schemas/Shipping'
            deliveryAddress:
              description: |-
                Delivery address of the order.
                If this value is `null`, the order delivery address is not affected.
              oneOf:
                - $ref: '#/components/schemas/ContactObject'
                - type: 'null'
            billingAddress:
              description: |-
                Billing address of the order.
                If this value is `null`, the order billing address is not affected.
              oneOf:
                - $ref: '#/components/schemas/ContactObject'
                - type: 'null'
        invoicePreview:
          type: object
          description: Preview of the quote invoice.
          readOnly: true
          properties:
            currency:
              description: Currency of the invoice.
              $ref: '#/components/schemas/CurrencyCode'
            initialAmounts:
              type: object
              description: Total amounts of the initial invoice.
              properties:
                amount:
                  description: Amount of the invoice.
                  type: number
                  x-type: Money
                  format: double
                subtotalAmount:
                  description: Subtotal amount of the invoice.
                  type: number
                  x-type: Money
                  format: double
                discountAmount:
                  description: Discount amount that is applied to the invoice.
                  type: number
                  x-type: Money
                  format: double
                shippingAmount:
                  description: Shipping amount that is applied to the invoice.
                  type: number
                  x-type: Money
                  format: double
                taxAmount:
                  description: Tax amount that is applied to the invoice.
                  type: number
                  x-type: Money
                  format: double
            recurringAmounts:
              type:
                - object
                - 'null'
              description: |-
                Total amounts of the recurring invoice.
                This includes recurring items only.
                If the quote does not have recurring items, the value of this field is `null`.
              properties:
                amount:
                  description: Amount of the invoice.
                  type: number
                  x-type: Money
                  format: double
                subtotalAmount:
                  description: Subtotal amount of the invoice.
                  type: number
                  x-type: Money
                  format: double
                discountAmount:
                  description: Discount amount that is applied to the invoice.
                  type: number
                  x-type: Money
                  format: double
                shippingAmount:
                  description: Shipping amount that is applied to the invoice.
                  type: number
                  x-type: Money
                  format: double
                taxAmount:
                  description: Tax amount that is applied to the invoice.
                  type: number
                  x-type: Money
                  format: double
            items:
              type: array
              description: Invoice items.
              items:
                type: object
                properties:
                  quoteItemId:
                    description: ID of the related quote item.
                    type: string
                    example: qt_itm_01HXCEQNR3F1G2A6RX6HPS3KFY
                  type:
                    type: string
                    description: Type of the invoice item.
                    x-basic: true
                    enum:
                      - debit
                      - credit
                  name:
                    description: Name of the invoice item.
                    type: string
                    maxLength: 1000
                  description:
                    description: Description of the invoice item.
                    type: string
                    example: Charge per approved transaction with DCC
                    maxLength: 255
                  priceDescription:
                    type: string
                    description: Price description of the invoice item.
                    example: 50% of the markup for approved transactions
                    maxLength: 255
                  unitPrice:
                    description: Unit price of the invoice item.
                    type:
                      - number
                      - 'null'
                    format: double
                  quantity:
                    description: Quantity of the invoice item.
                    type: integer
                  period:
                    description: Date interval of the invoice item.
                    type:
                      - string
                      - 'null'
                  setupUnitPrice:
                    description: Unit price of the invoice item.
                    type:
                      - number
                      - 'null'
                    format: double
                  trialUnitPrice:
                    description: Unit price of the invoice item.
                    type:
                      - number
                      - 'null'
                    format: double
                  trialPeriod:
                    description: Date interval of the invoice item trial.
                    type:
                      - string
                      - 'null'
                  taxAmount:
                    description: Tax amount of the invoice item.
                    type:
                      - number
                      - 'null'
                    format: double
                  setupTaxAmount:
                    description: Tax amount of the setup that is applied to the invoice.
                    type:
                      - number
                      - 'null'
                    format: double
                  trialTaxAmount:
                    description: Tax amount of the trial that is applied to the invoice.
                    type:
                      - number
                      - 'null'
                    format: double
        paymentTerms:
          description: Payment terms for the customer which are displayed on the quote.
          type: string
        expirationTime:
          description: |-
            Date and time when the quote expires.
            A new or updated expiration time must be later than the current time.
            The default expiration time is one month from the time the quote is issued.
            In a `draft` state, this field may be `null`.
          type:
            - string
            - 'null'
          format: date-time
        issuedTime:
          description: Date and time when the quote is issued.
          type:
            - string
            - 'null'
          readOnly: true
          format: date-time
        acceptedTime:
          description: Date and time when the quote is accepted.
          type:
            - string
            - 'null'
          readOnly: true
          format: date-time
        rejectedTime:
          description: Date and time when the quote is rejected.
          type:
            - string
            - 'null'
          readOnly: true
          format: date-time
        canceledTime:
          description: Date and time when the quote is canceled.
          type:
            - string
            - 'null'
          readOnly: true
          format: date-time
        createdTime:
          $ref: '#/components/schemas/CreatedTime'
        updatedTime:
          $ref: '#/components/schemas/UpdatedTime'
        redirectUrl:
          description: |-
            URL to redirect the customer to when a quote is rejected.
            The default value is the website URL.
          type: string
          maxLength: 2083
          format: uri
        signature:
          type: object
          description: Written signature and printed organization name.
          properties:
            showWrittenSignatureLines:
              type: boolean
              default: false
              description: Specifies whether to show written signature lines.
            organizationPrintedName:
              type:
                - string
                - 'null'
              description: Printed name of the organization.
              default: null
        tax:
          $ref: '#/components/schemas/Taxes'
        couponIds:
          type:
            - array
            - 'null'
          description: |-
            List of coupons to redeem on the customer and apply to the related invoice.

            For more information, see [Coupons](https://www.rebilly.com/docs/settings/coupons-and-discounts/).
          items:
            type: string
            description: Coupon ID.
        _links:
          type: array
          description: Related links.
          readOnly: true
          items:
            type: object
            properties:
              href:
                description: Link URL.
                type: string
              rel:
                description: |-
                  Type of link.
                  If the quote is issued, a customer can be redirected to the `invoicePaymentFormUrl` value
                  to pay the related invoice using one of the methods which are available to the customer.
                type: string
                enum:
                  - self
                  - quoteAcceptanceFormUrl
                  - invoicePaymentFormUrl
        _embedded:
          type: object
          description: Embedded objects that are requested by the `expand` query parameter.
          readOnly: true
          properties:
            customer:
              type: object
            website:
              type: object
            order:
              type: object
            invoice:
              type: object
    Quote:
      discriminator:
        propertyName: type
        mapping:
          creation: '#/components/schemas/CreationQuote'
          change: '#/components/schemas/ChangeQuote'
          reactivation: '#/components/schemas/ReactivationQuote'
      oneOf:
        - $ref: '#/components/schemas/CreationQuote'
        - $ref: '#/components/schemas/ChangeQuote'
        - $ref: '#/components/schemas/ReactivationQuote'
    QuoteReissue:
      type: object
      properties:
        expirationTime:
          description: |-
            Date and time when the reissued quote expires.
            A new expiration time must be later than the current time.
            If this field is `null` or omitted and the current expiration time has not passed, the current expiration time is retained.
            If this field is `null` or omitted and the current expiration time has passed, the quote expires one month after it is reissued.
          type:
            - string
            - 'null'
          format: date-time
  responses:
    Unauthorized:
      description: |-
        Unauthorized access.
        Invalid credentials used.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Unauthorized'
    Forbidden:
      description: |-
        Access forbidden.
        If the organization requires multi-factor authentication (MFA) and the session has not passed MFA, `error` is `mfa_required`.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Forbidden'
    NotFound:
      description: Resource not found.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/NotFound'
    ValidationError:
      description: Invalid data sent.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ValidationError'
    TooManyRequests:
      description: Request rate limit exceeded.
      headers:
        Rate-Limit-Limit:
          $ref: '#/components/headers/Rate-Limit-Limit'
        Rate-Limit-Remaining:
          description: |-
            Number of requests still available for this rate limit.
            For more information, see [Rate limits](#section/Rate-limits).
          schema:
            type: integer
          example: 0
        Rate-Limit-Retry-After:
          $ref: '#/components/headers/Rate-Limit-Retry-After'
        Retry-After:
          description: Number of seconds to wait before retrying the request.
          schema:
            type: integer
          example: 1
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/TooManyRequests'
    Conflict:
      description: Conflict.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Conflict'
```
