Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 1013 Bytes

create-loyalty-account-request.md

File metadata and controls

30 lines (21 loc) · 1013 Bytes

Create Loyalty Account Request

A request to create a new loyalty account.

Structure

CreateLoyaltyAccountRequest

Fields

Name Type Tags Description
loyaltyAccount LoyaltyAccount Required Describes a loyalty account in a loyalty program. For more information, see
Create and Retrieve Loyalty Accounts.
idempotencyKey string Required A unique string that identifies this CreateLoyaltyAccount 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": "ec78c477-b1c3-4899-a209-a4e71337c996",
  "loyalty_account": {
    "mapping": {
      "phone_number": "+14155551234"
    },
    "program_id": "d619f755-2d17-41f3-990d-c04ecedd64dd"
  }
}