Querying a charge
Querying the status of a charge#
You can query the details and current status of a transaction using the transaction_id generated by PicPay or the reference_id generated by the partner.
Endpoint#
Request example#
Or using reference_id:
Query parameters#
| Parameter | Type | Required | Description |
|---|---|---|---|
transaction_id | string | Yes* | Transaction identifier generated by PicPay at the time of the charge |
reference_id | string | Yes* | Unique transaction identifier generated by the partner |
*At least one of the two must be provided.
Successful response#
Response fields#
| Field | Description |
|---|---|
id | Internal payment ID |
reference_id | External ID provided by the seller |
status | Current payment status |
created_at | Creation date |
paid_at | Payment date (null if not paid) |
value | Payment amount (or captured amount if partial capture) |
refunded_value | Total amount already refunded |
transactions[].id | Transaction ID |
transactions[].value | Transaction amount |
transactions[].status | Individual transaction status |
transactions[].captured_value | Captured amount (deferred capture) |
transactions[].captured_at | Capture date |
transactions[].refunds[] | List of refunds performed |
Possible statuses#
| Status | Type | Description |
|---|---|---|
CREATED | Initial | Transaction created, in initial processing |
PENDING | Intermediate | Being processed (challenge, analysis) |
AUTHORIZED | Intermediate | Authorized, awaiting deferred capture |
PAID | Final | Paid and captured |
COMPLETED | Final | Financially settled |
REFUSED | Declined | Declined (balance, card, risk or security) |
CANCELLED | Final | Canceled before capture (deferred capture) |
EXPIRED | Final | Deferred capture not performed within 6 days |
REFUNDED | Final | Fully refunded |
PARTIALLY_REFUNDED | Final | Partially refunded |
TIMEOUT_REFUNDED | Final | Asynchronous refund triggered after charge timeout |
ERROR | Final | Error during transaction processing |