1b.app
Link copied -

API Product prices

Add extra price, method: /api/product/price/add/

Parameters

Example:

http://myboxurl/api/product/price/add/?login=LOGIN&password=PASSWORD&name=Tets&type=%

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/

Parameters

Example:

http://myboxurl/api/product/price/get/?login=LOGIN&password=PASSWORD

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/

Parameters

Example:

http://myboxurl/api/product/price/update/?login=LOGIN&password=PASSWORD&priceid=2&name=newName

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

More details
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

Errors may also occur:

502 Bad Gateway - If this error occurs it is necessary:
1. Check if you have internet access (go to any other site).
2. If there are no problems with access — cookies can be deleted.
If the above doesn't work — server side problem. Please contact your site system administrator.

503 (Service Temporarily Unavailable) - this error may occur as a result of too many server requests. If you see this error, you should wait a couple of minutes and try again.

504 Gateway Timeout - cmost likely the reason is the increased load on the site, in which Apache is not has time to send HTTP responses and new requests are queued. You can add resources to the server, in particular RAM, and increase the number of httpd (Apache) processes.
Another possible reason for error 504 is that the executable script does not fit within the allotted limit time. This happens when the request is too heavy. Try to split your request into a few more small.

Error 505 HTTP Version not supported means the website is not Supports the version of the HTTP protocol that the browser uses to request a web page