1b.app
Link copied -

need an example API request to Justin for invoice printing

Есть необходимость настройки интеграции с Justin ?
Нудно автоматизировать рутинную работу ?
Установите последнюю версию OneBox и посмотрите какие там нововведения ) Установить последнюю версию OneBox
Now it is very inconvenient to print Justin invoices, as the cost is not indicated on the invoices. We need to send those now. support an example API request to print an invoice, so that they can see what is wrong and solve the problem. Please unsubscribe, we will be able to carry out some kind of test order and make an invoice in order to transfer the information to Justin.
Original question is available on version: ru

Answers:

hello, give an example of an order with an invoice
14.06.2021, 14:18
Original comment available on version: ru


In this order, the delivery method is Nova Poshta
Can I create a Justin invoice for a test in it?
When creating a Justin invoice, information about the request and response appears in https://gadgetopt.crm-onebox.com/admin/shop/report/logs/
14.06.2021, 16:11
Original comment available on version: ru

14.06.2021, 16:13
Original comment available on version: ru

in fact, the GET link to print appears when you click on the print button, for example
https://api.justin.ua/pms/hs/api/v1/printSticker/order?order_number=222699&a...
14.06.2021, 16:26
Original comment available on version: ru

Anton, another moment, write what else you need an API request specifically for creating such an order invoice 224092
14.06.2021, 21:16
Original comment available on version: ru

Hello! The Justin developers are asking for a request specifically for the creation of TTN-ki, can you please reset the request for the creation of Justin's TTN on order 224092?
16.06.2021, 13:58
Original comment available on version: ru

An example of data sent to Justin can be found in the log file https://gadgetopt.crm-onebox.com/admin/logs/showall/ajax/?file=justin-2021-06-16...
this is a POST request, the parameters are sent in json format
16.06.2021, 16:27
Original comment available on version: ru

Hello! But these logs do not contain at least one send, these are logs that show only errors. And we need without errors, how TT is created.
17.06.2021, 10:15
Original comment available on version: ru

Hello, these logs show all requests and responses from Justin, both successful and unsuccessful.
Create invoice Justin and the entry will appear in the log.
17.06.2021, 10:58
Original comment available on version: ru

Regarding Justin's question, the answer was:
"Good day.
I don’t know what was transmitted at the request of the obov'yazkovі field:
delivery_type, cod_transfer_type, order_payment_ is_required not specified true"
That is, the data is not included. How to decide?
22.06.2021, 15:01
Original comment available on version: ru

Check with Justin, if no delivery_type is passed, then it is essentially 0, and the type means B2C (Business-to-Consumer).
And in this case, the mentioned fields are optional, as stated in their documentation, is it?
https://justin.ua/api/api_justin_documentation.pdf
22.06.2021, 16:09
Original comment available on version: ru

Justin's reply "Good afternoon.
This parameter (order_payment_is_required) accepts a value - "true" or "false""
23.06.2021, 11:27
Original comment available on version: ru

here is an example of how the data is passed in json format, only given so that Justin support sees that all boolean parameters are passed true or false
maybe they mean that json was passed verbatim in quotes "true" or "false"?
{
"keyAccount":"1",
"sign":"d9b8ce4ac6cd7d26927d63604a5fc3ac8xxxxxxx",
"api_key":"3",
"data":{
"number":"1",
"date":"2020-04-28",
"sender_city_id":"",
"sender_company":"4",
"sender_contact":"7",
"sender_phone":"+",
"sender_pick_up_address":"",
"sender_branch":false,
"pick_up_is_required":true,
"receiver":"\u0417\u0430\u043c\u043e\u0433\u0438\u043b\u044c\u043d\u044b\u0439 \u0414\u043c\u0438\u0442\u0440\u0438\u0439",
"receiver_contact":"",
"receiver_phone":"+380555555555",
"count_cargo_places": 1,
"branch":null,
weight:0,
"dimensional_weight":0,
"volume":0.001,
"declared_cost":7899474,
"delivery_amount":0,
redelivery_amount:0,
"order_amount":7899474,
"redelivery_payment_is_required":false,
"redelivery_payment_payer":0,
"delivery_payment_is_required":false,
"add_description":false,
"delivery_payment_payer":0,
"order_payment_is_required":false
}
}
23.06.2021, 16:43
Original comment available on version: ru

See what
The developers replied:
Good afternoon. Maybe. For cash or card. You need to pass information about the overlay, delivery, etc..
Read documentation 11.6 C2C express waybill https://justin.ua/api/api_justin_documentation.pdf
there is after all C2C, for this client can work only on this type.
Tell me please..
24.06.2021, 17:08
Original comment available on version: ru


Olkhovsky Anton Andriyovich wrote:
there is after all C2C, for this client can work only on this type.

Can you elaborate on why that is?
24.06.2021, 17:42
Original comment available on version: ru

Here's another answer from Justin, by the way:
"Good afternoon.
Olkhovsky Anton Andriyovich the person did not conclude an agreement with us, there is no account card in the card ...
The counterparty can only work on C2C.
What is "cod_transfer_type": 3? There is no such thing in the documentation.
An example of creating an EH in clause 11.6 Express waybill C2C Art. 68 https://justin.ua/api/api_justin_documentation.pdf
EN was created incorrectly.
24.06.2021, 22:14
Original comment available on version: ru

for 2 hours of investment, you can add a choice of C2C and fields corresponding to this type when creating a TTN
28.06.2021, 17:21
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