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": "941b3b2f08afdef9606f0233",
"id": "zLX-HU1U4",
"configRef": "ca71c278d01dfc6f7b1efd32",
"origin": "example",
"created": 1775665110732,
"orderId": "example",
"updated": 1732863993264,
"expires": 1768076534117,
"status": "example",
"message": "example",
"useSingleAddress": true
}
}
}
Arguments
| Name | Type | Description |
|---|---|---|
checkoutId | String | Optional checkout identifier to preserve. |