Skip to main content
Skip table of contents

Generar PayOut a una cuenta Bancaria

Este servicio tiene como función permitir realizar un PayOut con el Token de Seguridad obtenido anteriormente.

Ambiente

EndPoint

Método

Desarrollo

https://api.dev.alignet.io/onboarding/payfac/{{payfacid}}/merchants/{{merchantid}}/payouts

POST

Producción

https://api.alignet.io/onboarding/payfac/{{payfacid}}/merchants/{{merchantid}}/payouts

POST

Headers

Cabecera

Valor

Requerido

Content-Type

application/json

SI

Authorization

Bearer <Access_Token>

SI

JSON
"Content-Type":"application/json",
"Authorization":"Bearer yJhbGciOiJSUzI1NsInR5cCI6IkpXVCIsImt………",

Request

Parámetro

Requerido

Descripción

Tipo

action

Si

Descripción del proceso que debe realizarse. Valor fijo: "pay_out"

string

pay_out.name

Si

Descripción de la solicitud actual

string

pay_out.country

Si

Código ISO de tres cifras del país

string

pay_out.currency

Si

Divisa de la transacción en valor numérico ISO de 3 dígitos

string

pay_out.payments.internal_transaction_id

Si

Número de operación

string

pay_out.payments.payment_date

Si

Fecha en la que debe efectuarse el pago

YYYY-MM-DD

payee.bank_name

Si

Nombre del banco

string

payee.first_name

Si

Nombre del beneficiario

string

payee.email_addres

Si

Correo electrónico del beneficiario

string

payee.account_type

Si

Tipo de cuenta (ahorro, corriente, vista, rut, etc.)

string

payee. account_number

Si

El identificador de una cuenta

Númerico

payee.cci_number

Sólo para Perú, para el resto de países no es obligatorio

El identificador de la cuenta interbancaria

Númerico

payee.identity_document_country

Si

País de expedición del documento de identidad

string

payee.identity_document_type

Si

Tipo de documento de identidad

string

payee.identity_document_identifier

Si

El número de identificación

Númerico

Ejemplo

JSON
{
    "action": "pay_out",
    "pay_out": {
        "name": "Retiro de apuestas 202203111l34434",
        "country": "PER",
        "currency": "604",
        "payments": [
            {
                "internal_transaction_id": "{{$randomUUID}}",
                "payment_date": "2022-08-03",
                "amount": [
                    {
                        "currency":"604",
                        "value":100000
                    }
                ],
                "payee": {
                    "bank_name": "banco_de_credito",
                    "first_name": "Mariano Leon",
                    "last_name": "Sanchez Carranza",
                    "email_address": "foo.bar@email.com",
                    "account_type": "savings_account",
                    "account_number": "19132812068001",
                    "cci_number": "",
                    "identity_document_country": "PER",
                    "identity_document_type": "DNI",
                    "identity_document_identifier": "43380000",
                    "department": "Lima",
                    "phone": {
                        "country_code": "51",
                        "subscriber": "851859400"
                    },
                    "kycyn": "string",
                    "reference": "string"
                },
                "user": {
                    "name": "foo2022",
                    "id": "1195859"
                }
            }
        ]
    }
}

Response

En la siguiente tabla puede ver un ejemplo para el país:

Peru

CODE
{
			"name": "Payout PERU",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "Authorization",
						"value": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJodHRwczovL2F1dGguYWxpZ25ldC5pbyIsInN1YiI6ImJDWG5TOHRqVWpiaTdKWTRVQW1scDVBakg4OEVDTlZOIiwiYXVkIjoiaHR0cHM6Ly84ZWZ0Z3BoOWthLmV4ZWN1dGUtYXBpLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tIiwiaWF0IjoxNjc0Njg1MDM4LCJleHAiOjE2NzQ2OTM2MzgsImF6cCI6ImJDWG5TOHRqVWpiaTdKWTRVQW1scDVBakg4OEVDTlZOIiwic2NvcGUiOiJjcmVhdGU6dG9rZW4gYXBpLXRlc3Q6Y3JlYXRlOnRva2VuIiwiZ3R5IjoiY2xpZW50X2NyZWRlbnRpYWxzIn0.gYIN8NG8GkMsfuPXjqQG1nSxEJeO1GOBArm-RLvK46DDU-SliI5EjMpvsn21vvnRgO1RXW-M5S97UqWdCcWw1g7S3RxqW_CxWxa6D8uAKXXagfGlka0sRkKKEViFzwk1q3lZ-VTHCTQpv2aA71KoneXpgGMPWXfQ3dZiqEqaZg1AA7KIohqPocVjVBXsze4tUDaHiXjxQvXJC6cAMKwKVzi7Z-ovr6tx_vd8iIxXveV36rEEcW29vtai3yniB8UhC6ZcCW1BmL_mzTJVE675ERWfTbtGa1_HAyodxkhiajUiPUpNcF3HAcIP5eadkIhxxWpxHlTGytRl3NzDrNYJJI4i5hv1KTLYJ2449J0a0k980X-9mRnXlDFyUh2AuozP1YDf33D-OmMrSRWnxu5zdjz0RoHg7ctrrIN1iA0GZsFf4jyBpNJp9Qsr98u0POa7JjVpLew7-cD1_u4FNm6iIbPYX3we0ty1a_RRXmjNDBgKlqB_CkPccqiknQ0tDmeUD3qO0fp6UkdRtp9O6GjpNGpVzx2PRSx9MEHm0l5a5dkiSZOegIgPGftFB62VEZcCM6c4olblx9aW7cSrJvW55hLx8C0kjJCz6Ykn1tKD3tnI-nLNxHOdU5Hz4zqGMw3tieQz24JEa9d_LZwT0tHEJ2lLbHsZjAgCsZqiQl_CRwg",
						"type": "text"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"action\": \"pay_out\",\n    \"pay_out\": {\n        \"name\": \"Retiro de apuestas ganadas\",\n        \"country\": \"PER\",\n        \"currency\": \"604\",\n        \"payments\": [\n            {\n                \"internal_transaction_id\": \"{{$randomUUID}}\",\n                \"payment_date\": \"2022-05-17\",\n                \"amount\": [\n                    {\n                        \"currency\":\"604\",\n                        \"value\":100000\n                    }\n                ],\n                \"payee\": {\n                    \"bank_name\": \"banbif\",\n                    \"first_name\": \"Mariano Leon\",\n                    \"last_name\": \"Sanchez Carranza\",\n                    \"email_address\": \"foo.bar@email.com\",\n                    \"account_type\": \"savings_account\",\n                    \"account_number\": \"00219400254640654321\",\n                    \"cci_number\": \"00219400254640654321\",\n                    \"identity_document_country\": \"PER\",\n                    \"identity_document_type\": \"DNI\",\n                    \"identity_document_identifier\": \"72698161\",\n                    \"department\": \"Lima\",\n                    \"phone\": {\n                        \"country_code\": \"51\",\n                        \"subscriber\": \"967918120\"\n                    },\n                    \"kycyn\": \"string\",\n                    \"reference\": \"string\"\n                },\n                \"user\": {\n                    \"name\": \"foo2022\",\n                    \"id\": \"1195859\"\n                }\n            }\n        ]\n    }\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "https://api.dev.alignet.io/onboarding/payfac/{{payfacid}}/merchants/{{merchantid}}/payouts",
					"protocol": "https",
					"host": [
						"api",
						"dev",
						"alignet",
						"io"
					],
					"path": [
						"onboarding",
						"payfac",
						"{{payfacid}}",
						"merchants",
						"{{merchantid}}",
						"payouts"
					]
				}
			},
			"response": []
		},

Ecuador

CODE
{
			"name": "Payout ECUADOR",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "Authorization",
						"value": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJodHRwczovL2F1dGguYWxpZ25ldC5pbyIsInN1YiI6ImJDWG5TOHRqVWpiaTdKWTRVQW1scDVBakg4OEVDTlZOIiwiYXVkIjoiaHR0cHM6Ly84ZWZ0Z3BoOWthLmV4ZWN1dGUtYXBpLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tIiwiaWF0IjoxNjc0Njg1MDM4LCJleHAiOjE2NzQ2OTM2MzgsImF6cCI6ImJDWG5TOHRqVWpiaTdKWTRVQW1scDVBakg4OEVDTlZOIiwic2NvcGUiOiJjcmVhdGU6dG9rZW4gYXBpLXRlc3Q6Y3JlYXRlOnRva2VuIiwiZ3R5IjoiY2xpZW50X2NyZWRlbnRpYWxzIn0.gYIN8NG8GkMsfuPXjqQG1nSxEJeO1GOBArm-RLvK46DDU-SliI5EjMpvsn21vvnRgO1RXW-M5S97UqWdCcWw1g7S3RxqW_CxWxa6D8uAKXXagfGlka0sRkKKEViFzwk1q3lZ-VTHCTQpv2aA71KoneXpgGMPWXfQ3dZiqEqaZg1AA7KIohqPocVjVBXsze4tUDaHiXjxQvXJC6cAMKwKVzi7Z-ovr6tx_vd8iIxXveV36rEEcW29vtai3yniB8UhC6ZcCW1BmL_mzTJVE675ERWfTbtGa1_HAyodxkhiajUiPUpNcF3HAcIP5eadkIhxxWpxHlTGytRl3NzDrNYJJI4i5hv1KTLYJ2449J0a0k980X-9mRnXlDFyUh2AuozP1YDf33D-OmMrSRWnxu5zdjz0RoHg7ctrrIN1iA0GZsFf4jyBpNJp9Qsr98u0POa7JjVpLew7-cD1_u4FNm6iIbPYX3we0ty1a_RRXmjNDBgKlqB_CkPccqiknQ0tDmeUD3qO0fp6UkdRtp9O6GjpNGpVzx2PRSx9MEHm0l5a5dkiSZOegIgPGftFB62VEZcCM6c4olblx9aW7cSrJvW55hLx8C0kjJCz6Ykn1tKD3tnI-nLNxHOdU5Hz4zqGMw3tieQz24JEa9d_LZwT0tHEJ2lLbHsZjAgCsZqiQl_CRwg",
						"type": "text"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"action\": \"pay_out\",\n    \"pay_out\": {\n        \"name\": \"Retiro de apuestas ganadas\",\n        \"country\": \"PER\",\n        \"currency\": \"840\",\n        \"payments\": [\n            {\n                \"internal_transaction_id\": \"{{$randomUUID}}\",\n                \"payment_date\": \"2022-05-17\",\n                \"amount\": [\n                    {\n                        \"currency\":\"840\",\n                        \"value\":100000\n                    }\n                ],\n                \"payee\": {\n                    \"bank_name\": \"banbif\",\n                    \"first_name\": \"Mariano Leon\",\n                    \"last_name\": \"Sanchez Carranza\",\n                    \"email_address\": \"foo.bar@email.com\",\n                    \"account_type\": \"savings_account\",\n                    \"account_number\": \"00219400254640654321\",\n                    \"cci_number\": \"00219400254640654321\",\n                    \"identity_document_country\": \"ECU\",\n                    \"identity_document_type\": \"PAS\",\n                    \"identity_document_identifier\": \"72698161\",\n                    \"department\": \"Quito\",\n                    \"phone\": {\n                        \"country_code\": \"593\",\n                        \"subscriber\": \"967918120\"\n                    },\n                    \"kycyn\": \"string\",\n                    \"reference\": \"string\"\n                },\n                \"user\": {\n                    \"name\": \"foo2022\",\n                    \"id\": \"1195859\"\n                }\n            }\n        ]\n    }\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "https://api.dev.alignet.io/onboarding/payfac/{{payfacid}}/merchants/{{merchantid}}/payouts",
					"protocol": "https",
					"host": [
						"api",
						"dev",
						"alignet",
						"io"
					],
					"path": [
						"onboarding",
						"payfac",
						"{{payfacid}}",
						"merchants",
						"{{merchantid}}",
						"payouts"
					]
				}
			},
			"response": []
		}

Chile

CODE
{
			"name": "Payout CHILE",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "Authorization",
						"value": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJodHRwczovL2F1dGguYWxpZ25ldC5pbyIsInN1YiI6ImJDWG5TOHRqVWpiaTdKWTRVQW1scDVBakg4OEVDTlZOIiwiYXVkIjoiaHR0cHM6Ly84ZWZ0Z3BoOWthLmV4ZWN1dGUtYXBpLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tIiwiaWF0IjoxNjc0Njg1MDM4LCJleHAiOjE2NzQ2OTM2MzgsImF6cCI6ImJDWG5TOHRqVWpiaTdKWTRVQW1scDVBakg4OEVDTlZOIiwic2NvcGUiOiJjcmVhdGU6dG9rZW4gYXBpLXRlc3Q6Y3JlYXRlOnRva2VuIiwiZ3R5IjoiY2xpZW50X2NyZWRlbnRpYWxzIn0.gYIN8NG8GkMsfuPXjqQG1nSxEJeO1GOBArm-RLvK46DDU-SliI5EjMpvsn21vvnRgO1RXW-M5S97UqWdCcWw1g7S3RxqW_CxWxa6D8uAKXXagfGlka0sRkKKEViFzwk1q3lZ-VTHCTQpv2aA71KoneXpgGMPWXfQ3dZiqEqaZg1AA7KIohqPocVjVBXsze4tUDaHiXjxQvXJC6cAMKwKVzi7Z-ovr6tx_vd8iIxXveV36rEEcW29vtai3yniB8UhC6ZcCW1BmL_mzTJVE675ERWfTbtGa1_HAyodxkhiajUiPUpNcF3HAcIP5eadkIhxxWpxHlTGytRl3NzDrNYJJI4i5hv1KTLYJ2449J0a0k980X-9mRnXlDFyUh2AuozP1YDf33D-OmMrSRWnxu5zdjz0RoHg7ctrrIN1iA0GZsFf4jyBpNJp9Qsr98u0POa7JjVpLew7-cD1_u4FNm6iIbPYX3we0ty1a_RRXmjNDBgKlqB_CkPccqiknQ0tDmeUD3qO0fp6UkdRtp9O6GjpNGpVzx2PRSx9MEHm0l5a5dkiSZOegIgPGftFB62VEZcCM6c4olblx9aW7cSrJvW55hLx8C0kjJCz6Ykn1tKD3tnI-nLNxHOdU5Hz4zqGMw3tieQz24JEa9d_LZwT0tHEJ2lLbHsZjAgCsZqiQl_CRwg",
						"type": "text"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"action\": \"pay_out\",\n    \"pay_out\": {\n        \"name\": \"Retiro de apuestas ganadas\",\n        \"country\": \"CHL\",\n        \"currency\": \"152\",\n        \"payments\": [\n            {\n                \"internal_transaction_id\": \"{{$randomUUID}}\",\n                \"payment_date\": \"2022-05-17\",\n                \"amount\": [\n                    {\n                        \"currency\":\"152\",\n                        \"value\":100000\n                    }\n                ],\n                \"payee\": {\n                    \"bank_name\": \"banbif\",\n                    \"first_name\": \"Mariano Leon\",\n                    \"last_name\": \"Sanchez Carranza\",\n                    \"email_address\": \"foo.bar@email.com\",\n                    \"account_type\": \"savings_account\",\n                    \"account_number\": \"00219400254640654321\",\n                    \"cci_number\": \"00219400254640654321\",\n                    \"identity_document_country\": \"CHL\",\n                    \"identity_document_type\": \"RUT\",\n                    \"identity_document_identifier\": \"72698161\",\n                    \"department\": \"Valparaiso\",\n                    \"phone\": {\n                        \"country_code\": \"56\",\n                        \"subscriber\": \"967918120\"\n                    },\n                    \"kycyn\": \"string\",\n                    \"reference\": \"string\"\n                },\n                \"user\": {\n                    \"name\": \"foo2022\",\n                    \"id\": \"1195859\"\n                }\n            }\n        ]\n    }\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "https://api.dev.alignet.io/onboarding/payfac/{{payfacid}}/merchants/{{merchantid}}/payouts",
					"protocol": "https",
					"host": [
						"api",
						"dev",
						"alignet",
						"io"
					],
					"path": [
						"onboarding",
						"payfac",
						"{{payfacid}}",
						"merchants",
						"{{merchantid}}",
						"payouts"
					]
				}
			},
			"response": []
		}

Argentina

CODE
{
			"name": "Payout ARGENTINA",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "Authorization",
						"value": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJodHRwczovL2F1dGguYWxpZ25ldC5pbyIsInN1YiI6ImJDWG5TOHRqVWpiaTdKWTRVQW1scDVBakg4OEVDTlZOIiwiYXVkIjoiaHR0cHM6Ly84ZWZ0Z3BoOWthLmV4ZWN1dGUtYXBpLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tIiwiaWF0IjoxNjc0Njg1MDM4LCJleHAiOjE2NzQ2OTM2MzgsImF6cCI6ImJDWG5TOHRqVWpiaTdKWTRVQW1scDVBakg4OEVDTlZOIiwic2NvcGUiOiJjcmVhdGU6dG9rZW4gYXBpLXRlc3Q6Y3JlYXRlOnRva2VuIiwiZ3R5IjoiY2xpZW50X2NyZWRlbnRpYWxzIn0.gYIN8NG8GkMsfuPXjqQG1nSxEJeO1GOBArm-RLvK46DDU-SliI5EjMpvsn21vvnRgO1RXW-M5S97UqWdCcWw1g7S3RxqW_CxWxa6D8uAKXXagfGlka0sRkKKEViFzwk1q3lZ-VTHCTQpv2aA71KoneXpgGMPWXfQ3dZiqEqaZg1AA7KIohqPocVjVBXsze4tUDaHiXjxQvXJC6cAMKwKVzi7Z-ovr6tx_vd8iIxXveV36rEEcW29vtai3yniB8UhC6ZcCW1BmL_mzTJVE675ERWfTbtGa1_HAyodxkhiajUiPUpNcF3HAcIP5eadkIhxxWpxHlTGytRl3NzDrNYJJI4i5hv1KTLYJ2449J0a0k980X-9mRnXlDFyUh2AuozP1YDf33D-OmMrSRWnxu5zdjz0RoHg7ctrrIN1iA0GZsFf4jyBpNJp9Qsr98u0POa7JjVpLew7-cD1_u4FNm6iIbPYX3we0ty1a_RRXmjNDBgKlqB_CkPccqiknQ0tDmeUD3qO0fp6UkdRtp9O6GjpNGpVzx2PRSx9MEHm0l5a5dkiSZOegIgPGftFB62VEZcCM6c4olblx9aW7cSrJvW55hLx8C0kjJCz6Ykn1tKD3tnI-nLNxHOdU5Hz4zqGMw3tieQz24JEa9d_LZwT0tHEJ2lLbHsZjAgCsZqiQl_CRwg",
						"type": "text"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"action\": \"pay_out\",\n    \"pay_out\": {\n        \"name\": \"Retiro de apuestas ganadas\",\n        \"country\": \"ARG\",\n        \"currency\": \"032\",\n        \"payments\": [\n            {\n                \"internal_transaction_id\": \"{{$randomUUID}}\",\n                \"payment_date\": \"2022-05-17\",\n                \"amount\": [\n                    {\n                        \"currency\":\"032\",\n                        \"value\":100000\n                    }\n                ],\n                \"payee\": {\n                    \"bank_name\": \"banbif\",\n                    \"first_name\": \"Mariano Leon\",\n                    \"last_name\": \"Sanchez Carranza\",\n                    \"email_address\": \"foo.bar@email.com\",\n                    \"account_type\": \"savings_account\",\n                    \"account_number\": \"00219400254640654321\",\n                    \"cci_number\": \"00219400254640654321\",\n                    \"identity_document_country\": \"ARG\",\n                    \"identity_document_type\": \"CUIL\",\n                    \"identity_document_identifier\": \"72698161\",\n                    \"department\": \"Buenos Aires\",\n                    \"phone\": {\n                        \"country_code\": \"54\",\n                        \"subscriber\": \"967918120\"\n                    },\n                    \"kycyn\": \"string\",\n                    \"reference\": \"string\"\n                },\n                \"user\": {\n                    \"name\": \"foo2022\",\n                    \"id\": \"1195859\"\n                }\n            }\n        ]\n    }\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "https://api.dev.alignet.io/onboarding/payfac/{{payfacid}}/merchants/{{merchantid}}/payouts",
					"protocol": "https",
					"host": [
						"api",
						"dev",
						"alignet",
						"io"
					],
					"path": [
						"onboarding",
						"payfac",
						"{{payfacid}}",
						"merchants",
						"{{merchantid}}",
						"payouts"
					]
				}
			},
			"response": []
		}
	]
JavaScript errors detected

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

If this problem persists, please contact our support.