Create Customer Or Supplier
Testing
Testing Env
https://taccounting.vodoerp.com
Testing Env
https://taccounting.vodoerp.com
POST
/api/v5/customers-suppliers/{type}
Last modified:2025-05-19 09:47:21
1
=> refer to customer,2
=> refer to supplierRequest Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://taccounting.vodoerp.com/api/v5/customers-suppliers/' \
--header 'user-token: ' \
--header 'secure-business-key: 4765066450c0bd66325.48403130' \
--header 'lang: en' \
--form 'first_name="first name"' \
--form 'last_name="last name"' \
--form 'phone="1156512344"' \
--form 'phone_code="+20"' \
--form 'email="test@test.com"' \
--form 'user_cat_id=""' \
--form 'password="123456465"' \
--form 'password_confirmation="123456465"' \
--form 'vat_number_check="1"' \
--form 'vat_number="0456456456"' \
--form 'company_name="company name"' \
--form 'postcode="123"' \
--form 'business_identifier="business ident"' \
--form 'credit_limit="10"' \
--form 'country_id="2"' \
--form 'city_id="3"' \
--form 'state_id=""' \
--form 'address1="address"' \
--form 'address2="address"' \
--form 'billing_address="address"' \
--form 'delivery_address="address"' \
--form 'longitude="1234.45"' \
--form 'latitude="1234.45"' \
--form 'bank_name="bank name"' \
--form 'bank_account_number="bank account number"' \
--form 'bank_iban_number="iban number"' \
--form 'commercial_register=@""' \
--form 'image=@""'
Response Response Example
200 - Success
{
"status": true,
"message": "your request has been success",
"data": {
"uuid": "cc5cc274-c38c-481d-9621-b6db06bfd798",
"user_type": 1,
"business_id": 259,
"first_name": "asd",
"last_name": "asd",
"email": "asdasdasdas@test.com",
"password": "$2y$10$d/LUvHdkGJq60TUZl/nu9.jValTlv1nQymNJc6hrK/Um2/GwgCrF6",
"phone": "456",
"phone_code": "+20",
"user_cat_id": null,
"company_name": null,
"vat_number_check": "0",
"vat_number": null,
"postcode": null,
"business_identifier": null,
"credit_limit": null,
"country_id": "1",
"city": null,
"state": null,
"address1": null,
"address2": null,
"billing_address": null,
"delivery_address": null,
"longitude": null,
"latitude": null,
"bank_name": null,
"bank_account_number": null,
"bank_iban_number": null,
"currency": 126,
"send_confirm_message": 0,
"status": 1,
"updated_at": "2025-04-28T11:56:54.000000Z",
"created_at": "2025-04-28T11:56:54.000000Z",
"id": 2619
},
"errors": []
}
Request
Path Params
type
stringÂ
required
Header Params
user-token
stringÂ
required
Example:
{{user_token}}
secure-business-key
stringÂ
required
Example:
{{secure_business_key}}
lang
stringÂ
optional
Example:
{{lang}}
Body Params multipart/form-data
first_name
stringÂ
required
Example:
first name
last_name
stringÂ
required
Example:
last name
phone
integerÂ
required
Example:
1156512344
phone_code
stringÂ
required
Example:
+20
email
stringÂ
required
Example:
test@test.com
user_cat_id
stringÂ
required
password
stringÂ
required
At least one letter (uppercase or lowercase),
At least one digit
At least one special character from this set: *, &, #, @.
Example:
123456465
password_confirmation
stringÂ
required
Example:
123456465
vat_number_check
stringÂ
optional
Example:
1
vat_number
stringÂ
optional
Example:
0456456456
company_name
string  | nullÂ
optional
Example:
company name
postcode
stringÂ
optional
Example:
123
business_identifier
stringÂ
optional
Example:
business ident
credit_limit
integerÂ
optional
Example:
10
country_id
stringÂ
optional
Example:
2
city_id
stringÂ
optional
Example:
3
state_id
stringÂ
optional
address1
stringÂ
optional
Example:
address
address2
stringÂ
optional
Example:
address
billing_address
stringÂ
optional
Example:
address
delivery_address
stringÂ
optional
Example:
address
longitude
stringÂ
optional
Example:
1234.45
latitude
stringÂ
optional
Example:
1234.45
bank_name
stringÂ
optional
Example:
bank name
bank_account_number
stringÂ
optional
Example:
bank account number
bank_iban_number
stringÂ
optional
Example:
iban number
commercial_register
fileÂ
optional
image
fileÂ
optional