---
title: "Create a request to tokenise a customer's card details"
method: POST
path: "/shop/terminal-tokenisations"
tags: ["TerminalTokenisations"]
---

# Create a request to tokenise a customer's card details

`POST /shop/terminal-tokenisations`

This endpoint sends a request to the terminal to tokenise a customer's card details.

## Request body

- object
  - `terminal_id` string, object-id, required — Identifier of the physical payment terminal that should prompt for the card. The terminal captures the card and returns a tokenised reference; no PAN is stored in Trybe. Must belong to the caller's site.
  - `customer_id` string, uuid, required — Identifier of the customer whose card is being saved on file. The resulting payment-method token is attached to this customer and can be used for future charges (e.g. no-show fees, recurring bookings).

## Response `200`

The Card Tokenisation was successfully retrieved

- object
  - `data` CardTokenisationRequest, required
    - `id` string, object-id, required — The ID of the tokenisation request.
    - `status` 'pending' | 'paid' | 'failed' | 'cancelled', required — The status of the tokenisation request.
    - `site_id` string, uuid, required — The ID of the site the tokenisation request is associated with.
    - `terminal_id` string, required — The serial number of the terminal associated with the tokenisation request.
    - `service_id` string, required — The ID of the service the tokenisation request is associated with.
    - `processor_data` object, required — An object of key-value pairs containing the response from the terminal for the tokenisation request.

## Other responses

- `400` — The request failed.
- `401` — The user is unauthenticated
- `403` — The authenticated user does not have permission.
- `422` — The request didn't pass validation

---

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