Update the event’s status

HTTP method

Endpoint

PATCH

/v1/offers/{offer_id}/offer_events/{event_id}

Path parameters

Parameter

Description

offer_id

The unique id for the offer.

event_id

The unique id for the offer event.

status

Status Can choose is active·paused.

revenue

Event revenue.

percent_revenue

Event percent revenue.

payout

Event payout.

percent_payout

Event percent payout.

Note: To change event status to active, you will need t to reset revenue and payout if previous value is null.

Note: If is_private=1, you won’t be able to set payout and offer_payout_tier.

Response body parameters

Field

Type

Description

id

integer

The unique id for the event.

name

string

Offer Event name.

revenue_type

string

Event revenue type. Allowed values: RPC · RPA · RPS · RPA+RPS

revenue

string

Event revenue.

percent_revenue

string

Event percent revenue.

payout_type

string

Event payout type. Allowed values: CPC · CPA · CPS · CPA+CPS

payout

string

Event payout.

percent_payout

string

Event percent payout.

status

string

The status of the event. Allowed values: active paused

is_private

integer

Enabling this setting will track revenue of event only, affiliate do not have access to private events, custom affiliate payouts can not be set nor can 3rd party affiliate postbacks be placed. Allowed values: 1: Open 0: Close

approve_conversions

integer

Whether Conversions for this Offer must be manually approved. If enabled, Conversions will receive a "status" of "pending" when generated. Allowed values: 1: Open 0: Close

is_allowed_multiple

integer

Enabling this setting will allow multiple conversions to be recorded per user for only one click id. Allowed values: 1: Open 0: Close

is_end_point

integer

Enabling this setting will close the active click session when this event is converted. Allowed values: 1: Open 0: Close

conversion_protocol

integer

The Conversion tracking method to use for the offer event. Allowed values: 1 mage Pixel 2 ostback URL 3 Frame Pixel

offer_payout_tier

tier_id

integer

The unique id for the tier.

tier_payout

string

Tier payout.

Example request

Request PATCH

https://{networkname}.api.offerslook.com/v1/offers/102/offer_events/2?status=active&revenue=2&payout=3

Request PATCH

http://{networkname}.api.offerslook.com/v1/offers/102/offer_events/2?status=active&revenue=2&payout=3

Example response

    {
      "code": 0,
      "message": "Success",
      "data": {
        "offer_event": {
          "id": 10,
          "name": "Test",
          "revenue_type": "RPA+RPS",
          "revenue": "2.000",
          "percent_revenue": "10",
          "payout_type": "CPA+CPS",
          "payout": "3.000",
          "percent_payout": "10",
          "status": "active",
          "conversion_protocol": 2,
          "is_private": 0,
          "approve_conversions": 0,
          "is_allowed_multiple": 0,
          "is_end_point": 0,
          "offer_payout_tier": [
            {
              "tier_id": 12,
              "offer_id": 102,
              "event_id": 10,
              "tier_payout": "2.5",
              "tier_percent_payout": "10"
            },
            {
              "tier_id": 11,
              "offer_id": 102,
              "event_id": 10,
              "tier_payout": "2.5",
              "tier_percent_payout": "10"
            }
          ],
          "create_time": 1478088797,
          "update_time": 1478088797
        }
      }
    }

Last updated