Add extra price, method: /api/product/price/add/
Example:
№ | Field | Type | Description | Required or not | Comment |
1 | login | string | Login in BOX system | Required field. | |
2 | password | string | Password in md5 format | Required field. | Contact tech support and we will give you a hash for the API |
3 | name | string | Additional price name | Required field. | |
4 | type | string | Type of additional price | Optional field. | If you need a price in the form of a% of the price of a product, then pass the symbol % |
5 | default | 1 / 0 | Default price for unregistered users | Optional field. | |
6 | deleted | 1 / 0 | Is the price remote?? | Optional field. | If 0 is not removed, if 1 is removed |
Get all additional prices, method: /api/product/price/get/
Example:
№ | Field | Type | Description | Required or not | Comment |
1 | login | string | Login in BOX system | Required field. | |
2 | password | string | Password in md5 format | Required field. | Contact tech support and we will give you a hash for the API |
Editing additional price, method: /api/product/price/update/
Example:
№ | Field | Type | Description | Required or not | Comment |
1 | login | string | Login in BOX system | Required field. | |
2 | password | string | Password in md5 format | Required field. | Contact tech support and we will give you a hash for the API |
3 | name | string | Additional price name | Required field. | |
4 | type | string | Type of additional price | Optional field. | If you need a price in the form of a% of the price of a product, then pass the symbol % |
5 | default | 1 / 0 | Default price for unregistered users | Optional field. | |
6 | deleted | 1 / 0 | Is the price remote?? | Optional field. | If 0 is not removed, if 1 is removed |
7 | priceid | integer | Id additional price | Optional field. |
Possible responses to the request
№ | Status | Message | Message Description |
1 | ok | priceid | Returns the added / edited price id |
2 | fail | login_empty | Login missing |
3 | fail | password_empty | Missing password |
4 | fail | Price name exists | Missing price name |
5 | fail | Bad user level! | Low user level to perform this action (requires level 2 or higher) |
6 | fail | Login or password not correct! | Login or password entered incorrectly |