mayarin
POST
/v1/invoices/{id}/list

Opts the invoice into the public x402 payable index, where agents discover and pay it. The invoice stays payable by anyone holding its id either way; listing only decides whether a discovery reader is shown it.

Authorization

secretKey
AuthorizationBearer <token>

Server-side sk_ key. Grants a subset of the merchant's permissions.

In: header

Path Parameters

id*string

Response Body

application/json

application/json

curl -X POST "https://example.com/v1/invoices/string/list"
{  "id": "string",  "merchantId": "string",  "merchant": {    "id": "string",    "name": "string",    "city": "string",    "countryCode": "string",    "categoryCode": "string"  },  "number": "string",  "sequence": 0,  "state": "string",  "buyer": {    "name": "string",    "email": "string",    "taxId": "string",    "address": "string"  },  "currency": "string",  "lines": [    {      "productId": "string",      "name": "string",      "unitPrice": {        "amount": "string",        "asset": "string",        "formatted": "string",        "display": "string"      },      "quantity": 0    }  ],  "total": {    "amount": "string",    "asset": "string",    "formatted": "string",    "display": "string"  },  "notes": "string",  "metadata": {    "property1": "string",    "property2": "string"  },  "url": "string",  "issuedAt": "string",  "dueAt": "string",  "voidedAt": "string",  "createdAt": "string",  "updatedAt": "string",  "version": 0,  "listed": true}