DeprecatrAI

2024-04

Released 2024-04-03Active
Migration Effort
Low
Estimated Hours
~4h
Primary risk if skipped: Potential for order editing or customer segment creation to fail due to unexpected input validation.

Breaking Changes2

fieldMediumCustomer Segments

CustomerSegmentInput

The `last_order` and `segment_type` fields are no longer settable in the `CustomerSegmentInput` when updating a customer segment. This change aims to prevent unintended modifications to segment criteria that might break existing segmentation logic.

Before
Fields like `last_order` and `segment_type` could be updated on a `CustomerSegmentInput`.
After
The `last_order` and `segment_type` fields are removed from the settable fields of `CustomerSegmentInput` during updates.

Remove any code attempting to update `last_order` or `segment_type` fields on customer segments.

fieldMediumOrder EditingDiscounts

OrderEditLineItemInput

The `discount_codes` field has been removed from `OrderEditLineItemInput`. This change enforces that discount codes should be applied at the order level, not the line item level, for consistency and to simplify discount management.

Before
It was possible to specify `discount_codes` at the individual `OrderEditLineItemInput` level.
After
The `discount_codes` field is no longer available within `OrderEditLineItemInput`.

Remove any code that tries to set `discount_codes` on `OrderEditLineItemInput` and instead apply discounts at the order level.

Never get blindsided by an API change again

Deprecatr AI monitors 150+ providers, maps changes to your codebase, and delivers migration checklists before your team hits a breaking change.

Join the Waitlist