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

# Create sell order

> Sell a gift card for NGN wallet credit. Scope: `gift-cards:write`. Requires `Idempotency-Key`.



## OpenAPI

````yaml POST /api/v1/merchant/gift-cards/sell/orders
openapi: 3.1.0
info:
  title: SendPadi Merchant API
  version: 1.0.0
  description: >-
    Merchant REST API. Authenticate with HMAC headers (`X-Api-Key`,
    `X-Timestamp`, `X-Signature`). Generate playground headers with [Sign
    requests (playground)](/guides/sign-requests).
servers:
  - url: https://api.sendpadi.com
    description: Production (test + live keys)
security: []
paths:
  /api/v1/merchant/gift-cards/sell/orders:
    post:
      tags:
        - gift-cards
      summary: Create sell order
      description: >-
        Sell a gift card for NGN wallet credit. **Scope:** `gift-cards:write`.
        Requires `Idempotency-Key` on this write.
      operationId: api-reference_gift-cards_sell-order
      parameters:
        - name: X-Timestamp
          in: header
          required: true
          description: Unix time in seconds
          schema:
            type: string
        - name: X-Signature
          in: header
          required: true
          description: HMAC-SHA256 signature
          schema:
            type: string
        - name: Idempotency-Key
          in: header
          required: true
          description: UUID. Required on money-moving writes.
          schema:
            type: string
            format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                giftCardName:
                  type: string
                amount:
                  type: integer
                countryName:
                  type: string
                offerId:
                  type: string
                versionKey:
                  type: string
                cardCode:
                  type: string
              required:
                - giftCardName
                - amount
                - countryName
                - offerId
                - versionKey
                - cardCode
            example:
              giftCardName: Amazon
              amount: 50
              countryName: United States
              offerId: offer_001
              versionKey: vk_001
              cardCode: XXXX-XXXX
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
              example:
                success: true
                message: OK
                data:
                  transactionId: gcs_001
                  status: processing
              examples:
                success:
                  summary: Success
                  value:
                    success: true
                    message: OK
                    data:
                      transactionId: gcs_001
                      status: processing
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-Api-Key
      description: API key id (sp_test_… / sp_live_…)

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.