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

# Buy Gift Card

> Buy a gift card. `amount` is the face value in the card's currency and must be within the variant's `local_min`–`local_max`. Your wallet is charged the NGN equivalent at the variant's `selling_rate`.



## OpenAPI

````yaml POST /api/giftcard/buy
openapi: 3.1.0
info:
  title: Bilalsadasub API
  version: 1.0.0
  description: >-
    Bilalsadasub developer API — buy data, airtime, cable, electricity, bulk
    SMS, exam pins, airtime-to-cash and flights, funded from your wallet.
servers:
  - url: https://bilalsadasub.com
    description: Production (live — charges your wallet)
security:
  - TokenAuth: []
tags:
  - name: Purchases
  - name: Verification
  - name: Betting
  - name: eSIM
  - name: Flights
  - name: Wallet
  - name: Catalogs
  - name: Account
paths:
  /api/giftcard/buy:
    post:
      tags:
        - Gift Cards
      summary: Buy Gift Card
      description: >-
        Buy a gift card. `amount` is the face value in the card's currency and
        must be within the variant's `local_min`–`local_max`. Your wallet is
        charged the NGN equivalent at the variant's `selling_rate`.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                plan_id:
                  type: integer
                  description: Variant ID from List Gift Cards
                amount:
                  type: number
                  description: Face value in the card currency
                pin:
                  type: string
                  description: 4-digit transaction PIN (WEBSITE only, if enabled)
                request-id:
                  type: string
                  description: Unique idempotency key
              required:
                - plan_id
                - amount
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                  message:
                    type: string
                  data:
                    type: object
                    properties:
                      transid:
                        type: string
                      newbal:
                        type: number
              example:
                status: success
                message: 'Purchase: Amazon (USD 50)'
                data:
                  transid: GC_1a2b3c
                  newbal: 92250
components:
  securitySchemes:
    TokenAuth:
      type: apiKey
      in: header
      name: Authorization
      description: >-
        Send your API key as `Token <your_api_key>`.


        Use your **live key** for real transactions, or your **sandbox key**
        (`sk_test_…`) to test — sandbox calls return a realistic simulated
        result and never touch your wallet. Add `"sandbox_status": "fail"` to
        any sandbox request to simulate a failure.

````

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