POST
/
v1
/
checkout
/
tokenized-card-data
curl --request POST \
  --url https://api.nomba.com/v1/checkout/tokenized-card-data \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'accountId: <accountid>' \
  --data '{
  "currentEmailAddress": "[email protected]",
  "newEmailAddress": "[email protected]",
  "tokenKey": "5844858382"
}'
{
  "code": "00",
  "data": {
    "message": "[email protected]",
    "status": "true",
    "tokenizedCardData": [
      {
        "cardPan": "234818********7580",
        "cardType": "Verve",
        "customerEmail": "[email protected]",
        "tokenExpirationDate": "20/20",
        "tokenKey": "e890bd1a9f0d"
      }
    ]
  },
  "description": "Success"
}

Authorizations

Authorization
string
headerrequired

Nomba authenticates API calls with OAuth2 HTTP bearer tokens. There are two methods of authentication; Client-Credentials method and PKCE (Proof Key for Code Exchange) method. In each of the methods, You will get an ACCESS_TOKEN. You need to use an "Authorization" HTTP header to provide your ACCESS_TOKEN. For example: Authorization: {ACCESS_TOKEN}.

Headers

accountId
string
required

The parent accountId of the business.

Body

application/json
currentEmailAddress
string
required

customer email currently associated with the key

newEmailAddress
string
required

new email to replace the old one

tokenKey
string
required

token key

Response

200 - application/json
code
string
required

Response Code

data
object
required
description
string
required

Response description