Alokai

CouponCode

The coupon code

interface CouponCode {
	code?: string;
	discount_amount?: number;
	discount_type?: number;
	expires_date?: number;
	id?: number;
	name?: string;
	total_discount?: number;
}

Properties

NameRequiredTypeDescription
codeOptionalstringThe coupon code. Required in a /POST request.
discount_amountOptionalnumberThe amount of the discount based on the coupon. For example, 3 percent off will show a 3.
discount_typeOptionalnumberThe discount type. - type 0: per_item_discount - type 1: percentage_discount - type 2: per_total_discount - type 3: shipping_discount - type 4: free_shipping
expires_dateOptionalnumberReturns 0 if a expiration date is not set
idOptionalnumberCoupon Id
nameOptionalstringName given to the coupon in the Control Panel
total_discountOptionalnumberTotal discount amount off cart

On this page