---
title: "Tokenization using payment account & consumer IDs"
method: POST
path: "/tokenizeWithPaymentAccountId"
tags: ["Payment"]
---

# Tokenization using payment account & consumer IDs

`POST /tokenizeWithPaymentAccountId`

## Headers

- `X-Request-ID` string

## Request body

- object
  - `paymentAccountId` string, uuid, required — ID of the encoded user payment details
  - `consumerId` string, required — Gateway consumer ID (user ID)
  - `cvv` string, required — The final three digits printed on the back of the card

## Response `201`

Created

- object
  - `token` string, uuid — A unique one-time token that stores sensitive payment details
  - `expireAt` integer — Token expiration date. The token is valid for 30 minutes from the moment of its creation

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `500` — Internal Server Error

---

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