Online Checkout

Change the email linked to a saved card

Changed on

Change the email address linked to a saved card. This endpoint can't change the card itself.

post/v1/checkout/tokenized-card-data

Request

  • Base URL
    https://api.nomba.com
  • URL
    https://api.nomba.com/v1/checkout/tokenized-card-data
  • Auth
    HTTP bearer

Headers

accountIdstring uuid required
Example:890022ce-bae0-45c1-9b9d-ee7872e6ca27

The parent accountId of the business.

Request body

tokenKeystring required

The card token

currentEmailAddressstring required

The email address currently linked to the card

newEmailAddressstring required

The email address to link to the card instead

Example request

{
  "tokenKey": "5844858382",
  "currentEmailAddress": "email@email.com",
  "newEmailAddress": "new.email@email.com"
}

Response

Email address changed.

codestring required

Response Code

descriptionstring required

Response description

Example response

{
  "code": "00",
  "description": "Success",
  "data": {
    "status": true,
    "message": "Email address updated successfully",
    "tokenizedCardData": {
      "tokenKey": "e890bd1a9f0d",
      "customerEmail": "email@email.com",
      "cardType": "Verve",
      "cardPan": "7580",
      "tokenExpiryDate": "2808"
    }
  }
}

Changes

    • breaking

      the / response's property type changed from no type to object for status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status