userVerify Mutation
Description
Verifies a user account using a token or verification code.
mutation userVerify(
$token: String
$code: Int
$checkoutId: String
$email: String
) {
userVerify(
token: $token
code: $code
checkoutId: $checkoutId
email: $email
) {
session {
_id
jwt
expires
}
message
checkout {
_id
id
configRef
origin
created
orderId
updated
expires
status
message
useSingleAddress
}
}
}
Variables
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ",
"code": 42,
"checkoutId": "checkoutId",
"email": "email@example.com"
}
Response
{
"userVerify": {
"session": {
"_id": "13e4897c493fb5e1c7f6a509",
"jwt": "example",
"expires": 1764921359386
},
"message": "example",
"checkout": {
"_id": "8d2cb8d62e8f163c5e8685cc",
"id": "PvP-GIbTN",
"configRef": "44da21e463a13c69b9090a1b",
"origin": "example",
"created": 1754831201813,
"orderId": "example",
"updated": 1715552193366,
"expires": 1736150372310,
"status": "example",
"message": "example",
"useSingleAddress": true
}
}
}
Arguments
| Name | Type | Description |
|---|---|---|
token | String | Verification token. |
code | Int | Verification code. |
checkoutId | String | Optional checkout identifier to associate with the session. |
email | String | Email address for verification. |