allegro / allegro/allegro-api

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

Aberta
#2,226 2 comentários 0 reações 1 responsável Reivindicada por @PrzemyslawLukanowski Ver no GitHub
News
Linguagem predominante
Sem dados de linguagem
Estrelas
244
Forks
40
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

Zgodnie z [wcześniejszą zapowiedzią](https://github.com/allegro/allegro-api/issues/2155) przypominamy, że 30 września 2019 usuniemy poniższe metody WebAPI do ponownego [wystawienia oferty:](https://allegro.pl/webapi/documentation.php/theme/id,41)

- [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).

-----

According to the [previous announcement,](https://github.com/allegro/allegro-api/issues/2155) we remind you that 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).

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.