Skip to main content
Skip table of contents

API de Autorización con Transferencia Bancaria

Request

Objeto method_details para transferencias bancarias que se encuentra dentro de la trama de autorización: API de Autorizacion.

Field

Description

Accepted Value

Type

Obligatorio

redirect_url

URL donde se realizará el redirect cuando finalice la autorización

Cadena alfanumérica

String

SI

callback_url

URL donde se realizará la notificacion host to host (server to server)

Cadena alfanumérica

String

NO

Ejemplo

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

Para recibir la respuesta de la Autorizacion final con Autenticacion Redirect tomar en cuenta las Consideraciones para los métodos con Redirect.

Ejemplo

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.