Answers:
Good afternoon. The name of the action is “Edit TTN”.
Due to the inconvenient API architecture, when editing a TTN, in order to edit the recipient's phone number, you need to send the remaining 20 fields for the same TTN. All these fields were taken from the documentation; at first glance, nothing was lost in my TTN except the recipient and his number, but it’s possible for a TTN with some additional ones. they may lose services. I kindly ask you to test all your possible TTNs with different payments, post-payments, cash on delivery, payment controls and so on, so that some post-payments or a rise to the floor or something else don’t suddenly disappear, because such things are not sent to the editing TTN, since they There is no description of the TTN editing method on the page. If, after editing the TTN, you scratch some field and send the wrong TTN, we do not bear any responsibility for this.
I also ask you to pay attention to the fact that once the TTN is printed, it cannot be changed. Those. You need to see what has changed in the TTN through the personal account, without printing it either before or after, since changes cannot be made after. When editing a printed TTN, the NP gives an error; this is not our condition.
16.07.2024, 16:04
Original comment available on version: ru
The box that needs improvement has not been written, the improvement should appear on everyone tomorrow morning. If it happens tomorrow, drop the link to the box that will need to be updated.
16.07.2024, 16:05
Original comment available on version: ru
Good afternoon
Tell me what is the answer to this question?
We need to be able to edit the consignment note at the stage when the invoice has been transferred for delivery.
NP support confirmed that editing is possible at this stage
26.07.2024, 10:45
Original comment available on version: ru
Commentary is available in ru and not yet translated to the current language.
30.07.2024, 12:10
<?xml version="1.0" encoding="utf-8"?><file><apiKey>xxxx</apiKey><modelName>InternetDocument</modelName><calledMethod>getDocumentList</calledMethod></file>
01.08.2024, 11:16
Good afternoon!
Answer from NP:
We recommend using all query parameters specified in the documentation in the method
<?xml version="1.0" encoding="UTF-8"?>
<file>
<apiKey>[YOUR KEY]</apiKey>
<modelName>InternetDocumentGeneral</modelName>
<calledMethod>getDocumentList</calledMethod>
<methodProperties>
<DateTimeFrom>dd.mm.yyyy</DateTimeFrom>
<DateTimeTo>dd.mm.yyyy</DateTimeTo>
<Page>1</Page>
<GetFullList>1</GetFullList>
<DateTime>dd.mm.yyyy</DateTime>
</methodProperties>
</file>
in response, a list of required ENs will be provided, including the ENs provided for the example
When checking, the error was not reproduced.
01.08.2024, 13:23
Original comment available on version: ua
I repeat, this request returns a maximum of 500 consignment notes. Let's say I need a consignment note that was created 4 days ago, and after that another THOUSAND. I need a method that will return information on it for a SPECIFIC consignment note number.
02.08.2024, 10:34
Original comment available on version: ru
Received a response from them:
"According to this method, there is no possibility to specifically indicate the EN in the request, about which information needs to be obtained.
The method in the response displays all the EN numbers that were created in the data in the personal account and their identifiers (Ref) in the АРИ.
In the request, in the properties of the method, you can specify the date for which you need to get data on the EN in the "DateTime" parameter
If you do not specify a date, the system will automatically provide you with information on all the ENTs of the actual day. In the request, in the properties of the method, you can also specify the range of dates for which data should be obtained according to "DateTimeFrom" and "DateTimeTo".
Additionally, the ability to download a page list using the "GetFullList" parameter has been implemented. If 0, page loading works, if 1 - the entire list (but no more than 500 documents).
Thank you for your request!
Sincerely, the technical support team of Nova Poshta"
02.08.2024, 13:24
Original comment available on version: ua
Suggest that they introduce such filtering, it will make life much easier. I think it is obvious to both you and me that knowing the TTN number it is very stupid to scroll through hundreds of pages in search of information about the necessary one.
02.08.2024, 13:40
Original comment available on version: ru
Offered
But I certainly doubt that they will do this anytime soon.
Can you customize the action given the current information retrieval capabilities?
02.08.2024, 14:47
Original comment available on version: ru
received a response from them:
"It is possible to use the method "getStatusDocuments" - possibilities of the method Receiving data by phone number: When entering a phone number, you can get information about the sender and the recipient, including their contact details.
https://developers.novaposhta.ua/view/model/a99d2f28-8512-11ec-8ced-005056b2dbe1...In order not to scroll through hundreds of pages of the response of the getDocumentList method, we recommend using query parameters
"DateTimeFrom" : "dd.mm.yyyy",
"DateTimeTo" : "dd.mm.yyyy",
"Page" : "1",
"GetFullList" : "1",
"DateTime" : "dd.mm.yyyy" and also in the answer use the search on the page ctrl + F of the desired EN"
02.08.2024, 15:15
Original comment available on version: ua
We need not just the sender and recipient, but all the information about the TTN. There are about 20 fields that need to be sent back to edit the TTN, just to change the recipient's full name. An absurd situation, of course. There is a TTN number, but there is no way to get information by number.
Okay, we will remember the date of the TTN creation through crutches and send a filter by this date in the hope of finding our TTN. I need a couple of days to implement it - I will write when it is ready.
05.08.2024, 10:11
Original comment available on version: ru
[2024-10-21 12:27:30]
host: ukroptmarket.1box.link
url: /ajax/admin/chat/get/order/
contentID: shop-admin-notification-chart-order-block
point: /shop.starter.php
engine_sessionid: 1729502849_8657
data: Array
(
[url] =>
https://api.novaposhta.ua/v2.0/xml/[xml] => <?xml version="1.0" encoding="utf-8"?><file><apiKey>xxx</apiKey><modelName>InternetDocument</modelName><calledMethod>getDocumentList</calledMethod></file>
[response] => <?xml version="1.0" encoding="UTF-8"?>
<root><success>true</success><data/><errors/><warnings/><info><totalCount>0</totalCount></info><messageCodes/><errorCodes/><warningCodes/><infoCodes/></root>
[time] => 0.20607614517212
[timeStart] => 2024-10-21 12:27:29
[timeEnd] => 2024-10-21 12:27:30
[longtine] =>
)
[2024-10-21 12:27:30]
host: ukroptmarket.1box.link
url: /ajax/admin/chat/get/order/
contentID: shop-admin-notification-chart-order-block
point: /shop.starter.php
engine_sessionid: 1729502849_8657
data: Array
(
[url] =>
https://api.novaposhta.ua/v2.0/xml/[xml] => <?xml version="1.0" encoding="utf-8"?><file><apiKey>xxx</apiKey><modelName>InternetDocument</modelName><calledMethod>getDocumentList</calledMethod><methodProperties><DateTimeFrom>14.10.2024</DateTimeFrom><DateTimeTo>15.10.2024</DateTimeTo><GetFullList>1</GetFullList></methodProperties></file>
[response] => <?xml version="1.0" encoding="UTF-8"?>
<root><success>false</success><data/><errors><item>To many requests</item></errors><warnings/><info><item>Try again after 1 seconds</item></info><messageCodes/><errorCodes><item>20000401501</item></errorCodes><warningCodes/><infoCodes/></root>
[time] => 0.17649507522583
[timeStart] => 2024-10-21 12:27:30
[timeEnd] => 2024-10-21 12:27:30
[longtine] =>
)
НП блочат нам апи и не дают в 1 секунду сделать 2 запроса. Пишите им в поддержку, выясняйте на каком основании это происходит и какие лимиты по запросам. 2 запроса в секунду это какой то цирк
21.10.2024, 12:43
I received this response from NP support:
"There are no specific limits on the use of the API in the documentation.
To use the ARI functionality, it is recommended that you set a limit on sending requests no more than 1 time per 1 second.
The "getWarehouses" method is limited to sending requests no more than 2 times per second (more often 1 time per 0.5 seconds)"
23.10.2024, 16:03
Original comment available on version: ua
<item>To many requests</item></errors><warnings/><info><item>Try again after 0 seconds</item>
Unfortunately, Nova Poshta prohibits using its own API. They say "try again in 0 seconds". Very logical, right?)
Increased the wait between requests to 2 seconds. Send them my warmest regards.
04.11.2024, 14:06
Original comment available on version: ru
Good morning. Please read the entire error text. It says in a foreign language that you cannot edit the TTN that you have already printed. What is the question?
08.11.2024, 11:16
Original comment available on version: ru
And in this case, as in the previous one, the new mail does not allow you to edit this TTN. The error is written on your screenshot "Forbidden update document with this status", i.e. this TTN cannot be edited. What is the claim against me in this case? Why write about the working functionality that it never worked? Doesn't it seem unfair to you at least?
13.02.2025, 12:07
Original comment available on version: ru
Tell me, where in my message do you see a complaint against you?
I'm trying to figure out why the TTN editing action doesn't work
No, you misunderstood me, we haven't used the functionality for 3 months.
13.02.2025, 12:39
Original comment available on version: ru
here I see a claim against myself personally. It translates for me as "You have been unable to correct XX for 3 months" although there were no messages that something was not working and I answered you in this topic last time 3 months ago with a clear description of the reason why in the given example you cannot edit the TTN.
Okay. Do you have any questions for me about this case?
13.02.2025, 12:53
Original comment available on version: ru
probably this is the expected delivery time (it is taken from the TTN itself and is not edited in any way), most likely this is the expected delivery time of the parcel that you specified when creating the TTN. You can try to transfer the current day + 1 day there, for example.
Regarding the second error "Forbidden update document with this status" the support didn't clarify anything? As far as I can see there are two of them in the answer
13.02.2025, 14:14
Original comment available on version: ru
Good afternoon!
After the second mistake, TP Nova Poshta replied:
This error occurs because you are sending a request to make changes to an Internet document (a consignment note that has not yet been sent) for an existing Express consignment note that is already in transit, which returns an error about the incorrect status of the parcel. To change the data of an already sent consignment note, you need to use the following request. I provide a link to the documentation and an example of the request:
https://developers.novaposhta.ua/view/model/a7682c1a-8512-11ec-8ced-005056b2dbe1...Example query:
{
"apiKey": "[YOUR KEY]",
"modelName": "AdditionalServiceGeneral",
"calledMethod": "save",
"methodProperties": {
"IntDocNumber" : "206004560074695",
"PaymentMethod" : "Cash",
"OrderType" : "orderChangeEW",
"SenderContactName" : "Ivan Ivan Ivanovych",
"SenderPhone" : "380685024447",
"Recipient" : "00000000-0000-0000-0000-000000000000",
"RecipientContactName" : "Ivan Ivan Ivanovych",
"RecipientPhone" : "380685024447",
"PayerType" : "Recipient"
}
}
14.02.2025, 07:57
Original comment available on version: ua
As far as I understand, you don't need to edit the TTN after it has been sent? Or do you want to edit both the sent TTN and the unsent ones? These are 2 different methods, as far as I understood from the NP's answer, and for the second one, you need to make some separate requests. Now the editing is sent for the option when the TTN has not yet been registered, i.e. it has not been sent and was tested last time with exactly such TTN
14.02.2025, 11:16
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