unPLUGDevelopers

Webhooks

order.credited

EVENTOrders

Fires when an order is accepted and its points are credited, after POST /v1/orders succeeds. Points are earned on the subtotal after discounts: here $12.50 minus the $3.50 pastry is $9.00, which earns 90 Beans at 10 per dollar, rounded down.

Points earned at the register also show up. In-store Square visits fire order.credited with "channel": "in_store", and their own points.changed, so you see every point change in one stream. You didn't create these orders, so they have no external_order_id from you.

data.object is the order, with the member's balance and tier right after it was credited.