allegro-api
allegro-api copied to clipboard
[NEWS] Dodaliśmy opcję powiadomień dla zgłaszania sugestii zmian w produktach / We have added a notification option for submitting product change suggestions
W zasobie do zgłaszania sugestii zmian w produkcie udostępniliśmy dzisiaj nowe pole "notifyViaEmailAfterVerification", dzięki któremu zdecydujesz, czy chcesz otrzymać powiadomienie email po rozpatrzeniu zgłoszenia.
Jak to działa obecnie?
Korzystając z POST /sale/products/{productId}/change-proposals, możesz zgłosić sugestie zmiany w produkcie np. nazwy produktu, kategorii, itp. Status zgłoszenia każdorazowo sprawdzisz dzięki GET /sale/products/change-proposals/{id}.
Co zmieniliśmy?
Dodaliśmy nowe pole "notifyViaEmailAfterVerification", które pozwoli Ci zdecydować, czy chcesz otrzymać powiadomienie email po rozpatrzeniu zgłoszenia sugestii zmiany w produktach. Domyślną wartością pola jest false.
Przykładowy request:
curl -X POST
'https://api.allegro.pl/sale/products/73b31addsdsd628365/change-proposals' \
-H 'Authorization: Bearer {token}' \
-H 'Accept: application/vnd.allegro.public.v1+json' \
-H 'Content-type: application/vnd.allegro.public.v1+json' \
-d '{
"name": "Harry Potter i kamień filozoficzny J.K. Rowling",
"category": {
"id": "260395"
},
"parameters": [
{
…
}
],
"images": [
{
"url": "https://a.allegroimg.com/original/003006/1c0782d2bceba"
}
],
"note": "Zdjęcie należy do innej książki",
"notifyViaEmailAfterVerification": true - czy chcesz otrzymać powiadomienie
email po rozpatrzeniu sugestii
}'
Więcej informacji znajdziesz w naszym poradniku.
Today in the resource for submitting product change suggestions, we have added a new field "notifyViaEmailAfterVerification", which allows you to decide whether you want to receive an email notification when your application has been processed.
How does it work now?
Using POST /sale/products/{productId}/change-proposals you can submit suggestions for changes to a product, e.g. product name, category, etc. You can check the status of your request with GET /sale/products/change-proposals/{id}.
What changes have we made?
We have added a new field "notifyViaEmailAfterVerification", which will allow you to decide if you want to receive an email notification after a product change suggestion request has been processed. The default value of the field is false.
Sample request:
curl -X POST
'https://api.allegro.pl/sale/products/73b31addsdsd628365/change-proposals' \
-H 'Authorization: Bearer {token}' \
-H 'Accept: application/vnd.allegro.public.v1+json' \
-H 'Content-type: application/vnd.allegro.public.v1+json' \
-d '{
"name": "Harry Potter and the Philosopher's Stone J.K. Rowling",
"category": {
"id": "260395"
},
"parameters": [
{
…
}
],
"images": [
{
"url": "https://a.allegroimg.com/original/003006/1c0782d2bceba"
}
],
"note": "The photo belongs to another book",
"notifyViaEmailAfterVerification": true - whether you would like to receive
an email notification when your
suggestion has been processed
}'
You can find more information in our tutorial.