promotions

Update promotion

Partially updates a promotion by its identifier. The code is immutable. Editing content is blocked while the promotion is active and in effect; toggling "active" is always allowed.

patch/api/v1/promotions/{id}

Path parameters

idstring uuid required
Example:01920000-0000-7000-8000-000000000000

Promotion identifier (UUID).

Request body

namestring
descriptionstring nullable
activeboolean
metadataobject nullable

Response

Promotion updated.

metadataobject nullable required
idstring required
codestring required
namestring required
descriptionstring nullable required
activeboolean required
validityobject required
eligibilityobject required
benefitobject required
item_restrictionsobject[] required
conditionsobject[] required
usage_limitsobject required
accumulationobject required
created_atstring required
updated_atstring required

Changes

Changed in 2 of the 9 revisions of this API.141125

    • added the new optional request property accumulation

      new-optional-request-property

    • added the new optional request property active

      new-optional-request-property

    • added the new optional request property benefit

      new-optional-request-property

    • added the new optional request property conditions

      new-optional-request-property

    • added the new optional request property description

      new-optional-request-property

    • added the new optional request property eligibility

      new-optional-request-property

    • added the new optional request property item_restrictions

      new-optional-request-property

    • added the new optional request property metadata

      new-optional-request-property

    • added the new optional request property name

      new-optional-request-property

    • added the new optional request property usage_limits

      new-optional-request-property

    • added the new optional request property validity

      new-optional-request-property

    • added the required property accumulation to the response with the 200 status

      response-required-property-added

    • added the required property active to the response with the 200 status

      response-required-property-added

    • added the required property benefit to the response with the 200 status

      response-required-property-added

    • added the required property code to the response with the 200 status

      response-required-property-added

    • added the required property conditions to the response with the 200 status

      response-required-property-added

    • added the required property created_at to the response with the 200 status

      response-required-property-added

    • added the required property description to the response with the 200 status

      response-required-property-added

    • added the required property eligibility to the response with the 200 status

      response-required-property-added

    • added the required property id to the response with the 200 status

      response-required-property-added

    • added the required property item_restrictions to the response with the 200 status

      response-required-property-added

    • added the required property name to the response with the 200 status

      response-required-property-added

    • added the required property updated_at to the response with the 200 status

      response-required-property-added

    • added the required property usage_limits to the response with the 200 status

      response-required-property-added

    • added the required property validity to the response with the 200 status

      response-required-property-added

    This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

  • 84194c31ab851411See the full diff
    • removed the required property accumulation from the response with the 200 status

      response-required-property-removed

    • removed the required property active from the response with the 200 status

      response-required-property-removed

    • removed the required property benefit from the response with the 200 status

      response-required-property-removed

    • removed the required property code from the response with the 200 status

      response-required-property-removed

    • removed the required property conditions from the response with the 200 status

      response-required-property-removed

    • removed the required property created_at from the response with the 200 status

      response-required-property-removed

    • removed the required property description from the response with the 200 status

      response-required-property-removed

    • removed the required property eligibility from the response with the 200 status

      response-required-property-removed

    • removed the required property id from the response with the 200 status

      response-required-property-removed

    • removed the required property item_restrictions from the response with the 200 status

      response-required-property-removed

    • removed the required property name from the response with the 200 status

      response-required-property-removed

    • removed the required property updated_at from the response with the 200 status

      response-required-property-removed

    • removed the required property usage_limits from the response with the 200 status

      response-required-property-removed

    • removed the required property validity from the response with the 200 status

      response-required-property-removed

    • removed the request property accumulation

      request-property-removed

    • removed the request property active

      request-property-removed

    • removed the request property benefit

      request-property-removed

    • removed the request property conditions

      request-property-removed

    • removed the request property description

      request-property-removed

    • removed the request property eligibility

      request-property-removed

    • removed the request property item_restrictions

      request-property-removed

    • removed the request property metadata

      request-property-removed

    • removed the request property name

      request-property-removed

    • removed the request property usage_limits

      request-property-removed

    • removed the request property validity

      request-property-removed

    This revision also has 36 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog