Stages
Create stage(s)
POST
/
stage
Create stage(s)
curl --request POST \
--url https://{instance}/api/v2/stage \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"name": "<string>",
"shopId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"maxOrderCapacity": 1,
"description": "<string>",
"costCode": "<string>"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
shopId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
maxOrderCapacity: 1,
description: '<string>',
costCode: '<string>'
})
};
fetch('https://{instance}/api/v2/stage', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{instance}/api/v2/stage"
payload = {
"name": "<string>",
"shopId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"maxOrderCapacity": 1,
"description": "<string>",
"costCode": "<string>"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"value": {}
}⌘I
Create stage(s)
curl --request POST \
--url https://{instance}/api/v2/stage \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"name": "<string>",
"shopId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"maxOrderCapacity": 1,
"description": "<string>",
"costCode": "<string>"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
shopId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
maxOrderCapacity: 1,
description: '<string>',
costCode: '<string>'
})
};
fetch('https://{instance}/api/v2/stage', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{instance}/api/v2/stage"
payload = {
"name": "<string>",
"shopId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"maxOrderCapacity": 1,
"description": "<string>",
"costCode": "<string>"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"value": {}
}