Discussions
api create category--how to hash parameters? response error: missing category[kay]
about 3 years ago by Min Shih Hsiao
the api doc category/create need "name_translations" and type is hash
my response is error: category is missing, category[name_translations] is missing
so my question is how to transform this parameters in hash type ?
almost 2 years ago by IrisAdmin
Hi, sorry for the late reply. You can refer to the "JSON params example" of this page https://open-api.docs.shoplineapp.com/docs/create-category
The data format should look like this:
"name_translations": { "en": "Seasonal sale", "zh-hant": "換季特賣" },