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

# Create Sell Transaction

> Create a sell transaction from the user's wallet.

**Response field values**

| Field | Possible Values |
| --- | --- |
| `transaction_type` | `SELL` |
| `status` | Typically `CREATED` immediately after creation |
| `failure_code`, `failure_desc` | `null` until the transaction fails |




## OpenAPI

````yaml openapi-v2.json POST /api/v2/wallet/transaction/sell
openapi: 3.1.0
info:
  title: Saber Money API (v2)
  version: v2
  description: >-
    ## Authentication


    There is no standalone API-key auth — every request must be **signed**. An
    API key by itself authenticates nothing. Each call requires four headers
    together: `X-Api-Key` (your key), `X-Signature` (HMAC-SHA256 of `apiKey +
    timestamp` — or `apiKey + timestamp + userId` when `X-User-Id` is required —
    keyed with your API secret), `X-Timestamp` (unix seconds), and
    `X-Request-Id` (any unique string per request). The signature must be
    computed by a client script; there is no way to derive it by hand. Use the
    HMAC Generator flow to compute valid values for manual testing.


    ## Common Authentication Errors


    - **Invalid Client ID**: {"error_code":6092,"message":"X-Client-Id
    invalid","success":false}

    - **Invalid Secret**: {"error_code":6090,"message":"invalid
    secret","success":false}

    - **Timestamp (Older than 10 secs)**:
    {"errors":{"error_code":6093,"text":"timestamp expired"},"success":false}
servers:
  - url: https://api.saber.money
security: []
paths:
  /api/v2/wallet/transaction/sell:
    post:
      tags:
        - Offramp
      summary: Create Sell Transaction
      description: |
        Create a sell transaction from the user's wallet.

        **Response field values**

        | Field | Possible Values |
        | --- | --- |
        | `transaction_type` | `SELL` |
        | `status` | Typically `CREATED` immediately after creation |
        | `failure_code`, `failure_desc` | `null` until the transaction fails |
      operationId: create-user-sell-transaction-v2
      parameters:
        - name: X-Api-Key
          in: header
          required: true
          description: Your API key (configured in credentials)
          schema:
            type: string
        - name: X-Signature
          in: header
          required: true
          description: >-
            HMAC-SHA256 signature (auto-generated) To test manually: HMAC-SHA256
            of `apiKey + timestamp` (or `apiKey + timestamp + userId` when
            X-User-Id is required), keyed with your API secret. The HMAC
            Generator flow computes this for you.
          schema:
            type: string
        - name: X-Timestamp
          in: header
          required: true
          description: >-
            Unix timestamp in seconds (auto-generated) Unix seconds, e.g.
            `Math.floor(Date.now() / 1000)`. Must match the timestamp used in
            the X-Signature computation.
          schema:
            type: string
        - name: X-Request-Id
          in: header
          required: true
          description: >-
            Unique request identifier (auto-generated) Any unique string per
            request, e.g. a UUID.
          schema:
            type: string
        - name: X-User-Id
          in: header
          required: true
          description: User UUID (set above)
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                source_id:
                  type: string
                  description: Source instrument id.
                fiat_symbol:
                  type: string
                  description: Fiat currency symbol.
                crypto_symbol:
                  type: string
                  description: Crypto currency symbol.
                fiat_amount:
                  type: number
                  description: Fiat amount to sell against.
                crypto_amount:
                  type: number
                  description: Crypto amount to sell.
                payment_method:
                  type: string
                  description: Payment method.
                uuid:
                  type: string
                  description: Optional client reference UUID.
                is_first_party:
                  type: boolean
                  description: Whether the transaction is a first-party transfer.
              required:
                - source_id
                - fiat_symbol
                - crypto_symbol
                - fiat_amount
                - crypto_amount
                - payment_method
            example:
              source_id: c41f7d27-781c-41da-b74c-278fe7202af5
              fiat_symbol: INR
              crypto_symbol: USDT
              fiat_amount: 100
              crypto_amount: 1.14
              payment_method: bank_transfer
              uuid: dc605164-7974-4413-af93-243b346a4a06
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  data:
                    type: object
                    properties:
                      status:
                        type: string
                        enum:
                          - CREATED
                      fiat_amount:
                        type: integer
                      transaction_type:
                        type: string
                        enum:
                          - SELL
                      fiat_symbol:
                        type: string
                      failure_code:
                        type:
                          - string
                          - 'null'
                      exchange_rate:
                        type: number
                      id:
                        type: string
                      crypto_symbol:
                        type: string
                      created_at:
                        type: string
                      bank_transaction_id:
                        type:
                          - string
                          - 'null'
                      source_id:
                        type: string
                      failure_desc:
                        type:
                          - string
                          - 'null'
                      crypto_amount:
                        type: number
              example:
                success: true
                data:
                  status: CREATED
                  fiat_amount: 100
                  transaction_type: SELL
                  fiat_symbol: INR
                  failure_code: null
                  exchange_rate: 82.56976
                  id: a892dc4a-aecb-4a22-9de4-2990b4179b77
                  crypto_symbol: USDT
                  created_at: '2022-10-03 07:51:15'
                  bank_transaction_id: null
                  source_id: 65d246fc-6a5b-43d7-89bf-944e95ff2279
                  failure_desc: null
                  crypto_amount: 1.14
        '400':
          description: '`400001`: missing or invalid parameters'
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - false
                  errors:
                    type: array
                    items:
                      type: object
                      properties:
                        code:
                          type:
                            - integer
                            - string
                        text:
                          type: string
              example:
                success: false
                errors:
                  - code: 400001
                    text: missing or invalid parameters
        '409':
          description: '`403004`: reference uuid already exists or is invalid'
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - false
                  errors:
                    type: array
                    items:
                      type: object
                      properties:
                        code:
                          type:
                            - integer
                            - string
                        text:
                          type: string
              example:
                success: false
                errors:
                  - code: 400001
                    text: missing or invalid parameters
        '500':
          description: '`499999`: Something went wrong!'
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - false
                  errors:
                    type: array
                    items:
                      type: object
                      properties:
                        code:
                          type:
                            - integer
                            - string
                        text:
                          type: string
              example:
                success: false
                errors:
                  - code: 400001
                    text: missing or invalid parameters

````

## Related topics

- [Initiating Transaction](/offramp/operations/initiate-transaction.md)
- [Create External Sell](/api-reference/offramp/from-external-wallet/create-external-sell.md)
- [Create Pool Sell Transaction](/api-reference/offramp/from-pool-wallet/create-pool-sell-transaction.md)
- [Get Sell Transaction Details](/api-reference/offramp/from-user-wallet/get-sell-transaction-details.md)
- [Get External Sell Transaction Details](/api-reference/offramp/from-external-wallet/get-external-sell-transaction-details.md)
