UserCompanyPermission

Request

Fields when send to the api inside a request.

Field Type Description
shop_ids [Int] User has access to these shops
permissions Dictionary A dictionary with fields

Response

Fields when returned by the api in a response.

Field Type Description
shop_ids [Int] User has access to these shops
permissions Dictionary A dictionary with fields
id Int Id of the permissions entry
company_id Int Company ID

Examples

Request

When used inside a request.

Example 1

{
    "shop_ids": [
        12,
        19,
        10
    ],
    "permissions": {
        "company_info": true,
        "holidays": true,
        "newsletters": true,
        "translations": true,
        "email_settings": true,
        "products": true,
        "shop_info": false,
        "checkout_settings": true,
        "time_settings": false,
        "discounts": true
    }
}

Response

When returned in a response.

Example 1

{
    "shop_ids": [
        15,
        14,
        14
    ],
    "permissions": {
        "company_info": false,
        "holidays": false,
        "newsletters": true,
        "translations": true,
        "email_settings": false,
        "products": false,
        "shop_info": true,
        "checkout_settings": false,
        "time_settings": true,
        "discounts": true
    },
    "id": 11,
    "company_id": 13
}
Version update available Please adjust your integration to the latest stable version (1.9.0)
1.8.0 stable