Coupon

Assign Coupon to Customer

Changed on

Assign a Coupon to a Customer

Using the Coupon ID and a Customer ID, we can assign a Coupon to a Customer

This will mean that the Customer will automatically be able to use the Coupon when booking without the use of a promocode

post/coupons/{coupon_id}/assign_to_customer.json

Request

  • Base URL
    https://api.jammed.app/api/v2
  • Auth
    none declared. Required headers: Authorization

Path parameters

coupon_idinteger required

Coupon ID to create promocode for

Headers

Authorizationstring required

Request body form-data

customer_idinteger

The Customer's ID to assign the Coupon to

Response

Promocode assigned

idinteger
codestring

The code the customer can use to redeem the promocode, they enter this code when booking.

The code is case-insensitive and must be unique

minimum_booking_valueinteger

The minimum booking value the Promocode can be used for.

If attempted for a booking below this value, the Coupon will not be applied

first_time_use_onlyboolean

If set to true, the Promocode will only be usable once per customer - applies to logged in customers only

Changes