Hey! These docs are for version 1.0, which is no longer officially supported. Click here for the latest version, 5.0!

discountconsumer object

Properties of the discountconsumer object.

{
  /* id of object, set by Upodi */
  "id": "guid",
  /* id of discount object */
  "discountid" : "guid",
  /* id of consuming object - customer, subscripion or subscriptioncharge */
  "consumerid" : "guid",
  "discount" : "discount object",
  /* customer=0, subscription=1, subscriptioncharge=2 */
  "consumertype" : "int",
  "expirydate": "datetime",
  "modifiedby": "guid",
  "createdbyuser": "userprofile object",
  "modifiedbyuser": "userprofile object",
  "createddate": "datetime",
  "modifieddate": "datetime"
}