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

# Answer an offer

> <Badge color="blue" shape="pill">EA</Badge> Early Availability: this endpoint may change before GA.

Responds to an incoming Canton offer. Set `responseType` to one of the values in the offer transaction's `cantonDetails.offerResponse.availableResponses`.



## OpenAPI

````yaml https://swagger.fireblocks.com/openapi.yaml post /operations/canton/offers/{offerId}/responses
openapi: 3.0.0
info:
  title: Fireblocks API
  description: >
    Fireblocks provides a suite of applications to manage digital asset
    operations and a complete development platform to build your business on the
    blockchain.


    - Visit our website for more information: [Fireblocks
    Website](https://fireblocks.com)

    - Visit our developer docs: [Fireblocks
    DevPortal](https://developers.fireblocks.com)
  version: 1.6.2
  contact:
    email: developers@fireblocks.com
servers:
  - url: https://api.fireblocks.io/v1
    description: Fireblocks Production Environment Base URL
  - url: https://sandbox-api.fireblocks.io/v1
    description: Fireblocks Sandbox Environment Base URL
security: []
paths:
  /operations/canton/offers/{offerId}/responses:
    post:
      tags:
        - Canton
      summary: Answer an offer
      description: >-
        <Badge color="blue" shape="pill">EA</Badge> Early Availability: this
        endpoint may change before GA.


        Responds to an incoming Canton offer. Set `responseType` to one of the
        values in the offer transaction's
        `cantonDetails.offerResponse.availableResponses`.
      operationId: respondToCantonOffer
      parameters:
        - in: path
          name: offerId
          required: true
          description: The Fireblocks transaction id of the incoming offer being answered.
          schema:
            type: string
            example: 5a1d8b0f-2c31-4c7e-9d0a-118e7b6c4a21
        - $ref: '#/components/parameters/X-Idempotency-Key'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OfferResponse'
      responses:
        '201':
          description: >-
            The outgoing transaction that carries the response. Its on-chain
            outcome arrives by webhook as a status update on this transaction.
          headers:
            X-Request-ID:
              $ref: '#/components/headers/X-Request-ID'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OfferResponseAccepted'
        '400':
          description: >-
            Unknown or missing responseType, or a missing required payload
            field, or the response is not available to this workspace's side of
            the offer (a sender sending accept/reject, a receiver sending
            withdraw)
          headers:
            X-Request-ID:
              $ref: '#/components/headers/X-Request-ID'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorSchema'
        '404':
          description: Unknown offer id for this tenant
          headers:
            X-Request-ID:
              $ref: '#/components/headers/X-Request-ID'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorSchema'
        '409':
          description: >-
            The offer cannot take this response now. An accept or reject: the
            offer is already answered, expired, or a response is in flight.
            ALLOCATION_WITHDRAW — which is sent AFTER the accept, on the same
            offer: the allocation is not ALLOCATED, because the accept has not
            settled yet, or it was already withdrawn or settled by the venue.
            The message names the state.
          headers:
            X-Request-ID:
              $ref: '#/components/headers/X-Request-ID'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorSchema'
        '501':
          description: This responseType is not yet available
          headers:
            X-Request-ID:
              $ref: '#/components/headers/X-Request-ID'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorSchema'
        default:
          $ref: '#/components/responses/Error'
      x-codeSamples:
        - lang: TypeScript
          source: >-
            const response: Promise<FireblocksResponse<OfferResponseAccepted>> =
            fireblocks.canton.respondToCantonOffer(cantonApiRespondToCantonOfferRequest);
        - lang: Java
          source: >-
            CompletableFuture<ApiResponse<OfferResponseAccepted>> response =
            fireblocks.canton().respondToCantonOffer(offerResponse, offerId,
            idempotencyKey);
        - lang: Python
          source: >-
            response = fireblocks.canton.respond_to_canton_offer(offer_response,
            offer_id, idempotency_key);
components:
  parameters:
    X-Idempotency-Key:
      name: Idempotency-Key
      in: header
      description: >-
        A unique identifier for the request. If the request is sent multiple
        times with the same idempotency key, the server will return the same
        response as the first request. The idempotency key is valid for 24
        hours.
      required: false
      schema:
        type: string
  schemas:
    OfferResponse:
      oneOf:
        - $ref: '#/components/schemas/OfferResponseDtccOnboardingAccept'
        - $ref: '#/components/schemas/OfferResponseDtccOnboardingReject'
        - $ref: '#/components/schemas/OfferResponseTradewebAccept'
        - $ref: '#/components/schemas/OfferResponseTradewebReject'
        - $ref: '#/components/schemas/OfferResponseAllocationAccept'
        - $ref: '#/components/schemas/OfferResponseAllocationReject'
        - $ref: '#/components/schemas/OfferResponseTransferAccept'
        - $ref: '#/components/schemas/OfferResponseTransferReject'
        - $ref: '#/components/schemas/OfferResponseTransferWithdraw'
        - $ref: '#/components/schemas/OfferResponseAllocationWithdraw'
      discriminator:
        propertyName: responseType
        mapping:
          DTCC_END_INVESTOR_ONBOARDING_ACCEPT: '#/components/schemas/OfferResponseDtccOnboardingAccept'
          DTCC_END_INVESTOR_ONBOARDING_REJECT: '#/components/schemas/OfferResponseDtccOnboardingReject'
          TRADEWEB_COSIGNING_DELEGATION_ACCEPT: '#/components/schemas/OfferResponseTradewebAccept'
          TRADEWEB_COSIGNING_DELEGATION_REJECT: '#/components/schemas/OfferResponseTradewebReject'
          ALLOCATION_ACCEPT: '#/components/schemas/OfferResponseAllocationAccept'
          ALLOCATION_REJECT: '#/components/schemas/OfferResponseAllocationReject'
          TRANSFER_ACCEPT: '#/components/schemas/OfferResponseTransferAccept'
          TRANSFER_REJECT: '#/components/schemas/OfferResponseTransferReject'
          TRANSFER_WITHDRAW: '#/components/schemas/OfferResponseTransferWithdraw'
          ALLOCATION_WITHDRAW: '#/components/schemas/OfferResponseAllocationWithdraw'
    OfferResponseAccepted:
      type: object
      description: >-
        The outgoing transaction that carries the response. Its on-chain outcome
        arrives by webhook as a status update on this transaction.
      properties:
        transactionId:
          type: string
          example: 5a1d8b0f-2c31-4c7e-9d0a-118e7b6c4a21
          description: The outgoing response transaction.
        status:
          type: string
          example: SUBMITTED
          description: The transaction's status at the time of this response — `SUBMITTED`.
        responseType:
          type: string
          example: DTCC_END_INVESTOR_ONBOARDING_REJECT
          description: >-
            The response type you sent, echoed back so you can correlate without
            re-reading.
      required:
        - transactionId
        - status
        - responseType
    ErrorSchema:
      type: object
      properties:
        message:
          type: string
        code:
          type: number
    OfferResponseDtccOnboardingAccept:
      type: object
      additionalProperties: false
      properties:
        responseType:
          type: string
          enum:
            - DTCC_END_INVESTOR_ONBOARDING_ACCEPT
          example: DTCC_END_INVESTOR_ONBOARDING_ACCEPT
          description: >-
            How you are answering the offer — one of the offer transaction's
            `cantonDetails.offerResponse.availableResponses`. That list does not
            change after the offer arrives; check `expiresAt` and the
            transaction status to see whether it is still answerable.
      required:
        - responseType
      description: Accept a DTCC end-investor onboarding offer. Carries no arguments.
    OfferResponseDtccOnboardingReject:
      type: object
      additionalProperties: false
      properties:
        responseType:
          type: string
          enum:
            - DTCC_END_INVESTOR_ONBOARDING_REJECT
          example: DTCC_END_INVESTOR_ONBOARDING_REJECT
          description: >-
            How you are answering the offer — one of the offer transaction's
            `cantonDetails.offerResponse.availableResponses`. That list does not
            change after the offer arrives; check `expiresAt` and the
            transaction status to see whether it is still answerable.
        payload:
          $ref: '#/components/schemas/DtccOnboardingRejectPayload'
      required:
        - responseType
        - payload
      description: Reject a DTCC end-investor onboarding offer.
    OfferResponseTradewebAccept:
      type: object
      additionalProperties: false
      properties:
        responseType:
          type: string
          enum:
            - TRADEWEB_COSIGNING_DELEGATION_ACCEPT
          example: TRADEWEB_COSIGNING_DELEGATION_ACCEPT
          description: >-
            How you are answering the offer — one of the offer transaction's
            `cantonDetails.offerResponse.availableResponses`. That list does not
            change after the offer arrives; check `expiresAt` and the
            transaction status to see whether it is still answerable.
      required:
        - responseType
      description: Accept a Tradeweb co-signing delegation offer. Carries no arguments.
    OfferResponseTradewebReject:
      type: object
      additionalProperties: false
      properties:
        responseType:
          type: string
          enum:
            - TRADEWEB_COSIGNING_DELEGATION_REJECT
          example: TRADEWEB_COSIGNING_DELEGATION_REJECT
          description: >-
            How you are answering the offer — one of the offer transaction's
            `cantonDetails.offerResponse.availableResponses`. That list does not
            change after the offer arrives; check `expiresAt` and the
            transaction status to see whether it is still answerable.
      required:
        - responseType
      description: >-
        Reject a Tradeweb co-signing delegation offer. Carries no arguments —
        Tradeweb does not record a reject reason on the ledger, so none is
        accepted.
    OfferResponseAllocationAccept:
      type: object
      additionalProperties: false
      properties:
        responseType:
          type: string
          enum:
            - ALLOCATION_ACCEPT
          example: ALLOCATION_ACCEPT
          description: >-
            How you are answering the offer — one of the offer transaction's
            `cantonDetails.offerResponse.availableResponses`. That list does not
            change after the offer arrives; check `expiresAt` and the
            transaction status to see whether it is still answerable.
      required:
        - responseType
      description: Accept a CIP-56 allocation request. Carries no arguments.
    OfferResponseAllocationReject:
      type: object
      additionalProperties: false
      properties:
        responseType:
          type: string
          enum:
            - ALLOCATION_REJECT
          example: ALLOCATION_REJECT
          description: >-
            How you are answering the offer — one of the offer transaction's
            `cantonDetails.offerResponse.availableResponses`. That list does not
            change after the offer arrives; check `expiresAt` and the
            transaction status to see whether it is still answerable.
      required:
        - responseType
      description: Reject a CIP-56 allocation request. Carries no arguments.
    OfferResponseTransferAccept:
      type: object
      additionalProperties: false
      properties:
        responseType:
          type: string
          enum:
            - TRANSFER_ACCEPT
          example: TRANSFER_ACCEPT
          description: >-
            How you are answering the offer — one of the offer transaction's
            `cantonDetails.offerResponse.availableResponses`. That list does not
            change after the offer arrives; check `expiresAt` and the
            transaction status to see whether it is still answerable.
      required:
        - responseType
      description: Accept an inbound 2-step transfer offer. Carries no arguments.
    OfferResponseTransferReject:
      type: object
      additionalProperties: false
      properties:
        responseType:
          type: string
          enum:
            - TRANSFER_REJECT
          example: TRANSFER_REJECT
          description: >-
            How you are answering the offer — one of the offer transaction's
            `cantonDetails.offerResponse.availableResponses`. That list does not
            change after the offer arrives; check `expiresAt` and the
            transaction status to see whether it is still answerable.
      required:
        - responseType
      description: Reject an inbound 2-step transfer offer. Carries no arguments.
    OfferResponseTransferWithdraw:
      type: object
      additionalProperties: false
      properties:
        responseType:
          type: string
          enum:
            - TRANSFER_WITHDRAW
          example: TRANSFER_WITHDRAW
          description: >-
            How you are answering the offer — one of the offer transaction's
            `cantonDetails.offerResponse.availableResponses`. That list does not
            change after the offer arrives; check `expiresAt` and the
            transaction status to see whether it is still answerable.
      required:
        - responseType
      description: >-
        Withdraw your own outgoing transfer offer. Carries no arguments —
        `offerId` in the path identifies the offer, and the vault account and
        blockchain are resolved from it.
    OfferResponseAllocationWithdraw:
      type: object
      additionalProperties: false
      properties:
        responseType:
          type: string
          enum:
            - ALLOCATION_WITHDRAW
          example: ALLOCATION_WITHDRAW
          description: >-
            How you are answering the offer — one of the offer transaction's
            `cantonDetails.offerResponse.availableResponses`. That list does not
            change after the offer arrives; check `expiresAt` and the
            transaction status to see whether it is still answerable.
      required:
        - responseType
      description: >-
        Withdraw the allocation you made by accepting this offer, unlocking the
        holding. Carries no arguments — the allocation is resolved from the
        offer. Answers `409` until the accept has settled.
    DtccOnboardingRejectPayload:
      type: object
      properties:
        reason:
          type: string
          minLength: 1
          maxLength: 512
          example: KYC not completed
          description: >-
            Why the offer is being rejected. Recorded on-chain, where the
            counterparty can read it.
      required:
        - reason
  headers:
    X-Request-ID:
      schema:
        type: string
      description: >-
        Unique ID correlated to the API request. Please provide it in any
        support ticket you create or on Github issues related to Fireblocks SDKs
  responses:
    Error:
      description: Error Response
      headers:
        X-Request-ID:
          $ref: '#/components/headers/X-Request-ID'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorSchema'

````