---
title: "Buy a gift card online. Returns a checkout link; the card is issued only after the provider confirms payment"
method: POST
path: "/api/v1/public/{slug}/gift-cards/orders"
---

# Buy a gift card online. Returns a checkout link; the card is issued only after the provider confirms payment

`POST /api/v1/public/{slug}/gift-cards/orders`

## Request

- Base URL: `http://127.0.0.1:4310`
- URL: `http://127.0.0.1:4310/api/v1/public/{slug}/gift-cards/orders`
- Auth: one of:
  - none
  - HTTP bearer

## Path parameters

- `slug` string, required

## Request body

- object
  - `product_id` string, required
  - `amount_minor` integer, required
  - `purchaser` object, required
    - `name` string, required
    - `email` string, required
  - `recipient` object
    - `name` string
    - `email` string
  - `message` string
  - `deliver_on` string, date
  - `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)
