Create Customer
Register a new customer with their basic information and addresses.Request Parameters
Customer’s document number (DNI for individuals, RUC for companies)
Customer’s full name or company name
Date of birth in YYYY-MM-DD format
Customer’s email address
Password for customer portal access
Mobile phone number
Customer type. Common values:
Natural- IndividualJurídico- Company
Payment type (e.g., “Contado”, “Crédito”)
Whether prices include IGV (tax):
1- Include IGV0- Exclude IGV
District ID where customer is located
Price list ID (plan) assigned to customer
Detraction type ID for tax purposes
Extra charge for home-to-home delivery service
Extra charge for home-to-agency delivery service
Extra charge for agency-to-home delivery service
Array of customer addresses
Response
Returns a success message when the customer is created successfully.Success confirmation message
Error Responses
Customer Types
Customers can be classified into different types based on their legal status:- Natural: Individual person with DNI document
- Jurídico: Company or legal entity with RUC document
Payment Types
Common payment type values:- Contado: Cash payment (immediate)
- Crédito: Credit payment (deferred)
Address Structure
Each customer can have multiple delivery addresses. The address object contains:- direccion: The complete street address
- referencia: Optional reference point to help locate the address (e.g., “Near the shopping mall”, “In front of the park”)
Extra Charges
Customers can have custom extra charges applied for different delivery service types:- extra_domicilio_a_domicilio: Additional fee for door-to-door delivery
- extra_domicilio_a_agencia: Additional fee for home pickup to agency delivery
- extra_agencia_a_domicilio: Additional fee for agency pickup to home delivery