Skip to main content

⚠️ Deprecated: No longer supported

userCreate Mutation

Description

Creates a new buyer with the specified email. This mutation is deprecated in favor of userBuyerCreate which provides more control over buyer creation.

mutation userCreate($createEshopAccount: Boolean, $email: String!) {
userCreate(createEshopAccount: $createEshopAccount, email: $email) {
user {
_id
created
updated
lastLogin
active
birthdate
firstName
lastName
email
name
path
telephone
organisation
taxNumber
accountCreated
notes
orderCount
orderTotal
creditNotesCount
wantsCount
vouchersCount
type
}
message
}
}

Variables

{
"createEshopAccount": true,
"email": "email@example.com"
}

Response

{
"userCreate": {
"user": {
"_id": "4883c8f4e44ac57f6ecb9bd7",
"created": 1710014040463,
"updated": 1731654389370,
"lastLogin": 1732603032602,
"active": true,
"birthdate": 1748913441192,
"firstName": "example",
"lastName": "example",
"email": "email@example.com",
"name": "example",
"path": "/release/1763553751/release-artist-release-name",
"telephone": "example",
"organisation": "example",
"taxNumber": "example",
"accountCreated": true,
"notes": "example",
"orderCount": 42,
"orderTotal": 1.23,
"creditNotesCount": 42,
"wantsCount": 42,
"vouchersCount": 42,
"type": "example"
},
"message": "example"
}
}

Arguments

NameTypeDescription
createEshopAccountBooleanWhether to create an eshop account for the buyer, allowing them to log in to the storefront.
emailString!Email address of the buyer to create.

Returns

BuyerCreateResponse