Hi all,
I’m a front-end dev working with a UK merchant using DPD(courier) via the Shopify DPD API integration. Because they sell alcohol as well as fresh produce (meat & cheese), DPD have put them on an age-verified only service(as they do not supply a mixed service). That means every DPD shipment has to be handed to the customer (no safe place). When a customer isn’t in, the parcel goes back and the fresh/temperature-sensitive items have to be binned/refunded.
What DPD suggested: open two DPD accounts — 1) age-verified, 2) standard — and add a second DPD API to Shopify.
Our concerns:
-
Two DPD accounts = two API tokens, that are tied to the account.
-
What we actually need is: “If order contains alcohol → send via age-verified DPD API; else → send via standard DPD API”
-
But I’m not sure Shopify + DPD can conditionally call different DPD accounts/APIs at fulfilment time based on line-item rules. Is that even possible?
Things we considered:
-
ShipStation split shipping to split/reroute orders. The problem: mixed baskets (alcohol + non-alcohol) would effectively mean 2 shipments / higher cost, and they still want everything in DPD / DPD portal. Also ShipStation is ~£55/month, so feels heavy just to solve this.
-
Clearer front-end messaging (“age-verified delivery,” “can’t leave in a safe place,” “fresh product”) — we’ve done this to manage expectations.
Question for the community:
Has anyone actually run two DPD(or other courier) accounts from one Shopify store and routed orders to the correct courier API token based on product tags/metafields (e.g. “requires_age_verification = true”)? If so:
-
how did you switch tokens/accounts at the point of creating the label?
-
was it native, via an app, or custom middleware?
Thanks!