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

# Accept execution quote

> Accepts your quote with trades:create; no body or separate idempotency key is needed. Retry uncertain responses with the same quote ID. Returns 409 for expired unaccepted quotes and 404 for unknown or unowned quotes. Fills may be partial; unfilled amounts are cancelled. Check order_id for the final result.



## OpenAPI

````yaml /openapi/openapi.json post /partner/exchange/quotes/{quote_id}/accept
openapi: 3.1.0
info:
  title: Stabyl API
  description: >-
    REST API for approved Stabyl accounts to automate exchange, wallet, and
    non-production simulation workflows.
  contact:
    name: Stabyl Support
    email: support@stabyl.com
  license:
    name: Proprietary
  version: 1.0.0
servers:
  - url: https://api.stabyl.com/v1
    description: Production
  - url: https://api-staging.stabyl.com/v1
    description: Staging
security: []
tags:
  - name: Exchange
    description: Trading market data and order management for account automation.
  - name: Wallets
    description: >-
      Supported routes, deposit destinations, balances, transactions, and saved
      recipients.
  - name: Webhooks
    description: >-
      Outbound event delivery configuration and eventually consistent delivery
      history. Verify Standard Webhooks webhook-id, webhook-timestamp, and
      webhook-signature headers against the unchanged raw request body before
      parsing JSON.
  - name: Simulation
    description: Non-production endpoints for testing integration behavior.
paths:
  /partner/exchange/quotes/{quote_id}/accept:
    post:
      tags:
        - Exchange
      summary: Accept execution quote
      description: >-
        Accepts your quote with trades:create; no body or separate idempotency
        key is needed. Retry uncertain responses with the same quote ID. Returns
        409 for expired unaccepted quotes and 404 for unknown or unowned quotes.
        Fills may be partial; unfilled amounts are cancelled. Check order_id for
        the final result.
      operationId: post_partner_exchange_quotes_quote_id_accept
      parameters:
        - name: quote_id
          in: path
          description: Quote ID returned by quote creation
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                required:
                  - status
                  - data
                properties:
                  data:
                    $ref: '#/components/schemas/AcceptSwapQuoteResponse'
                  status:
                    type: string
                    enum:
                      - success
              example:
                data:
                  accepted_at: '2026-09-29T12:00:10Z'
                  order_id: 01999a40-0000-7000-8000-000000000001
                  quote_id: 01999a40-0000-7000-8000-000000000001
                  status: pending
                status: success
        '400':
          description: ''
          content:
            application/json:
              schema:
                type: object
                required:
                  - status
                  - error
                properties:
                  error:
                    type: object
                    required:
                      - code
                      - message
                    properties:
                      code:
                        type: string
                        example: VALIDATION_FAILED
                      message:
                        type: string
                        example: invalid request parameters
                  status:
                    type: string
                    enum:
                      - error
              example:
                error:
                  code: VALIDATION_FAILED
                  message: invalid request parameters
                status: error
        '401':
          description: ''
          content:
            application/json:
              schema:
                type: object
                required:
                  - status
                  - error
                properties:
                  error:
                    type: object
                    required:
                      - code
                      - message
                    properties:
                      code:
                        type: string
                        example: UNAUTHORIZED
                      message:
                        type: string
                        example: missing X-Api-Key header
                  status:
                    type: string
                    enum:
                      - error
              example:
                error:
                  code: UNAUTHORIZED
                  message: missing X-Api-Key header
                status: error
        '403':
          description: ''
          content:
            application/json:
              schema:
                type: object
                required:
                  - status
                  - error
                properties:
                  error:
                    type: object
                    required:
                      - code
                      - message
                    properties:
                      code:
                        type: string
                        example: FORBIDDEN
                      message:
                        type: string
                        example: request is not allowed
                  status:
                    type: string
                    enum:
                      - error
              example:
                error:
                  code: FORBIDDEN
                  message: request is not allowed
                status: error
        '404':
          description: ''
          content:
            application/json:
              schema:
                type: object
                required:
                  - status
                  - error
                properties:
                  error:
                    type: object
                    required:
                      - code
                      - message
                    properties:
                      code:
                        type: string
                        example: NOT_FOUND
                      message:
                        type: string
                        example: quote not found
                  status:
                    type: string
                    enum:
                      - error
              example:
                error:
                  code: NOT_FOUND
                  message: quote not found
                status: error
        '409':
          description: ''
          content:
            application/json:
              schema:
                type: object
                required:
                  - status
                  - error
                properties:
                  error:
                    type: object
                    required:
                      - code
                      - message
                    properties:
                      code:
                        type: string
                        example: CONFLICT
                      message:
                        type: string
                        example: quote expired; request a fresh quote
                  status:
                    type: string
                    enum:
                      - error
              example:
                error:
                  code: CONFLICT
                  message: quote expired; request a fresh quote
                status: error
      security:
        - api_key: []
components:
  schemas:
    AcceptSwapQuoteResponse:
      type: object
      required:
        - quote_id
        - order_id
        - status
        - accepted_at
      properties:
        accepted_at:
          type: string
        order_id:
          type: string
          format: uuid
        quote_id:
          type: string
          format: uuid
        status:
          type: string
  securitySchemes:
    api_key:
      type: apiKey
      in: header
      name: X-Api-Key
      description: >-
        API credential. Withdrawal quote and submit operations additionally
        require the documented Ed25519 timestamp, nonce, and signature headers.
      x-default: sb_test_your_key

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.