1b.app
Link copied -

Server Error "500"

When receiving (loading) one product by "id" or by "articul", such a status code flies out, tell me what to do?
Original question is available on version: ru

Answers:

Please provide a complete example of the query being executed
10.12.2020, 16:16
Original comment available on version: ru

/api/1c8x/product-get/?login=login&password=password&id=100000
10.12.2020, 17:01
Original comment available on version: ru


Vitaliy wrote:
100000

maybe because there is no product with this ID in the system?
11.12.2020, 07:37
Original comment available on version: ru

specify a link to the user whose accesses are used in the REST API - I will check the problem more precisely
11.12.2020, 07:38
Original comment available on version: ru


Tyndyk Maxim Vadimovich
Administrator wrote:

Vitaliy wrote:
100000

maybe because there is no product with this ID in the system?

this was an example.
https://inter.crm-onebox.com/admin/shop/users/1913/ is this link?
11.12.2020, 09:16
Original comment available on version: ru

products - an array of products from the order, consists of:
name - product name
When receiving orders in the array of products, there is no product name, why is that?
11.12.2020, 12:07
Original comment available on version: ru


Vitaliy wrote:
When receiving (loading) one product by "id" or by "articul", such a status code flies out, tell me what to do?

It gives out because this API does not provide filtering by ID or Article - and it tries to give you all the products for which XML generation does not have enough allocated memory on the server.
I see you have a cloud OneBox - we can invest in refining the above parameters. If needed, please let me know.

Vitaliy wrote:
products - an array of products from the order, consists of:
name - product name
When receiving orders in the array of products, there is no product name, why is that?

If we are talking about the API /api/1c8x/order-get/ - there is no name parameter in the output, since it is supposed to match by productid / productcode1c / productarticul
If there is such a need, we can also add it.
11.12.2020, 15:52
Original comment available on version: ru

Please join the conversation. If you have something to say - please write a comment. You will need a mobile phone and an SMS code for identification to enter. Log in and comment