mayarin
GET
/x402/payables/{kind}/{id}

One endpoint, two answers, decided by the PAYMENT-SIGNATURE header. Without one: a 402 whose PAYMENT-REQUIRED header quotes the full outstanding amount — an authorization for less than what is owed is refused, and the remedy is a new 402 for the whole balance. With one: verify, settle, and answer 200 naming the payment intent the settlement created.

A payable's price is held in a quote row for a short window together with the exact rails it offered, which is what the 409 and 410 are about.

Path Parameters

kind*string

Value in

  • "invoice"
  • "link"
id*string

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/x402/payables/invoice/string"
{  "paymentIntent": "string",  "payable": {    "kind": "invoice",    "id": "string"  }}