Coupon Link - Triggered when a coupon is linked to a customer.

Return Type

CustomerCouponResultView { 
  coupon?: CouponResultView;
  id?: string;
  customerId?: string;
  usesLeft?: number;
  favorite?: boolean;
  barCode?: string;
  rewardId?: string;
  createdDate?: Date;
  updatedDate?: Date;
  couponId?: string;
  from: Date
  to?: Date
  isUsed: boolean;
  createdBy?: string;
  updatedBy?: string;
  isValid: readonly boolean
  customer: BasicCustomerModel
}

Sub Return Types

CouponResultView{
  id: string($uuid)
  schemeId: string($uuid)
  name?: string
  description?: string
  readOnly: valid	boolean
  initialNumberOfUses: integer($int32)
  from?: Date
  to?: Date
  until?: Date
  imageUrl?: string
  updatedDate: Date
  createdDate: Date
  outletId: Array<string?>
  externalReference?: string
  platform?: string
  isDyanmic: boolean
  dynamicDays?: integer($int32)
  createdBy?: string
  updatedBy?: string
}
BasicCustomerModel{
  id?: string
  firstName?: string
  lastName?: string
  email?: string
  areaCode?: string
  mobileNumber?: string
  barCode?: string
  externalRefId?: string
  onHold: boolean
  additionalCustomerFields?: Array<AdditionalCustomerFieldsResultView>
}

What’s Next