allegro / allegro/allegro-api

[NEWS] 12 października 2023 wprowadzimy zmiany w zarządzaniu warunkami zwrotów / On October 12, 2023, we will introduce changes in managing return policies

Ouverte
#7,621 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

**12 października 2023** wprowadzimy zmiany w zasobach, dzięki którym możesz [zarządzać warunkami zwrotów](https://developer.allegro.pl/tutorials/jak-zarzadzac-ofertami-7GzB2L37ase#jak-zarzadzac-warunkami-zwrotow).

**Co zmienimy?**

Gdy definiujesz warunki zwrotów, wskazujesz przy tym możliwość odstąpienia od umowy przez kupującego. Aktualnie możesz wybrać jedną z dwóch opcji:
* “FULL” - kupujący ma możliwość odstapienia od umowy,
* “RESTRICTED” - kupujący ma ograniczoną możliwość lub brak możliwości.

12 października dodamy nową opcję “DISABLED”, która będzie oznaczać brak możliwości, a wartość “RESTRICTED” będzie tym samym tożsama wyłącznie z ograniczoną możliwością.

Na skutek tej zmiany wprowadzimy nowe zależności, według których możesz wskazywać wartości w polu **“restrictionCause”** (typ ograniczenia możliwości odstąpienia od umowy przez konsumenta) oraz deklarować pozostałe pole. Szczegółowo obrazuje je poniższa tabela:

| | availability.range=RESTRICTED | availability.range=DISABLED |
|--------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------|
| restrictionCause (typ ograniczenia możliwości odstąpienia od umowy przez konsumenta) | SEALED_MEDIA, SEALED_ITEM_NO_RETURN_DUE_ HEALTH_OR_HYGIENE, INSEPARABLY_LINKED, NOT_RECORDED_DIGITAL_CONTENT | CUSTOM_ITEM, SHORT_SHELF_LIFE, PRESS, MEDICINAL_PRODUCT, VALUE_DEPENDENT_ON_ FINANCIAL_MARKET |
| withdrawalPeriod (czas na zwrot) | zaczniemy wymagać, minimum 14 dni | pole nie będzie miało zastosowania w przypadku tej opcji, będziemy przyjmować wyłącznie null |
| returnCost (kto pokrywa koszt przesyłki zwrotnej) | zaczniemy wymagać | pole nie będzie miało zastosowania w przypadku tej opcji, będziemy przyjmować wyłącznie null |
| address (adres do zwrotu) | zaczniemy wymagać | pole będzie opcjonalne |
| options (dodatkowe informacje) | bez zmian, pozostaną wymagane | pole nie będzie miało zastosowania w przypadku tej opcji, będziemy przyjmować wyłącznie null |

Według powyższego, jeśli dla “availability.range” wskażesz “RESTRICTED”, ale jako “restrictionCause” wybierzesz wartość ze zbioru zarezerwowanego dla “DISABLED”, w takiej sytuacji zwrócimy kod błędu 422.

W dniu, w którym wdrożymy zmiany, zaktualizujemy informacje w [naszym poradniku.](https://developer.allegro.pl/tutorials/jak-zarzadzac-ofertami-7GzB2L37ase#jak-zarzadzac-warunkami-zwrotow)

**Jakich zasobów dotyczy zmiana?**

Zmiana będzie miała wpływ na poniższe zasoby:

* [POST /after-sales-service-conditions/return-policies](https://developer.allegro.pl/documentation/#operation/createAfterSalesServiceReturnPolicyUsingPOST),
* [GET /after-sales-service-conditions/return-policies/{returnPolicyId}](https://developer.allegro.pl/documentation/#operation/getAfterSalesServiceReturnPolicyUsingGET),
* [PUT /after-sales-service-conditions/return-policies/{returnPolicyId}](https://developer.allegro.pl/documentation/#operation/updateAfterSalesServiceReturnPolicyUsingPUT).

**Jak będzie wyglądać migracja danych dla istniejących warunków zwrotów?**

W zależności od wybranego “restrictionCause” w istniejących warunkach, ustawimy wartość w polu “availability.range” - jako nowe “DISABLED” lub pozostawimy istniejące “RESTRICTED”.

Gdy zwrot jest ograniczony (“RESTRICTED”) uzupełnimy wymagane pola, które wcześniej mogły nie być zdefiniowane:
* “withdrawalPeriod” (czas na zwrot) - ustawimy 14 dni, jeśli wcześniej sprzedający zadeklarował krótszą liczbę dni,
* “returnCost” (koszt zwrotu pokrywa) - “BUYER” (kupujący),
* “address” (adres do zwrotu) - pobierzemy adres z ustawień konta

Gdy zwrot jest wyłączony (“DISABLED”) usuniemy wartości w polach “withdrawalPeriod”, “returnCost” oraz “options” (dodatkowe informacje).

Migrację zakomunikujemy sprzedawcom z odpowiednim wyprzedzeniem.

-----

**On October 12, 2023,** we will introduce changes in resources that allows you to [manage return policies.](https://developer.allegro.pl/tutorials/how-to-process-list-of-offers-m09BKA5v8H3#how-to-manage-return-policies)

**What changes will we make?**

When you define return policies, you also indicate the buyer’s option to withdraw the agreement. Currently, you can choose one of two options:

* “FULL” - buyer’s have the possibility to withdraw the agreement,
* “RESTRICTED” - it is not possible or it is restricted under selected condition.

On October 12, we will add a new option "DISABLED", which will mean no possibility, and the value "RESTRICTED" will therefore only mean a restricted possibility.

As a result of this change, we will introduce new dependencies, by which you can select values in the **“restrictionCause” **(type of limiting the consumer's right of withdrawal) and define other fields. They are presented in detail in the table below:

| | availability.range=RESTRICTED | availability.range=DISABLED |
|------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------|
| restrictionCause | SEALED_MEDIA, SEALED_ITEM_NO_RETURN_DUE_ HEALTH_OR_HYGIENE, INSEPARABLY_LINKED, NOT_RECORDED_DIGITAL_CONTENT | CUSTOM_ITEM, SHORT_SHELF_LIFE, PRESS, MEDICINAL_PRODUCT, VALUE_DEPENDENT_ON_ FINANCIAL_MARKET |
| withdrawalPeriod | will be required, minimum 14 days | field will not be applicable for this option, we will accept only null |
| returnCost | will be required | field will not be applicable for this option, we will accept only null |
| address | unchanged, will remain required | field will be optional |
| options | unchanged, will remain required | field will not be applicable for this option, we will accept only null |

According to the above, if you specify "RESTRICTED" for "availability.range", but for "restrictionCause" you select a value from the set reserved for "DISABLED", in such a situation we will return error code 422.

We will update the information in [our guide](https://developer.allegro.pl/tutorials/how-to-process-list-of-offers-m09BKA5v8H3#how-to-manage-return-policies) on the day we implement the changes.

**Which resources will be affected by the change?**

The change will affect the following resources:

* [POST /after-sales-service-conditions/return-policies](https://developer.allegro.pl/documentation/#operation/createAfterSalesServiceReturnPolicyUsingPOST) ,
* [GET /after-sales-service-conditions/return-policies/{returnPolicyId}](https://developer.allegro.pl/documentation/#operation/getAfterSalesServiceReturnPolicyUsingGET) ,
* [PUT /after-sales-service-conditions/return-policies/{returnPolicyId}](https://developer.allegro.pl/documentation/#operation/updateAfterSalesServiceReturnPolicyUsingPUT) .

**What will data migration look like for existing returns policies?**

How will we conduct the data migration for existing return policies?

Depending on the selected “restrictionCause” in the existing policies, we will set value in the “availability.range” - as new “DISABLED” or we or leave the existing “RESTRICTED”.

When the return is restricted, we will complete the required fields that may not have been previously defined:
* “withdrawalPeriod” - we will set 14 days, if previously seller specified fewer days,
* “returnCost” - “BUYER”,
* “address” - we will retrieve the address from the account settings.

When the return is disabled we will remove values in the “withdrawalPeriod”, “returnCost” and “options” fields.

We will communicate the migration to sellers in advance.

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.