Hello!
I’m working on a Shopify app that will be publicly distributed. I have just created a customer in my Shopify admin dashboard, and I’m trying to create a Gift card for that customer through the API. I’m sending the following GraphQL request:
mutation GiftCardCreate {
giftCardCreate(
input: {
initialValue: "24"
expiresOn: "2025-10-31"
customerId: "gid://shopify/Customer/8294029033690"
recipientAttributes: { id: "gid://shopify/Customer/8294029033690" }
}
) {
userErrors {
code
field
message
}
}
}
But I’m getting the following error:
{
"data": {
"giftCardCreate": {
"userErrors": [
{
"code": "INVALID",
"field": [
"input",
"customerId"
],
"message": "Cannot update the customer without customers permission."
}
]
}
},
"extensions": {
"cost": {
"requestedQueryCost": 10,
"actualQueryCost": 10,
"throttleStatus": {
"maximumAvailable": 2000,
"currentlyAvailable": 1990,
"restoreRate": 100
}
}
}
}
My app already have the following access scopes:
read_customers,write_customers,read_gift_cards,write_gift_cards,read_orders
I am successfully able to create gift cards when not attaching it to a specific customer.
Does anyone else know why the “Cannot update the customer without customers permission” error occurs?