POST api2/rebate_system.json
Create a Rebate System
Request Information
URI Parameters
None.
Body Parameters
Rebate System
api_rootName | Description | Type | Additional information |
---|---|---|---|
entry | RebateSystem |
None. |
Request Format
{ "entry": { "valid": true, "company_id": 1, "title": "sample string 2", "type": 1, "creation_date": "2024-10-23T04:27:31.129192+02:00", "country_id": 1, "position": 1, "enabled": true, "locales": [ { "id": 1, "parent_id": 1, "language_id": 1, "name": "sample string 2", "description": "sample string 3" }, { "id": 1, "parent_id": 1, "language_id": 1, "name": "sample string 2", "description": "sample string 3" } ], "exclude_categories": [ { "id": 1, "model_id": 1, "category_id": 1 }, { "id": 1, "model_id": 1, "category_id": 1 } ], "exclude_projects": [ { "id": 1, "model_id": 1, "project_id": 1 }, { "id": 1, "model_id": 1, "project_id": 1 } ], "entries": [ { "id": 1, "parent_id": 1, "quantity": 1, "percent_": 1.1 }, { "id": 1, "parent_id": 1, "quantity": 1, "percent_": 1.1 } ] } }
Response Information
Resource Description
Created Rebate System
api_rootName | Description | Type | Additional information |
---|---|---|---|
entry | RebateSystem |
None. |
Response Format
{ "entry": { "id": 1, "valid": true, "company_id": 1, "title": "sample string 2", "type": 1, "creation_date": "2024-10-23T04:27:31.129192+02:00", "country_id": 1, "position": 1, "enabled": true, "locales": [ { "id": 1, "parent_id": 1, "language_id": 1, "name": "sample string 2", "description": "sample string 3" }, { "id": 1, "parent_id": 1, "language_id": 1, "name": "sample string 2", "description": "sample string 3" } ], "exclude_categories": [ { "id": 1, "model_id": 1, "category_id": 1 }, { "id": 1, "model_id": 1, "category_id": 1 } ], "exclude_projects": [ { "id": 1, "model_id": 1, "project_id": 1 }, { "id": 1, "model_id": 1, "project_id": 1 } ], "entries": [ { "id": 1, "parent_id": 1, "quantity": 1, "percent_": 1.1 }, { "id": 1, "parent_id": 1, "quantity": 1, "percent_": 1.1 } ] } }