Skip to main content

Carrier Service API now includes order totals and customer tags

The Carrier Service API callback payload now includes order totals and customer tags. This enhancement enables more effective shipping rate calculations by taking into account the order value and customer segments.

New Payload Fields:

  • order_totals
    • subtotal_price: The total price of all items in the cart before discounts.
    • total_price: The final price after discounts and taxes.
    • discount_amount: The total discounts applied to the order.
  • customer
    • id: The unique identifier for the customer.
    • tags: Labels associated with the customer, useful for segmentation.

Important: The subtotal_price might be higher than the sum of the items in the items array, as this array only includes physical items that require shipping.

These new fields are automatically included in all callback requests, allowing you to customize shipping rates using detailed order and customer information. For implementation details, refer to the Carrier Service API documentation.

Update your shipping rate calculations to leverage these new fields for a more personalized shipping experience.

Was this section helpful?