Skip to content

Stamps

Award or adjust a customer’s stamp balance. Both create a loyalty activity and run the normal downstream logic (VIP recalculation, etc.).

A customer’s {id} is its Shopify customer ID.

POST /customers/{id}/stamps/award

Add stamps (positive only).

Body:

FieldTypeRequiredNotes
stampsintegeryesNumber of stamps to award, must be ≥ 1.
commentstringnoCustomer-visible note shown on the activity. Defaults to the store’s branded manual adjustment label.
internal_commentstringnoStaff-only note, not shown to the customer. Defaults to “API adjustment”.
// returns
{
"customerId": "6677889900",
"stampChange": 5,
"stampBalance": 40
}

Both the award and adjust endpoints return objects with these fields.

FieldTypeDescription
customerIdstringThe affected customer’s ID.
stampChangeintegerThe stamp change applied (negative for deductions).
stampBalanceintegerResulting stamp balance.

POST /customers/{id}/stamps/adjust

Adjust stamps up or down (use a negative value to deduct). stamps must not be 0.

Body:

FieldTypeRequiredNotes
stampsintegeryesAny non-zero integer (negative to deduct).
commentstringnoCustomer-visible note shown on the activity. Defaults to the store’s branded manual adjustment label.
internal_commentstringnoStaff-only note, not shown to the customer. Defaults to “API adjustment”.
Terminal window
curl -X POST https://stamp.appydesign.io/rest_api/v1/customers/6677889900/stamps/adjust \
-H "X-Api-Key: ..." -H "X-Api-Secret: ..." -H "Content-Type: application/json" \
-d '{"stamps": -3, "comment": "Manual correction", "internal_comment": "Stock count fix"}'

Returns a stamp result.