Skip to main content

Charges

Create a charge

integer
required
Amount in USD cents. 499 = $4.99. Must be > 0.
string
Human- (and agent-) readable description. Shows up in the agent’s audit trail.
string
Your own id (order, invoice). Echoed back for reconciliation.
Fires a charge.created webhook.

Get a charge

Public by chargeId (treat the id as the capability).
Returns the charge object, or 404.

Pay from an agent wallet

Success: paid instantly

Success: needs human approval

Nothing was charged. If approved later (POST /approvals/:id/grant with console auth), you receive payment.succeeded + charge.succeeded webhooks.

Rejected

Pay on-chain (x402)

For agents without a Payzor wallet, payment happens in USDC on-chain.

Step 1: request terms

If unpaid, returns 402 Payment Required:
(Already-paid charges return the charge object with 200 instead.)

Step 2: retry signed

Repeat the same GET with the signed payload in the header:
Payzor verifies and settles against the facilitator, marks the charge paid (method x402, reference = tx hash) and responds:
Failure modes are still 402s with an explanation (Pago inválido, Liquidación fallida); the client can fix and retry.