Skip to main content
Skip table of contents

Bank Transfer Authorization API

Request

Method_details object for bank transfers inside the authorization frame:Authorization API.

Field

Description

Accepted Value

Type

Madatory

redirect_url

URL where the redirect will be performed when the authorization is completed

Alfanumeric

String

YES

callback_url

URL where host to host (server to server) notification will take place

Alfanumeric

String

NO

Example

JSON
{
    "action": "authorize",
    "channel": "ecommerce",
    "merchant_code":"b0deb6f3-e51a-48a7-9268-f1441d46f7bd",
    "merchant_operation_number": "5974483",
    "payment_method": {
        "method_name": "BANK_TRANSFER",
        "method_details": {
            "redirect_url": "https://pay-me.com",
            "callback_url": "https://pay-me.com/callback",
        }
    },
    "payment_details": {
        "amount": "15000",
        "currency": "604",
        "billing": {
            "first_name": "Pedro",
            "last_name": "Miranda",
            "email": "pedro@pay-me.com",
            "phone": {
                "country_code": "+51",
                "subscriber": "999835685"
            },
            "location": {
                "line_1": "Av. Casimiro Ulloa 333",
                "line_2": "Miraflores",
                "city": "Lima",
                "state": "Lima",
                "country": "Peru"
            }
        },
        "shipping": {
            "first_name": "Pedro",
            "last_name": "Miranda",
            "email": "pedro@pay-me.com",
            "phone": {
                "country_code": "+51",
                "subscriber": "999835685"
            },
            "location": {
                "line_1": "Av. Casimiro Ulloa 333",
                "line_2": "Miraflores",
                "city": "Lima",
                "state": "Lima",
                "country": "Peru"
            }
        },
        "customer": {
            "first_name": "Pedro",
            "last_name": "Miranda",
            "email": "pedro@pay-me.com",
            "phone": {
                "country_code": "+51",
                "subscriber": "999835685"
            },
            "location": {
                "line_1": "Av. Casimiro Ulloa 333",
                "line_2": "Miraflores",
                "city": "Lima",
                "state": "Lima",
                "country": "Peru"
            }
        },
        "product_details": []
        }
    }
}

Response

To receive the final Authorization response with Redirect Authentication take into consideration the Considerations for Redirect methods.

Example

JSON
{
    "success": "true",
    "action": "authorize",
    "merchant_code":"b0deb6f3-e51a-48a7-9268-f1441d46f7bd",
    "merchant_operation_number": "5974483",
    "transaction": {
        "transaction_id": "2be5s7xu4i6fzrmbvp167inb2",
        "state": "PENDIENTE",
        "redirect_url": "http://paymentapi.alignet.io/payment/redirect/cuotealo/2be5s7xu4i6fzrmbvp167inb2"
        "amount": "15000",
        "currency": "604",
        "expiration": {
            "date": {
                "day": "2024-01-14",
                "time": "22:32:47",
                "timezone": "America/Lima"
                },
            "unix_time": 1705548767
        },
        "processor_response": null
    },
    "meta": {
        "status": {
            "code": "00",
            "message_ilgn": [
                {
                    "locale": "es_PE",
                    "value": "Se genero la url correctamente"
                }
            ]
        }
    }
}
JavaScript errors detected

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

If this problem persists, please contact our support.