Commerce

Activate or deactivate a discount

Deactivating ends the discount now; activating starts it now.

post/v1/commerce/discounts/{discountId}/state

Path parameters

discountIdstring required

Platform-native id.

Request body

accountIdstring required
activeboolean required

Response

Discount state changed

Example response

{
  "discount": {
    "value": {
      "percentage": 15
    },
    "minimum": {
      "amount": {
        "amount": "19.90",
        "currency": "USD"
      }
    }
  }
}

Changes

Changed in 2 of the 60 revisions of this API.2