Update a payout adjusting of the affiliate

HTTP method

Endpoint

PUT

/v1/affiliates/{affiliate_id}/payout_adjusting

Note: with this setting, the payout of all offers under this affiliate will follow this rule. (Except the offers with custom affliate payout and APT settings)

Path parameters

Parameter

Description

affiliate_id

The unique id for the affiliate.

Request body parameters

Field

Type

Description

Nullable

adjusting_type

integer

1=Increase Rate 2=Decrease Rate

No

percent

integer

adjusting_type=1,Allowed values:1-1000 adjusting_type=2,Allowed values:1-100

No

adjust_payout_switch

integer

0=close 1=open

Yes

limit_adjust_payout

string

you must set a value if you open adjust_payout_switch

Yes

Response body parameters

Field

Type

Description

id

integer

Affiliate payout id.

aff_id

integer

Affiliaite id

adjusting_type

integer

adjusting type

percent

integer

Percent

adjust_payout_switch

integer

0=close 1=open

limit_adjust_payout

string

limit value

create_time

string

Create time.

update_time

string

update_time.

Example request

Request POST https://{networkname}.api.offerslook.com/v1/affiliates/5599/payout_adjusting

Request POST http://{networkname}.api.offerslook.com/v1/affiliates/5599/payout_adjusting

{
    "adjusting_type":"1",
    "percent":12,
    "adjust_payout_switch":0
}

Example response

{
    "code": 0,
    "message": "Success",
    "data": {
        "affiliate_payout_adjusting": {
            "id": 4,
            "aff_id": 5599,
            "adjusting_type": 1,
            "percent": 12,
            "adjust_payout_switch":0,
            "create_time": 1562153209,
            "update_time": 1562153209
        }
    }
}

Last updated