pgz.link API
Accept PIX and card payments with one API call.
The payer pays on a page hosted by the platform. You get an automatic notification (a webhook) when the payment is confirmed. You never store card data.
Base URL: https://api.pgz.link
The key is the environment
Every request uses an API key in the Authorization header. The key prefix decides the environment:
pgz_test_...→ sandbox. No money, no real charge.pgz_live_...→ production. Real money.
Authorization: Bearer pgz_test_...There is no other environment switch. The key is the only source.
Amounts in cents
amount is always the smallest unit of the currency. No dot, no comma.
- R$ 2.500,00 →
amount: 250000 - R$ 10,00 →
amount: 1000
Accepted currencies: BRL and USD.
The flow, in two steps
- You create a charge (a payment link) and get a
checkout_url. - You send the
checkout_urlto the customer. They pay. You get thepayment.succeededwebhook.
PIX is the main path. Credit card also exists, with installments — the details are in the Reference.
Start now
- Get started — the full walkthrough, from key to custom domain.
- PIX Quickstart — the shortest path, on one page.