Commerce
Post v1commercecategories
POST
/
v1
/
commerce
/
categories
cURL
curl --request POST \
--url https://api.wazapin.com/v1/commerce/categories \
--header 'Content-Type: application/json' \
--data '
{
"active": true,
"name": "<string>",
"organization_id": "<string>",
"parent_id": "<string>",
"slug": "<string>",
"sort_order": 123
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
active: true,
name: '<string>',
organization_id: '<string>',
parent_id: '<string>',
slug: '<string>',
sort_order: 123
})
};
fetch('https://api.wazapin.com/v1/commerce/categories', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/commerce/categories"
payload = {
"active": True,
"name": "<string>",
"organization_id": "<string>",
"parent_id": "<string>",
"slug": "<string>",
"sort_order": 123
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"active": true,
"id": "<string>",
"name": "<string>",
"slug": "<string>",
"sort_order": 123,
"organization_id": "<string>",
"parent_id": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}Body
application/json
⌘I
cURL
curl --request POST \
--url https://api.wazapin.com/v1/commerce/categories \
--header 'Content-Type: application/json' \
--data '
{
"active": true,
"name": "<string>",
"organization_id": "<string>",
"parent_id": "<string>",
"slug": "<string>",
"sort_order": 123
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
active: true,
name: '<string>',
organization_id: '<string>',
parent_id: '<string>',
slug: '<string>',
sort_order: 123
})
};
fetch('https://api.wazapin.com/v1/commerce/categories', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/commerce/categories"
payload = {
"active": True,
"name": "<string>",
"organization_id": "<string>",
"parent_id": "<string>",
"slug": "<string>",
"sort_order": 123
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"active": true,
"id": "<string>",
"name": "<string>",
"slug": "<string>",
"sort_order": 123,
"organization_id": "<string>",
"parent_id": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}