Carrier Service Callback Timing Issue With External Logistics Integration

We’ve implemented shipping rate calculations using the CarrierServiceCreate mutation with a callback URL. Our system relies on third-party logistics providers to return shipping rates through cart-checkout webhooks, as order-specific information is required to determine accurate rates.

Identified Issue:

  1. The Carrier Service callback triggers before cart checkout completes

  2. This creates a dependency conflict since order details (required for rate calculation) only become available during checkout

  3. External provider responses sometimes exceed Shopify’s timeout window

  4. Result: “Shipping cannot be processed for the specified address” error during checkout

Key Challenge:
The callback system appears to require order information that only becomes available post-checkout initiation, creating a circular dependency where:
Carrier Callback (needs rates) → Checkout (needs rates) → Order Data

Request:
Could you advise on either:

  1. A recommended pattern to access preliminary order data earlier in the flow, or

  2. Alternative implementation approaches that align callback timing with checkout completion?

We’d appreciate guidance on resolving this timing mismatch between carrier service callbacks and checkout webhook availability.

@Sai the DeliveryCarrierService - GraphQL Admin has the items inside the request to the CarrierService right? So you can calculate between shipping request and the response back?