---
title: "Buy tickets for an event"
method: POST
path: "/checkout"
tags: ["Events"]
---

# Buy tickets for an event

`POST /checkout`

Buy tickets for a specific event

## Request body

- UsecaseBuyTicketsInputDTO
  - `card_hash` string
  - `email` string
  - `event_id` string
  - `spots` string[]
  - `ticket_kind` string

## Response `200`

OK

- UsecaseBuyTicketsOutputDTO
  - `tickets` UsecaseTicketDTO[]
    - `id` string
    - `price` number
    - `spot_id` string
    - `ticket_kind` string

## Other responses

- `400` — Bad Request
- `500` — Internal Server Error

## Changes

- **2024-06-10** `2ee95dd930d4` — 4 info
  - api tag `Events` added
  - api tag `tickets` removed
  - added the non-success response with the status `400`
  - added the non-success response with the status `500`
- **2024-06-09** `929f78aa3151` — 4 info
  - api tag `tickets` added
  - api tag `Events` removed
  - removed the non-success response with the status `400`
  - removed the non-success response with the status `500`

[Change history](https://skmtc.dev/devfullcycle/apis/events-api/changes/checkout/post.md)

---

[API](https://skmtc.dev/devfullcycle/apis/events-api.md) · [All operations](https://skmtc.dev/devfullcycle/apis/events-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/devfullcycle/events-api/revisions/5869daf604b2/schema)
