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": "091b158760c9def86a2d3bcc",
"id": "xTo-WMPMi",
"configRef": "b61d79ff41ebca6ac36bc73d",
"origin": "example",
"created": 1724065781985,
"orderId": "example",
"updated": 1733035058245,
"expires": 1752344433024,
"status": "example",
"message": "example",
"useSingleAddress": true
}
}
}
Arguments
| Name | Type | Description |
|---|---|---|
checkoutId | String | Optional checkout identifier to preserve. |