# Bitrefill Invoice Status & Redemption Code Retrieval

> Bitrefill Invoice Status & Redemption Code Retrieval is a paid API for AI agents from api.bitrefill.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-16).

Checks the payment status of a Bitrefill x402 invoice and, when authenticated via SIWX from the paying wallet, returns redemption codes for the purchased product.

## Facts

- Endpoint: GET https://api.bitrefill.com/x402/invoice/status
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/bitrefill-invoice-status-redemption-code-retrieval-0c678d0f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_eQsi0pWE2iOfNor2bZBBI

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability bitrefill-invoice-status-redemption-code-retrieval-0c678d0f
```

Example prompt: Can you check whether invoice INV-abc123 on Bitrefill has been paid yet, and if so retrieve the redemption code using my wallet signature?

## When to prefer this

Use this endpoint after initiating a Bitrefill x402 purchase to confirm payment completion and retrieve the actual redemption code. It is the correct post-payment polling endpoint in the Bitrefill x402 flow, distinct from product search or invoice creation endpoints.

## Known failure modes

- Invoice ID not found — returns 404 or error indicating invalid invoice_id
- Invoice not yet paid — returns status without redemption codes
- SIWX authentication missing or invalid — returns status only, no redemption codes
- Invoice expired — returns expired status with no codes
- Wallet used for SIWX does not match paying wallet — codes withheld

## How this service works

Check an invoice status and, with SIWX from the paying wallet, retrieve redemption codes.

## Output

Returns the current status of the specified invoice (e.g. paid, pending, expired) and, when a valid SIWX signature from the paying wallet is provided, includes the redemption code(s) for the purchased gift card, airtime top-up, eSIM plan, or voucher.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "invoice_id"
     ],
     "properties": {
      "invoice_id": {
       "type": "string",
       "description": "Invoice ID to check status for. Sign in (SIWX) with the paying wallet to also retrieve redemption codes."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/bitrefill-invoice-status-redemption-code-retrieval-0c678d0f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.bitrefill.com](https://www.zero.xyz/host/api.bitrefill.com/llms.txt)
