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

# Create Offramp Order

> This endpoint is used to initiate an offramp transaction, converting crypto to fiat and transferring funds to the user's connected payment method.



## OpenAPI

````yaml /api_reference/onramp.yaml post /offramp
openapi: 3.0.3
info:
  version: '1.0'
  title: Crypto API
  description: Reference for Sardine Crypto API
  contact:
    email: support@sardine.io
    name: Sardine
    url: docs.sardine.io
servers:
  - url: https://api.sandbox.sardine.ai/v1
    description: Sandbox
  - url: https://api.sardine.ai/v1
    description: Prod Server
security: []
paths:
  /offramp:
    post:
      tags:
        - Order Execution
      summary: Create Offramp Order
      description: >-
        This endpoint is used to initiate an offramp transaction, converting
        crypto to fiat and transferring funds to the user's connected payment
        method.
      operationId: create-offramp-order
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - userId
                - fromCurrency
                - toCurrency
                - amount
                - chain
                - paymentMethodId
                - withdrawalAddress
              properties:
                userId:
                  type: string
                  description: ID of the user placing the offramp order
                fromCurrency:
                  type: string
                  description: The cryptocurrency being sold (e.g., ETH)
                toCurrency:
                  type: string
                  description: The fiat currency to be received (e.g., USD)
                amount:
                  type: number
                  description: Amount of crypto to convert
                chain:
                  type: string
                  description: Blockchain network of the crypto (e.g., ethereum, polygon)
                paymentMethodId:
                  type: string
                  description: ID of the user’s fiat withdrawal method (e.g., bank or card)
                withdrawalAddress:
                  type: string
                  description: Wallet address from which the crypto will be sent
            examples:
              example-1:
                value:
                  userId: abc123
                  fromCurrency: ETH
                  toCurrency: USD
                  amount: 0.05
                  chain: ethereum
                  paymentMethodId: pay-987654321
                  withdrawalAddress: 0xabc123def456ghi789jkl000mno111pqrs222tuv
      responses:
        '200':
          description: Offramp order successfully created
          content:
            application/json:
              schema:
                type: object
                properties:
                  orderId:
                    type: string
                    description: Unique identifier for the offramp order
                  status:
                    type: string
                    description: Current status of the order (e.g., pending, completed)
                  estimatedPayout:
                    type: string
                    format: date-time
                    description: Estimated time when fiat will be delivered
              examples:
                example-1:
                  value:
                    orderId: OFF-20250417-001
                    status: pending
                    estimatedPayout: '2025-04-17T18:00:00Z'

````