Mexico

Example PayOut Request and Response

Create payout Mexico

POST https://api.stage.localpayment.com /api/payout

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
}
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"
}'

Last updated