- Início
- API /v1
- API /v1
API /v1
A API pública do Paystation para parceiros. Esta referência é gerada do código da API a cada build.
Todas as rotas ficam sob https://paystation.quero.space/v1, ou https://paystation-homolog.quero.space/v1 em homologação. Cada requisição leva uma chave no cabeçalho Authorization: Bearer <chave>.
| Chave | Formato | Onde usar |
|---|---|---|
| Pública | pk_test_… / pk_live_… | Pode ir para o navegador. |
| Secreta | sk_test_… / sk_live_… | Só no seu servidor. |
Antes da primeira chamada, leia os Conceitos: idempotência, Turnstile, formato de erro, paginação, valores em centavos e limites.
Endpoints
GET
/v1/meDescribe the key used on the requestGET/v1/offersList your published offers, newest firstPOST/v1/offersCreate an offerGET/v1/offers/{id}Retrieve one of your offers: published with a public key, any status with a secret keyPOST/v1/offers/{id}Update one of your offers; only the fields sent changePOST/v1/offers/{id}/order_bumpsReplace the order bumps of one of your offersGET/v1/offers/{id}/checkoutQuote an offer: payment methods, instalments and totalsGET/v1/acquirers/prioritiesList the acquirers to tokenize with, in failover orderGET/v1/checkout_sessionsOpen a Stark Bank tokenization sessionGET/v1/webhook_destinationsList where this account is notifiedPOST/v1/webhook_destinationsRegister a webhook destinationPOST/v1/webhook_destinations/{id}Replace the events of a webhook destinationDELETE/v1/webhook_destinations/{id}Remove a webhook destinationPOST/v1/chargesCreate a chargeGET/v1/chargesList your charges, newest firstGET/v1/charges/{id}Retrieve a chargeGET/v1/subscriptions/{id}Retrieve a subscriptionPOST/v1/subscriptions/{id}/cancelCancel a subscription without a fee; a canceled one is answered as it isPOST/v1/charges/{id}/refundRefund a charge in full; a charge already refunding or refunded is answered as it isPOST/v1/reusable-payment/searchFind a pending pix or boleto the buyer can resumeGET/v1/upsellCheck whether an upsell can be offered after a purchase