Appearance
Send discounts
Endpoints
https://app.passelimerit.fi/api/v2/senddiscounts
Query Payload
json
{
"Discounts": [
{
"TargetGroup": 1,
"TargetName": "testName",
"GroupType": 1,
"GroupCode": "testCode",
"DiscountPrc": 0,
"StartDate": "20200709",
"EndDate": "20200709"
}
]
}
Click to see the query parameters
Field | Type | Comment | Required |
---|---|---|---|
Discounts | Array of Discounts objects |
Discounts Object
Field | Type | Comment | Required |
---|---|---|---|
TargetGroup | Int | 1 - Customer, 2 - Customer Group | |
TargetName | Str | ||
GroupType | Int | 1 - Item, 2 - Item Group | |
GroupCode | Str | ||
DiscountPrc | Decimal | ||
StartDate | Date | ||
EndDate | Date |
Successful Result
json
"OK"