Skip to main content
Use your action mapping and the member ID saved for the account. Report the agreed backend event after verifying it really happened. A client button press alone should not prove that an order was paid or completed. Define one reporting point so a payment callback and an order callback do not credit the same purchase as two separate occurrences. For each occurrence, create and persist an external_activity_id before the first request. It is case-sensitive, 16–80 ASCII letters, digits, hyphens or underscores. It must be unique across this integration’s members and actions, and stay stable across retries, app restarts and credential rotation. Do not include personal data. Keep the complete submitted payload with that app event. For example, save activity.json:
A new accepted activity returns 201. On the illustrative third purchase:
When Hydra accepts the activity, it records points and evaluates campaigns together. Gift issuance follows, so an issuing failure does not undo accepted points. Save the receipt and mark the app event as accepted. The activity ID is Hydra’s reference for this receipt. The balance is the historical balance at acceptance, not a continually updated value. Reward IDs refer to saved gift records and are not evidence that a voucher is issued or usable. reward_ids can be empty at a reached goal if funding or offering availability delays gift creation. Read current progress and gifts to check the outcome; do not submit another activity to get a gift ID. Hydra uses acceptance time for campaign progress. Report confirmed events promptly; backdated imports and caller timestamps are unsupported. If an outage leaves old submissions pending, check their campaign timing with us before sending them.

Handle retries and action edits

Retry an uncertain request with its original payload and occurrence ID. A new ID represents another occurrence and may award points again. An exact replay returns 200:
The activity ID, historical balance and reward IDs match the original receipt, even after later activity, action edits or credential rotation. Replay does not run campaign evaluation, issuance or delivery. To learn what happened to a gift, read its current state rather than repeatedly submitting the activity. If a response was lost before an action edit, first resolve the original request using its original payload. Replacing its version before checking acceptance can produce an idempotency conflict against a credit that already succeeded. A simple backend sequence is:
Keep this saved event and retry logic in your backend. Next: Display progress and gifts.