allegro / allegro/allegro-api

[NEWS] Zasoby /sale/products - zwracamy informacje o zaufanych wartościach produktu / For /sale/products resources we return information about trusted product values

Ouverte
#11,381 0 commentaires 0 réactions 1 personne assignée Réclamée par @MartaNowaczyk Voir sur GitHub
News Offer - Products
Langage dominant
Aucune donnée de langage
Étoiles
244
Forks
40
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

Dodaliśmy dzisiaj nowy obiekt, w którym będziemy zwracać informację o tym, czy określona część produktu jest zaufana.

**Jakich zasobów dotyczy zmiana?**

- [GET /sale/products/{productId}](https://developer.allegro.pl/documentation/#operation/getSaleProduct)
- [GET /sale/products](https://developer.allegro.pl/documentation/#operation/getSaleProducts)

**Co zmieniliśmy?**

Zwracamy nową sekcję **"trustedContent"** i tablicę **"paths"**, w której zwracamy elementy produktu, które są zaufane - wartości pochodzą bezpośrednio od producenta, jego dystrybutora lub z innego wiarygodnego źródła.

```
...
"trustedContent": {
"paths": [ // elementy danych produktów, które są zaufane
"images",
"description"
]
}
...
```

Oznacza to, że od teraz nie zmienisz elementów zaufanych - nie możesz zgłosić propozycji zmiany we wskazanym elemencie ([POST /sale/products/{productId}/change-proposals](https://developer.allegro.pl/documentation#operation/productChangeProposal)), a w przyszłości:

- w wystawianej ofercie elementy zaufane będziesz musiał podać dokładnie takie jak w produkcie,
- w przypadku elementu "description" nie dodasz własnego opisu do oferty - skorzystasz tylko z tego, który jest w naszym Katalogu Produktów,
- zmiana ta dotyczyć będzie nowo wystawianych oraz edytowanych ofert - walidacja nie obejmie edycji liczby sztuk lub ceny w ofercie, więc te wartości zmienisz bez dostosowania ofert do nowych warunków.

Więcej szczegółów podamy w oddzielnych komunikatach.

Informacje o przeszukiwaniu naszego Katalogu Produktów oraz pobieraniu informacji o produktach znajdziesz [w naszym poradniku](https://developer.allegro.pl/tutorials/jak-jednym-requestem-wystawic-oferte-powiazana-z-produktem-D7Kj9gw4xFA#katalog-produktow).

---

We have added a new object, in which we will return information about whether a certain part of a product is trusted.

**What resources are affected by the change?**

- [GET /sale/products/{productId}](https://developer.allegro.pl/documentation/#operation/getSaleProduct)
- [GET /sale/products](https://developer.allegro.pl/documentation/#operation/getSaleProducts)

**What have we changed?**

We return a new **"trustedContent"** section and a **"paths"** array that returns product elements that are trusted - the values come directly from the manufacturer, distributor or from a trusted source.

```
...
"trustedContent": {
"paths": [ // product data elements that are trusted
"images",
"description"
]
}
...

```
This means that from today, you cannot change the trusted elements - you cannot make a change proposal in the indicated element ([POST /sale/products/{productId}/change-proposals], and in the future:

- you will have to specify trusted elements in the listed offer exactly as in the product,
- for the "description" element, you will not be able to add your own description to the offer - you can only use the one that is in our Product Catalog,
- this change will apply to newly listed and edited offers - validation will not include editing the stock or price in the offer, so you will change these values without adjusting the offers to the new rules.

We will provide more details in separate announcements.

More about searching our Product Catalog and retrieving product you can find in [our tutorial](https://developer.allegro.pl/tutorials/list-offer-assigned-product-one-request-D7Kj9M71Bu6#how-to-find-a-product).

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.