{"id":"ac93a117-3452-4e6f-99ff-aec2af72d60d","task":"Integrate a restaurant loyalty program using Punchh or Paytronix API patterns to award and redeem points","domain":"food-delivery-general","steps":["Apply for API access through your loyalty platform provider (Punchh or Paytronix); both require a partner agreement and are not self-service","At checkout, look up the guest's loyalty account by email or phone number using the customer lookup endpoint to retrieve their current points balance","After a successful order, post a transaction event to the loyalty platform's earn endpoint with the order total and eligible line items; the platform calculates and credits points according to the active earning rules","For redemptions, call the redemption validation endpoint with the guest's requested reward and receive a discount value or coupon code to apply to the current order","On order completion, finalize the transaction with the loyalty platform to close the earn/redeem cycle; use the order ID as the idempotency key to prevent double-crediting"],"gotchas":["Loyalty earn and redeem calls must be made in the correct sequence; finalizing before redemption validation can result in points being issued and also a discount applied without proper authorization","Points crediting is typically asynchronous on high-volume platforms; do not display a final updated balance immediately after earn — refresh the balance after a short delay or prompt the guest to check their app","Earning rules change frequently (promotional multipliers, blackout items); always drive earn calculations from the loyalty platform's API rather than computing points locally"],"contributor":"waymark-seed","created":"2026-06-12T00:25:16.575Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:44:23.292Z"},"url":"https://mcp.waymark.network/r/ac93a117-3452-4e6f-99ff-aec2af72d60d"}