Breaking Changes2
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.
Fields like `last_order` and `segment_type` could be updated on a `CustomerSegmentInput`.
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.
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.
It was possible to specify `discount_codes` at the individual `OrderEditLineItemInput` level.
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