Skip to content
This repository was archived by the owner on Oct 17, 2023. It is now read-only.

Latest commit

 

History

History
28 lines (24 loc) · 4.5 KB

File metadata and controls

28 lines (24 loc) · 4.5 KB

CouponInstance

Properties

Name Type Description Notes
target_id str { "description" : "Target ID of the coupon-instance. If the target is subscription, this is the subscription's ID. If the target is account, this is the account's ID.", "verbs":["POST","PUT","GET"] } [optional]
coupon_code str { "description" : "Code for the coupon. This code can be used to apply coupon-instances to subscriptions or accounts.", "verbs":["POST","PUT","GET"] } [optional]
date_initialised datetime { "description" : "The UTC DateTime the coupon was initialised.", "verbs":["POST","PUT","GET"] }
valid_till datetime { "description" : "The UTC DateTime the coupon-instance is valid until.", "verbs":["POST","PUT","GET"] } [optional]
created datetime { "description" : "The UTC DateTime when the object was created.", "verbs":[] } [optional]
changed_by str { "description" : "ID of the user who last updated the entity.", "verbs":[] } [optional]
updated datetime { "description" : "The UTC DateTime when the object was last updated.", "verbs":[] } [optional]
id str { "description" : "ID of the coupon-instance.", "verbs":["POST","PUT","GET"] } [optional]
crm_id str { "description" : "CRM ID of the product-rate-plan.", "verbs":["POST","PUT","GET"] }
organization_id str { "description" : "Organization associated with the", "verbs":["POST","PUT","GET"] }
book_id str { "description" : "ID of the coupon-book associated with the coupon-instance.", "verbs":["POST","PUT","GET"] }
coupon_definition_id str { "description" : "ID of the coupon-definition associated with the coupon-instance.", "verbs":["POST","PUT","GET"] }
target str { "description" : "Ttype of the target for the coupon-instance. Used in combination with the targetID.", "verbs":["POST","PUT","GET"] }
periods_valid_for int { "description" : "Number of subscription periods the coupon is valid for. Unused.", "verbs":["POST","PUT","GET"] }
total_periods int { "description" : "Unused.", "verbs":["POST","PUT","GET"] }
remaining_uses int { "description" : "The number of remaining uses the coupon-instance has left.", "verbs":["POST","PUT","GET"] }
instance_discount_value float { "description" : "(Optional) The value to be used for dynamic price calculation, if the coupon definition has an 'instance' or 'instance_percent' coupon modifier. If it is not set, the effect amount of the coupon modifier will be used.", "verbs":["POST","PUT","GET"] } [optional]
max_remaining_uses int { "description" : "The number of remaining uses the coupon-instance had upon initialisation.", "verbs":["POST","PUT","GET"] }
coupon_instance_existing_values list[CouponInstanceExistingValue] { "description" : "The collection of coupon-instance-existing-value objects associated with the coupon-instance.", "verbs":["POST","PUT","GET"] }

[Back to Model list] [Back to API list] [Back to README]