Trigger Events

  1. Whenever a success event related to a campaign occurs on the merchant's website, an API call must be made to notify Payram.

  2. Events can be of two types, either those with amount, or without amount. This is configured during campaign creation.

  3. The amount is used to calculate percentage based commission or discount if that is the kind of reward you want to give to your users

  4. To trigger an event for a particular campaign, you will need your API key, the event_key, unique reference ID of the referee and optionally the amount.

  5. This event_key is configured by you during the campaign setup and you can find it after completing the setup if you try to edit a campaign.

Request & Response Example:

curl --location --request POST '<https://payram.resuefas.vip:8443/api/v1/referral/event-log>' \\
--header 'API-Key: The API Key Shared with you.' \\
--header 'Content-Type: application/json' \\
--data '{
    "eventKey": "first_deposit",
    "referenceID": "67890",
    "amount": 345.44
}'

Last updated