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

# Requery Transaction

> Checks the current status of any purchase (data, airtime, cable, electricity, exam, bulk SMS, eSIM, flight) by its reference — the `request-id` you sent when buying. Scoped to your account, so you only ever see your own transactions. Read-only; never re-charges. `transaction_status` is `success`, `pending` or `failed`. Use this to resolve a timeout or a missing callback instead of re-sending the purchase.



## OpenAPI

````yaml GET /api/requery/{reference}
openapi: 3.1.0
info:
  title: mySubwallet API
  version: 1.0.0
  description: >-
    Buy data, airtime, cable, electricity, exam pins, bulk SMS, betting, eSIM,
    flights, recharge/data cards and more, funded from your wallet. Test
    everything safely with your sandbox (sk_test_) key — no wallet charge.
servers:
  - url: https://api.mysubwallet.ng
    description: Production (live — charges your wallet)
  - url: https://sandbox.mysubwallet.ng
    description: Sandbox (test — simulated, no wallet charge)
security:
  - TokenAuth: []
tags:
  - name: Purchases
  - name: Verification
  - name: Betting
  - name: eSIM
  - name: Flights
  - name: Wallet
  - name: Catalogs
  - name: Account
paths:
  /api/requery/{reference}:
    get:
      tags:
        - Transactions
      summary: Requery Transaction
      description: >-
        Checks the current status of any purchase (data, airtime, cable,
        electricity, exam, bulk SMS, eSIM, flight) by its reference — the
        `request-id` you sent when buying. Scoped to your account, so you only
        ever see your own transactions. Read-only; never re-charges.
        `transaction_status` is `success`, `pending` or `failed`. Use this to
        resolve a timeout or a missing callback instead of re-sending the
        purchase.
      parameters:
        - name: reference
          in: path
          required: true
          schema:
            type: string
          description: >-
            The transaction reference — the `request-id` you sent on the
            purchase.
          example: Data_12345678900
      responses:
        '200':
          description: The transaction.
          content:
            application/json:
              example:
                status: success
                data:
                  reference: Data_12345678900
                  request-id: Data_12345678900
                  type: data
                  amount: 100
                  currency: NGN
                  transaction_status: success
                  message: You have gifted 500MB to 2347013397088.
                  date: '2026-06-25T20:00:00+01:00'
        '404':
          description: Not found on your account.
          content:
            application/json:
              example:
                status: fail
                message: Transaction not found.
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.

````