2.1.49 Get token

Path:/openapi/card/sdk/access/token

Method:POST

Content-Type:application/json

Response Content-Type:application/json

Description:

Only some cards need to use this interface. To use this interface, you need to have your own app and then connect the SDK we provide in the app.
Use this interface to obtain the token information required after connecting the SDK. In the SDK, you can query the pin code, query card details, authorize 3ds transactions, and other operations.
Please contact the administrator to obtain the document of app connection SDK.

use sdk process

Note ⚠️: Subsequent request body and response body on the interface may add more fields; therefore, when using this interface, new fields that are not recognized need to be ignored to prevent errors

Example Request:

{
    "card_id": "1089744560000011928",
    "token_type":"SDK_CARD_ACCESS_TOKEN",
    "single_use":false
}

Request Parameter:

Parameter name Type Required Description
card_id string true Card ID
token_type string true Token Type,Values:SDK_CARD_ACCESS_TOKEN(sdk access token)
single_use boolean false is use sdk;use sdk the values is true,init sdk the value is false

API Response:

Parameter name Type Description
code string Error code
data Object Response data object
  card_id string This card_id not request body‘s card_id,it equals to sdk’s cardId
  app_card_id string APP Card ID,it equals to sdk’s appCardId
  app_cardholder_id string APP Cardholder ID,it equals to sdk’s appCardholderId
  token string Token,it equals to sdk’s token
  expires_in_seconds integer Expires time,in seconds
msg string Error message

Example Response:

{
  "code": "00000",
  "msg": "ok",
  "data": {
    "card_id": "CA1651791760457761",
    "app_card_id": "crd_xemr6hppo64u3erbvs2gmq7o7u",
    "app_cardholder_id": "crh_kmvkhwdbdtoujbuzw26vtailom",
    "token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJodHRwczovL2FjY2Vzcy5zYW5kYm94LmNoZWNrb3V0LmNvbSIsIm5iZiI6MTczNDQxNDM3MiwiaWF0IjoiMTczNDQxNDM3MiIsImV4cCI6MTczNDQyODc3MiwiYXVkIjpbImFjY291bnRzIiwiYmFsYW5jZXMiLCJkaXNwdXRlcyIsImZpbGVzIiwiZmluYW5jaWFsLWFjdGlvbnMiLCJmbG93IiwiZm9yd2FyZCIsImZ4IiwiZ2F0ZXdheSIsImluc3RydW1lbnRzIiwiaXNzdWluZyIs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DT4AkJ-B12NVtQF3IB2BekS3lVTZV_7Ed1uLCY6X-rtGulMajnsc885nFy8oj5Kjhi3hXYcOUaM_ITX3v7tzfVahKtS4-92Zz8iU7sAJPzddVF-iskOwBytLYq9tUT9Ijx5vnalFiE2EgE8cn5K1iSo9CN_Y_VFHyxNpfO7Y9N83Fl2LwjnBCA1stVgWoGltTAmSE-jVzUFM9ENfK3cjU3Fa-VCEb5-Jn-kI1-Ua80bCE_VJLS8GffUDCwkEYoITLddMOXcphpu83QP0lMPKFPnzuzTb9-oZ5uAeaqFYJCVsDECDAPXBsm93XZB4vunMu-Jr9G6p7RRbBr6mGrwpLq-jGOXVGf2-Hl4SChPqlQQfIZSWBcPJOhNQS7ysYu97pQXCaHdFGP9QMST_tSF4H3PErBmWtKmi2xLloa_kUhdIejJ9TuLA42H-FEyGb5UMm6hJix2G6WrQrqpA6z_GaOiVf0oTIoG72-48osKzEwtzn8DsFAaTVSKyCIiUcMVDuLvtqINbiY97_EeuWQBiOTrVL1YS_QNi2fohc_I7cSXvZ4bd4apij81o-ThEmwRkSLB0QfTtRtkY5EmCEfZBq8",
    "expires_in_seconds": 14400
  }
}
Copyright © HyperCard 2023 all right reserved,powered by GitbookUpdate Time: 2025-01-14 15:38:46

results matching ""

    No results matching ""