List your charges, newest first
GET /v1/charges
List your charges, newest first
GET/v1/charges
Autenticação
- Chave secretask_…, só no seu servidor
Envie a chave no cabeçalho Authorization: Bearer <chave>.
Parâmetros
limitstring · query1 to 100; defaults to 20.
starting_afterstring · query (uuid)The last `id` of the previous page.
statusstring · querycreated_gtestring · query (date-time)created_ltestring · query (date-time)offerstring · query (uuid)metadataobject · query
Resposta
200OK
dataarray of objectobrigatórioMostrar campos de
dataidstring (uuid)obrigatórioobjectstringobrigatórioValores:
chargestatusstringobrigatórioValores:
processingpendingpaidrefund_pendingrefundedchargedbackdeclinedamountintegerpode ser nullobrigatórioInteger cents.
payment_methodstringobrigatórioValores:
cardpixboletoacquirerstringpode ser nullobrigatóriopaymentobjectobrigatórioPix: `qr_code`, `expiration_at`. Boleto: `boleto_url`, `boleto_barcode`, `expiration_date`. Card: empty.
Mostrar campos de
paymentqr_codestringexpiration_atstringboleto_urlstringboleto_barcodestringexpiration_datestring
created_atstringpode ser nullobrigatóriocustomerobjectpode ser nullobrigatórioMasked unless the key is secret; always masked on creation.
Mostrar campos de
customernamestringpode ser nullobrigatórioemailstringpode ser nullobrigatóriodocumentstringpode ser nullobrigatóriodocument_typestringpode ser nullobrigatórioValores:
cpfcnpjpassportphonestringpode ser nullobrigatório
subscriptionstringpode ser nullThe subscription this purchase opened (`sub_…`), or `null`. Answered on creation and on `GET /v1/charges/{id}` only.
metadataobjectpode ser nullThe `metadata` sent on creation, or `null`. Answered on creation and to the secret key; left out of a public key's reads.
has_morebooleanobrigatório
Erros
| 401 | Missing or invalid key, or a public key (`secret_key_required`). |
| 422 | A query parameter is invalid (`invalid_param`, `unknown_parameter`). |
| 429 | Rate limited. |
| 500 | Unexpected error, or `api_unavailable`. |
Todo erro vem no mesmo envelope: error.type, error.code, error.message e error.request_id, também devolvido no cabeçalho X-Request-Id.