Skip to content

Adjust stamps

adjustStamps(customerId, stamps, comment, internalComment)

Section titled “adjustStamps(customerId, stamps, comment, internalComment)”

Applies an arbitrary stamp correction to a customer’s balance and records a loyalty activity. Unlike awardStamps, the amount may be negative to deduct stamps; it must be a non-zero value.

NameTypeRequiredDescription
customerIdID!YesThe Shopify customer ID.
stampsInt!YesNumber of stamps to apply (any non-zero value; negative to deduct).
commentStringNoCustomer-visible note shown on the activity. Defaults to the store’s branded manual adjustment label.
internalCommentStringNoStaff-only note, not shown to the customer. Defaults to “API adjustment”.

Returns a non-null StampResult describing the applied change and the resulting balance.

FieldTypeDescription
customerIdID!The affected customer’s ID.
stampChangeInt!The stamp change applied.
stampBalanceInt!Resulting stamp balance.
mutation {
adjustStamps(customerId: "6677889900", stamps: -3, comment: "Correction", internalComment: "Stock count fix") {
customerId
stampChange
stampBalance
}
}
{
"data": {
"adjustStamps": {
"customerId": "6677889900",
"stampChange": -3,
"stampBalance": 37
}
}
}