Contacts

Manage contacts associated with customers.


Contact persons associated with customers.

Dependency: Requires Customers to be uploaded first.

Endpoint

POST /full-csv-integration/upload-contacts

  • Form Field: contactsFile

Required Fields

FieldTypeDescriptionValidations
erp_customer_idStringCustomer ID in ERPMust exist in Customers
namesStringContact first name(s)Cannot be empty
lastnamesStringContact last name(s)Cannot be empty
is_primaryBooleanIs primary contact?1 or 0. Only one primary per customer

Optional Fields

FieldTypeDescriptionValidationsDefault
emailStringContact emailValid email format. At least email OR mobile_phone requirednull
mobile_phoneStringMobile phone numberDigits only. If provided, mobile_phone_code is requirednull
mobile_phone_codeStringCountry code for mobileDigits only. Required if mobile_phone is presentnull
phoneStringLandline numberDigits onlynull
phone_codeStringCountry code for landlineDigits onlynull
job_titleStringJob position/title-null

Example CSV

erp_customer_id,names,lastnames,email,mobile_phone,mobile_phone_code,is_primary,job_title
CUST001,Juan,Pérez,juan.perez@abc.com,3001234567,57,1,Gerente General
CUST001,María,García,maria.garcia@abc.com,3009876543,57,0,Asistente
CUST002,Carlos,Rodríguez,carlos@xyz.com,3012345678,57,1,Director