Create Promotion
curl --request POST \
--url https://api.decodahealth.com/billing/promotions \
--header 'API-KEY: <api-key>' \
--header 'Content-Type: application/json' \
--header 'TENANT: <tenant>' \
--data '
{
"name": "<string>",
"description": "<string>",
"startDate": "2023-11-07T05:31:56Z",
"endDate": "2023-11-07T05:31:56Z",
"rrule": "<string>",
"timezone": "<string>",
"maxRedemptions": 2,
"maxPerPatient": 2,
"autoApply": true,
"code": "<string>",
"creditAmount": 1,
"creditExpiryDays": 2,
"loyaltyPointsBonus": 2,
"loyaltyPointsExpiryDays": 2,
"providerIds": [
"<string>"
],
"teamIds": [
"<string>"
],
"rules": [
{
"operator": "IS",
"itemId": "<string>",
"category": "<string>",
"minQuantity": 123,
"minSubtotalCents": 123,
"cohortId": "<string>",
"locationId": "<string>",
"group": 0
}
],
"discountTemplates": [
{
"itemId": "<string>",
"category": "<string>",
"type": "PROMOTION",
"percentage": 50,
"amount": 1,
"quantity": 2,
"expiryTimeDays": 2,
"isStackable": false,
"isPrepayment": false
}
]
}
'import requests
url = "https://api.decodahealth.com/billing/promotions"
payload = {
"name": "<string>",
"description": "<string>",
"startDate": "2023-11-07T05:31:56Z",
"endDate": "2023-11-07T05:31:56Z",
"rrule": "<string>",
"timezone": "<string>",
"maxRedemptions": 2,
"maxPerPatient": 2,
"autoApply": True,
"code": "<string>",
"creditAmount": 1,
"creditExpiryDays": 2,
"loyaltyPointsBonus": 2,
"loyaltyPointsExpiryDays": 2,
"providerIds": ["<string>"],
"teamIds": ["<string>"],
"rules": [
{
"operator": "IS",
"itemId": "<string>",
"category": "<string>",
"minQuantity": 123,
"minSubtotalCents": 123,
"cohortId": "<string>",
"locationId": "<string>",
"group": 0
}
],
"discountTemplates": [
{
"itemId": "<string>",
"category": "<string>",
"type": "PROMOTION",
"percentage": 50,
"amount": 1,
"quantity": 2,
"expiryTimeDays": 2,
"isStackable": False,
"isPrepayment": False
}
]
}
headers = {
"TENANT": "<tenant>",
"API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {TENANT: '<tenant>', 'API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
description: '<string>',
startDate: '2023-11-07T05:31:56Z',
endDate: '2023-11-07T05:31:56Z',
rrule: '<string>',
timezone: '<string>',
maxRedemptions: 2,
maxPerPatient: 2,
autoApply: true,
code: '<string>',
creditAmount: 1,
creditExpiryDays: 2,
loyaltyPointsBonus: 2,
loyaltyPointsExpiryDays: 2,
providerIds: ['<string>'],
teamIds: ['<string>'],
rules: [
{
operator: 'IS',
itemId: '<string>',
category: '<string>',
minQuantity: 123,
minSubtotalCents: 123,
cohortId: '<string>',
locationId: '<string>',
group: 0
}
],
discountTemplates: [
{
itemId: '<string>',
category: '<string>',
type: 'PROMOTION',
percentage: 50,
amount: 1,
quantity: 2,
expiryTimeDays: 2,
isStackable: false,
isPrepayment: false
}
]
})
};
fetch('https://api.decodahealth.com/billing/promotions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.decodahealth.com/billing/promotions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'description' => '<string>',
'startDate' => '2023-11-07T05:31:56Z',
'endDate' => '2023-11-07T05:31:56Z',
'rrule' => '<string>',
'timezone' => '<string>',
'maxRedemptions' => 2,
'maxPerPatient' => 2,
'autoApply' => true,
'code' => '<string>',
'creditAmount' => 1,
'creditExpiryDays' => 2,
'loyaltyPointsBonus' => 2,
'loyaltyPointsExpiryDays' => 2,
'providerIds' => [
'<string>'
],
'teamIds' => [
'<string>'
],
'rules' => [
[
'operator' => 'IS',
'itemId' => '<string>',
'category' => '<string>',
'minQuantity' => 123,
'minSubtotalCents' => 123,
'cohortId' => '<string>',
'locationId' => '<string>',
'group' => 0
]
],
'discountTemplates' => [
[
'itemId' => '<string>',
'category' => '<string>',
'type' => 'PROMOTION',
'percentage' => 50,
'amount' => 1,
'quantity' => 2,
'expiryTimeDays' => 2,
'isStackable' => false,
'isPrepayment' => false
]
]
]),
CURLOPT_HTTPHEADER => [
"API-KEY: <api-key>",
"Content-Type: application/json",
"TENANT: <tenant>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.decodahealth.com/billing/promotions"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"startDate\": \"2023-11-07T05:31:56Z\",\n \"endDate\": \"2023-11-07T05:31:56Z\",\n \"rrule\": \"<string>\",\n \"timezone\": \"<string>\",\n \"maxRedemptions\": 2,\n \"maxPerPatient\": 2,\n \"autoApply\": true,\n \"code\": \"<string>\",\n \"creditAmount\": 1,\n \"creditExpiryDays\": 2,\n \"loyaltyPointsBonus\": 2,\n \"loyaltyPointsExpiryDays\": 2,\n \"providerIds\": [\n \"<string>\"\n ],\n \"teamIds\": [\n \"<string>\"\n ],\n \"rules\": [\n {\n \"operator\": \"IS\",\n \"itemId\": \"<string>\",\n \"category\": \"<string>\",\n \"minQuantity\": 123,\n \"minSubtotalCents\": 123,\n \"cohortId\": \"<string>\",\n \"locationId\": \"<string>\",\n \"group\": 0\n }\n ],\n \"discountTemplates\": [\n {\n \"itemId\": \"<string>\",\n \"category\": \"<string>\",\n \"type\": \"PROMOTION\",\n \"percentage\": 50,\n \"amount\": 1,\n \"quantity\": 2,\n \"expiryTimeDays\": 2,\n \"isStackable\": false,\n \"isPrepayment\": false\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("TENANT", "<tenant>")
req.Header.Add("API-KEY", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.decodahealth.com/billing/promotions")
.header("TENANT", "<tenant>")
.header("API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"startDate\": \"2023-11-07T05:31:56Z\",\n \"endDate\": \"2023-11-07T05:31:56Z\",\n \"rrule\": \"<string>\",\n \"timezone\": \"<string>\",\n \"maxRedemptions\": 2,\n \"maxPerPatient\": 2,\n \"autoApply\": true,\n \"code\": \"<string>\",\n \"creditAmount\": 1,\n \"creditExpiryDays\": 2,\n \"loyaltyPointsBonus\": 2,\n \"loyaltyPointsExpiryDays\": 2,\n \"providerIds\": [\n \"<string>\"\n ],\n \"teamIds\": [\n \"<string>\"\n ],\n \"rules\": [\n {\n \"operator\": \"IS\",\n \"itemId\": \"<string>\",\n \"category\": \"<string>\",\n \"minQuantity\": 123,\n \"minSubtotalCents\": 123,\n \"cohortId\": \"<string>\",\n \"locationId\": \"<string>\",\n \"group\": 0\n }\n ],\n \"discountTemplates\": [\n {\n \"itemId\": \"<string>\",\n \"category\": \"<string>\",\n \"type\": \"PROMOTION\",\n \"percentage\": 50,\n \"amount\": 1,\n \"quantity\": 2,\n \"expiryTimeDays\": 2,\n \"isStackable\": false,\n \"isPrepayment\": false\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.decodahealth.com/billing/promotions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["TENANT"] = '<tenant>'
request["API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"startDate\": \"2023-11-07T05:31:56Z\",\n \"endDate\": \"2023-11-07T05:31:56Z\",\n \"rrule\": \"<string>\",\n \"timezone\": \"<string>\",\n \"maxRedemptions\": 2,\n \"maxPerPatient\": 2,\n \"autoApply\": true,\n \"code\": \"<string>\",\n \"creditAmount\": 1,\n \"creditExpiryDays\": 2,\n \"loyaltyPointsBonus\": 2,\n \"loyaltyPointsExpiryDays\": 2,\n \"providerIds\": [\n \"<string>\"\n ],\n \"teamIds\": [\n \"<string>\"\n ],\n \"rules\": [\n {\n \"operator\": \"IS\",\n \"itemId\": \"<string>\",\n \"category\": \"<string>\",\n \"minQuantity\": 123,\n \"minSubtotalCents\": 123,\n \"cohortId\": \"<string>\",\n \"locationId\": \"<string>\",\n \"group\": 0\n }\n ],\n \"discountTemplates\": [\n {\n \"itemId\": \"<string>\",\n \"category\": \"<string>\",\n \"type\": \"PROMOTION\",\n \"percentage\": 50,\n \"amount\": 1,\n \"quantity\": 2,\n \"expiryTimeDays\": 2,\n \"isStackable\": false,\n \"isPrepayment\": false\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"name": "<string>",
"isActive": true,
"description": "<string>",
"startDate": "2023-11-07T05:31:56Z",
"endDate": "2023-11-07T05:31:56Z",
"rrule": "<string>",
"timezone": "<string>",
"maxRedemptions": 123,
"maxPerPatient": 123,
"redemptionsCount": 0,
"autoApply": true,
"code": "<string>",
"creditAmount": 123,
"creditExpiryDays": 123,
"loyaltyPointsBonus": 123,
"loyaltyPointsExpiryDays": 123,
"providerIds": [
"<string>"
],
"teamIds": [
"<string>"
],
"createdDate": "2023-11-07T05:31:56Z",
"updatedDate": "2023-11-07T05:31:56Z",
"rules": [
{
"id": "<string>",
"operator": "IS",
"itemId": "<string>",
"category": "<string>",
"minQuantity": 123,
"minSubtotalCents": 123,
"cohortId": "<string>",
"locationId": "<string>",
"group": 0,
"itemName": "<string>",
"cohortName": "<string>",
"locationName": "<string>"
}
],
"discountTemplates": [
{
"id": "<string>",
"itemId": "<string>",
"itemName": "<string>",
"category": "<string>",
"itemType": "<string>",
"type": "<string>",
"percentage": 123,
"amount": 123,
"quantity": 123,
"isStackable": false
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Promotions
Create Promotion
Create a promotion with rules, tiers, and discount templates.
POST
/
billing
/
promotions
Create Promotion
curl --request POST \
--url https://api.decodahealth.com/billing/promotions \
--header 'API-KEY: <api-key>' \
--header 'Content-Type: application/json' \
--header 'TENANT: <tenant>' \
--data '
{
"name": "<string>",
"description": "<string>",
"startDate": "2023-11-07T05:31:56Z",
"endDate": "2023-11-07T05:31:56Z",
"rrule": "<string>",
"timezone": "<string>",
"maxRedemptions": 2,
"maxPerPatient": 2,
"autoApply": true,
"code": "<string>",
"creditAmount": 1,
"creditExpiryDays": 2,
"loyaltyPointsBonus": 2,
"loyaltyPointsExpiryDays": 2,
"providerIds": [
"<string>"
],
"teamIds": [
"<string>"
],
"rules": [
{
"operator": "IS",
"itemId": "<string>",
"category": "<string>",
"minQuantity": 123,
"minSubtotalCents": 123,
"cohortId": "<string>",
"locationId": "<string>",
"group": 0
}
],
"discountTemplates": [
{
"itemId": "<string>",
"category": "<string>",
"type": "PROMOTION",
"percentage": 50,
"amount": 1,
"quantity": 2,
"expiryTimeDays": 2,
"isStackable": false,
"isPrepayment": false
}
]
}
'import requests
url = "https://api.decodahealth.com/billing/promotions"
payload = {
"name": "<string>",
"description": "<string>",
"startDate": "2023-11-07T05:31:56Z",
"endDate": "2023-11-07T05:31:56Z",
"rrule": "<string>",
"timezone": "<string>",
"maxRedemptions": 2,
"maxPerPatient": 2,
"autoApply": True,
"code": "<string>",
"creditAmount": 1,
"creditExpiryDays": 2,
"loyaltyPointsBonus": 2,
"loyaltyPointsExpiryDays": 2,
"providerIds": ["<string>"],
"teamIds": ["<string>"],
"rules": [
{
"operator": "IS",
"itemId": "<string>",
"category": "<string>",
"minQuantity": 123,
"minSubtotalCents": 123,
"cohortId": "<string>",
"locationId": "<string>",
"group": 0
}
],
"discountTemplates": [
{
"itemId": "<string>",
"category": "<string>",
"type": "PROMOTION",
"percentage": 50,
"amount": 1,
"quantity": 2,
"expiryTimeDays": 2,
"isStackable": False,
"isPrepayment": False
}
]
}
headers = {
"TENANT": "<tenant>",
"API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {TENANT: '<tenant>', 'API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
description: '<string>',
startDate: '2023-11-07T05:31:56Z',
endDate: '2023-11-07T05:31:56Z',
rrule: '<string>',
timezone: '<string>',
maxRedemptions: 2,
maxPerPatient: 2,
autoApply: true,
code: '<string>',
creditAmount: 1,
creditExpiryDays: 2,
loyaltyPointsBonus: 2,
loyaltyPointsExpiryDays: 2,
providerIds: ['<string>'],
teamIds: ['<string>'],
rules: [
{
operator: 'IS',
itemId: '<string>',
category: '<string>',
minQuantity: 123,
minSubtotalCents: 123,
cohortId: '<string>',
locationId: '<string>',
group: 0
}
],
discountTemplates: [
{
itemId: '<string>',
category: '<string>',
type: 'PROMOTION',
percentage: 50,
amount: 1,
quantity: 2,
expiryTimeDays: 2,
isStackable: false,
isPrepayment: false
}
]
})
};
fetch('https://api.decodahealth.com/billing/promotions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.decodahealth.com/billing/promotions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'description' => '<string>',
'startDate' => '2023-11-07T05:31:56Z',
'endDate' => '2023-11-07T05:31:56Z',
'rrule' => '<string>',
'timezone' => '<string>',
'maxRedemptions' => 2,
'maxPerPatient' => 2,
'autoApply' => true,
'code' => '<string>',
'creditAmount' => 1,
'creditExpiryDays' => 2,
'loyaltyPointsBonus' => 2,
'loyaltyPointsExpiryDays' => 2,
'providerIds' => [
'<string>'
],
'teamIds' => [
'<string>'
],
'rules' => [
[
'operator' => 'IS',
'itemId' => '<string>',
'category' => '<string>',
'minQuantity' => 123,
'minSubtotalCents' => 123,
'cohortId' => '<string>',
'locationId' => '<string>',
'group' => 0
]
],
'discountTemplates' => [
[
'itemId' => '<string>',
'category' => '<string>',
'type' => 'PROMOTION',
'percentage' => 50,
'amount' => 1,
'quantity' => 2,
'expiryTimeDays' => 2,
'isStackable' => false,
'isPrepayment' => false
]
]
]),
CURLOPT_HTTPHEADER => [
"API-KEY: <api-key>",
"Content-Type: application/json",
"TENANT: <tenant>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.decodahealth.com/billing/promotions"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"startDate\": \"2023-11-07T05:31:56Z\",\n \"endDate\": \"2023-11-07T05:31:56Z\",\n \"rrule\": \"<string>\",\n \"timezone\": \"<string>\",\n \"maxRedemptions\": 2,\n \"maxPerPatient\": 2,\n \"autoApply\": true,\n \"code\": \"<string>\",\n \"creditAmount\": 1,\n \"creditExpiryDays\": 2,\n \"loyaltyPointsBonus\": 2,\n \"loyaltyPointsExpiryDays\": 2,\n \"providerIds\": [\n \"<string>\"\n ],\n \"teamIds\": [\n \"<string>\"\n ],\n \"rules\": [\n {\n \"operator\": \"IS\",\n \"itemId\": \"<string>\",\n \"category\": \"<string>\",\n \"minQuantity\": 123,\n \"minSubtotalCents\": 123,\n \"cohortId\": \"<string>\",\n \"locationId\": \"<string>\",\n \"group\": 0\n }\n ],\n \"discountTemplates\": [\n {\n \"itemId\": \"<string>\",\n \"category\": \"<string>\",\n \"type\": \"PROMOTION\",\n \"percentage\": 50,\n \"amount\": 1,\n \"quantity\": 2,\n \"expiryTimeDays\": 2,\n \"isStackable\": false,\n \"isPrepayment\": false\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("TENANT", "<tenant>")
req.Header.Add("API-KEY", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.decodahealth.com/billing/promotions")
.header("TENANT", "<tenant>")
.header("API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"startDate\": \"2023-11-07T05:31:56Z\",\n \"endDate\": \"2023-11-07T05:31:56Z\",\n \"rrule\": \"<string>\",\n \"timezone\": \"<string>\",\n \"maxRedemptions\": 2,\n \"maxPerPatient\": 2,\n \"autoApply\": true,\n \"code\": \"<string>\",\n \"creditAmount\": 1,\n \"creditExpiryDays\": 2,\n \"loyaltyPointsBonus\": 2,\n \"loyaltyPointsExpiryDays\": 2,\n \"providerIds\": [\n \"<string>\"\n ],\n \"teamIds\": [\n \"<string>\"\n ],\n \"rules\": [\n {\n \"operator\": \"IS\",\n \"itemId\": \"<string>\",\n \"category\": \"<string>\",\n \"minQuantity\": 123,\n \"minSubtotalCents\": 123,\n \"cohortId\": \"<string>\",\n \"locationId\": \"<string>\",\n \"group\": 0\n }\n ],\n \"discountTemplates\": [\n {\n \"itemId\": \"<string>\",\n \"category\": \"<string>\",\n \"type\": \"PROMOTION\",\n \"percentage\": 50,\n \"amount\": 1,\n \"quantity\": 2,\n \"expiryTimeDays\": 2,\n \"isStackable\": false,\n \"isPrepayment\": false\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.decodahealth.com/billing/promotions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["TENANT"] = '<tenant>'
request["API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"startDate\": \"2023-11-07T05:31:56Z\",\n \"endDate\": \"2023-11-07T05:31:56Z\",\n \"rrule\": \"<string>\",\n \"timezone\": \"<string>\",\n \"maxRedemptions\": 2,\n \"maxPerPatient\": 2,\n \"autoApply\": true,\n \"code\": \"<string>\",\n \"creditAmount\": 1,\n \"creditExpiryDays\": 2,\n \"loyaltyPointsBonus\": 2,\n \"loyaltyPointsExpiryDays\": 2,\n \"providerIds\": [\n \"<string>\"\n ],\n \"teamIds\": [\n \"<string>\"\n ],\n \"rules\": [\n {\n \"operator\": \"IS\",\n \"itemId\": \"<string>\",\n \"category\": \"<string>\",\n \"minQuantity\": 123,\n \"minSubtotalCents\": 123,\n \"cohortId\": \"<string>\",\n \"locationId\": \"<string>\",\n \"group\": 0\n }\n ],\n \"discountTemplates\": [\n {\n \"itemId\": \"<string>\",\n \"category\": \"<string>\",\n \"type\": \"PROMOTION\",\n \"percentage\": 50,\n \"amount\": 1,\n \"quantity\": 2,\n \"expiryTimeDays\": 2,\n \"isStackable\": false,\n \"isPrepayment\": false\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"name": "<string>",
"isActive": true,
"description": "<string>",
"startDate": "2023-11-07T05:31:56Z",
"endDate": "2023-11-07T05:31:56Z",
"rrule": "<string>",
"timezone": "<string>",
"maxRedemptions": 123,
"maxPerPatient": 123,
"redemptionsCount": 0,
"autoApply": true,
"code": "<string>",
"creditAmount": 123,
"creditExpiryDays": 123,
"loyaltyPointsBonus": 123,
"loyaltyPointsExpiryDays": 123,
"providerIds": [
"<string>"
],
"teamIds": [
"<string>"
],
"createdDate": "2023-11-07T05:31:56Z",
"updatedDate": "2023-11-07T05:31:56Z",
"rules": [
{
"id": "<string>",
"operator": "IS",
"itemId": "<string>",
"category": "<string>",
"minQuantity": 123,
"minSubtotalCents": 123,
"cohortId": "<string>",
"locationId": "<string>",
"group": 0,
"itemName": "<string>",
"cohortName": "<string>",
"locationName": "<string>"
}
],
"discountTemplates": [
{
"id": "<string>",
"itemId": "<string>",
"itemName": "<string>",
"category": "<string>",
"itemType": "<string>",
"type": "<string>",
"percentage": 123,
"amount": 123,
"quantity": 123,
"isStackable": false
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Headers
The tenant you are making this request on behalf of
Your api key
Body
application/json
Required range:
x >= 1Required range:
x >= 1Required range:
x >= 0Required range:
x >= 1Required range:
x >= 1Required range:
x >= 1Show child attributes
Show child attributes
Show child attributes
Show child attributes
Response
Successful Response
Show child attributes
Show child attributes
Show child attributes
Show child attributes
⌘I
