Invalidate customer credentials

Here, you can learn how to make an API call to invalidate customer credentials. Once the call succeeds, your customer cannot authenticate using the invalidated credentials.

Sample API call

To create customer credentials, make the following API call.

https://auth-api.sandbox.tuumplatform.com/api/v1/credentials/invalidate

Learn more about the endpoint in the Tuum developer portal.

Invalidate customer credentials

POST https://auth-api.sandbox.tuumplatform.com/api/v1/credentials/invalidate

Learn more about the endpoint in the Tuum developer portal.

Sample request

Below is an example request body of the API call to invalidate customer credentials.

{
"personId": "ID-1038",
"username": "customer_username",
"password": "customer_password"
}

To make a successful API call, you must include the JSON Web Token of the authenticated employee with specific user rights as a header parameter with the value of x-auth-token. Kindly adhere to the instructions given in the explanations for header parameters.

Sample response

Below you find an example response body to the API call above.

Response
{
    "errors": null,
    "validationErrors": null,
    "data": null
}

Result

After making the API call, the customer's credentials become invalid, making it impossible to authenticate themselves.

Last updated

Was this helpful?