add_one_customer_branch
Testing Env
https://taccounting.vodoerp.com
Testing Env
https://taccounting.vodoerp.com
POST
/api/v4/customers_branches
Last modified:2025-04-17 16:55:37
** Body Param** | description |
---|---|
customer_id | required number business customer id from customers list from here https://vodoerp.apidog.io/get-customers-16043225e0 |
branch_name | required string branch name |
phone | required string branch phnone |
vat_number | optional string branch vat number required if vat number check equal 0 |
vat_number_check | optional number 1 for make vate number not required and 0 for make vat number required |
address | optional string branch address |
country | optional number branch acountry from country list from here https://vodoerp.apidog.io/all-countries-15235840e0 |
city | optional number branch city from cities list base on country from here https://vodoerp.apidog.io/all-cities-15235839e0 |
longitude | optional string branch longitude |
latitude | optional string branch latitude |
optional string branch email | |
HEADERS | description |
--- | --- |
Accept-Language | required string ar,en |
secure-business-key | required string ex: 4765066450c0bd66325.48403130 from accounts system base on business |
apikey | required string ex: efe2db322a53 for make reuest more secure must add apikey in header |
platform-key | required string ex: 1234567 use this value as test |
platform | required string ex: web use this value as test |
userToken | required string get user token from login request from accounts system from here https://vodoerp.apidog.io/login-15235199e0 |
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://taccounting.vodoerp.com/api/v4/customers_branches' \
--header 'secure-business-key: 14807664478836358b0.31329842' \
--header 'platform-key: 1234567' \
--header 'platform: web' \
--header 'Accept-Language: ar' \
--header 'apikey: efe2db322a53' \
--header 'userToken: eb50af64bc0eabf14a5316e7e2a767acc98f1c4b840dc917d6fcc909c84e9167' \
--form 'customer_id="32321"' \
--form 'branch_name="فرع شركة تانى"' \
--form 'phone="+9665478126"' \
--form 'vat_number="1247892000011"' \
--form 'vat_number_check="1"' \
--form 'address="عنوان الشركة"' \
--form 'country="2"' \
--form 'city="125"' \
--form 'state=""' \
--form 'longitude=""' \
--form 'latitude=""' \
--form 'email="branch@gmail.com"'
Response Response Example
{
"status": true,
"message": "branch created",
"data": {
"uuid": "75a7e6b8-5682-48bd-b9de-ca536980a438",
"name": "فرع مكة",
"company_id": "2586",
"phone": "+9665478128",
"address": "عنوان الشركة",
"country_id": "2",
"city": "125",
"state": null,
"vat_number": "1247892000012",
"email": "branch@gmail.com",
"vat_number_check": "0",
"longitude": null,
"latitude": null,
"business_id": 256,
"status": 1,
"updated_at": "2025-04-17T16:45:11.000000Z",
"created_at": "2025-04-17T16:45:11.000000Z",
"id": 65
}
}
Request
Header Params
secure-business-key
string
required
Example:
14807664478836358b0.31329842
platform-key
string
required
Example:
1234567
platform
string
required
Example:
web
Accept-Language
string
required
Example:
ar
apikey
string
required
Example:
efe2db322a53
userToken
string
required
Example:
eb50af64bc0eabf14a5316e7e2a767acc98f1c4b840dc917d6fcc909c84e9167
Body Params multipart/form-data
customer_id
string
required
Example:
32321
branch_name
string
required
Example:
فرع شركة تانى
phone
string
required
Example:
+9665478126
vat_number
string
required
Example:
1247892000011
vat_number_check
string
optional
Example:
1
address
string
required
Example:
عنوان الشركة
country
string
required
Example:
2
city
string
required
Example:
125
state
string
required
longitude
string
required
latitude
string
required
email
string
required
Example:
branch@gmail.com