This page covers all API endpoints used to review, edit and create Access rules of a selected affiliate.

View Access Rules

GET /backend/open-api/v1/users/affiliates/{affiliate_id}/access

View all custom Offer Access settings for a specified Affiliate.

Headers

Name Value
Authorization Bearer <token>

Path parameters

Name Type Description Required
affiliate_id Integer ID of an affiliate.
Apply it to view data only about a specific affiliate. ☑️

Response

{
    "source_type": "affiliate",
    "source": [
        {
            "id": 1,
            "name": "First test affiliate"
        }
    ],
    "data": {
        "allowed": {
            "80": "Deleted / 80",
            "150": "hellow world / 150",
            "146": "test offer 123 / 146",
            "140": "test tree / 140",
            "126": "Example Casino Offer / 126",
            "183": "No url offer / 183",
            "142": "test goal offer / 142"
            
        },
        "denied": {
            "11": "Deleted / 11",
            "79": "Deleted / 79",
            "206": "testes / 206",
            "208": "Test / 208",
            "253": "Shop Offer / 253"
        }
    }
}

Add or change Offer Access Rules

POST /backend/open-api/v1/users/affiliates/{affilaite_id}/access

Add a new offer to the denied or allowed lists or change its status.

Headers