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:
| Code | Description | Error Domain |
|---|---|---|
| 450 | Invalid JWT encryption and/or signature | server.validation.jwt |
| 451 | Invalid JWT Payload | server.validation.jwt |
| 452 | Operation not found | server.generic.error |
| 453 | Invalid clientId | server.validation.jwt |
| 500 | Generic Error | server.generic.error |
| 501 | Token not unsuspendable | server.generic.error |
| 502 | error in search api from Mastercard | server.generic.error |