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": "133e0203dc3271d1493f09d1",
"id": "DJ5-OID6k",
"configRef": "4be52a943fe6df5d53ec70af",
"origin": "example",
"created": 1732413059727,
"orderId": "example",
"updated": 1724605513446,
"expires": 1742213316009,
"status": "example",
"message": "example",
"useSingleAddress": true
}
}
}
Arguments
| Name | Type | Description |
|---|---|---|
checkoutId | String | Optional checkout identifier to preserve. |