allegro / allegro-api

Issue tracker and wiki for Allegro REST API
https://developer.allegro.pl/
210 stars 39 forks source link

Rest API - printing labels #8693

Open HerVoj1985 opened 3 months ago

HerVoj1985 commented 3 months ago

Hello, we are trying the method to print the label on Sandbox, but we are getting back an error saying to try again later. When will this service be available? Request / response below.

Request POST https://api.allegro.pl.allegrosandbox.pl/shipment-management/label HTTP/1.1 Content-Type: application/vnd.allegro.public.v1+json Authorization: Bearer XXX Host: api.allegro.pl.allegrosandbox.pl Content-Length: 88 Expect: 100-continue

{"shipmentIds":["9e21a459-2bb0-457d-88cc-9b81b516c510"],"pageSize":"A6","cutLine":false}

Response { "errors": [ { "code": "ANOTHER_SERVICE_NOT_AVAILABLE", "message": "One of required services is unavailable. Try again later.", "details": "One of required services is unavailable. Try again later.", "path": null, "userMessage": "Jeden z wymaganych serwisów, do poprawnego działania, jest niedostępny. Spróbuj ponownie za moment." } ] }

Lukasz-Zurek commented 3 months ago

First of all, before you start using API Ship with Allegro, activate your account. Please read information in the box in our tutorial. It is very important to add a default address in the Address Book - Ship with Allegro.

HerVoj1985 commented 3 months ago

I use an account from our client (hobynaradi_cz). I tried to add the address via Sandbox, but unfortunately it was unsuccessful.

image

Lukasz-Zurek commented 3 months ago

@HerVoj1985 It works on my side, but I have already reported this to another department. Please be patient.

Lukasz-Zurek commented 3 months ago

@HerVoj1985 I have received a confirmation that you have already finished this process successfully, am I right?

HerVoj1985 commented 3 months ago

Hello, unfortunately, not. Still the same error when I want to save the address.

Lukasz-Zurek commented 3 months ago

@HerVoj1985 Ok, we will look at this again, thank you.

Lukasz-Zurek commented 3 months ago

@HerVoj1985 Please try again now and let me know.

HerVoj1985 commented 3 months ago

Thank you. Now it already works.

The only thing is that when I call the method shipment-management/shipments/create-commands and immediately call method shipment-management/shipments/create-commands/{0}, where I enter commandId instead of {0}, the SUCCESS status is up to about 300ms. Is this even in LIVE mode or is there a faster process? Now I call the same query every 100ms before I get the SUCCESS status, so maybe this solution is OK (so that I don't get e.g. too many requests). I also receive the label in next process. Thanks again.

Lukasz-Zurek commented 3 months ago

Ok. It depends but this solution seems to be ok. There is a limit 9000 rpm, so this is something you should pay attention to in the first place.

stale[bot] commented 3 months ago

W tym wątku nie pojawiła się żadna nowa odpowiedź w ciągu 7 dni, dlatego automatycznie oznaczamy go jako przeterminowany. Jeśli w ciągu kolejnych 7 dni nie pojawi się żadna odpowiedź, wątek zostanie zamknięty. Dziękujemy za zaangażowanie w dyskusję i zachęcamy Cię do wypełnienia ankiety dotyczącej naszego wsparcia na forum.


There was no new reply in this thread within 7 days, therefore, we automatically marked it as expired. If no response is received within the next 7 days, this thread will be closed. Thank you for engaging in the discussion. We encourage you to complete our forum support survey.