allegro / allegro/allegro-api

[NEWS] Usuwamy metody WebAPI do ponownego wystawiania oferty / We are going to remove WebAPI methods for relisting offer

Đang mở
#2,155 0 bình luận 0 reaction 1 người được giao Được @PrzemyslawLukanowski nhận Xem trên GitHub
News
Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
244
Fork
40
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

**30 września 2019** usuniemy poniższe metody WebAPI do ponownego wystawienia oferty:

- [doSellSomeAgain](https://allegro.pl/webapi/documentation.php/show/id,321),
- [doSellSomeAgainInShop](https://allegro.pl/webapi/documentation.php/show/id,322),
- [doVerifyItem](https://allegro.pl/webapi/documentation.php/show/id,181).

Aby wystawić podobną ofertę przez REST API, wystarczy, że pobierzesz ją za pomocą [GET /sale/offers/{offerId}](https://developer.allegro.pl/documentation/#operation/getOfferUsingGET.), a następnie prześlesz całą jej strukturę przez [POST /sale/offers](https://developer.allegro.pl/documentation/#operation/createOfferUsingPOST) z wyłączeniem:

- numeru identyfikacyjnego oferty (id),
- informacji, kiedy odbyła się ostatnia walidacja oferty (validatedAt),
- daty utworzenia oferty (createdAt),
- daty ostatniej aktualizacji oferty (updatedAt).


Pamiętaj, że musisz być uwierzytelniony i zautoryzowany jako sprzedawca, który wystawił tę ofertę. W ten sposób stworzysz nowy draft oferty na podstawie danych z oferty, którą pobrałeś wcześniej.
Jeśli oferta jest kompletna i poprawnie zwalidowana, to za pomocą metody [PUT /sale/offer-publication-commands/{commandId}](https://developer.allegro.pl/documentation/#operation/changePublicationStatusUsingPUT) możesz ją opublikować w serwisie.

Więcej informacji na ten temat znajdziesz w [naszym poradniku](https://developer.allegro.pl/sale/#similar-offer).

-----

**On September 30th, 2019** we will remove the following WebAPI methods for listing offer:

- [doSellSomeAgain](https://allegro.pl/webapi/documentation.php/show/id,321),
- [doSellSomeAgainInShop](https://allegro.pl/webapi/documentation.php/show/id,322),
- [doVerifyItem.](https://allegro.pl/webapi/documentation.php/show/id,322)

If you want to list similar offer via REST API, retrieve it by calling [GET /sale/offers/{offerId}](https://developer.allegro.pl/documentation/#operation/getOfferUsingGET.) and transfer the whole structure with [POST /sale/offers](https://developer.allegro.pl/documentation/#operation/createOfferUsingPOST) apart from:

- offer ID (id),
- last offer validation (validatedAt),
- offer creation date (createdAt),
- last offer update (updatedAt).

Remember, you must be authenticated and authorized as a seller who listed the previous offer. Therefore, you will create a new draft offer based on data of the retrieved offer.
Once the offer is complete and properly validated, call PUT on /[sale/offer-publication-commands/{commandId} ](https://developer.allegro.pl/documentation/#operation/changePublicationStatusUsingPUT)to publish the offer on the site.

You can find more details in [our guide](https://developer.allegro.pl/sale/#similar-offer).

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.