Wyszukaj produkty w katalogu Allegro
const url = 'https://twoja-instancja-sales-offers-allegro-api.enterprise.sellrocket.pl/api/Products/SearchProducts';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"connectionId":"example","phrase":"example","mode":"ALL"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://twoja-instancja-sales-offers-allegro-api.enterprise.sellrocket.pl/api/Products/SearchProducts \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "connectionId": "example", "phrase": "example", "mode": "ALL" }'Wyszukuje produkty w katalogu Allegro po GTIN, MPN, nazwie lub parametrach – przydatne przy dopasowaniu oferty do produktu Allegro.
Autoryzacja
Dział zatytułowany „Autoryzacja”Treść żądania
Dział zatytułowany „Treść żądania”object
SMERP ID of the Allegro marketplace connection
Phrase to be used for the search operation. Usually ALL is used, but can be changed using the Mode property
Mode for the search to be used. If not sure what mode sure be used set ALL then we will search by GTIN, MPN, product’s name, parameters, etc.
object
SMERP ID of the Allegro marketplace connection
Phrase to be used for the search operation. Usually ALL is used, but can be changed using the Mode property
Mode for the search to be used. If not sure what mode sure be used set ALL then we will search by GTIN, MPN, product’s name, parameters, etc.
object
SMERP ID of the Allegro marketplace connection
Phrase to be used for the search operation. Usually ALL is used, but can be changed using the Mode property
Mode for the search to be used. If not sure what mode sure be used set ALL then we will search by GTIN, MPN, product’s name, parameters, etc.
Odpowiedzi
Dział zatytułowany „Odpowiedzi”OK
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
Example
{ "status": "Found"}object
object
object
object
object
object
object
object
object
object
object
object
object
Example
{ "status": "Found"}Not Found
object
object
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}object
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}
