logout Mutation
Description
Logs out the current user session.
mutation logout($checkoutId: String) {
logout(checkoutId: $checkoutId) {
ok
checkout {
_id
id
configRef
origin
created
orderId
updated
expires
status
message
useSingleAddress
}
}
}
Variables
{
"checkoutId": "checkoutId"
}
Response
{
"logout": {
"ok": true,
"checkout": {
"_id": "9bd0b7b7aa5b2d240bf99257",
"id": "tFu-cAXHj",
"configRef": "42c79ae1d50bf206a358d988",
"origin": "example",
"created": 1747607406429,
"orderId": "example",
"updated": 1733759110008,
"expires": 1717670620185,
"status": "example",
"message": "example",
"useSingleAddress": true
}
}
}
Arguments
| Name | Type | Description |
|---|---|---|
checkoutId | String | Optional checkout identifier to preserve. |