allegro / allegro-api

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

Pytania dotyczące synchronizacji zapasów #5439

Closed VEVOR closed 2 years ago

VEVOR commented 2 years ago

Witaj ,

Koledzy z naszego działu technicznego nie mogli znaleźć interfejsu do wyświetlania synchronizacji zapasów podczas wstępnego przeszukiwania interfejsu API. Interfejs synchronizacji zapasów ma na celu zaktualizowanie stanu magazynowego naszej firmy do stanu dostępnego do sprzedaży.

Ponieważ synchronizacja zapasów jest bardzo ważna w przypadku samodzielnych dostaw produktów, jeśli ten problem nie zostanie rozwiązany, często występują braki w magazynie. Chciałbym zapytać, czy Allegro API obsługuje synchronizację zapasów? Czy to dlatego, że kolega nie znalazł interfejsu do synchronizacji stanów, czy że Allegro naprawdę nie obsługuje w tej chwili synchronizacji?

Jeśli Allegro obsługuje to API, daj mi znać, abym mógł przekazać opinię naszym kolegom z pomocy technicznej. Z góry dziękuję.

Z wyrazami szacunku, VEVOR-TOOL

hahyes commented 2 years ago

Na Allegro nie ma takiego interfejsu. Trzeba ręcznie synchronizować wszystko za pomocą powiązania ofert oraz zamówień z waszymi produktami na magazynie. Oni muszą wiedzieć, jaka oferta podlega jakiemu produktowi oraz jeżeli zmienia się ilość danego produktu na magazynie to muszą te wartości też aktualizować. Nie ma czegoś takiego, że jest jakiś wirtualny magazyn w API Allegro, czy cokolwiek dział techniczny miał na myśli. Nie mówiąc o tym, że dział techniczny może pofatygować się tutaj osobiście a nie zwalać tą robotę na ludzi niezaznajomionych z tematem.

Lukasz-Zurek commented 2 years ago

@VEVOR Zgodnie z tym co napisał @hahyes - Serwis Allegro nie udostępnia tego typu funkcjonalności i w tej sytuacji musisz ręcznie synchronizować stan magazynowy w oparciu o ilość towaru na magazynie, jak i o aktualną liczbę sztuk przedmiotów w ofertach i otrzymane od kupujących zamówienia.

Lukasz-Zurek commented 2 years ago

@VEVOR If you mean automatic synchronization of stock with the number of items in the offer - it is not possible. You will have to change available stock in you offers manually.

VEVOR commented 2 years ago

I mean: align the stock in our warehouse with allegro's online stock via API to avoid out-of-stock issues.

I would like to ask, what does the number of changes in this part of the API link refer to?[cid:f1cf6d02-bc86-47f6-8efa-0c5928be5c20]


发件人: Lukasz-Zurek @.> 发送时间: 2022年2月15日 15:38 收件人: allegro/allegro-api @.> 抄送: VEVOR @.>; Mention @.> 主题: Re: [allegro/allegro-api] Pytania dotyczące synchronizacji zapasów (Issue #5439)

@VEVORhttps://github.com/VEVOR If you mean automatic synchronization of stock with the number of items in the offer - it is not possible. You will have to change available stock in you offers manually.

— Reply to this email directly, view it on GitHubhttps://github.com/allegro/allegro-api/issues/5439#issuecomment-1039948220, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AXYVJ7LVYFLAJR2BYVACNALU3H7FRANCNFSM5ONFUT3Q. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you were mentioned.Message ID: @.***>

Lukasz-Zurek commented 2 years ago

I mean: align the stock in our warehouse with allegro's online stock via API to avoid out-of-stock issues.

No, it is impossible to manage it automatically. You will have to do it manually.

I would like to ask, what does the number of changes in this part of the API link refer to?[cid:f1cf6d02-bc86-47f6-8efa-0c5928be5c20]

Could you clarify what the indicated identifier is and where you got it from ?

VEVOR commented 2 years ago

https://developer.allegro.pl/en/documentation/#operation/quantityModificationCommandUsingPUT In this link, I am sending a screenshot


发件人: Lukasz-Zurek @.> 发送时间: 2022年2月15日 16:04 收件人: allegro/allegro-api @.> 抄送: VEVOR @.>; Mention @.> 主题: Re: [allegro/allegro-api] Pytania dotyczące synchronizacji zapasów (Issue #5439)

I mean: align the stock in our warehouse with allegro's online stock via API to avoid out-of-stock issues.

No, it is impossible to manage it automatically. You will have to do it manually.

I would like to ask, what does the number of changes in this part of the API link refer to?[cid:f1cf6d02-bc86-47f6-8efa-0c5928be5c20]

Could you clarify what the indicated identifier is and where you got it from ?

— Reply to this email directly, view it on GitHubhttps://github.com/allegro/allegro-api/issues/5439#issuecomment-1039973567, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AXYVJ7LQZFQBQMWHTXLXP6DU3ICIDANCNFSM5ONFUT3Q. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you were mentioned.Message ID: @.***>

Lukasz-Zurek commented 2 years ago

I can only confirm that you can change the quantity of multiple offers via PUT /sale/offer-quantity-change-commands/{commandId}.

stale[bot] commented 2 years 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.

VEVOR commented 2 years ago

Hello, I would like to ask, what information does the "command identifier" in the api refer to?


发件人: stale[bot] @.> 发送时间: 2022年2月22日 18:48 收件人: allegro/allegro-api @.> 抄送: VEVOR @.>; Mention @.> 主题: Re: [allegro/allegro-api] Pytania dotyczące synchronizacji zapasów (Issue #5439)

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 ankietyhttps://docs.google.com/forms/d/1CYjSAQoHzudrGOrI8Bmb8HJzgyy4MZut5aAacitYkFw 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 surveyhttps://docs.google.com/forms/d/1ewSE9w07tNyvi8LTTDue54Y1tI5p5Sog_loevheEbRM.

— Reply to this email directly, view it on GitHubhttps://github.com/allegro/allegro-api/issues/5439#issuecomment-1047666089, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AXYVJ7OV2ZGS24AYAHGT3EDU4NSWVANCNFSM5ONFUT3Q. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you were mentioned.Message ID: @.***>

Lukasz-Zurek commented 2 years ago

@VEVOR CommandId is a unique identifier of the command which you are providing for example - while changing the quantity of your offers in Allegro API or to publishing the offer on the site. In commandId you have to provide the value in the UUID (universally unique identifier) format. It is a globally unique identifier that consists of 32 hexadecimal numbers (e.g. 21ae4ed1-eab7-34ea-b605-cf2e22b5eed3). Remember to implement the mechanism for generating UUIDs in your software.

VEVOR commented 2 years ago

Hello,For: https://api.{environment} /sale/ offer-store-change-commands /{commandId}, does the API have a request example? CommandId, I don't know what it was, generating uuid, or it didn't work. Here is my request: The HTTP request: https://api.allegro.pl/order/sale/offer-quantity-change-commands/c0bb7990-6665-4dbd-b25f-5e13ea6ec7e3 JSON parameters: { "modification": { "changeType": "FIXED", "value": 10 }, "offerCriteria": [ { "offers": [ { "id": "11869788457" } ], "type": "CONTAINS_OFFERS" } ] } Response: { "errors": [ { "code": "NotFoundException", "message": "Not found", "details": null, "path": null, "userMessage": "Function is not available. Contact the author of the application." } ] }

Lukasz-Zurek commented 2 years ago

Yes. You can find a sample request in our guide.

As I see in your request - you have used an incorrect address - https://api.allegro.pl/order/sale/offer-store-change-commands/{commandId}.

The correct one is: https://api.allegro.pl/sale/offer-quantity-change-commands/{commandId}.

VEVOR commented 2 years ago

Hello,I have successfully requested, but I do not know whether the quantity of this API modification is in stock. I want to synchronize the product inventory of our system to allegro platform. Is this API ok? Or is there any other API that can implement it.

Lukasz-Zurek commented 2 years ago

This resource is intended for quantity change in the offers listed on the Allegro.pl. There is no resource in our API to synchronize the quantity in your offers with the stock in your system.

VEVOR commented 2 years ago

Hello, Without the API of inventory synchronization, we cannot timely update the latest inventory to allegro platform, which will affect our sales efficiency and performance on Allegro platform. We still hope you can provide the API of inventory synchronization. Thanks!

VEVOR commented 2 years ago

Hello,I did not see the commission field on the order data, may I ask if there is an API interface for obtaining the commission on the order? If not, how can I obtain the commission on the order?

Lukasz-Zurek commented 2 years ago

I understand that you would like to get a refund of the commission for the order. You will not find a commission field on the order data. But you can create a sale commission refund application via POST /order/refund-claims. We have described this process in this guide.

stale[bot] commented 2 years 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.

VEVOR commented 2 years ago

Hello, create a sale commission refund application via POST /order/refund-claims. "id": "0b9fa3b1-9b3b-11ec-8e4a-b7a74ed44a16" { "errors": [ { "code": "CommissionNotFoundException", "message": "Commission not found for line item id: 0b9fa3b1-9b3b-11ec-8e4a-b7a74ed44a16.", "details": null, "path": null, "userMessage": "Deal for given id does not exist." } ] } Please tell me the reason why this order failed.

PrzemyslawLukanowski commented 2 years ago

Hello, this order does not contain line item with the same id as order. The correct id for line item is 0b9fa3b0-9b3b-11ec-8e4a-b7a74ed44a16.