This page contains two methods for checking the status of a transaction. You can use pooling or webhook.
To check the status of payments (deposits) you can use the endpoints below
To check the status of transfers (withdrawal) you can use the endpoints below
Monitor via webhook to receive notifications and have the status of your payments and transfers updated in real time.
With webhooks you can enter a URL of your application that is available to the Internet, to receive notifications regarding status changes of payments and transfers from Pagstar.
Fields with * are required. The others are considered optional.
PATCH
https://api.pagstar.com/api/v2/identity/partner/notification-url
All events are sent via a HTTP/HTTPS POST request with the JSON format in the payload.
We recommend for security reasons to only accept notifications from IP 3.128.119.90
Your endpoint must return a success status code in the response, where (2xx) is a valid format, so we will consider it as delivered. Otherwise, we will retry to deliver the notification 2 more times, after which we will no longer attempt to deliver the notification for this event.
A notification that has already been sent can be sent via the panel, or if the settlement bank sends us the approval event again.
The example below is an example of an event payload that we sent.
Webhook containing information update of a payment transaction
Example of approved payment, using the old format
Example of a canceled payment, using the old format
Example of approved payment, using the new format
Example of a canceled payment, using the new format
The properties end2end is not used for payments and user_id is only used for payments with the Pagstar digital wallet.
Payments are only cancelled after 1 hour of expiration time.
Webhook containing information update of a transfer transaction
Example of approved transfer, using the old format
Example of canceled transfer, using the old format
Example of approved transfer, using the new format
Example of canceled transfer, using the new format
The user_id property is only used for payments with Pagstar's digital wallet.
The Status API contains the endpoints to get more details of a payment and also a quick status check.
Fields with * are required. The others are considered optional.
To check the status of payments (deposits) you can use the endpoints below
HEAD
https://api.pagstar.com/api/v2/wallet/partner/transactions/:external_reference/check
Check transaction status with HTTP status-only
GET
https://api.pagstar.com/api/v2/wallet/partner/transactions/:external_reference
Returns transaction info
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|
Name | Type | Description |
---|
Name | Type | Description |
---|
Name | Type | Description |
---|
Authorization*
String
Bearer token
User-Agent*
String
Empresa X (contato@empresa.com)
Content-Type*
String
application/json
notification_url*
String
URL to receive notification
notify_type
Number
update the webhook format you want to receive
external_reference* | String | Pagstar transaction reference |
Authorization* | String | Bearer token |
Content-Type* | String | Empresa X (contato@empresa.com) |
User-Agent* | String | application/json |
external_reference* | String | Pagstar transaction reference |
Authorization* | String | Bearer token |
Content-Type* | String | Empresa X (contato@empresa.com) |
User-Agent* | String | application/json |
The Status API contains the endpoints to get more details of a transfer and also a quick status check.
Fields with * are required. The others are considered optional.
To check the status of payments (deposits) you can use the endpoints below
GET
https://api.pagstar.com/api/v2/wallet/partner/transfers/:external_reference/check
Returns transaction info
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
external_reference*
String
Pagstar transaction reference
Authorization*
String
Bearer token
Content-Type*
String
Empresa X (contato@empresa.com)
User-Agent*
String
application/json