Migrate from 2024-07 to 2024-10
1. API Endpoint Updates
Compared to 2024-07, the main changes in the 2024-10 API focus on modifying inconsistent or unreasonable field names. The specific changes are as follows:
1.1 Restock
- Change
restock.items[*].source_order_item_idtorestock.items[*].external_order_item_id - Change
restock.items[*].location.source_idtorestock.items[*].location.external_id
1.2 ReturnItem
- Change
return_items[*].exchange_variant.source_product_idtoreturn_items[*].exchange_variant.external_product_id - Change
return_items[*].exchange_variant.source_variant_idtoreturn_items[*].exchange_variant.external_variant_id - Remove
return_items[*].discounted_price_including_tax, providereturn_items[*].unit_discounted_price_including_taxinstead. Thediscounted_price_including_taxprovided in the 2024-07 version is based onordered_quantity, which can easily be misused. Starting from the 2024-10 version, we will only provideunit_discounted_price_including_tax, which can be used together with fields likeintended_return_quantity,ordered_quantity, etc., to calculate the total amount you need. - Rename
return_items[*].image_urlstoreturn_items[*].product_image_urls
1.3 Address
- Change fields of
country_region, replace fieldnamewithcode. Example:- 2024-07:
{"country_region": {"name": "USA"}} - 2024-10:
{"country_region": {"code": "USA"}}
- 2024-07:
- Change type of
statefrom string to object. Example:- 2024-07:
{"state": "Arkansas"} - 2024-10:
{"state": {"name": "Arkansas"}}
- 2024-07:
2. Webhook Updates
As an experiential version of the new webhook design, 2024-07 only provided a single event: return.restock.created. While designing the new events for the 2024-10 version, we identified flaws in the design of the modified field. Therefore, corrections have been made in the 2024-10 version.
2.1 return.restock.created
modified in 2024-07:
preparing...
modified in 2024-10:
preparing...