Uruguay
Example PayOut Request and Response
Last updated
Example PayOut Request and Response
Last updated
POST
https://api.stage.localpayment.com /api/payout
Create a payout order
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
{
"transactionType": "PayOut",
"externalId": "1669914750",
"internalId": "b46fcc5f-f901-4747-8650-e99bb3e82d01",
"loteOut": null,
"paymentMethod": {
"code": "0200",
"name": "SPI",
"description": "SPI",
"paymentMethodType": "BankTransfer"
},
"country": "URY",
"currency": "UYU",
"amount": 500.1,
"accountNumber": {{Your Account}},
"clientCode": {{Your Client Code}},
"clientName": {{Your Client Name}},
"confirmed": {
"description": null,
"currency": "USD",
"fxQuote": 37.54525305,
"amount": 13.32
},
"payment": {
"description": null,
"currency": "UYU",
"fxQuote": 1.0,
"amount": 500.1
},
"fees": {
"description": "Fee",
"currency": "USD",
"fxQuote": 1.0,
"amount": 2.5
},
"localTaxes": [],
"withHoldings": [],
"status": {
"code": "101",
"description": "Locked",
"detail": "The payout has been confirmed and passed AML validations"
},
"beneficiary": {
"bank": {
"name": "Banco Name",
"code": "1137",
"branch": null,
"account": {
"number": "000001156543",
"type": "S",
"alias": null,
"pixKey": null,
"phone": null
}
},
"type": "INDIVIDUAL",
"name": "Beneficiary Name ",
"lastName": "Beneficiary LastName",
"document": {
"type": "RUT",
"id": "6.075.936-0"
},
"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
},
"exchangeRateToken": null,
"date": {
"creationDate": "2022-12-01T17:12:29.9616663+00:00",
"processedDate": "2022-12-01T17:12:30.3299623+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"
}
]
}
{
"externalId": "{{$timestamp}}",
"country": "URY",
"currency": "UYU",
"amount": 500.10,
"paymentMethod": {
"type": "BankTransfer",
"code": "0200",
"flow": "direct"
},
"beneficiary": {
"name": "Beneficiary Name ",
"lastName": "Beneficiary LastName",
"type": "INDIVIDUAL",
"document": {
"type": "RUT",
"id": "6.075.936-0"
},
"bank": {
"name": "Banco Name",
"code": "1137",
"account": {
"number": "000001156543",
"type": "S"
}
}
},
"sender": {
"type": "INDIVIDUAL",
"name": "Sender Name",
"lastName": "Sender LastName"
},
"merchant": {
"type": "COMPANY",
"name": "Merchant Name"
},
"accountNumber": 858.840.00000003,
"conceptCode": "0001"
}
]
curl --location --request POST {{Api_URL}} \
--header 'Authorization: {{Token_Generated}} \
--header 'Content-Type: application/json' \
--data-raw ' [
{
"externalId": "{{$timestamp}}",
"country": "URY",
"currency": "UYU",
"amount": 500,
"paymentMethod": {
"type": "BankTransfer",
"code": "0200",
"flow": "direct"
},
"beneficiary": {
"type": "INDIVIDUAL",
"name": "Beneficiary Name",
"lastName": "Beneficiary LastName",
"document": {
"type": "RUT",
"id": "6.075.936-0"
},
"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": "Banco Name",
"code": "1137",
"branch": {
"name": "Branch Name",
"code": "69361"
},
"account": {
"number": "000001156543",
"type": "S"
}
}
},
"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": 858.840.00000003,
"conceptCode": "0001",
"comment": "Addicional information"
}
]
{
"transactionType": "PayOut",
"externalId": "1669914750",
"internalId": "b46fcc5f-f901-4747-8650-e99bb3e82d01",
"loteOut": null,
"paymentMethod": {
"code": "0200",
"name": "SPI",
"description": "SPI",
"paymentMethodType": "BankTransfer"
},
"country": "URY",
"currency": "UYU",
"amount": 500.1,
"accountNumber": {{Your Account}},
"clientCode": {{Your Client Code}},
"clientName": {{Your Client Name}},
"confirmed": {
"description": null,
"currency": "USD",
"fxQuote": 37.54525305,
"amount": 13.32
},
"payment": {
"description": null,
"currency": "UYU",
"fxQuote": 1.0,
"amount": 500.1
},
"fees": {
"description": "Fee",
"currency": "USD",
"fxQuote": 1.0,
"amount": 2.5
},
"localTaxes": [],
"withHoldings": [],
"status": {
"code": "101",
"description": "Locked",
"detail": "The payout has been confirmed and passed AML validations"
},
"beneficiary": {
"bank": {
"name": "Banco Name",
"code": "1137",
"branch": null,
"account": {
"number": "000001156543",
"type": "S",
"alias": null,
"pixKey": null,
"phone": null
}
},
"type": "INDIVIDUAL",
"name": "Beneficiary Name ",
"lastName": "Beneficiary LastName",
"document": {
"type": "RUT",
"id": "6.075.936-0"
},
"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
},
"exchangeRateToken": null,
"date": {
"creationDate": "2022-12-01T17:12:29.9616663+00:00",
"processedDate": "2022-12-01T17:12:30.3299623+00:00"
},
"errors": null
}
{
"externalId": "1669914759",
"internalId": "00000000-0000-0000-0000-000000000000",
"status": {
"code": "300",
"description": "Rejected",
"detail": "Invalid param + [param name] + [reason]"
},
"errors": [
{
"code": "300",
"description": "Invalid param + accountNumber + URU currency doesn´t match the account number"
}
]
}