Is there a way to apply credit in bulk to 1000+ customer accounts in my store?
Shopify only allows us to apply credit to one account at a time.
We need to give our staff members a monthly credit as a perk they can spend each month.
Is there a way to apply credit in bulk to 1000+ customer accounts in my store?
Shopify only allows us to apply credit to one account at a time.
We need to give our staff members a monthly credit as a perk they can spend each month.
You could try a bulk operation on the storeCreditAccountCredit mutation.
Here’s what an individual mutation could look like:
mutation {
storeCreditAccountCredit(
creditInput: {
creditAmount: {
amount: 10.0,
currencyCode: USD
},
expiresAt: "2024-12-31T23:59:59Z"
},
id: "gid://shopify/StoreCreditAccount/123456789"
) {
storeCreditAccountTransaction {
id
amount {
amount
currencyCode
}
balanceAfterTransaction {
amount
currencyCode
}
createdAt
}
userErrors {
field
message
}
}
}