List transactions and retrieve the details or latest status of a payment.
Overview
Collection and disbursement responses return a payment_id. Store this identifier and use it to retrieve the payment or request its latest transaction status.
Retrieve transaction information
Payment identifiers
The response from a collection or disbursement request includes payment_id. Store it with your own external_id so you can reconcile the payment later.
Use the TricsoftPay payment_id, not external_id, when requesting payment details or status.
List transactions
Use GET {{base_url}}/payments to retrieve transactions. Results are paginated and can be filtered by status.
Query parameters
Parameter
Type
Description
page
integer
The page to return. Defaults to 1.
page_size
integer
The number of transactions per page. Defaults to 25.
var paymentId = "payment_id_from_creation_response";
var response = await paymentGateway.GetAsync($"{{base_url}}/payments/{paymentId}");
response.EnsureSuccessStatusCode();
var payment = await response.Content.ReadAsStringAsync();
Check transaction status
Use POST {{base_url}}/payments/status with payment_id to retrieve the latest state of a payment.
Request fields
Field
Type
Description
payment_id
string
The TricsoftPay payment identifier returned by the collection or disbursement request.
var response = await paymentGateway.PostAsJsonAsync(
"{{base_url}}/payments/status",
new { payment_id = "payment_id_from_creation_response" }
);
response.EnsureSuccessStatusCode();
var status = await response.Content.ReadAsStringAsync();