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

# Sell Gift Card



## OpenAPI

````yaml /novacrust-open-api-v2.yaml post /api/v1/business/open/gift-card-sell/sell
openapi: 3.0.0
info:
  title: Open-API
  description: The http Integration API description
  version: '1.0'
  contact: {}
servers:
  - url: http://localhost:3050
    description: Local environment
  - url: https://api-staging.novacrust.com
    description: Staging environment
  - url: https://api-dev.novacrust.com
    description: Develop environment
security:
  - api-key: []
tags:
  - name: Customer
    description: ''
  - name: Payout Methods
    description: ''
  - name: Beneficiary
    description: ''
  - name: Payout
    description: ''
  - name: Transactions
    description: ''
  - name: Buy Gift Card
    description: ''
  - name: Sell Gift Card
    description: ''
  - name: Miscellaneous
    description: ''
  - name: Wallets
    description: ''
paths:
  /api/v1/business/open/gift-card-sell/sell:
    post:
      tags:
        - Sell Gift Card
      summary: Sell Gift Card
      operationId: sellGiftCard
      parameters: []
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/OpenApiSellGiftCardDto'
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OpenApiSellInitiatedResponseDto'
      security:
        - access-token: []
components:
  schemas:
    OpenApiSellGiftCardDto:
      type: object
      properties:
        categoryId:
          type: number
          description: Category ID
          example: 1
        subCategoryId:
          type: number
          description: Subcategory ID/Giftcard ID
          example: 1
        amount:
          type: number
          description: Amount
          example: 100
        type:
          enum:
            - physical
            - e-code
          type: string
          description: Gift card type
          example: physical
        attachments:
          type: array
          description: Card images (attachments). Compulsory for physical cards.
          items:
            type: string
            format: binary
        payout_currency:
          type: string
          description: Payout currency
          example: ngn
        e_code:
          type: string
          description: Compulsory for e-codes (pass code here).
      required:
        - categoryId
        - subCategoryId
        - amount
        - type
    OpenApiSellInitiatedResponseDto:
      type: object
      properties:
        message:
          type: string
          example: Gift card sell order initiated successfully
        orderUuid:
          type: string
          example: uuid-123
      required:
        - message
        - orderUuid
  securitySchemes:
    api-key:
      type: apiKey
      in: header
      name: authorization

````

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