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

# Get min/max range for a withdrawal destination

> Returns min/max and route details for a destination pair. Routes are dynamic and provider-driven.



## OpenAPI

````yaml openapi.yaml post /partner/v1/withdrawals/range
openapi: 3.1.0
info:
  title: Machines Cash API
  version: 0.3.0
  description: >
    API for KYC, cards, encryption, balances, deposits, transactions, and
    withdrawals.

    All responses use a consistent envelope by default: { ok, data, summary,
    errors[], next }.

    Set X-Open-Responses: 1 to receive Open Responses-style response objects.
servers:
  - url: https://api.machines.cash
    description: production
  - url: https://dev-api.machines.cash
    description: sandbox
security: []
tags:
  - name: users
  - name: sessions
  - name: kyc
  - name: kycValues
  - name: agreements
  - name: cards
  - name: encryption
  - name: balances
  - name: deposits
  - name: transactions
  - name: withdrawals
paths:
  /partner/v1/withdrawals/range:
    parameters:
      - $ref: '#/components/parameters/OpenResponses'
      - $ref: '#/components/parameters/OpenResponsesCallId'
    post:
      tags:
        - withdrawals
      summary: Get min/max range for a withdrawal destination
      description: >-
        Returns min/max and route details for a destination pair. Routes are
        dynamic and provider-driven.
      operationId: api.withdrawals.range
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WithdrawalRangeRequest'
      responses:
        '200':
          description: Withdrawal range
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WithdrawalRangeResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '503':
          $ref: '#/components/responses/ServiceUnavailable'
      security:
        - Session: []
components:
  parameters:
    OpenResponses:
      name: X-Open-Responses
      in: header
      required: false
      schema:
        type: string
        enum:
          - '1'
          - 'true'
      description: >-
        Return Open Responses-compatible output when set (replaces the default
        response envelope).
    OpenResponsesCallId:
      name: X-Open-Responses-Call-Id
      in: header
      required: false
      schema:
        type: string
        minLength: 1
      description: >-
        Tool call id used for function_call_output items when Open Responses
        mode is enabled.
  schemas:
    WithdrawalRangeRequest:
      type: object
      additionalProperties: false
      required:
        - destination
      properties:
        source:
          $ref: '#/components/schemas/WithdrawalSource'
        destination:
          $ref: '#/components/schemas/WithdrawalDestinationQuote'
    WithdrawalRangeResponse:
      type: object
      additionalProperties: false
      required:
        - ok
        - data
        - summary
        - errors
      properties:
        ok:
          type: boolean
          const: true
        data:
          type: object
          additionalProperties: false
          required:
            - range
          properties:
            range:
              $ref: '#/components/schemas/WithdrawalRange'
        summary:
          type: string
        errors:
          type: array
          items:
            $ref: '#/components/schemas/ErrorDetail'
        next:
          $ref: '#/components/schemas/NextHint'
    WithdrawalSource:
      type: object
      additionalProperties: false
      properties:
        chainId:
          type: integer
          minimum: 1
          description: >-
            Optional source chain hint. Defaults to Base (8453) in production
            and Base Sepolia in sandbox.
        tokenAddress:
          $ref: '#/components/schemas/TokenAddress'
          description: >-
            Optional source token hint. Defaults to USDC collateral token in
            production and rUSD token in sandbox.
        contractId:
          type:
            - string
            - 'null'
          format: uuid
          description: >-
            Optional Rain collateral contract id override. No
            `/partner/v1/contracts` endpoint exists; omit this field unless you
            already know the id.
    WithdrawalDestinationQuote:
      type: object
      additionalProperties: false
      required:
        - currency
        - network
      properties:
        currency:
          type: string
          example: hbar
        network:
          type: string
          example: hbar
        extraId:
          type:
            - string
            - 'null'
          description: Optional destination memo/tag for payout networks that require it.
    WithdrawalRange:
      type: object
      additionalProperties: false
      required:
        - fromCurrency
        - fromNetwork
        - toCurrency
        - toNetwork
        - minAmount
        - maxAmount
        - minAmountCents
        - maxAmountCents
        - destinationSupportsExtraId
      properties:
        fromCurrency:
          type: string
        fromNetwork:
          type: string
        toCurrency:
          type: string
        toNetwork:
          type: string
        minAmount:
          type:
            - number
            - 'null'
        maxAmount:
          type:
            - number
            - 'null'
        minAmountCents:
          type:
            - integer
            - 'null'
        maxAmountCents:
          type:
            - integer
            - 'null'
        destinationSupportsExtraId:
          type: boolean
    ErrorDetail:
      type: object
      additionalProperties: false
      required:
        - code
        - message
      properties:
        code:
          type: string
          example: invalid_request
        message:
          type: string
          example: missing required field
        field:
          type: string
          description: Optional field name that caused the error.
    NextHint:
      type: object
      additionalProperties: false
      properties:
        pollAfterMs:
          type: integer
          minimum: 0
        suggestedTool:
          type: string
        suggestedArgs:
          type: object
          additionalProperties: true
    ErrorResponse:
      type: object
      additionalProperties: false
      required:
        - ok
        - summary
        - errors
      properties:
        ok:
          type: boolean
          const: false
        summary:
          type: string
          example: invalid request
        errors:
          type: array
          items:
            $ref: '#/components/schemas/ErrorDetail'
        next:
          $ref: '#/components/schemas/NextHint'
    TokenAddress:
      type: string
      pattern: ^0x[a-fA-F0-9]{40}$
      example: '0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174'
  responses:
    BadRequest:
      description: Invalid request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Unauthorized:
      description: Unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    ServiceUnavailable:
      description: Service unavailable
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    Session:
      type: http
      scheme: bearer
      bearerFormat: JWT

````