Create token
Create a new token in the generic scope. This type of token can be used for various use cases that do not involve sensitive card payment credentials.
Send X-Idempotency-Key to make the request safe to retry. A repeat returns the original token, without its payload, with Idempotent-Replayed: true instead of creating another. A key reused with a different request returns 422 IDEMPOTENCY_KEY_MISMATCH, and a repeat while the original runs returns 409 IDEMPOTENCY_KEY_IN_USE. See Idempotency.
Authorizations
Headers
Makes the write safe to retry. A repeat with the same key, by the same credential, with the same request within 24 hours returns the original outcome with Idempotent-Replayed: true instead of executing again. 1 to 255 visible ASCII characters, sent once. Must not contain card data. See Idempotency.
1 - 255^[!-~]+$"generic-token-7f3c2a9e-0001"
Body
The ID of a type to apply for this payload.
If provided the payload will be validated against the schema of the type and the tokens can be filtered by the type ID as well. Give at most one of type_id and schema; a null value counts as not sent.
"9e5b3f7d-2c8a-4b6e-a1d9-6f4c8b2e5a7d"
An inline JSON Schema the payload must follow, in place of type_id. It is checked like a type's schema, including its x-data-classification annotations, and kept on the token as sent. It is draft 2020-12, or draft-07 when $schema names it; any other $schema is refused. Re-encoded as compact JSON, it may be at most 32768 bytes (32 KB), and it may nest objects and arrays at most 32 levels deep. It does not register a type. Give at most one of type_id and schema; a null value counts as not sent.
Response
Success response