Mexico
Example Billing Request and Response
Create a Billing request in Mexico
POST
https://api.stage.localpayment.com /api/billing
Create a payout order
Headers
Request Body
{
"externalId": "111111111",
"internalId": "1x1x11x1-1xx1-1f11-1c41b-111111a1111c",
"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 'https://api.stage.localpayment.com/api/payout/' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNjkwNTczMTQ0LCJqdGkiOiJmNzljY2E4ZGNkOGU0ZDM1YTM2OTkzMjZlMWNhYWY3ZCIsInVzZXJfaWQiOjMwLCJzdXBlcnVzZXIiOnRydWUsImlzX3N0YWZmIjpmYWxzZSwicm9sZXMiOlsiQUxMIl0sImNvdW50cmllcyI6WyJBTEwiXSwiY29tcGFueSI6IjAwMDEiLCJjbGllbnRfY29kZSI6IjAwMDEifQ.C8W8RA5fveQ3a9IPidNZs211mu7auuCOcblQ0F3PY5s' \
--data-raw '{
"externalId": "5e7a75fe-625d-4260-b93d-97e187389109",
"country": "MEX",
"currency": "MXN",
"requiereAuth": "TRUE",
"amount": 63,
"paymentMethod": {
"type": "BankTransfer",
"code": "0130",
"flow": "direct"
},
"beneficiary": {
"type": "COMPANY",
"name": "BeneficiaryName",
"document": {
"type": "RFC",
"id": "MAMA831224NA1"
},
"userReference": "user",
"email": "email@lp.com",
"phone": {
"countryCode": "54",
"areaCode": "11",
"number": "33871784"
},
"birthDate": "2021-11-08T17:50:01.196Z",
"nationality": "beneficiary nationality",
"address": {
"street": "Beneficiary adress",
"number": "234",
"city": "City",
"state": "Villa",
"country": "Country",
"zipCode": "1411",
"comment": "TEST"
},
"bank": {
"name": "BankName",
"code": "002",
"branch": {
"name": "Branch Name",
"code": "69361"
},
"account": {
"type": "S",
"number": "002180700070799802"
}
}
},
"sender": {
"type": "INDIVIDUAL",
"name": "SenderName",
"lastname":"SenderLastName",
"document": {
"type": "CUIT",
"id": "20276209079"
}
},
"merchant": {
"type": "INDIVIDUAL",
"name": "MerchanFirstName",
"lastname":"MerchantLastName",
"document": {
"type": "CUIT",
"id": "20276209079"
},
"email": "email@hotmail.com"
},
"accountNumber": "484.484.00000011",
"conceptCode": "0003",
"comment": "TEST"
}'
curl --location 'https://api.stage.localpayment.com/api/payout' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNjg3ODc5MjcxLCJqdGkiOiIzN2UxN2E1N2M5ZjA0Y2Q1OTM4ZDNkMDA2MDc0YjNkZCIsInVzZXJfaWQiOjQwNiwic3VwZXJ1c2VyIjp0cnVlLCJpc19zdGFmZiI6ZmFsc2UsInJvbGVzIjpbIkFMTCJdLCJjb3VudHJpZXMiOlsiQUxMIl0sImNvbXBhbnkiOiIwMDAxIiwiY2xpZW50X2NvZGUiOiIwMDAxIn0.aceVSoDnnZ4RY-n3HXjDcIVl7VQxgSmy6v56Tmw39cI' \
--data '{
"externalId": "ExternalNro124",
"country": "MEX",
"currency": "MXN",
"amount": 10.3,
"paymentMethod": {
"type": "BankTransfer",
"code": "0130",
"flow": "DIRECT"
},
"beneficiary": {
"name": "BeneficiaryName",
"lastName": "BeneficiaryLastName",
"type": "INDIVIDUAL",
"document": {
"type": "RFC",
"id": "MAL180222MS6"
},
"bank": {
"name": "Bank name",
"code": "646",
"account": {
"number": "646180209100000014",
"type": "S"
}
}
},
"sender": {
"type": "INDIVIDUAL",
"name": "sender Name",
"lastName": " LastName",
"document": {
"type": "RFC",
"id": "MAMA831224NA1"
}
},
"merchant": {
"type": "COMPANY",
"name": "Merchant Name"
},
"accountNumber": "484.484.00000011",
"conceptCode": "0013"
}'
curl --location 'https://api.stage.localpayment.com/api/payout' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNjg3ODc4NTUwLCJqdGkiOiIzYTVmN2FlMGUzNGU0MmI4ODVkMzNkZDA0NzQxZjRkYyIsInVzZXJfaWQiOjQwNiwic3VwZXJ1c2VyIjp0cnVlLCJpc19zdGFmZiI6ZmFsc2UsInJvbGVzIjpbIkFMTCJdLCJjb3VudHJpZXMiOlsiQUxMIl0sImNvbXBhbnkiOiIwMDAxIiwiY2xpZW50X2NvZGUiOiIwMDAxIn0.ZKMe5P8gfCPD0QX0aqeRe7pVhDhG8DmHawRg9uKcRv4' \
--data '{
"externalId": "ExternalNro123",
"country": "MEX",
"currency": "MXN",
"amount": 10.3,
"paymentMethod": {
"type": "BankTransfer",
"code": "0130",
"flow": "DIRECT"
},
"beneficiary": {
"name": "BeneficiaryName",
"lastName": "BeneficiaryLastName",
"type": "INDIVIDUAL",
"document": {
"type": "RFC",
"id": "MAL180222MS6"
},
"bank": {
"name": "bankname",
"code": "106",
"account": {
"number": "1234567890123456",
"type": "D"
}
}
},
"sender": {
"type": "INDIVIDUAL",
"name": "sendername",
"lastName": " senderLastName",
"document": {
"type": "RFC",
"id": "MAMA831224NA1"
}
},
"merchant": {
"type": "COMPANY",
"name": "Merchant Name"
},
"accountNumber": "484.484.00000011",
"conceptCode": "0013"
}
curl --location 'https://api.stage.localpayment.com/api/payout' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNjg3ODc5NTkzLCJqdGkiOiI1NGZmYWU3MjBmN2E0YzFjYTQ1YzM3NTcwZTViNDA2NSIsInVzZXJfaWQiOjQwNiwic3VwZXJ1c2VyIjp0cnVlLCJpc19zdGFmZiI6ZmFsc2UsInJvbGVzIjpbIkFMTCJdLCJjb3VudHJpZXMiOlsiQUxMIl0sImNvbXBhbnkiOiIwMDAxIiwiY2xpZW50X2NvZGUiOiIwMDAxIn0.G46KC9S0fZPOzm-PwCvS4enzYmfsLYB8z-sAAjonKKY' \
--data '{
"externalId": "ExternalNro125",
"country": "MEX",
"currency": "MXN",
"amount": 10.3,
"paymentMethod": {
"type": "BankTransfer",
"code": "0130",
"flow": "DIRECT"
},
"beneficiary": {
"name": "BeneficiaryName",
"lastName": "BeneficiaryLastName",
"type": "INDIVIDUAL",
"document": {
"type": "RFC",
"id": "MAL180222MS6"
},
"bank": {
"name": "BankName",
"code": "646",
"account": {
"number": "1234567890",
"type": "P"
}
}
},
"sender": {
"type": "INDIVIDUAL",
"name": "SenderName",
"lastName": "SenderLastName",
"document": {
"type": "RFC",
"id": "MAMA831224NA1"
}
},
"merchant": {
"type": "COMPANY",
"name": "Merchant Name"
},
"accountNumber": "484.484.00000011",
"conceptCode": "0013"
}'
{
"externalId": "1689622140",
"internalId": "d6d2001c-a3d6-4179-8a29-7cc5f2993bf7",
"paymentMethod": {
"code": "0130",
"name": "SPEI",
"description": "SPEI",
"paymentMethodType": "BankTransfer"
},
"country": "MEX",
"currency": "MXN",
"amount": 10.3,
"accountNumber": "484.484.00000011",
"clientCode": "0001",
"clientName": "Acme",
"status": {
"code": "100",
"description": "Received",
"detail": "The payout was received"
},
"beneficiary": {
"bank": {
"name": "Bank name",
"code": "646",
"branch": null,
"account": {
"number": "646180209100000014",
"type": "S",
"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": "sender Name",
"lastname": " LastName",
"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-07-17T19:29:00.465546+00:00",
"processedDate": "2023-07-17T19:29:00.5684395+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