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": "90787e41a3ece2c2ef16726f",
"id": "ee0-4ZFsc",
"configRef": "71b6dc2a0bd1d33970d84339",
"origin": "example",
"created": 1766603020306,
"orderId": "example",
"updated": 1760115063374,
"expires": 1742896722317,
"status": "example",
"message": "example",
"useSingleAddress": true
}
}
}
Arguments
| Name | Type | Description |
|---|---|---|
checkoutId | String | Optional checkout identifier to preserve. |