Tokens

Create Token

Generate a payment token, to associate it with a card, Endpoint could be use directly only for PCI compliance account

post/tokens

Request

Headers

Accept-Language'es' | 'en'

Use for knowing which language to use

Request body

Example request

{
  "card": {
    "cvc": "123",
    "device_fingerprint": "zptcxk4p6w1ijwz85snf1l3bqe5g09ie",
    "exp_month": "12",
    "exp_year": "26",
    "name": "Miguel",
    "number": "4242424242424242"
  },
  "checkout": {
    "returns_control_on": "Token"
  }
}

Response

successful operation

idstring required

Unique identifier for the token generated by Conekta.

livemodeboolean required

Indicates whether the token is in live mode or test mode.

objectstring required

Indicates the type of object, in this case token

usedboolean required

Indicates if the token has been used

Example response

{
  "checkout": {
    "allowed_payment_methods": [
      "card"
    ],
    "exclude_card_networks": [
      "visa"
    ],
    "expires_at": 1675715413,
    "failure_url": "https://example.com/failure",
    "id": "524f9d2f-8c2e-4e64-a33d-6006711a91bd",
    "livemode": true,
    "metadata": {
      "key": "value"
    },
    "monthly_installments_options": [
      3
    ],
    "name": "tok-2toNoPZpJgRU4PvgZ",
    "object": "checkout",
    "starts_at": 1675715413,
    "status": "Issued",
    "success_url": "https://example.com/success",
    "type": "Integration"
  },
  "id": "cus_2tHJfJ79KyUwpxTik",
  "livemode": true,
  "object": "token"
}

Changes

No recorded changes to this operation across all 2 revisions of this API.