DeltaVelocity

Allocation and automation

Allocation chooses an eligible courier for future booking work. Saving settings does not book an existing order or repair a historical booking. Read the current configuration before replacing it and save a copy so you can restore it deliberately.

Choose a strategy

Read GET /v1/settings/allocation (scope allocation:read) and GET /v1/settings/allocation/fields (scope allocation:read) for supported conditions and operators. A missing configuration returns 404; reads do not create defaults. Use IDs from GET /v1/couriers.

StrategyIntent
recommendedUse the recommendation among eligible couriers.
cheapestPrioritize the cheapest eligible option.
fastestPrioritize the fastest eligible option.
brand_preferredApply overrides and optional percentage distribution.

PUT /v1/settings/allocation (scope allocation:write) replaces the full configuration: allocation_type, distribution_percentage and override_rules. Use null where clearing is supported; omission is not a partial update. Read back to verify. Repeating the same desired-state PUT does not book orders and does not use Message-Id replay. Legacy input load_distribution normalizes to brand_preferred.

Distribution and eligibility

Distribution entries use unique courier_id values, non-negative percentages and a total of 100%. Distribution and override carrier_list IDs must be active for your brand. A 60/40 target is a goal across allocations, not a promise for every small batch or destination. Serviceability, parcel restrictions, pricing, wallet and account constraints still apply. The allocator uses eligible candidates and applicable fallback. If none can book, resolve the shipment's booking_error; changing settings alone does not repair it.

Enable auto-allocation deliberately

Read GET /v1/settings/auto-allocation (scope automation:read), then use PATCH /v1/settings/auto-allocation (scope automation:write) with auto_allocation_enabled and/or warehouse_ids. Omitted fields retain their values. Empty updates and null values are rejected; warehouse IDs must be positive, active and brand-owned. Duplicates are removed, and enabling requires at least one eligible warehouse.

Select locations from GET /v1/warehouses, send the desired enabled flag and warehouse IDs, and read back. With auto-allocation enabled, creating an order can book a courier even with ship: false. Review this before imports or staging tests. Repeating settings does not book existing orders.