1b.app
Link copied -

develop a process action to add a waybill to the shipping register justin

I ask you to develop a process action for adding a TTN to the register of shipments justin
Original question is available on version: ru

Answers:

As if everything is not quite so simple and obvious according to the documentation https://justin.ua/api/api_justin_documentation.pdf
It turns out that we can get information on the registers on the date of registration of the EH and get a list by the register on this date (p. 106).
Next, one by one, we can try to add the EH to one of the existing registries (if the registry has a EH in the "Planned" status, there will be an error) (p. 102).
If they couldn’t add it anywhere, they created a new registry and added EH there (p. 102).
If this algorithm is correct (I recommend discussing it with Justin technical support) - you can make an action that adds or removes EH from the registry - this action will take 6 hours.
Also, by analogy with New mail, you can make a block in mass changes, which will do the same as the action - it will take about 3 hours to implement (subject to the implementation of the above action).
12.08.2021, 14:49
Original comment available on version: ru

Перегиняк Александр
Oneboxconsulting (интегратор)

Tyndyk Maxim Vadimovich
OneBox production wrote:
It turns out that we can get information on the registers on the date of registration of the EH and get a list by the register on this date (p. 106).
Next, one by one, we can try to add the EH to one of the existing registries (if the registry has a EH in the "Planned" status, there will be an error) (p. 102).
If they couldn’t add it anywhere, they created a new registry and added EH there (p. 102).
If this algorithm is correct (I recommend discussing it with Justin technical support) - you can make an action that adds or removes EH from the registry - this action will take 6 hours.

issue an invoice. please
16.08.2021, 15:35
Original comment available on version: ru

improved action "Add/remove EH to/from Justin's registry(s)"
31.08.2021, 13:02
Original comment available on version: ru

Перегиняк Александр
Oneboxconsulting (интегратор)

Tyndyk Maxim Vadimovich
OneBox production
Administrator wrote:
improved action "Add/remove EH to/from Justin's registry(s)"

check - not working
added the action you specified to the procedure, configured it
when a procedure is called, the process hangs (buttons for transitions to statuses and procedure calls are blocked) for an indefinite time. Have to reload the page
here is the test process https://box.e-zoo.com.ua/admin/customorder/order/1637030/edit/ (TTN has already been added to it). Procedure call here
01.09.2021, 08:39
Original comment available on version: ru

Here is the log https://box.e-zoo.com.ua/admin/logs/showall/ajax/?file=justin-2021-09-01.log - there is the last entry - when trying to create a new registry (as in the documentation with an empty number parameter (https://justin.ua/api/api_justin_documentation.pdf p.102-103) it gives an error that EH was not found.
Apparently here you need to clarify with Justin what exactly they do not like in this EN
01.09.2021, 14:25
Original comment available on version: ru

Перегиняк Александр
Oneboxconsulting (интегратор)

Tyndyk Maxim Vadimovich
OneBox production
Administrator wrote:
Here is the log https://box.e-zoo.com.ua/admin/logs/showall/ajax/?file=justin-2021-09-01.log - there is the last entry - when trying to create a new registry (as in the documentation with an empty number parameter (https://justin.ua/api/api_justin_documentation.pdf p.102-103) it gives an error that EH was not found.
Apparently here you need to clarify with Justin what exactly they do not like in this EN

Please check the address you are sending your request to. You have an error there. this is how it is written in the documentation , but here you send data
07.09.2021, 13:59
Original comment available on version: ru


Please check the address you are sending your request to. You have an error there. this is how it is written in the documentation, but here you send the data

https://box.e-zoo.com.ua/admin/logs/showall/ajax/?file=justin-2021-09-07.log
this does not change the essence - their API works on several addresses
the same error (at the end of the log [2021-09-07 14:35:46]) - Order "420028339" Is Not Found
07.09.2021, 14:36
Original comment available on version: ru

Перегиняк Александр
Oneboxconsulting (интегратор)

Tyndyk Maxim Vadimovich
OneBox production
Administrator wrote:
Here is the log https://box.e-zoo.com.ua/admin/logs/showall/ajax/?file=justin-2021-09-01.log - there is the last entry - when trying to create a new registry (as in the documentation with an empty number parameter (https://justin.ua/api/api_justin_documentation.pdf p.102-103) it gives an error that EH was not found.
Apparently here you need to clarify with Justin what exactly they do not like in this EN

Justin's TP replied that it is not the TTN number that needs to be transmitted, but the order id
13.09.2021, 15:30
Original comment available on version: ru


Justin's TP replied that it was necessary to transfer not the TTN number, but the order id

changed
but now the error is Order "1637030" Status Is Not Correct - probably due to the fact that this process above can no longer be added to the registry
please check for something "fresh"
13.09.2021, 15:46
Original comment available on version: ru

Перегиняк Александр
Oneboxconsulting (интегратор)

Tyndyk Maxim Vadimovich
OneBox production
Administrator wrote:

Justin's TP replied that it was necessary to transfer not the TTN number, but the order id

changed
but now the error is Order "1637030" Status Is Not Correct - probably due to the fact that this process above can no longer be added to the registry
please check for something "fresh"

no error
14.09.2021, 08:56
Original comment available on version: ru


no error

that is, for some of the processes everything is OK? did Justin add everything to LK (if there is where to look)?
14.09.2021, 09:35
Original comment available on version: ru

Перегиняк Александр
Oneboxconsulting (интегратор)

Tyndyk Maxim Vadimovich
OneBox production
Administrator wrote:
that is, for some of the processes everything is OK? did Justin add everything to LK (if there is where to look)?

yes, it is created in the office, but there is a problem
I add TTN to Justin's registries.
problem - a new register of shipments is created for each TTN
Here are the created registries in Justin's office
here are the processes from which TTN were created and added to the registry by the action
1. https://box.e-zoo.com.ua/admin/customorder/order/189442/edit/
TTN 420661556
2. https://box.e-zoo.com.ua/admin/customorder/order/1662632/edit/
TTN 420661592
fix it please
28.09.2021, 16:48
Original comment available on version: ru


Перегиняк Александр
Oneboxconsulting (интегратор)

Tyndyk Maxim Vadimovich
OneBox production
Administrator wrote:
Check

yes, it does not create new registries, but now only one TTN is added to the existing registry. it looks like you are using either cleaning or replacing TTNoc in the registry.
here are examples of orders https://box.e-zoo.com.ua/admin/customorder/order/1669359/edit/
https://box.e-zoo.com.ua/admin/customorder/order/1669366/edit/
added both to the registry, I look in Justin's office, it is displayed that there is only one ttn in the registry
again I add to the register tn for the first order - I check if tn is in the register
I add the TTN for the second order, I look - there is only one TTN for the second order in the register. the first one is gone. and so on
fix it please
06.10.2021, 08:38
Original comment available on version: ru

What a mysterious API...
I believe (but this is not explicitly written in the documentation) - that when added to an existing registry, the EH deletes the rest.
I've redone it to pass the EH with the existing ones in the registry - check now.
07.10.2021, 16:26
Original comment available on version: ru

Перегиняк Александр
Oneboxconsulting (интегратор)

Tyndyk Maxim Vadimovich
OneBox production
Administrator wrote:
What a mysterious API...
I believe (but this is not explicitly written in the documentation) - that when added to an existing registry, the EH deletes the rest.
I've redone it to pass the EH with the existing ones in the registry - check now.

works, it seems)) tomorrow they will play live. if anything i will write
07.10.2021, 18:33
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