6/16/2023 0 Comments Out of the sandbox coupon![]() This is based off of the customer email address, not a payment method, ip address, shipping address or browser cookie. If each customer is only allowed to use this coupon once, enter 1 here. Leave as 0 to ignore this feature.įor informational purposes, this shows you how many times this coupon has already been used. This can be helpful for promotions that involve offering a discount to the first 100 customers, as an example, even though more than 100 coupon codes were given out. This is the total number of times this coupon is allowed to be used. To clear it out, set an empty value or use. If you want this coupon's usage to be limited by a time frame or end in the future, add an end date here. If you want this coupon's usage to be limited by a time frame or start in the future, add a start date here. This will be for your own use and displayed to the customer. You can interact with this resource and run actions against the sandbox API via our HAL Brower.Īctions GET View a coupon PATCH Update a coupon (send only the properties you want to modify) PUT Replace a coupon (send the entire representation) DELETE Delete a coupon HEAD Get just the header response OPTIONS Get a response explaining which HTTP methods are supported Properties Property For example, if you would like all the coupon code variations to have a "summer_special" prefix, set that here. prefix: (optional) the number of coupon code variations you would like to generate.number_of_codes: (optional) the number of coupon code variations you would like.length: (optional) the length of the coupon code.Generating Coupon Codes: To generate multiple coupon code variations, POST to the generate_codes link relationship with the following values: The syntax for creating coupon discount strings can be found in the Fox圜art documentation.Ĭreating Multiple Coupon Codes: If you have a list of coupon codes you would like to add to this coupon, you can POST to the coupon_codes link relationship with an array of coupon codes like so: Each coupon can have one or more coupon code associated with the coupon resource. payment_method_set_hosted_payment_gatewayĬoupons are where you configure discounts for your customers to use for an entire order.payment_method_set_hosted_payment_gateways.
0 Comments
Leave a Reply. |