Create a Token (Card)

This endpoint creates a single-use token that securely contains the details of a credit card.

post/

Request

  • Base URL
    https://api.tap.company/v2/tokens
  • URL
    https://api.tap.company/v2/tokens/
  • Auth
    API key in header Authorization

Request body

client_ipstring

The IP Address of the client.

Response

200

idstring
createdinteger
objectstring
live_modeboolean
typestring
usedboolean

Example response

{
  "id": "tok_SpTV5823926VPgE27bU3O801",
  "created": 1682587618801,
  "object": "token",
  "type": "CARD",
  "card": {
    "id": "card_u35O5823926okiJ27sk3D805",
    "object": "card",
    "address": {
      "country": "Kuwait",
      "city": "Kuwait city",
      "avenue": "Gulf",
      "street": "Salim",
      "line1": "Salmiya, 21"
    },
    "funding": "DEBIT",
    "fingerprint": "E1I78d8PV0UHivCrvV8dTkI%2FQJRHPow4XAU4FfmZxCQ%3D",
    "brand": "VISA",
    "scheme": "VISA",
    "name": "test user",
    "issuer": {
      "bank": "THE CO-OPERATIVE BANK PLC",
      "country": "GB",
      "id": "bnk_TS06A1120231227Kx242704090"
    },
    "exp_month": 1,
    "exp_year": 39,
    "last_four": "1019",
    "first_six": "450875"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.