userBuyerCreatePasswordToken Mutation
Description
Generates a password reset token for a buyer and initiates the password reset process. The token is sent via the client API. Returns the buyer.
mutation userBuyerCreatePasswordToken($email: String!) {
userBuyerCreatePasswordToken(email: $email) {
_id
created
updated
lastLogin
active
birthdate
firstName
lastName
email
name
path
telephone
organisation
taxNumber
lists {
_id
ref
added
lastModified
}
accountCreated
addresses {
_id
description
firstName
lastName
addressLine1
addressLine2
streetNumber
city
state
stateCode
postCode
alpha2
country
type
}
notes
verification {
status
token
code
date
hash
}
orderCount
orderTotal
creditNotesCount
wantsCount
vouchersCount
checkoutCount
type
}
}
Variables
{
"email": "email@example.com"
}
Response
{
"userBuyerCreatePasswordToken": {
"_id": "a9c7b1d2f1c8d393ba8746e3",
"created": 1718072541604,
"updated": 1752337461536,
"lastLogin": 1735352205561,
"active": true,
"birthdate": 1762969161998,
"firstName": "example",
"lastName": "example",
"email": "email@example.com",
"name": "example",
"path": "/release/1763553751/release-artist-release-name",
"telephone": "example",
"organisation": "example",
"taxNumber": "example",
"lists": [
{
"_id": "5e878d7fad44804f04b6c186",
"ref": "4b875d68d7e7f116ce0c1deb",
"added": 1763430629670,
"lastModified": 1746457953142
}
],
"accountCreated": true,
"addresses": [
{
"_id": "1fb7bbfa26e04b3dd5478446",
"description": "example",
"firstName": "example",
"lastName": "example",
"addressLine1": "example",
"addressLine2": "example",
"streetNumber": 42,
"city": "example",
"state": "example",
"stateCode": "example",
"postCode": "example",
"alpha2": "example",
"country": "example",
"type": "example"
}
],
"notes": "example",
"verification": {
"status": true,
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ",
"code": "example",
"date": 1768644626910,
"hash": "example"
},
"orderCount": 42,
"orderTotal": 1.23,
"creditNotesCount": 42,
"wantsCount": 42,
"vouchersCount": 42,
"checkoutCount": 42,
"type": "example"
}
}
Arguments
| Name | Type | Description |
|---|---|---|
email | String! | Email address of the buyer to generate a password reset token for. |