ops
ops-discounts

Extend a discount's validity

Changed on

Extend a discount's valid start and/or end datetimes

put/ops/discount/{id}/extend

Request

  • Base URL
    https://api.topi-staging.eu
  • URL
    https://api.topi-staging.eu/ops/discount/{id}/extend
  • Auth
    OAuth 2
    Authorization code: /oauth2/authorize
    Token URL: /oauth2/token scopes: discount:edit

Path parameters

idstring regexp required

discount ID

Example:739b63c2-9e58-4964-b38d-4ebb424de242

Request body

valid_fromstring date-time

Discount start datetime

valid_untilstring date-time

Discount end datetime

Example request

{
  "valid_from": "1970-01-01T00:00:01Z",
  "valid_until": "1970-01-01T00:00:01Z"
}

Response

OK response.

Changes

    • info

      api operation id discount.extendDiscountValidity removed and replaced with discount#extendDiscountValidity

    • info

      api operation id discount#extendDiscountValidity removed and replaced with discount.extendDiscountValidity

    • info

      api tag ops-discounts added