Skip to content

Logout a customer ​

Endpoint: https://my-store.youcan.shop/api/customers/logout

Method: POST

Revokes the token in the Authorization header. Get the token from the Login endpoint.

Response ​

[200] OK

json
{
    "message": "Logged out"
}

[401] Unauthorized

json
{
    "status": 401,
    "detail": "Unauthenticated.",
    "meta": []
}