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

# Get route transactions execution result



## OpenAPI

````yaml https://backend.swap.coffee/openapi get /v2/route/result
openapi: 3.0.3
info:
  title: Swap Coffee API
  version: 1.0.0
servers:
  - url: https://backend.swap.coffee/
  - url: http://localhost:8080/
security:
  - {}
  - ApiKey: []
tags:
  - name: Entity
    description: Tokens, pools, DEXes, etc.
  - name: Routing
    description: >-
      Core functionality of the aggregation service. Build routes, get
      transactions, etc.
  - name: Strategies
    description: Limit orders, DCA, VCA, etc.
  - name: Yield
    description: >-
      Yield aggregator functionality. Provides and handles routes to pools with
      the best yield.
  - name: Referral
    description: Everything related to the referral program of swap.coffee.
  - name: Cashback
    description: Cashback programs conducted on swap.coffee.
  - name: Claim
    description: Claiming various rewards available on swap.coffee.
  - name: Contests
    description: Timed contests based on trading volumes for certain token-pairs.
  - name: Staking
    description: Responsible of managing staked funds, corresponding rewards, etc.
  - name: DEX
    description: Core functionality of the Coffee DEX service.
  - name: LiquidityProvisioning
    description: Everything related to liquidity provisioning in DEXes.
  - name: Boosts
    description: >-
      Functionality to support incentives and rewards for liquidity providers
      among all DEXes.
  - name: Profile
    description: Retrieve information about user profiles.
  - name: Partnership
    description: Various functionality for our partners.
  - name: Statistics
    description: Retrieve information about dex aggregation stats.
  - name: Ton
    description: Retrieve information about TON entities.
  - name: Auth
    description: Auth operations. For internal usage only.
paths:
  /v2/route/result:
    get:
      tags:
        - Routing
      summary: Get route transactions execution result
      operationId: getRouteResult
      parameters:
        - name: route_id
          in: query
          required: true
          schema:
            type: integer
            format: int32
      responses:
        '200':
          description: Result of the route transactions execution
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiRouteResult'
        default:
          $ref: '#/components/responses/ApiError'
components:
  schemas:
    ApiRouteResult:
      type: object
      required:
        - splits
        - terminal
      properties:
        splits:
          type: array
          items:
            $ref: '#/components/schemas/ApiSplitResult'
        terminal:
          type: boolean
          description: >-
            Whether this is the final view of the route result (i.e. it won't
            change anymore) and therefore it will be invalidated from our cache
            soon
    ApiSplitResult:
      type: object
      required:
        - status
        - steps
        - paid
        - gas_sent
      properties:
        status:
          $ref: '#/components/schemas/ApiTransactionStatus'
        steps:
          type: array
          items:
            $ref: '#/components/schemas/ApiSplitStepResult'
        input:
          $ref: '#/components/schemas/ApiTokenWithAmount'
        output:
          $ref: '#/components/schemas/ApiTokenWithAmount'
        paid:
          type: boolean
          description: Whether funds were paid from the pools to their receiver
        gas_sent:
          type: number
          description: Amount of nanotons, dedicated to be spent on gas
        gas_received:
          type: number
          description: >-
            Amount of nanotons, dedicated to be spent on gas, that have been
            returned. Present only when paid is true
    ApiTransactionStatus:
      type: string
      enum:
        - pending
        - partially_complete
        - succeeded
        - failed
        - timed_out
    ApiSplitStepResult:
      type: object
      required:
        - status
      properties:
        status:
          $ref: '#/components/schemas/ApiTransactionStepStatus'
        input:
          $ref: '#/components/schemas/ApiTokenWithAmount'
        output:
          $ref: '#/components/schemas/ApiTokenWithAmount'
    ApiTokenWithAmount:
      type: object
      required:
        - token
        - amount
      properties:
        token:
          $ref: '#/components/schemas/ApiToken'
        amount:
          type: number
    ApiTransactionStepStatus:
      type: string
      enum:
        - pending
        - cancelled
        - succeeded
        - failed
        - timed_out
    ApiToken:
      type: object
      required:
        - address
        - metadata
      properties:
        address:
          $ref: '#/components/schemas/ApiTokenAddress'
        metadata:
          $ref: '#/components/schemas/ApiTokenMetadata'
    ApiTokenAddress:
      type: object
      required:
        - blockchain
        - address
      properties:
        blockchain:
          type: string
          example: ton
        address:
          type: string
          example: native
    ApiTokenMetadata:
      type: object
      required:
        - name
        - symbol
        - decimals
        - listed
        - verification
      properties:
        name:
          type: string
          example: ARBUZ
        symbol:
          type: string
          example: ARBUZ
        decimals:
          type: integer
          format: int32
        image_url:
          type: string
        listed:
          type: boolean
        verification:
          $ref: '#/components/schemas/ApiTokenVerification'
    ApiTokenVerification:
      type: string
      enum:
        - whitelisted
        - blacklisted
        - community
        - unknown
  responses:
    ApiError:
      description: Some error during request processing
      content:
        application/json:
          schema:
            type: object
            required:
              - error
            properties:
              error:
                type: string
  securitySchemes:
    ApiKey:
      type: apiKey
      name: X-Api-Key
      in: header

````