Skip to content

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
FieldTypeCommentRequired
DiscountsArray of Discounts objects

Discounts Object

FieldTypeCommentRequired
TargetGroupInt1 - Customer,
2 - Customer Group
TargetNameStr
GroupTypeInt1 - Item,
2 - Item Group
GroupCodeStr
DiscountPrcDecimal
StartDateDate
EndDateDate

Successful Result

json
"OK"