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

# Execute a quote

> Locks the quote and submits the provider-side trade (LEG_1). The returned trade is PENDING — settlement (LEG_2 payout) is driven entirely by provider webhooks, never by this response.




## OpenAPI

````yaml /api-reference/openapi.json post /v1/otc/quotes/{id}/execute
openapi: 3.0.3
info:
  title: XentFi API
  version: 1.0.0
  description: >-
    API documentation for XentFi.The XentFi API gives you access to pretty much
    all the features you can use on our dashboard and lets you extend them for
    use in your application. It strives to be RESTful and is organized around
    the main resources you would be interacting with - with a few notable
    exceptions.
servers:
  - url: https://api.xentfi.com
    description: Production server
security: []
tags: []
paths:
  /v1/otc/quotes/{id}/execute:
    post:
      tags:
        - OTC
      summary: Execute a quote
      description: >
        Locks the quote and submits the provider-side trade (LEG_1). The
        returned trade is PENDING — settlement (LEG_2 payout) is driven entirely
        by provider webhooks, never by this response.
      operationId: executeOtcQuote
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - destination
              properties:
                destination:
                  type: object
                  description: Bank or on-chain destination for the settlement leg
                idempotencyKey:
                  type: string
                  description: >-
                    Optional caller-supplied idempotency key for the trade
                    execution
      responses:
        '202':
          description: Trade execution submitted
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      id:
                        type: string
                        format: uuid
                      otcQuoteId:
                        type: string
                        format: uuid
                      status:
                        type: string
                        enum:
                          - PENDING_LEG_1
                          - LEG_1_COMPLETE
                          - PENDING_LEG_2
                          - SETTLED
                          - FAILED
                      providerTradeId:
                        type: string
                        nullable: true
                      providerPayoutId:
                        type: string
                        nullable: true
                      failureReason:
                        type: string
                        nullable: true
                      settledAt:
                        type: string
                        format: date-time
                        nullable: true
                      createdAt:
                        type: string
                        format: date-time
        '409':
          description: Quote already executed or expired
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        example: NOT_FOUND
                      message:
                        type: string
                        example: Wallet not found
                      timestamp:
                        type: string
                        format: date-time
                      requestId:
                        type: string
      security:
        - ApiKeyAuth: []
          OrgIdAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: apiKey
    OrgIdAuth:
      type: apiKey
      in: header
      name: orgId

````

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