Skip to content

Latest commit

 

History

History
59 lines (50 loc) · 1.9 KB

create-loyalty-promotion-request.md

File metadata and controls

59 lines (50 loc) · 1.9 KB

Create Loyalty Promotion Request

Represents a CreateLoyaltyPromotion request.

Structure

Create Loyalty Promotion Request

Fields

Name Type Tags Description
loyalty_promotion Loyalty Promotion Required Represents a promotion for a loyalty program. Loyalty promotions enable buyers
to earn extra points on top of those earned from the base program.

A loyalty program can have a maximum of 10 loyalty promotions with an ACTIVE or SCHEDULED status.
idempotency_key str Required A unique identifier for this request, which is used to ensure idempotency. For more information,
see Idempotency.
Constraints: Minimum Length: 1, Maximum Length: 128

Example (as JSON)

{
  "idempotency_key": "ec78c477-b1c3-4899-a209-a4e71337c996",
  "loyalty_promotion": {
    "available_time": {
      "time_periods": [
        "BEGIN:VEVENT\nDTSTART:20220816T160000\nDURATION:PT2H\nRRULE:FREQ=WEEKLY;BYDAY=TU\nEND:VEVENT"
      ],
      "start_date": "start_date4",
      "end_date": "end_date8"
    },
    "incentive": {
      "points_multiplier_data": {
        "multiplier": "3.0",
        "points_multiplier": 134
      },
      "type": "POINTS_MULTIPLIER",
      "points_addition_data": {
        "points_addition": 218
      }
    },
    "minimum_spend_amount_money": {
      "amount": 2000,
      "currency": "USD"
    },
    "name": "Tuesday Happy Hour Promo",
    "qualifying_category_ids": [
      "XTQPYLR3IIU9C44VRCB3XD12"
    ],
    "trigger_limit": {
      "interval": "DAY",
      "times": 1
    },
    "id": "id4",
    "status": "ACTIVE",
    "created_at": "created_at2",
    "canceled_at": "canceled_at0"
  }
}