{
  "x402Version": 2,
  "id": 270,
  "slug": "270",
  "resource": "https://api.bitrefill.com/x402/invoice/create",
  "description": "Create a price-locked USDC invoice for one or more gift cards, eSIMs, or mobile top-ups.",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x480CD46E6faDe651a0437DeaddA53D5c8e7D846A",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "2000",
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:42161",
      "payTo": "0x480CD46E6faDe651a0437DeaddA53D5c8e7D846A",
      "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
      "amount": "2000",
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:137",
      "payTo": "0x480CD46E6faDe651a0437DeaddA53D5c8e7D846A",
      "asset": "0x3c499c542cef5e3811e1192ce70d8cc03d5c3359",
      "amount": "2000",
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "5yASLjtNssGXDv6bR9e71WXKxRymDiUzbgkGPqkQNgRn",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "2000",
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "items": [
              {
                "package_value": "25",
                "product_id": "amazon-us"
              }
            ]
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "expires_in_minutes": 15,
            "invoice_id": "c2b27180-610e-4132-af77-ad42fc0ac444",
            "networks": [
              "eip155:8453",
              "solana:mainnet"
            ],
            "next_step": {
              "body": {
                "invoice_id": "c2b27180-610e-4132-af77-ad42fc0ac444"
              },
              "url": "/x402/invoice/pay"
            },
            "price_usd": 25,
            "price_usdc": "25000000"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "package_value": {
                          "description": "The denomination from /x402/products/detail \"package_value\" (e.g. \"25\")",
                          "type": "string"
                        },
                        "product_id": {
                          "description": "Product slug from a search result",
                          "type": "string"
                        },
                        "refill_input": {
                          "description": "Recipient identifier (phone/email/account) — required when the product's recipient_type is not \"none\"",
                          "type": "string"
                        }
                      },
                      "required": [
                        "product_id",
                        "package_value"
                      ],
                      "type": "object"
                    },
                    "maxItems": 15,
                    "minItems": 1,
                    "type": "array"
                  }
                },
                "required": [
                  "items"
                ]
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    },
    "builder-code": {
      "info": {
        "a": "bc_suil8bdj"
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "a": {
            "description": "App builder code",
            "pattern": "^[a-z0-9_]{1,32}$",
            "type": "string"
          },
          "s": {
            "description": "Service builder codes",
            "items": {
              "pattern": "^[a-z0-9_]{1,32}$",
              "type": "string"
            },
            "type": "array"
          },
          "w": {
            "description": "Wallet builder code",
            "pattern": "^[a-z0-9_]{1,32}$",
            "type": "string"
          }
        },
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar",
    "builder-code"
  ],
  "sourceHost": "api.bitrefill.com",
  "lastUpdated": "2026-09-12T22:33:08.803Z",
  "quality": {
    "calls30d": 40,
    "uniquePayers30d": 4,
    "lastCalledAt": "2026-09-12T22:33:08.351Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.bitrefill.com",
    "manifest_name": "api.bitrefill.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}