This page describes API endpoints for viewing and editing access rules for Offers.

View Access list

GET /backend/open-api/v1/users/offers/{offer_id}/access

View all affiliate access rules for a selected offer.

Headers

Name Value
Authorization Bearer <token>

Path parameters

Name Type Description Required
offer_id Integer ID of the offer. ☑️

Response

{
    "source_type": "offer",
    "source": [
        {
            "id": 471,
            "name": "Limited offer: flowers"
        }
    ],
    "data": {
        "allowed": {
            "1": "First test affiliate / 1",
            "3": "test1 / 3"
        },
        "denied": {
            "434": "Kirk Chan / 434",
            "436": "Ifeoma Farley / 436"
        }
    }
}

Change Access list

POST /backend/open-api/v1/users/offers/{offer_id}/access

Permit or forbid access to the offer for a selected affiliate.

Headers

Name Value
Content-Type application/json
Authorization Bearer <token>