The Carrier Service API callback payload has been enhanced to include order totals and customer tags. This update allows you to calculate shipping rates more effectively by considering the order value and customer segments.
New Payload Fields:
-
order_totals-
subtotal_price: The total price of items before discounts and taxes. -
total_price: The final price after applying discounts and taxes. -
discount_amount: The total amount of discounts applied to the order.
-
-
customer-
id: The unique identifier for the customer. -
tags: Labels associated with the customer, useful for segmentation.
-
These new fields are automatically included in all callback responses, enabling you to tailor shipping rates based on detailed order and customer information. For more information on how to implement these changes, please refer to the Carrier Service API documentation.
Consider updating your shipping rate calculations to leverage these new fields for a more customized shipping experience.