Retrieve transactions via API.
GET/paymentlink/:payment_link_id/transactions
Retrieve transactions via API.
Request​
Path Parameters
payment_link_id stringrequired
Payment link ID
Example: 66a2dc04-6fcc-3a66-b570-ea367d7df281
Query Parameters
page integer
Page for consultation.
Example: 1
perPage integer
Quantity of items per page for consultation.
Example: 10
startDate string
Initial date for consultation.
Example: 2025-04-13
endDate string
Final date for consultation.
Example: 2025-04-14
status string
Possible values: [DENIED
, PAYED
, AUTHORIZED
, PENDING
, CANCELLED
, PARTREFUNDED
, REFUNDED
]
Transaction status.
Example: PAYED
Header Parameters
Authorization stringrequired
Authentication token.
Example: Bearer <token>
Responses​
- 200
- 404
- 500
Success in recovering transactions.
- application/json
- Schema
- Example (from schema)
- Example
Schema
originId string
Billing ID
transactions array
Transactions associated with billing
perPage integer
Number of items per page
currentPage integer
Current page
nextPage stringnullable
Address to next page
previousPage stringnullable
Address to previous page
{
"originId": "66a2dc04-6fcc-3a66-b570-ea367d7df281",
"transactions": [
{
"transactionId": "afd2901c-db02-3fda-bba4-30023baeb2a2",
"status": "REFUNDED",
"amount": 1000,
"createdAt": "2025-04-15 09:47:19",
"updatedAt": "2025-04-15 09:47:19"
},
{
"transactionId": "b00389d2-e532-3f0e-8935-f24bb855983f",
"status": "PAYED",
"amount": 1000,
"createdAt": "2025-04-15 09:44:10",
"updatedAt": "2025-04-15 09:44:10"
}
],
"perPage": 10,
"currentPage": 1,
"nextPage": "http://api.picpay.com/v1/paymentlink/66a2dc04-6fcc-3a66-b570-ea367d7df281/transactions?page=2",
"previousPage": "http://api.picpay.com/v1/paymentlink/66a2dc04-6fcc-3a66-b570-ea367d7df281/transactions?page=1"
}
{
"originId": "66a2dc04-6fcc-3a66-b570-ea367d7df281",
"transactions": [
{
"id": "afd2901c-db02-3fda-bba4-30023baeb2a2",
"status": "PAYED",
"amount": 400,
"createdAt": "2025-04-13 13:12:55",
"updatedAt": "2025-04-15 13:12:55"
}
],
"perPage": 10,
"currentPage": 1,
"nextPage": null
}
Charge not found.
- application/json
- Schema
- Example (from schema)
- Example
Schema
any
{}
{}
Error fetching transactions.
- application/json
- Schema
- Example (from schema)
- Example
Schema
error
message string
Mensagem de erro
{
"error": {
"message": "Erro ao buscar transações."
}
}
{
"error": {
"message": "Erro ao buscar transações."
}
}
Loading...