---
title: "Assign Coupon to Customer"
method: POST
path: "/coupons/{coupon_id}/assign_to_customer.json"
tags: ["Coupon Endpoints"]
---

# Assign Coupon to Customer

`POST /coupons/{coupon_id}/assign_to_customer.json`

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

## Path parameters

- `coupon_id` integer, required

## Headers

- `Authorization` string, required

## Response `201`

Promocode assigned

- Promocode
  - `id` integer
  - `code` string — 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_value` integer — 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_only` boolean — If set to true, the Promocode will only be usable once per customer - applies to logged in customers only

## Other responses

- `401` — Unauthorized - Invalid API key
- `422` — Coupon has already been assigned to this Customer

---

[API](https://skmtc.net/jammed-org/apis/jammed-bookings-api.md) · [All operations](https://skmtc.net/jammed-org/apis/jammed-bookings-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/jammed-org/jammed-bookings-api/revisions/3fc6a6f91b06/schema)
