Listar transações
curl --request GET \
--url https://api.pagstack.com/v1/transactions \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.pagstack.com/v1/transactions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pagstack.com/v1/transactions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"object": "list",
"data": [
{
"id": "tx_7Fq2kM9xLp",
"object": "transaction",
"livemode": false,
"status": "pending",
"amount": 4990,
"fee": null,
"net_amount": null,
"amount_refunded": 0,
"payment_method": "pix",
"description": "Pedido #1042",
"external_id": "pedido_1042",
"buyer": null,
"pix": {
"code": "PAGSTACK-TESTE-NAO-PAGAVEL:tx_7Fq2kM9xLp",
"qrcode_base64": "data:image/png;base64,iVBORw0KGgo...",
"expires_at": "2026-12-02T14:30:00.000Z"
},
"end_to_end_id": null,
"tracking": {
"utm_source": "meta",
"utm_campaign": "black-friday"
},
"checkout_id": null,
"subscription_id": null,
"bucket": {
"id": "bkt_cm4x9q2k80001",
"name": "Assinaturas Premium",
"slug": "premium"
},
"coupon": null,
"metadata": {},
"dispute_reason": null,
"paid_at": null,
"created_at": "2026-12-02T14:00:00.000Z"
}
],
"has_more": true
}{
"error": {
"type": "invalid_request",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"request_id": "<string>"
}
}{
"error": {
"type": "invalid_request",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"request_id": "<string>"
}
}{
"error": {
"type": "invalid_request",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"request_id": "<string>"
}
}{
"error": {
"type": "invalid_request",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"request_id": "<string>"
}
}Transações
Listar transações
Lista as transações da mais nova para a mais antiga.
Listar transações
curl --request GET \
--url https://api.pagstack.com/v1/transactions \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.pagstack.com/v1/transactions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pagstack.com/v1/transactions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"object": "list",
"data": [
{
"id": "tx_7Fq2kM9xLp",
"object": "transaction",
"livemode": false,
"status": "pending",
"amount": 4990,
"fee": null,
"net_amount": null,
"amount_refunded": 0,
"payment_method": "pix",
"description": "Pedido #1042",
"external_id": "pedido_1042",
"buyer": null,
"pix": {
"code": "PAGSTACK-TESTE-NAO-PAGAVEL:tx_7Fq2kM9xLp",
"qrcode_base64": "data:image/png;base64,iVBORw0KGgo...",
"expires_at": "2026-12-02T14:30:00.000Z"
},
"end_to_end_id": null,
"tracking": {
"utm_source": "meta",
"utm_campaign": "black-friday"
},
"checkout_id": null,
"subscription_id": null,
"bucket": {
"id": "bkt_cm4x9q2k80001",
"name": "Assinaturas Premium",
"slug": "premium"
},
"coupon": null,
"metadata": {},
"dispute_reason": null,
"paid_at": null,
"created_at": "2026-12-02T14:00:00.000Z"
}
],
"has_more": true
}{
"error": {
"type": "invalid_request",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"request_id": "<string>"
}
}{
"error": {
"type": "invalid_request",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"request_id": "<string>"
}
}{
"error": {
"type": "invalid_request",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"request_id": "<string>"
}
}{
"error": {
"type": "invalid_request",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"request_id": "<string>"
}
}