https://agents.gwop.io
Authentication
Most endpoints require a merchant API key as a Bearer token:Endpoints
| Method | Path | Auth | Description |
|---|---|---|---|
POST | /v1/invoices | sk_m_* | Create an invoice |
GET | /v1/invoices | sk_m_* | List your invoices |
GET | /v1/invoices/{id} | Public | Retrieve an invoice |
POST | /v1/invoices/{id}/cancel | sk_m_* | Cancel an open invoice |
Invoice status lifecycle
| Status | Terminal | Meaning |
|---|---|---|
OPEN | No | Awaiting payment |
PAYING | No | Payment in progress — do not create a new invoice |
PAID | Yes | Settlement confirmed on-chain |
EXPIRED | Yes | TTL reached before payment |
CANCELED | Yes | Canceled by merchant |
Error shape
All errors follow this format:x-request-id header for debugging.