1b.app
Link copied -

API Data Transfer

We pass data via API to the deliveryNote field, but the field is overwritten and the main field when we insert the value is called deliverynote. How can we transfer directly to the desired field by API TTN? order history example: https://admin.newtrend.team/admin/customorder/order/1205880/history/?systemchang... =0
And screenshots of where TTN is transmitted
Original question is available on version: ru

Answers:

deliveryNote The problem is that the data is transmitted via api to the field, which, as it were, does not exist. I think it's a bug. order.order_deliverynote, customorder_deliverynote is in the order, but not deliveryNote
04.03.2021, 18:55
Original comment available on version: ru

Hello, you can use the API documentation https://crm-onebox.com/en/api/orders/
If I understand you correctly, then you need to pass the value in the Delivery invoice field, the "deliverynote" parameter is responsible for this
05.03.2021, 12:29
Original comment available on version: ru

deliverynote We pass it to this field, but the value is still passed to deliveryNote and the data is not written to this field.
When filling in the field "External TTN" in the list of orders, we make a POST request to /api/orders/update/, with the following parameters:
'orderid' => order ID,
'custom_partnerid' => Partner ID,
'deliverynote' => value of the field "External TTN",
'customorder_prom_paid' => 'yes'
What are we doing wrong? Or is it a bug?
07.03.2021, 00:25
Original comment available on version: ru

07.03.2021, 00:25
Original comment available on version: ru

As far as I can see from the logs of incoming requests to create an order for 07.03 there was such a request with such a ttn number
[ordercode] => 78477
[source] => platformaNT
[sum] => 159
[deliveryid] => 1
[customorder_deliveryNote] => 20450356211447
the value with customorder_deliveryNote will be written in an additional field with the key deliveryNote, but you want to write the invoice number in the standard field, for this the value must be passed with the key deliverynote
request fragment will look like this
http://boxurl/api/orders/add/?deliveryid=1&source=platformaNT&ordercode=...
You can always see an example of a request and variables that can be used in the API on the page https://crm-onebox.com/en/api/
07.03.2021, 13:37
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