Skip to main content
Version: v2

Web Token Management API

API for managing payment tokens in web flow.

This API provides endpoints to:

  • Activate payment tokens
  • Delete payment tokens
  • Suspend payment tokens temporarily
  • Unsuspend previously suspended tokens
  • Get all available payment tokens

Authentication: All endpoints require a signed and encrypted JWT token passed in the request body.


Error Handling

In case of error, the server will respond with a standard JSON structure.

Example Error Response:

{
"errorCode": 450,
"errorDescription": "Invalid JWT encryption and/or signature",
"errorDomain": "server.validation.jwt"
}

Possible Error Codes:

CodeDescriptionError Domain
450Invalid JWT encryption and/or signatureserver.validation.jwt
451Invalid JWT Payloadserver.validation.jwt
452Operation not foundserver.generic.error
453Invalid clientIdserver.validation.jwt
500Generic Errorserver.generic.error
501Token not unsuspendableserver.generic.error
502error in search api from Mastercardserver.generic.error