HomeGuidesAPI ReferenceChangelogDiscussions
HomeLog In
Discussions

Discussions

Ask a Question
Back to All

api create category--how to hash parameters? response error: missing category[kay]

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 ?

Admin

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": "換季特賣" },