Skip to main content

Attach a Product Type to a Coupon

POST 

/coupon/:guid/products/:product_guid

Attach a Product Type to a Coupon, prepends this Product Type to the order list. i.e. the Product Type ends up on the top

Request

Path Parameters

    guid stringrequired

    The guid of the Coupon

    product_guid stringrequired

    The guid of the Product Type

Body

Input data

    max_per_coupon integer

    Default value: 0

    The amount of times the Coupon can be applied to this Product Type in a single Order.

    price integer

    Use this property to override the price of a Product Type.

    Note that this value (as does "forced") appear in the "pivot" property.

Responses

Product Type attached to Coupon.

Loading...