allegro / allegro/allegro-api

[NEWS] Udostępniliśmy nowy zasób, dzięki któremu pobierzesz sugerowaną sekcję Pasuje do / We have introduced a new resource that allows you to retrieve the suggested compatibilityList section

Ouverte
#3,656 0 commentaires 0 réactions 1 personne assignée Réclamée par @PrzemyslawLukanowski Voir sur GitHub
News
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

Udostępniliśmy dziś nowy zasób [GET /sale/compatibility-list-suggestions](https://developer.allegro.pl/documentation/#operation/getCompatibilityListSuggestion), za pomocą którego pobierzesz sugerowaną sekcję [Pasuje do](https://developer.allegro.pl/compatibility_list/). Skorzystaj z tego zasobu, gdy nie posiadasz listy kompatybilności w ofercie. Dzięki uzupełnionej sekcji kupujący łatwiej odnajdzie interesujący go produkt. Sugestie tworzymy na podstawie list komptybilności ofert innych sprzedających. Listę możesz modyfikować według własnych potrzeb, np. usunąć lub dodać niektóre z pozycji.

Przekaż w żądaniu jeden z parametrów, na podstawie którego zwrócimy sugerowaną sekcję Pasuje do:

- **offer.id** - identyfikator oferty,
- **product.id** - identyfikator produktu - sprawdź, [jak wyszukać produkt.](https://developer.allegro.pl/productization/#search)

**Przykładowy request:**

```
curl -X GET \
'https://api.allegro.pl/sale/compatibility-list-suggestions?offer.id=6505550901' \
-H 'Authorization: Bearer {token}' \
-H 'Accept: application/vnd.allegro.public.v1+json'

```
**Przykładowy response:**
```

{
"type": "MANUAL",
"items": [
{
"type": "ID",
"id": "73ff4bae-958d-4b75-a49c-d0c11fdd233c",
"text": "Toyota AVENSIS (_T22_) 2.0 VVT-i (AZT220_) (1AZ-FSE) 1998ccm 150KM/110kW 2000/10-2003/02",
"additionalInfo": []
},
{
"type": "ID",
"id": "de7a2247-78fa-4a12-94f1-f43b5f33ac7e",
"text": "Toyota AVENSIS (_T22_) 2.0 TD (CT220_) (2C-TE) 1975ccm 90KM/66kW 1997/09-2003/02",
"additionalInfo": []
}
]
}
```

Listę, którą otrzymasz, możesz następnie przekazać, gdy wystawiasz lub edytujesz ofertę.

-----

Today we have introduced a new resource [GET /sale/compatibility-list-suggestions](https://developer.allegro.pl/documentation/#operation/getCompatibilityListSuggestion) that allow you to retrieve the suggested [compatibilityList ](https://developer.allegro.pl/en/compatibility_list/)section. Use this endpoint when you don’t have a compatibilityList section in your offer. Owing to the completed compatibilityList section, it is easier for the customers to find the product they are interested in. We create suggestions on the basis of compatibility lists from the other sellers offers. You can modify the list according to your needs, e.g. remove or add some of the elements.

Pass in the request one of the parameters on the basis of which we will return the suggested compatibilityList section:

- **offer.id**,
- **product.id** - check [how to search for products](https://developer.allegro.pl/en/productization/#search).

**Sample request:**

```
curl -X GET \
'https://api.allegro.pl/sale/compatibility-list-suggestions?offer.id=6505550901' \
-H 'Authorization: Bearer {token}' \
-H 'Accept: application/vnd.allegro.public.v1+json'
```

**Sample response:**

```
{
"type": "MANUAL",
"items": [
{
"type": "ID",
"id": "73ff4bae-958d-4b75-a49c-d0c11fdd233c",
"text": "Toyota AVENSIS (_T22_) 2.0 VVT-i (AZT220_) (1AZ-FSE) 1998ccm 150KM/110kW 2000/10-2003/02",
"additionalInfo": []
},
{
"type": "ID",
"id": "de7a2247-78fa-4a12-94f1-f43b5f33ac7e",
"text": "Toyota AVENSIS (_T22_) 2.0 TD (CT220_) (2C-TE) 1975ccm 90KM/66kW 1997/09-2003/02",
"additionalInfo": []
}
]
}
```

The received list can be used when you list or edit an offer.

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.