Overview
TheAkatus.ConsultaStatus.Consulta class provides functionality to query the current status of a transaction in the Akatus payment system. This allows you to retrieve detailed information about a transaction including its payment status, value, dates, and reference ID.
Consulta Class
consultaStatusTransacao()
Queries the status of a transaction in the Akatus system.The transaction ID (GUID format) from Akatus. This is the unique identifier assigned by Akatus when the transaction was created.
Returns
Returns anAkatus.ConsultaStatus.Retorno object containing the transaction details.
Retorno Structure
TheRetorno class contains the following properties returned from the status query:
The transaction amount/value
The date and time when the transaction was created
The date and time when the current status was set
The current payment status. Possible values:
aguardandoPagamento- Awaiting PaymentemAnalise- Under Analysisaprovado- Approvedcancelado- Canceledprocessando- Processingcompleto- Completedevolvido- Refundedestornado- Reversedchargeback- Chargeback
Your store’s transaction ID (if one was provided during transaction creation)
Usage Example
Configuration Requirements
Before using the Consulta class, ensure you have configured the following settings in yourWeb.Config:
Error Handling
The method may throw exceptions in the following scenarios:- Invalid XML format: If the API response is not valid XML
- Empty response: If the XML response contains no child nodes
- Network errors: If the HTTP request fails
API Endpoint
The method makes a GET request to:- Production:
http://www.akatus.com/api/v1/transacao-simplificada/{transactionId}.xml - Test:
http://dev.akatus.com/api/v1/transacao-simplificada/{transactionId}.xml