Promotions

Create Promotion Stack

This method creates one promotion stack. The sequence of promotion tier IDs will determine the promotion stacking order.

post/v1/promotions/{campaignId}/stacks

Request

  • Base URL
    https://api.voucherify.io
  • URL
    https://api.voucherify.io/v1/promotions/{campaignId}/stacks
  • Auth
    • API key in header X-App-Id and API key in header X-App-Token
    • or OAuth 2
      Implicit: https://api.voucherify.io/v1/oauth/token
      Scopes: api, promotions

Request body

namestring required

Promotion stack name.

category_idstring

Promotion stack category ID.

Response

Returns a new stack object if a valid promotion campaign identifier was provided in the path and available promotion IDs in the payload.

namestring required

Promotion stack name.

idstring required

Unique promotion stack ID.

created_atstring date-time required

Timestamp representing the date and time when the promotion stack was created. The value is shown in the ISO 8601 format.

campaign_idstring required

Promotion stack's parent campaign's unique ID.

object'promotion_stack' required

The type of the object represented by JSON.

category_idstring nullable required

Promotion stack category ID.

Changes

No recorded changes to this operation across all 1 revision of this API.