---
title: "Tokenize card (card number->token)"
method: POST
path: "/creditguy/vault/tokenize/"
tags: ["Credit card terminal (Vault)"]
---

# Tokenize card (card number->token)

`POST /creditguy/vault/tokenize/`

## Headers

- `Content-Language` unknown

## Request body

- CreditGuyVaultTokenizeRequest
  - `Credentials` CoreAPICredentials, required
    - `CompanyID` integer, required — Company identifier
    - `APIKey` string, required — API key secret
  - `GetFormatPreserving` boolean, nullable — Should tokenize method also return format preserved token, or only Guid token Defaults to False
  - `CardNumber` string, required — Full card number to tokenize
  - `ForceFormatPreservingToken` string, required — Forced format preserving token This can be useful when migrating from another credit card gateway to OfficeGuy. Please note the format preserving token should be a RANDOM identifier, which can't be reverse engineered into the card number (encoding/encrypting etc. isn't supported).

## Response `200`

OK

- ResponseCreditGuyVaultTokenizeResponse
  - `Status` 'Success (0)' | 'BusinessError (1)' | 'TechnicalError (2)'
  - `UserErrorMessage` string, nullable — Error message, in a user readable format
  - `TechnicalErrorDetails` string, nullable — Technical error details, let us know if you received this.
  - `Data` CreditGuyVaultTokenizeResponse
    - `Token` string, uuid, nullable — Card token
    - `FormatPreservingToken` string, nullable — Format preserved token Returned when GetFormatPreserving is used

---

[API](https://skmtc.net/myofficeguy/apis/sumit-api-full.md) · [All operations](https://skmtc.net/myofficeguy/apis/sumit-api-full/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/myofficeguy/sumit-api-full/versions/de2902289b3a/schema)
