> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pushcash.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Tokenize card

> Exchange raw cardholder data for a short-lived token that can be passed to [authorize-payment](/apireference/authorization/authorize-payment).

This endpoint is hosted on a PCI-isolated domain and must be called directly with the cardholder's PAN, CVV, and expiration date. Only operators with their own PCI DSS compliance should call this endpoint directly.




## OpenAPI

````yaml /openapi.yaml post /tokenize
openapi: 3.0.1
info:
  title: Push API
  version: 0.0.1
servers:
  - url: https://api.pushcash.com
    description: Production API
  - url: https://sandbox.pushcash.com
    description: Sandbox API used for developing an integration with Push
security:
  - bearer: []
tags:
  - name: user
  - name: tokenization
  - name: authorization
  - name: intent
  - name: dispute
  - name: refund
  - name: accounts
  - name: transactions
  - name: transfer
paths:
  /tokenize:
    post:
      tags:
        - tokenization
      summary: Tokenize card
      description: >
        Exchange raw cardholder data for a short-lived token that can be passed
        to [authorize-payment](/apireference/authorization/authorize-payment).


        This endpoint is hosted on a PCI-isolated domain and must be called
        directly with the cardholder's PAN, CVV, and expiration date. Only
        operators with their own PCI DSS compliance should call this endpoint
        directly.
      operationId: tokenizeCard
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - user_id
                - pan
                - cvv
                - exp_month
                - exp_year
              properties:
                user_id:
                  type: string
                  description: >-
                    The Push identifier for the user the token will be
                    associated with.
                  example: user_28CJjV7P4Go5PNJvfzghiD
                pan:
                  type: string
                  description: The cardholder's primary account number (PAN).
                  example: '5555555555554444'
                cvv:
                  type: string
                  description: The card verification value.
                  example: '123'
                exp_month:
                  type: string
                  description: The two-digit card expiration month.
                  example: '12'
                exp_year:
                  type: string
                  description: The two-digit card expiration year.
                  example: '28'
                type:
                  type: string
                  enum:
                    - card_only
                  description: >-
                    Optional processing type override to set payments processed
                    using the token to card-only. If omitted, the processing
                    type is dynamically assigned based on the processing
                    category and bin type (`card_only` vs. `secure_debit`).
                  example: card_only
      responses:
        '200':
          description: Token created successfully
          content:
            application/json:
              schema:
                type: object
                required:
                  - token
                properties:
                  token:
                    type: string
                    description: >-
                      A short-lived token that can be submitted to `/authorize`
                      to process a payment.
                    example: token_mbDRHFi3dxIZEtykHsgUGC
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
      servers:
        - url: https://tokens.pushcash.com
          description: Production tokenization API
        - url: https://sandbox-tokens.pushcash.com
          description: Sandbox tokenization API
components:
  schemas:
    error:
      description: Description of the error encountered from the API request
      type: object
  securitySchemes:
    bearer:
      type: http
      scheme: bearer

````