add_pos_customer
Testing Env
https://taccounting.vodoerp.com
Testing Env
https://taccounting.vodoerp.com
POST
/api/add_customer
Last modified:2025-04-06 12:28:16
Add Customer
Request Body
first_name
(text)last_name
(text)email
(text)phone
(text)address1
(text)vat_number
(text)company_name
(text)currency
(text)user_type
(text)business_id
(int)customer_type
(text)longitude
(text)latitude
(text)updated_at
(text)created_at
(text)id
(text)Response
{
"status": true,
"message": "",
"data": {
"uuid": "",
"first_name": "",
"last_name": "",
"email": "",
"phone": "",
"address1": "",
"vat_number": null,
"company_name": "",
"currency": 0,
"user_type": 0,
"business_id": "",
"customer_type": null,
"longitude": null,
"latitude": null,
"updated_at": "",
"created_at": "",
"id": 0
}
}
Example Response
{
"status": true,
"message": "",
"data": {
"uuid": "",
"first_name": "",
"last_name": "",
"email": "",
"phone": "",
"address1": "",
"vat_number": null,
"company_name": "",
"currency": 0,
"user_type": 0,
"business_id": "",
"customer_type": null,
"longitude": null,
"latitude": null,
"updated_at": "",
"created_at": "",
"id": 0
}
}
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://taccounting.vodoerp.com/api/add_customer' \
--header 'secure_business_key: 14807664478836358b0.31329842' \
--form 'first_name="Ahmed"' \
--form 'last_name="Mohamed"' \
--form 'email="ahmed89@ymail.com"' \
--form 'phone="0598744634"' \
--form 'company_name="Vodo"'
Response Response Example
{
"status": true,
"message": "Customer Created",
"data": {
"uuid": "2439b1fe-8515-4667-a23e-4dbec6bce4cf",
"first_name": "Ahmed",
"last_name": "Mohamed",
"email": "ahmed89@ymail.com",
"phone": "0598744634",
"address1": "",
"vat_number": null,
"company_name": "Vodo",
"currency": 126,
"user_type": 1,
"business_id": "47",
"customer_type": null,
"longitude": null,
"latitude": null,
"updated_at": "2025-04-06T10:28:08.000000Z",
"created_at": "2025-04-06T10:28:08.000000Z",
"id": 41129
}
}
Request
Header Params
secure_business_key
stringÂ
required
Example:
14807664478836358b0.31329842
Body Params multipart/form-data
business_id
stringÂ
optional
Example:
47
first_name
stringÂ
required
Example:
Ahmed
last_name
stringÂ
required
Example:
Mohamed
email
stringÂ
required
Example:
ahmed89@ymail.com
phone
stringÂ
required
Example:
0598744634
company_name
stringÂ
required
Example:
Vodo