Skip to main content

Local delivery: connecting a delivery system

Settings → Integrations → Local delivery connects the delivery management system your own drivers use. Once connected, the Ship tab offers Send to delivery and Print labels on every shipment. Until one is connected, the Delivery column says No delivery system connected to whoever may send shipments to delivery, with a Connect one link for whoever may manage integrations. Nothing else changes: shipping, invoicing, stock and the Ship tab's Carton labels work exactly as before, connected or not.

The first delivery system offered is Adyah DMS. Others can be added as providers of the same integration later without changing the Ship tab.

Connecting Adyah DMS​

  1. In the DMS, open Operations → ERP Label API and generate a key with the scopes parcels:write and labels:read. Copy it; it is shown once. Do not tick parcels:all: without it the key sees only the parcels and customers ORLLET booked, which is all it needs.
  2. In ORLLET, open Settings → Integrations, find Local delivery, and choose Adyah DMS.
  3. Paste the key into API key. It is stored in the vault and is never shown again or sent to anyone's browser.
  4. Fill in the settings below and save. The key is checked against the DMS before it is stored; a key without both scopes is refused.

Settings​

SettingWhat it doesRecommended
base_urlThe DMS's API address, ending in /api/v1.The address your DMS gives you, such as https://dms.example.com/api/v1
company_codeWhich of the DMS's companies this ORLLET company's boxes are booked under (company1, company2 …). Boxes from several companies for one store merge onto one parcel.One code per ORLLET company
customer_sourceLeave blank: the DMS files this company's customers under the API key's own label. Set it only to file them under another short name, which must be one this key already owns in the DMS (the DMS refuses a name another key owns).Blank
match_external_sourceIf your customers were imported from a system the DMS already knows (for example SalesGent), name it here. A customer whose external source matches is sent under its old id, so old and new parcels for that store merge.salesgent while both systems run; blank otherwise
packer_nameRecorded in the DMS as who packed the parcel. Not printed on the label. An email address is ignored, so a browser autofilling yours never lists you as a packer.Your warehouse's name

Who can do what​

PermissionLets a personSeeded to
sales_order.dispatchSend a shipment to delivery and print its labelsAdmin, Manager, Warehouse
sales_order.readSee whether a shipment was sent, its parcel and any holdEveryone who reads orders

What is sent​

The ship-to's name, contact, phone and address; the number of boxes; the order and invoice numbers; an amount to collect only when the person ticks it. Delivery instructions are not sent: the DMS does not keep them. The customer is sent under its customer number for its own address (no ship-to, or its default one), and as <number>.st.<ship-to id> for any other store, so each store is its own stop in the DMS (the ship-to's id, not its code, so codes such as Store 2 and Store/2 never become one stop). The account's terms and what it owes are sent with every booking, with "payment required before delivery" set only for terms that settle before delivery (or an account that pays in advance), so the DMS can hold the parcel until paid. Ordinary credit is sent too, saying payment is not required first: the DMS keeps the last figures it was given, and an account moved off payment in advance must say so or its parcels would stay held. No prices, lines or tax ids are ever sent.

While a parcel is held, every status read (hourly and on refresh) first sends the customer's current terms and balance to the DMS, so a payment recorded in ORLLET (or a move to credit terms) releases it. A customer held on orders in two currencies is sent the currency that still owes. If that update fails it is logged and the status is read anyway; the next read tries again.

A customer brought in from the system named in match_external_source is booked under its id there, so its old and new parcels merge, except while it pays in advance: the DMS's account update cannot reach a customer booked under that id, so such a customer is booked under its ORLLET customer number instead, and its held parcels are released when it pays. Its parcels from before do not merge with the new ones.

Delivery status​

The background job Delivery status (Settings → Background jobs) runs every hour and reads where each open parcel is: up to 100 parcels per company per hour, the least recently read first, only parcels sent to the delivery system connected now. Delivered and cancelled parcels are not asked about again. Parcels the DMS has answered "not found" for three reads running (shown as Not found in the delivery system) are asked about once a day: to the DMS "not found" also means "not this key's parcel", for example after the key is replaced with one under another label, or for a parcel created in the DMS before it recorded which key owns it. Anyone who can read the order can also press refresh on the Ship tab. Nothing is read where no delivery system is connected.

How it interacts with other apps​

  • Payment terms. Whether an account "pays first" is the payment term's settlement timing (before_delivery or on_delivery), looked up by the term's code, never its name; an account that pays in advance always does. Only before_delivery (or paying in advance) tells the DMS payment is required before handing over.
  • Carriers. Sending to delivery does not change the shipment's carrier. Set the own-fleet carrier on the Ship tab as before.
  • Tracking. The parcel number is written to the shipment's tracking number unless somebody had already typed one.

Disconnecting​

Disconnect on the Integrations screen. The Ship tab stops offering Send to delivery. Shipments already sent keep showing their parcel; their labels can no longer be printed from ORLLET and are printed from the DMS instead.