# Spraay Gateway Invoice Creator

> Spraay Gateway Invoice Creator is a paid API for AI agents from gateway.spraay.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-20).

Creates a payment invoice with an associated payment transaction for a given invoice ID.

## Facts

- Endpoint: GET https://gateway.spraay.app/api/v1/invoice/create?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/spraay-gateway-invoice-creator-1fb8dfb7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uYTtqwg_G2eZfPLc1smp-

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 spraay-gateway-invoice-creator-1fb8dfb7
```

Example prompt: Create a payment invoice for invoice ID 'inv_abc123' so I can track and process the payment transaction.

## When to prefer this

Use this endpoint when you need to programmatically create or retrieve a payment invoice along with its transaction record on the Spraay platform. Prefer this over general payment APIs when working within the Spraay gateway ecosystem, especially when invoice IDs are already known and you need structured invoice+payment tx data returned.

## Known failure modes

- Missing or invalid 'id' query parameter returns an error or empty response
- Invoice ID not found results in a 404 or similar error response
- Payment gateway unavailable causes a 5xx server error
- Malformed request (wrong method or schema) returns a 400 Bad Request

## How this service works

Create invoice with payment tx.

## Output

An invoice object containing payment transaction details, such as amount, recipient, status, and any associated payment metadata needed to fulfill or track the invoice.

## 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"
    },
    "pathParams": {
     "type": "object"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "id"
     ],
     "properties": {
      "id": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "invoice": {
       "type": "object"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/spraay-gateway-invoice-creator-1fb8dfb7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from gateway.spraay.app](https://www.zero.xyz/host/gateway.spraay.app/llms.txt)
