Skip to content

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

  1. You create a charge (a payment link) and get a checkout_url.
  2. You send the checkout_url to the customer. They pay. You get the payment.succeeded webhook.

PIX is the main path. Credit card also exists, with installments — the details are in the Reference.

Start now