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 '{
  "tokenKey": "5844858382",
  "currentEmailAddress": "[email protected]",
  "newEmailAddress": "[email protected]"
}'
{
  "code": "00",
  "description": "Success",
  "data": {
    "status": "true",
    "message": "[email protected]",
    "tokenizedCardData": [
      {
        "tokenKey": "e890bd1a9f0d",
        "customerEmail": "[email protected]",
        "cardType": "Verve",
        "cardPan": "234818********7580",
        "tokenExpirationDate": "20/20"
      }
    ]
  }
}

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
tokenKey
string
required

token key

currentEmailAddress
string
required

customer email currently associated with the key

newEmailAddress
string
required

new email to replace the old one

Response

200 - application/json
code
string
required

Response Code

description
string
required

Response description

data
object
required