Peru

Localpayment's API works 24/7/365, the payments are processed during business hours from 9am to 15pm GMT -3 when we have our cut-off. Requests done after the cut-off will be executed next business day

Create Payout Peru

POST https://sandbox.localpayment.com/api/v2/payouts/payout

*Key required

Headers

NameTypeDescription

Content-Type*

String

Default: application/json Content Type

Authorization*

String

Authorization

customer_id*

String

string <= 12 Customer id

countryCode*

String

Value: "PER"

Request Body

NameTypeDescription

submerchant_code*

String

[ 3 .. 60 ] characters ^[a-zA-Z0-9\\s\\-_]{3,60}$

The name of the merchant sending the payment

sender_taxid

String

[a-zA-Z0-9\\s]{1,50}$

This field is required when the sender is a customer (C2C or C2B)

sender_name

String

[a-zA-ZáéíóúÁÉÍÓÚ\\s]{1,60}$

This field is required when the sender is a customer (C2C or C2B)

sender_address

String

"^[a-zA-ZáéíóúÁÉÍÓÚ0-9\s]{1,300}$" accepts numbers, letters, and spaces, and the length is between 1 and 300 characters

This field is required when the sender is a customer (C2C or C2B)

sender_state

String

[a-zA-ZáéíóúÁÉÍÓÚ\\s]{1,20}$

This field is required when the sender is a customer (C2C or C2B)

sender_country

String

a-zA-ZáéíóúÁÉÍÓÚ\\s]{1,20}$

This field is required when the sender is a customer (C2C or C2B)

sender_birthdate

String

([12]\\d{3}(0[1-9]|1[0-2])(0[1-9]|[12]\\d|3[01]))

format - yyyymmdd

sender_email

String

beneficiary_name*

String

[ 1 .. 60 ] characters ^[a-zA-Z0-9\s]{1,60}$

bank_account_type*

String

1 charactersEnum: "C" "A" "M"

Available: 'C' – checking account / 'A' – savings account / 'M' – Maestra account

bank_code*

String

Check the Bank Codes

beneficiary_document_type*

String

[ RUC/DNI/CE/PASS ] characters

Peru

beneficiary_account_number*

String

[20] characters ^[0-9]{20}$"

beneficiary_address

String

a-zA-ZáéíóúÁÉÍÓÚ0-9\s]{1,150}$

beneficiary_state

String

[a-zA-ZáéíóúÁÉÍÓÚ\s]{1,60}$

beneficiary_country

String

[a-zA-ZáéíóúÁÉÍÓÚ\s]{1,60}$

beneficiary_birth_date

String

([12]\\d{3}(0[1-9]|1[0-2])(0[1-9]|[12]\\d|3[01]))

format - yyyymmdd

beneficiary_email

String

beneficiary_phone_number

String

sender_phone_number

String

beneficiary_document_id*

String

Check document_id validation Peru

merchant_id*

String

[ 0 .. 60 ] characters

Your internal transaction/tracking ID

concept_code*

String

You can see the concept code Concept Codes

currency*

String

Value: "PEN"

payout_date

String

format - yyyymmdd - UTC Timezone

amount*

Integer <int64>

Integer <64>

The last 2 digits represent the decimals (cents). This is the amount to be received by the beneficiary in the local currency

authenticate

String

If set as true, the transaction will be created in status OnHold and will expire after a week unless is aproved using the endpoint payouts/authenticate. As default this parameter is false and will be created with the status Received

[
    {
        "beneficiary_document_type": "RUC",
        "beneficiary_document_id": "XXXXXXX",
        "bank_code": "002",
        "authenticate": false,
        "transaction_id": 336727,
        "payout_id": 202508,
        "status": "Received",
        "Ticket": "16401833920000",
        "submerchant_code": "TEST",
        "sender_taxid": null,
        "sender_name": "SENDER",
        "sender_address": "ADDRESS",
        "sender_state": "CABA",
        "sender_country": "ARGENTINA",
        "sender_birthdate": null,
        "sender_email": null,
        "sender_phone_number": null,
        "sender_zip_code": null,
        "beneficiary_name": "BENEFICIARY",
        "bank_account_type": "M",
        "beneficiary_account_number": "XXXXXXXXX",
        "beneficiary_address": null,
        "beneficiary_state": null,
        "beneficiary_country": null,
        "beneficiary_birth_date": null,
        "beneficiary_email": null,
        "beneficiary_phone_number": "0",
        "beneficiary_zip_code": null,
        "merchant_id": "1234567890071",
        "concept_code": "",
        "currency": "PEN",
        "payout_date": "20211222",
        "amount": 1552213,
        "exchange_rate": 4057502,
        "ErrorRow": {
            "Errors": [],
            "HasError": false
        }
    }
]

Example: PayOut request

curl --location --request POST {{Api_URL}} \
--header 'Authorization: {{Token_Generated}} \
--header 'customer_id: {{Your_CustomerID}}' \
--header 'countryCode: PER' \
--header 'Content-Type: application/json' \
--data-raw '[
{
        "amount": 5000,
        "bank_account_type": "A",
        "bank_code": "002",
        "beneficiary_account_number": "00219400940064207893",
        "beneficiary_document_id": "20608388649",
        "beneficiary_document_type": "RUC",
        "beneficiary_name": "Beneficiary Name",
        "concept_code": "0001",
        "currency": "PEN",
        "merchant_id": {{$timestamp}},
        "sender_address": "Sender Address",
        "sender_country": "Sender Country",
        "sender_name": "Sender Name",
        "sender_state": "Sender State",
        "submerchant_code": "Submerchant code"
    }
]

Last updated