Agree the program and responsibilities
Agree with the merchant which activity qualifies and what members can earn. For example, the merchant might configure a Completed purchase action worth 10 points and a non-repeatable points campaign with a goal of 30. If the member enters that campaign with their first qualifying purchase, that purchase counts. Three such purchases can reach the goal. The balance stays at 30 after the award; a fourth purchase can bring it to 40 without awarding that campaign again. Use the merchant’s actual configuration for your integration. Campaigns can count points, a selected action or joining, with their own audiences, windows and prerequisites. Other qualifying activity at the business can contribute too; reporting purchases does not make a points campaign purchase-specific.
Confirm these details with the merchant and your Hydra contact:
A non-repeatable campaign awards once per member. Other campaigns can award
separately, and repeatable campaigns follow their configured rules. Use the API’s
results to display progress rather than calculating campaign rules in your app.
Prepare the business and connection
We’ll confirm that the business, actions, campaigns and gift funding are ready for your test, then provide a restricted credential through an agreed secret channel. There is one integration per business. Store the credential in your backend’s secret store. Keep it out of mobile apps, browser JavaScript and public configuration. Gift issuance also needs available funding and an available retailer offering. The credential authorizes business access. You still authenticate your users and check ownership before returning member or gift details. Use the signed-in account’s saved Hydra member ID; a gift UUID alone is not proof of ownership.Choose how gifts reach the member
Choose the mode with us during setup. WhatsApp delivery still needs the business’s
connection, templates and permissions; this setting does not grant marketing consent.
Changes apply to future qualifications. Gifts already earned keep their delivery
mode through delays or recovery. Separate staff gifts and messages are unaffected.
Make backend requests
Use the/v1 API prefix for the integration. Examples assume your environment has:
error code, for example a 409 response:
--write-out '\nHTTP %{http_code}\n'
to inspect the status during the exercise. Record X-Hydra-Trace-ID for support
without logging the private response body.
Read and map actions
An action is a merchant-defined behavior with fixed points. Your app confirms that the behavior happened; Hydra owns its configured points and version.200:
action_changed for an unaccepted occurrence.
A selected-action campaign counts only the action the merchant chose. Every
action contributes its awarded points to points campaigns. The merchant
chooses the action and its points. Your app cannot override points, category, campaign,
retailer or gift value in the activity request.
If actions is empty, check the configuration with the merchant or us.
409 business_setup_required means we need to finish business setup before you
can continue.
Next: Link members.