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": "c4331c04f1c56e6a6a11a692",
"id": "okm-Rjh3S",
"configRef": "2c83f1a5c247f64dda492a3c",
"origin": "example",
"created": 1730239454918,
"orderId": "example",
"updated": 1745453550578,
"expires": 1739099554779,
"status": "example",
"message": "example",
"useSingleAddress": true
}
}
}
Arguments
| Name | Type | Description |
|---|---|---|
checkoutId | String | Optional checkout identifier to preserve. |