e-Courier MCP by usefulapi

v1.13.1
io.usefulapi/e-courier Checked 2 days ago Published 1 day ago

Read delivery orders, quotes, customers, drivers, manifests, invoices and payment records.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

ecourier_get_order Get order

One delivery order with everything e-Courier holds: status (N new, A assigned, X deleted), customer, stops and their pickup/delivery times and POD names, pieces, jobs and drivers, fees, events and notifications. Give exactly one of order_number, order_id, auth (the customer's authorization code) or reference (a piece reference; add customer_code to narrow it). Signature images are not returned. GetJsonOrder.

ParameterTypeDescription
authstringThe order's Auth (authorization) value.
customer_codestringCustomer code; useful together with reference.
order_idintegerInternal order id.
order_numberstringThe order number shown in e-Courier.
referencestringA piece reference / barcode on the order.

ecourier_get_order_fees Get order fees

The fee lines (what was charged for the delivery: base rate, fuel, waiting time and so on) of one order, by internal order id. GetOrderFees.

ParameterTypeDescription
order_id *integerInternal order id (the OrderID from ecourier_get_order).

ecourier_quote_order Quote an order

Price and availability for a delivery WITHOUT creating it: e-Courier applies the customer's rates to the stops and pieces and returns the order with the quoted amount. Supply a customer code, pickup/delivery stops and optional pieces. Nothing is saved and nobody is notified. QuoteOrder.

ParameterTypeDescription
customer_code *stringe-Courier customer (billing account) code the order is for, as in e-Courier.
stops *arrayAt least one pickup (P) and one delivery (D) stop, in route order.
authstringCustomer authorization / reference code, if the account uses one.
callerstringName of the person who placed the order.
caller_phonestringPhone of the person who placed the order.
descriptionstringOrder description.
other_referencestringYour own reference for the order (PO number etc.).
piecesarrayThe items being moved. Each is linked to the pickup stop and the delivery stop.
servicestringService name configured in e-Courier, e.g. Route or Scheduled.

ecourier_get_customer_by_code Get customer by code

A customer (billing account) by its e-Courier customer code: id, name and address. GetCustomerByCode.

ParameterTypeDescription
customer_code *stringe-Courier customer code.

ecourier_get_customer Get customer by id

The full customer record by internal customer id: contact, address, credit status and limit, balance, billing settings. Card numbers and passwords are never returned. GetCustomerById.

ParameterTypeDescription
customer_id *integerInternal customer id.

ecourier_find_customer_by_phone Find customer by phone

Look up a customer by phone number (useful when a caller rings in): id, name and address. GetCustomerInfoFromPhoneNumber.

ParameterTypeDescription
phone *stringPhone number, digits (e.g. 7132223333).

ecourier_list_customer_ship_tos List customer ship-to addresses

The saved ship-to (stop) addresses of a customer, by internal customer id, or one ship-to by its id. Give exactly one. GetCustomerShipTo.

ParameterTypeDescription
customer_idintegerInternal customer id: all its saved addresses.
ship_to_idintegerOne ship-to address id.

ecourier_list_drivers List active drivers

Every active driver: id, code, name and site. Optionally only one site (multi-site accounts). GetDrivers.

ParameterTypeDescription
site_idintegerOnly drivers of this site id.

ecourier_get_driver Get driver

Driver records with their vehicles and file names (never SSN or tax ids). With driver_id or driver_code one driver; with neither, every active and inactive driver. GetDriver.

ParameterTypeDescription
driver_codestringDriver code.
driver_idintegerInternal driver id.

ecourier_get_driver_orders Get a driver's current orders

What a driver is carrying right now: the open orders on the driver's manifest (customer, pickup and delivery names, delivery zip, ready and due times), found by driver code or by the driver's phone number. Give exactly one. GetDriverInfoFromDriverCode / GetDriverInfoFromDriverPhone.

ParameterTypeDescription
driver_codestringDriver code.
driver_phonestringThe driver's phone number.

ecourier_list_skills List driver skills

The master list of active driver skills (for example HAZMAT) with ids. GetSkills.

ecourier_get_driver_skills Get a driver's skills

The skills assigned to one driver, by driver id or driver code (give exactly one). GetDriverSkills.

ParameterTypeDescription
driver_codestringDriver code.
driver_idintegerInternal driver id.

ecourier_get_manifest Get manifest

One driver manifest (the route a driver runs for a day) with all its job stops: sequence, addresses, status, pieces and weight. GetManifest.

ParameterTypeDescription
manifest_driver_id *integerThe ManifestDriverID of the manifest.

ecourier_list_driver_manifests List a driver's manifests

The manifests of one driver between two dates, with their job stops. Default status filter is active (A). GetManifestsByDriver.

ParameterTypeDescription
driver_id *integerInternal driver id.
end_date *stringLast day, yyyy-mm-dd.
start_date *stringFirst day, yyyy-mm-dd.
manifest_statusstringManifest status code filter (default A).
site_idintegerOnly this site.

ecourier_list_invoices List invoices

Invoices in an invoice date range (invoice_start_date and invoice_end_date are both required, at most 31 days apart: e-Courier rejects anything else). Optionally narrow by customer code and by a last-changed range. GetInvoice.

ParameterTypeDescription
invoice_end_date *stringInvoice date to, yyyy-mm-dd. Required, at most 31 days after the start.
invoice_start_date *stringInvoice date from, yyyy-mm-dd. Required.
changed_end_datestringLast changed to, yyyy-mm-dd.
changed_start_datestringLast changed from, yyyy-mm-dd.
customer_codestringOnly this customer.

ecourier_get_invoice_fees Get invoice fees

The fee lines of one invoice, by invoice id (the id from ecourier_list_invoices). GetInvoiceFees.

ParameterTypeDescription
invoice_id *integerInvoice id.

ecourier_list_payments List payments

Customer payments received in a payment date range (payment_start_date and payment_end_date are both required, at most 10 days apart: e-Courier rejects anything else). Optionally narrow by customer code, check number or payment id. GetPayment.

ParameterTypeDescription
payment_end_date *stringPayment date to, yyyy-mm-dd. Required, at most 10 days after the start.
payment_start_date *stringPayment date from, yyyy-mm-dd. Required.
check_numberstringCheck number.
customer_codestringOnly this customer.
payment_idintegerOne payment id.