This API will add the catalog#
| Name | Type | Description |
|---|
| api_key | string | Your API-key |
| user_id | number | This is merchant id on which the catalog is created. |
| marketplace_user_id | number | Your marketplace user id |
| name | string | Category name here |
| description | string | Description of catalogue |
| image_url | string(optional) | Enter image URL |
| is_side_order | number(optional) | If the category is to be marked as side order enter 1 else 0. |
| name_json | object(optional) | "en" is mandatory and refer to below language table. |
| description_json | object(optional) | "en" is mandatory and refer to below language table. |
| parent_category_id | number(optional) | Parent category id if you want to create nested category structure. |
Languages#
Different languages supported. If you are not passing any languages then it is mandatory to pass "en"| Name | Type |
|---|
| ENGLISH | en |
| ARABIAN | ar |
| FRENCH | fr |
| SPANISH | es |
| MALAY | ms |
| SIMPLIFIED_CHINESE | zh-Hans |
| PORTUGUESE | pt |
| TRADITIONAL_CHINESE | zh-Hant |
| BENGALI | bn |
| MEXICAN_SPANISH | es-mx |
| KHMER | km |
| TAMIL | ta |
| SINHALA | si |
| SWEDISH | sv |
Request
Body Params application/json
{
"api_key" : {{apikey}},
"marketplace_user_id" : 510001,
"user_id" : 510001,
"name" : "Indian",
"description" : "",
"image_url" : [],
"is_side_order" : 0,
"name_json" : {
"en": "Indian"
},
"description_json" : {
"en": ""
},
"parent_category_id" : 123
}
Request Code Samples
curl --location --request POST 'https://api.yelo.red/open/catalogue/add' \
--header 'Content-Type: application/json' \
--data-raw '{
"api_key" : {{apikey}},
"marketplace_user_id" : 510001,
"user_id" : 510001,
"name" : "Indian",
"description" : "",
"image_url" : [],
"is_side_order" : 0,
"name_json" : {
"en": "Indian"
},
"description_json" : {
"en": ""
},
"parent_category_id" : 123
}'
Responses
application/json Modified at 2024-04-17 07:11:33