allegro / allegro/allegro-api

[NEWS] Zamówienia - nowe pole calculatedNumberOfPackages w sekcji delivery / Orders - new field calculatedNumberOfPackages in the delivery section

未关闭
#2,343 0 条评论 0 个 reaction 已指派 1 人 已被 @PrzemyslawLukanowski 认领 在 GitHub 查看
News
主要语言
没有语言数据
星标
244
派生
40
PR 合并指标
30 天内没有已合并 PR

描述

Udostępniliśmy nowe pole **‘calculatedNumberOfPackages’** w zasobach:

- [GET /order/checkout-forms](https://developer.allegro.pl/documentation/#operation/getListOfOrdersUsingGET),
- [GET /order/checkout-forms/{id}](https://developer.allegro.pl/documentation/#operation/getOrdersDetailsUsingGET).

W sekcji **delivery** otrzymasz informację o łącznej liczbie wszystkich przesyłek w zamówieniu. Suma jest wyliczona na podstawie:

- wartości z pól lineItems.quantity,
- maksymalnej pojemności paczki w cenniku dostawy ([rates.maxQuantityPerPackage](https://developer.allegro.pl/documentation/#operation/createShippingRatesSetUsingPOST)),
- strategii łączenia cenników z ustawień dostawy ([joinPolicy.strategy](https://developer.allegro.pl/documentation/#operation/putSaleDeliverySettings)).

Dzięki temu dowiesz się, ile paczek w tym zamówieniu zostanie nadanych bezpłatnie przy włączonej opcji Allegro Smart! Nowe pole zwracamy dla zamówień utworzonych po **07.10.2019**.

-----

We have introduced new field ‘**calculatedNumberOfPackages’** in the following resources:

- [GET /order/checkout-forms](https://developer.allegro.pl/documentation/#operation/getListOfOrdersUsingGET),
- [GET /order/checkout-forms/{id}](https://developer.allegro.pl/documentation/#operation/getOrdersDetailsUsingGET).

In the **delivery** section, you will receive information about the total number of all packages in the order. Number is calculated based on:

- the amount of ordered items,
- package capacity defined in a selected shipping-rate ([rates.maxQuantityPerPackage](https://developer.allegro.pl/documentation/#operation/createShippingRatesSetUsingPOST)),
- shipping rate joining policy defined in delivery settings ([joinPolicy.strategy](https://developer.allegro.pl/documentation/#operation/putSaleDeliverySettings)).


Thanks to this information, you will know how many parcels in this order will be dispatched without any cost, when the Allegro Smart! option is enabled. We return a new field for orders created after **07.10.2019**.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。