Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 1.2 KB

create-loyalty-reward-request.md

File metadata and controls

33 lines (24 loc) · 1.2 KB

Create Loyalty Reward Request

A request to create a loyalty reward.

Structure

Create Loyalty Reward Request

Fields

Name Type Tags Description
reward Loyalty Reward Required Represents a contract to redeem loyalty points for a reward tier discount. Loyalty rewards can be in an ISSUED, REDEEMED, or DELETED state.
For more information, see Manage loyalty rewards.
idempotency_key str Required A unique string that identifies this CreateLoyaltyReward request.
Keys can be any valid string, but must be unique for every request.
Constraints: Minimum Length: 1, Maximum Length: 128

Example (as JSON)

{
  "idempotency_key": "18c2e5ea-a620-4b1f-ad60-7b167285e451",
  "reward": {
    "loyalty_account_id": "5adcb100-07f1-4ee7-b8c6-6bb9ebc474bd",
    "order_id": "RFZfrdtm3mhO1oGzf5Cx7fEMsmGZY",
    "reward_tier_id": "e1b39225-9da5-43d1-a5db-782cdd8ad94f",
    "id": "id0",
    "status": "ISSUED",
    "points": 222,
    "created_at": "created_at8"
  }
}