customerMembershipUpdate
mutation
An access token is required to call this API. Refer to Authorization for more information about how to obtain the token.
Modify the designated customer to the specified level and the corresponding expiration time.
Arguments
Customer membership information update input
Return
List of encountered errors during Mutations execution.
Status and error codes
For detailed information about common codes, see Status and error codes.
Example
customerMembership Update
Code
Query
mutation customerMembershipUpdate($input: CustomerMembershipUpdateInput!) {
customerMembershipUpdate(input: $input) {
userErrors {
field
message
}
}
}
Variables
{
"input": {
"levelCode": "gid://shopline/Membership/MLC6568224957444662294",
"customerId": "gid://shopline/Customer/4602226680"
}
}
Response
{
"data": {
"customerMembershipUpdate": {
"userErrors": []
}
}
}
Was this article helpful to you?