Chile
Example PayOut Request and Response
Create payout Chile
POST
https://api.stage.localpayment.com /api/payout
Create a payout order
Headers
Request Body
{
"externalId": "{{externalId}}",
"internalId": "{{internalId}}",
"paymentMethod": {
"code": "0130",
"name": "SPEI",
"description": "SPEI",
"paymentMethodType": "BankTransfer"
},
"country": "MEX",
"currency": "MXN",
"amount": 10.3,
"accountNumber": "{{YourAccount}}",
"clientCode": "0001",
"clientName": "ClientName",
"status": {
"code": "100",
"description": "Received",
"detail": "The payout was received"
},
"beneficiary": {
"bank": {
"name": "BankName",
"code": "646",
"branch": null,
"account": {
"number": "1234567890",
"type": "P",
"alias": null,
"pixKey": null,
"phone": null
}
},
"type": "INDIVIDUAL",
"name": "BeneficiaryName",
"lastname": "BeneficiaryLastName",
"document": {
"type": "RFC",
"id": "MAL180222MS6"
},
"userReference": null,
"email": null,
"phone": null,
"birthdate": "0001-01-01T00:00:00",
"nationality": null,
"address": null
},
"merchant": {
"type": "COMPANY",
"name": "Merchant Name",
"lastname": null,
"document": null,
"userReference": null,
"email": null,
"phone": null,
"birthdate": "0001-01-01T00:00:00",
"nationality": null,
"address": null
},
"sender": {
"type": "INDIVIDUAL",
"name": "SenderName",
"lastname": " SenderLastName",
"document": {
"type": "RFC",
"id": "MAMA831224NA1"
},
"userReference": null,
"email": null,
"phone": null,
"birthdate": "0001-01-01T00:00:00",
"nationality": null,
"address": null
},
"comment": null,
"exchangeRateToken": null,
"date": {
"creationDate": "2023-06-27T15:25:36.5878589+00:00",
"processedDate": "2023-06-27T15:25:36.6810076+00:00"
},
"errors": null
}
{
"externalId": "1669663393",
"internalId": "00000000-0000-0000-0000-000000000000",
"status": null,
"errors": [
{
"code": "719",
"description": "Amount must not be empty and more tan 0"
}
]
}
curl --location --request POST {{Api_URL}} \
--header 'Authorization: {{Token_Generated}} \
--header 'Content-Type: application/json' \
--data-raw ' [
{
"externalId": "{{externalId}}",
"country": "CHL",
"currency": "CLP",
"amount": 500.10,
"paymentMethod": {
"type": "BankTransfer",
"code": "0050",
"flow": "direct"
},
"beneficiary": {
"name": "Beneficiary Name ",
"lastName": "Beneficiary LastName",
"type": "INDIVIDUAL",
"document": {
"type": "RUT",
"id": "08.900.960-K"
},
"bank": {
"name": "Banco Name",
"code": "009",
"account": {
"number": "123456789012345",
"type": "C",
"code": "009"
}
}
},
"sender": {
"type": "INDIVIDUAL",
"name": "Sender Name",
"lastName": "Sender LastName"
},
"merchant": {
"type": "COMPANY",
"name": "Merchant Name"
},
"accountNumber": 152.152.00000004,
"conceptCode": "0001"
}
]
curl --location --request POST {{Api_URL}} \
--header 'Authorization: {{Token_Generated}} \
--header 'Content-Type: application/json' \
--data-raw ' [
{
"externalId": "{{$timestamp}}",
"country": "CHL",
"currency": "CLP",
"amount": 500,
"paymentMethod": {
"type": "BankTransfer",
"code": "0050",
"flow": "direct"
},
"beneficiary": {
"type": "INDIVIDUAL",
"name": "Beneficiary Name",
"lastName": "Beneficiary LastName",
"document": {
"type": "RUT",
"id": "0-32852742"
},
"userReference": "Additional information",
"email": "beneficiary_email@gmail.com",
"phone": {
"countryCode": "55",
"areaCode": "55",
"number": "5555555"
},
"birthDate": "1990-01-01",
"nationality": "Beneficiary Nationality",
"address": {
"street": "Av Beneficiary Address",
"number": "1234",
"city": "City Name",
"state": "State Name",
"country": "Country Name",
"ZipCode": "Zip Code",
"comment": "Additional address information"
},
"bank": {
"name": "Bank Name",
"code": "009",
"branch": {
"name": "Branch Name",
"code": " "
},
"account": {
"number": "123456789012345",
"type": "C"
}
}
},
"sender": {
"type": "INDIVIDUAL",
"name": "Sender Name",
"lastName": "Sender LastName",
"document": {
"type": "CPF",
"id": "83223084509"
},
"userReference": "additional information",
"email": "email@Sender.address",
"phone": {
"countryCode": "55",
"areaCode": "57",
"number": "7777777"
},
"birthDate": "2001-01-01",
"nationality": "Sender Nacionality",
"address": {
"street": "Av Sender Address",
"number": "1234",
"city": "City Name",
"state": "State Name",
"country": "Country Name",
"ZipCode": "Zip Code"
}
},
"merchant": {
"type": "COMPANY",
"name": "Merchant Name",
"lastName": "Merchant LastName",
"document": {
"type": "CNPJ",
"id": "34669130330133"
},
"userReference": "additional information",
"email": "email@Merchant.address",
"phone": {
"countryCode": "55",
"areaCode": "55",
"number": "66666666"
},
"birthDate": "2001-01-01",
"nationality": "Merchant Nacionality",
"address": {
"street": "Av Merchant Address",
"number": "1234",
"city": "City Name",
"state": "State Name",
"country": "Country Name",
"ZipCode": "Zip Code"
}
},
"accountNumber": 152.152.00000004,
"conceptCode": "0001",
"comment": "Addicional information"
}
]
[
{
"externalId": "1689620929",
"internalId": "8e434bc4-f982-49ea-9a08-62f542138a74",
"paymentMethod": {
"code": "0050",
"name": "ACH",
"description": "TEF",
"paymentMethodType": "BankTransfer"
},
"country": "CHL",
"currency": "CLP",
"amount": 500.1,
"accountNumber": "152.152.00000004",
"clientCode": "0001",
"clientName": "Acme",
"status": {
"code": "100",
"description": "Received",
"detail": "The payout was received"
},
"beneficiary": {
"bank": {
"name": "Banco Name",
"code": "009",
"branch": null,
"account": {
"number": "123456789012345",
"type": "C",
"alias": null,
"pixKey": null,
"phone": null
}
},
"type": "INDIVIDUAL",
"name": "Beneficiary Name ",
"lastname": "Beneficiary LastName",
"document": {
"type": "RUT",
"id": "08.900.960-K"
},
"userReference": null,
"email": null,
"phone": null,
"birthdate": "0001-01-01T00:00:00",
"nationality": null,
"address": null
},
"merchant": {
"type": "COMPANY",
"name": "Merchant Name",
"lastname": null,
"document": null,
"userReference": null,
"email": null,
"phone": null,
"birthdate": "0001-01-01T00:00:00",
"nationality": null,
"address": null
},
"sender": {
"type": "INDIVIDUAL",
"name": "Sender Name",
"lastname": "Sender LastName",
"document": null,
"userReference": null,
"email": null,
"phone": null,
"birthdate": "0001-01-01T00:00:00",
"nationality": null,
"address": null
},
"comment": null,
"exchangeRateToken": null,
"date": {
"creationDate": "2023-07-17T19:08:49.0542638+00:00",
"processedDate": "2023-07-17T19:08:49.1505068+00:00"
},
"errors": null
}
]
{
"externalId": "1669696323",
"internalId": "00000000-0000-0000-0000-000000000000",
"status": {
"code": "300",
"description": "Rejected",
"detail": "Invalid param + [param name] + [reason]"
},
"errors": [
{
"code": "300",
"description": "Invalid param + Beneficiary.Bank.branch.[code] + must not be null"
},
{
"code": "300",
"description": "Invalid param + Beneficiary.Bank.branch.code + must not be null"
}
]
}
Last updated