Skip to main content

Get transactions result through an API

This article explains how to get a transaction result through the REST API.

Make a GETrequest to the /credit/transactions/{transaction_id} endpoint.

With a valid access token, make a request to the (GET/credit/transactions/{transaction_id}) endpoint, sending the following parameters.

If everything is right in the request, the response is a JSON with the transaction status, as follows:

{
"status": "processing"
}

For more information about the status, see the Enumerations article.

If an error occurs, the response is a JSON with the error and the error code:

{
"error": {
"code": "40004",
"description": "transaction id is invalid"
}
}

The following is a list of possible errors returned by the service:

HTTP CodeCodeDescriptionReason
40040001error decoding jsonThe data sent does not match the service contract
40040002error validating jsonSome of the information is badly formatted or not filled in
40040004transaction id is invalidThe transaction id is invalid (format)
40340301not allowedThe user does not have permission to perform such an action.
40440401transaction not foundTransaction not found
50050001internal errorInternal service failure

Get transaction status update notifications

It is possible to receive notifications of transactions' status changes, and this is done through a webhook. See how in the Get transaction result via webhook section.

Any concerns?

Missing something or still need help? If you are already a customer or partner, you can contact us through the Help Center.