---
title: "Staff: issue a gift card with a reason. The code is returned once and emailed when an address is given"
method: POST
path: "/api/v1/gift-cards"
---

# Staff: issue a gift card with a reason. The code is returned once and emailed when an address is given

`POST /api/v1/gift-cards`

## Request

- Base URL: `http://127.0.0.1:4310`
- URL: `http://127.0.0.1:4310/api/v1/gift-cards`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `sfb_session`

## Request body

- object
  - `amount_minor` integer, required
  - `product_id` string
  - `reason` string, required
  - `recipient_name` string
  - `recipient_email` string
  - `purchaser_name` string
  - `purchaser_email` string
  - `message` string
  - `client_id` string
  - `expiry_months` integer
  - `deliver_on` string, date
  - `send_email` boolean
  - `idempotency_key` string, required: Stable retry key. A replay returns the original result.

## Response `201`

OK

- object

## Other responses

- `400`: Validation error
- `401`: Unauthenticated
- `403`: Forbidden
- `404`: Not found
- `409`: Conflict or invalid state

---

[API](https://skmtc.dev/scalingfirm/apis/tsf-booking-api.md) · [All operations](https://skmtc.dev/scalingfirm/apis/tsf-booking-api/llms.txt) · [OpenAPI document](https://skmtc.dev/scalingfirm/apis/tsf-booking-api/revisions/81704199cd37?raw)
