API-first payments
Build payments on top of the Zedy Gateway REST API.
A public, tenant-scoped API for tokenizing cards, creating charges, capturing authorized payments and receiving signed webhooks. Built for developers first, with canonical contracts for humans, tools and AI agents.
Base URL
https://wl.zedy.com.br/api/v1What changed
POST /charges to charge now or authorize, and POST /charges/:id/capture to capture.Quickstart
Charge flow
For cards, tokenize first. Then create a charge. For manual capture, capture the authorized charge when the order is ready.
curl -X POST https://wl.zedy.com.br/api/v1/payment-methods/tokenize \ -H "Authorization: Bearer sk_test_xxx" \ -H "Content-Type: application/json" \ -d '{ "card": { "number": "4242 4242 4242 4242", "exp_month": 12, "exp_year": 2030, "cvv": "123", "holder_name": "Ada Lovelace" } }'curl -X POST https://wl.zedy.com.br/api/v1/charges \ -H "Authorization: Bearer sk_test_xxx" \ -H "Idempotency-Key: order_123_charge" \ -H "Content-Type: application/json" \ -d '{ "amount": 10990, "currency": "BRL", "payment_method": "CREDIT_CARD", "capture_method": "manual", "card_token": "tok_xxx" }'curl -X POST https://wl.zedy.com.br/api/v1/charges/ch_xxx/capture \ -H "Authorization: Bearer sk_test_xxx" \ -H "Idempotency-Key: order_123_capture"API Reference
Implemented endpoints
/healthHealthcheck
Returns the public API health envelope.
/payment-methods/tokenizeTokenize payment method
Exchanges raw card data for a `tok_` token. This is the only public endpoint that accepts PAN/CVV. Requires a seller-scoped API key with approved seller KYC.
/chargesCreate charge
Creates a Pix, boleto or card charge. Card charges support automatic capture or manual authorization/capture.
/charges/{id}Retrieve charge
Retrieves a charge by public id within the API key scope.
/charges/{id}/captureCapture charge
Captures an authorized card charge created with `capture_method=manual`.
/charges/{id}/refundRefund charge
Refunds a paid or partially refunded charge. Omit `amount_cents` to refund the remaining balance.
Developer resources