Add Brand
Testing Env
https://www.testecommerce.vodoerp.com
Testing Env
https://www.testecommerce.vodoerp.com
POST
/{{brands}}
Last modified:2025-04-14 11:59:03
Key | Value | Description | Type |
---|---|---|---|
apikey | 5f28583f26a1a | API key for authentication; contact support to obtain. Required | string |
apiconnection | appmobile | Connection type; contact support to obtain. Required | string |
secure-business-key | 4765066450c0bd66325.48403130 | Business-specific key; contact support for valid values. Required | string |
userToken | 09119b2691afaa567bc1d46c829ebd41193c8545191146cc5df791681a792ad9 | User token from authentication API. Required (Get user token from https://testaccounts.vodoerp.com/api/login or https://accounts.vodoerp.com/api/login ) | string |
Key | Value | Description | Type |
---|---|---|---|
status | 1 | Brand status (1 or 0). | string |
name_en | Brand Name ENsac | Brand name in English. Required | string |
name_ar | Brand Name ARac | Brand name in Arabic. Required | string |
url | http://example.com/image.jpg | Brand URL. | string |
alias | 45472rjg2tsdsfgnsc | Brand alias. Required | string |
sort | 10 | Sorting order. | string |
image | https://encrypted-tbn0.gstatic.com/images?... | Brand image URL. | string |
parent_id | 2 | Parent brand ID from brands API. (Get from api request {{APP_URL}}/api/v1/ecomm_brands ) | string |
category_id | 2 | Category ID from categories API. (Get from api request {{APP_URL}}/api/v1/ecomm_categories ) | string |
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'https://www.testecommerce.vodoerp.com/{{brands}}' \
--header 'apikey: 5f28583f26a1a' \
--header 'apiconnection: appmobile' \
--header 'secure-business-key: 4765066450c0bd66325.48403130' \
--header 'userToken: 09119b2691afaa567bc1d46c829ebd41193c8545191146cc5df791681a792ad9' \
--form 'status="1"' \
--form 'name_en="Brand Name ENsac"' \
--form 'name_ar="Brand Name ARac"' \
--form 'url="http://example.com/image.jpg"' \
--form 'alias="45472rjg2tsdsfgnsc"' \
--form 'sort="10"' \
--form 'image="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcT_zoYJS0CUR189ILj34uM-e614doYNQrd4-w&s"' \
--form 'parent_id="2"' \
--form 'category_id="2"'
Response Response Example
{"status":false,"message":{"category_id":["The specified category was not found."],"alias":["The alias has already been taken."],"parent_id":["The specified brand was not found."]}}
Request
Header Params
apikey
stringÂ
required
Example:
5f28583f26a1a
apiconnection
stringÂ
required
Example:
appmobile
secure-business-key
stringÂ
required
728106399db2b289783.89154521
2680667168f2f8a68f6.12561200
140356399db2b2c32f0.25237063
96701678e330f31f768.22400604
14807664478836358b0.31329842
Example:
4765066450c0bd66325.48403130
userToken
stringÂ
required
https://testaccounts.vodoerp.com/api/login
or
https://accounts.vodoerp.com/api/login
Example:
09119b2691afaa567bc1d46c829ebd41193c8545191146cc5df791681a792ad9
Body Params multipart/form-data
status
stringÂ
required
Example:
1
name_en
stringÂ
required
Example:
Brand Name ENsac
name_ar
stringÂ
required
Example:
Brand Name ARac
url
stringÂ
required
Example:
http://example.com/image.jpg
alias
stringÂ
required
Example:
45472rjg2tsdsfgnsc
sort
stringÂ
required
Example:
10
image
stringÂ
required
Example:
https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcT_zoYJS0CUR189ILj34uM-e614doYNQrd4-w&s
parent_id
stringÂ
optional
Example:
2
category_id
stringÂ
optional
Example:
2