Customers

Manage your customer base.


Base entity representing your clients/buyers. Must be uploaded first as other entities depend on it.

Endpoint

POST /full-csv-integration/upload-customers

  • Form Field: customersFile

Required Fields

FieldTypeDescriptionValidations
nitStringTax identification numberCannot be empty
erp_customer_idStringUnique customer ID in your ERPCannot be empty
company_nameStringCompany or business nameCannot be empty

Optional Fields

FieldTypeDescriptionDefault
emailStringCompany email addressnull
city_nameStringHeadquarters citynull
state_nameStringState/Provincenull
postal_codeStringPostal/ZIP codenull
country_codeStringCountry codenull
credit_limitFloatCurrent credit limitnull
current_termIntegerPayment term in daysnull
allow_collectionBooleanAllow automated collection campaigns. The default applies only when the customer is created; a blank cell is read as 0, and on updates the existing value is kept1 (true)
advance_balanceFloatCustomer advance balancenull
erp_branch_idStringBranch ID in ERPnull
branch_nameStringBranch namenull
document_typeStringIdentification document type. Accepts canonical values or DIAN numeric codes — see mapping belownull

Document Type Mapping

Canonical accepted values: cc, ce, nit, ext_nit, te, pp, die, pep, ppt. Values are matched case-insensitively (e.g. NIT and nit are both accepted).

You may also submit the equivalent DIAN numeric code instead of the text value:

DIAN Codedocument_type value
13cc
22ce
31nit
50ext_nit
21te
41pp
42die
47pep
48ppt

pasaporte and passport are also accepted and both map to pp. If a submitted value doesn’t match any of these, the row is imported with document_type set to unrecognized — this is a system-assigned fallback, not a value you should type into the CSV. If the field is left empty or omitted entirely, document_type is simply not set (null).

Example CSV

nit,erp_customer_id,company_name,email,city_name,state_name,postal_code,country_code,credit_limit,current_term,allow_collection,advance_balance,erp_branch_id,branch_name,document_type
123456789-1,CUST001,ABC Company Inc.,contact@abc.com,Bogotá,Cundinamarca,110111,CO,1000000.00,30,1,50000.00,BR001,Sede Principal,cc
987654321-2,CUST002,XYZ Corporation Ltd.,info@xyz.com,Medellín,Antioquia,050001,CO,500000.00,15,1,0.00,BR002,Sucursal Norte,nit