company.UserDiscount

Request

Fields when send to the api inside a request.

Field Type Description
percent Int An integer value

Response

Fields when returned by the api in a response.

Field Type Description
percent Int An integer value
user Dictionary A dictionary with fields
id Int An integer value
shop_id Int An integer value

Examples

Request

When used inside a request.

Example 1

{
    "percent": 18
}

Response

When returned in a response.

Example 1

{
    "percent": 18,
    "user": {
        "id": 15,
        "email": "example@domain.com"
    },
    "id": 16,
    "shop_id": 16
}
1.9.0 stable