discountsource object

Properties of the discountsource object.

Represents a discount applied to a customer, subscription or subscriptioncharge.

{
  /* id of object, set by Upodi */
  "id": "guid",
  "fullname" : "string",
 	 /* procentage = 0 */
  "type" : "integer",
 	 /* procentage amount */
  "amount" : "decimal",
	  /* custom key, example a remote id */
  "refkey": "string", 
  "invoicetext" : "string",
  	/* 100=days,200=weeks,300=months,400=years. Defines expiry period */
  "expiryperiod": "integer",
  	/* number of days, weeks, months, years */
  "expiryperiodinterval": "integer",
    /* set by upodi */
  "createdby": "guid",
    /* set by upodi */
  "modifiedby": "guid",
    /* set by upodi */
  "createddate": "datetime",
    /* set by upodi */
  "modifieddate": "datetime",
    /* source of discount if inherited. could be customer, subscription, subscriptioncharge */
  "Source": "string"
}