Skip to main content
Skip table of contents

Get Transaction

The function of this service is to receive a Transaction Number as a get parameter in the URL to identify a transaction and return the associated data.

Environment

EndPoint

Method

Development

https://api.dev.alignet.io/charges

GET

Production

https://api.alignet.io/charges

GET

The Operation Number is received as a parameter in the URL:

Example: https://api.dev.alignet.io/charges/123456

Request Headers

Header

Value

Required

ALG-API-VERSION

Versión del API a utilizar. Valores disponibles: 1618440906

Yes

Authorization

Bearer <Access_Token>

Yes

JSON
"ALG-API-VERSION":"1618440906",
"Authorization":"Bearer eyJhbGciOiJSUzI1NsInR5cCI6IkpXVCIsImt………",

Response

Parameter

Description

success

Result of the operation:

True: processed successfully.

False: not processed successfully.

result

Numeric value corresponding to the status of the transaction. Its values correspond to:

0 : Registered

1 : Invalid

2 : Denied

3 : Authorized

4 : Deleted

5 : Deposited

6 : Canceled

7 : Liquidated

8 : Cancelled

9 : Disapproved

10 : Deposited by return

11 : Cancelled by return

12 : Liquidated by return

13 : Incomplete

14 : Failed Reversal

15 : Authorized without liquidation

16 : Countercharged

17 : Pending Payment

18 : Expired Order

errorCode

Value indicating the cause of the transaction authorization or denial. Returns a code.

errorMessage

String showing the description of the authorization or denial of a transaction. Each message corresponds to an error code.

operationNumber

Value corresponding to the transaction code or number.

authorizationCode

Authorization code generated by the Issuing Bank, returned only in case of authorized transaction.

cardNumber

Value corresponding to the number of the card that is related to the order number sent, this value is sent masked.

purchaseAmount

Amount of the transaction

purchaseCurrencyCode

Currency code of the transaction.

terminalCode

Transaction terminal code.

authenticationECI

Transaction authentication code.

cardType

Card type of the transaction.

language

Language used in the transaction.

purchaseIPAddress

Registered IP of the transaction.

billingAddress

Billing address of the transaction.

billingCity

Billing city of the transaction.

billingCountry

Billing Country of the transaction.

billingEMail

Billing Email of the transaction.

billingFirstName

Billing First Name of the transaction.

billingLastName

Billing Last Name of the transaction.

billingPhone

Billing Phone of the transaction.

billingState

Billing State of the transaction.

billingZIP

Billing Zip Code of the transaction.

shippingAddress

Shipping Address of the transaction.

shippingCity

Shipping City of the transaction.

shippingCountry

Shipping Country of the transaction.

shippingEMail

Shipping Email of the transaction.

shippingFirstName

Shipping First Name of the transaction.

shippingLastName

Shipping Last Name of the transaction.

shippingPhone

Shipping Phne of the transaction.

shippingState

Shipping State of the transaction.

shippingZIP

Shipping Zip Code of the transaction.

txDateTime

Date and Time of the transaction.

transaction.meta.commerce_id

Merchant ID.

transaction.meta.internal_operation_number

Transaction Number used by the merchant in the transaction

transaction.meta.additional_fields

Reserved fields sent by the merchant in the transaction.

transaction.meta.status.code

Process status code.

transaction.meta.status.message_ilgn.locale

Regional settings defining language and country.

transaction.meta.status.message_ilgn.value

Message resulting from the process.

JSON
{
    "success": true,
    "result": "3",
    "errorCode": "00",
    "errorMessage": "Approved",
    "operationNumber": "664217",
    "authorizationCode": "124733",
    "cardNumber": "485951******0051",
    "purchaseAmount": "1650",
    "purchaseCurrencyCode": "604",
    "terminalCode": "",
    "authenticationECI": "07",
    "cardType": "VISA",
    "language": null,
    "purchaseIPAddress": "",
    "billingAddress": null,
    "billingCity": null,
    "billingCountry": "",
    "billingEMail": null,
    "billingFirstName": null,
    "billingLastName": null,
    "billingPhone": null,
    "billingState": "",
    "billingZIP": null,
    "shippingAddress": "Av casa prueba",
    "shippingCity": "LIMA",
    "shippingCountry": "PE",
    "shippingEMail": "correo@gmail.com",
    "shippingFirstName": "Juan",
    "shippingLastName": "Perez",
    "shippingPhone": "2351310",
    "shippingState": "LIMA",
    "shippingZIP": "18",
    "txDateTime": null,
    "transaction": {
        "meta": {
            "commerce_id": "11358",
            "internal_operation_number": "664217",
            "additional_fields": {
                "reserved1": "0"
            },
            "status": {
                "code": "00",
                "message_ilgn": [
                    {
                        "locale": "es_PE",
                        "value": "Se obtuvo la información solicitada"
                    }

Continue to Error Codes ➡️

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.