R
R
revukvr2019-12-11 15:48:09
RESTful API
revukvr, 2019-12-11 15:48:09

ApiAmoCRM. How to get the quantity of the same item?

Hello! A question. I can see in the transaction that the client bought 2-3 identical goods. But when I make a request to AmoCRM to get all transactions, and in each transaction, only a list of goods (catalog_elements) is returned to me, but the quantity is not returned. How can I get the quantity of each item?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Valery Chmykh, 2019-12-12
@revukvr

Request:

GET https://<СУБДОМЕН>.amocrm.ru/ajax/v1/links/list?links[0][from]=leads&links[0][from_id]=<ID СДЕЛКИ>&links[0][to]=catalog_elements&links[0][from_catalog_id]=2&links[0][to_catalog_id]=<ID КАТАЛОГА>&USER_LOGIN=<ЛОГИН>&USER_HASH=<API ключ>

Yesterday Amo rolled out an API update - now it's enough to send a GET request like this:
https://example.amocrm.ru/api/v2/leads?with=catalog_elements_links

You can read here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question