AP2 v0.2 evidence pack for a PayPal order
The merchant-signed checkout JWT, the Checkout and Payment Mandate chains (SD-JWT, ES256),
the checkout and payment receipts, budget context, the passkey assertion if the buyer approved
on their device, and every check with its result. Verify independently with /api/ap2/jwks.
Path Parameters
PayPal order ID (sandbox), or SIM-… in offline mode.
Response Body
application/json
application/json
curl -X GET "https://example.com/api/ap2/orders/string"{ "spec": "ap2/0.2", "paypalOrderId": "string", "ok": true, "mode": "human_not_present", "checks": [ { "id": "string", "label": "string", "ok": true, "detail": "string" } ], "amount": { "amount": 0, "currency": "string" }, "merchant": { "id": "string", "name": "string" }, "evidence": { "spec": "ap2/0.2", "mode": "string", "checkoutJwt": "string", "checkoutChain": "string", "paymentChain": "string", "context": { "totalAmount": 0, "totalUses": 0 }, "checkoutReceipt": "string", "paymentReceipt": "string", "openCheckoutHash": "string", "passkey": {} }}Verdict for an agent payment GET
Is this PayPal order backed by a mandate the buyer signed? Returns the Mandate v1 checks (Intent, Cart and Payment Mandates, Ed25519), the `paypal_order_record` check (PayPal's own order record, read with the PayPal Server SDK, shows the signed amount captured), and the AP2 v0.2 verdict in `ap2`. Fulfil only when `ok` and `ap2.ok` are both true.
A merchant's agent payments with their verdicts GET
Every agent payment to a merchant, newest first, each with its Mandate v1 verdict and AP2 v0.2 result. A seller's queue of "safe to fulfil" and "don't ship" orders.