e-Courier MCP by usefulapi
v1.13.1Read 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.
| Parameter | Type | Description |
|---|---|---|
auth | string | The order's Auth (authorization) value. |
customer_code | string | Customer code; useful together with reference. |
order_id | integer | Internal order id. |
order_number | string | The order number shown in e-Courier. |
reference | string | A 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.
| Parameter | Type | Description |
|---|---|---|
order_id * | integer | Internal 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.
| Parameter | Type | Description |
|---|---|---|
customer_code * | string | e-Courier customer (billing account) code the order is for, as in e-Courier. |
stops * | array | At least one pickup (P) and one delivery (D) stop, in route order. |
auth | string | Customer authorization / reference code, if the account uses one. |
caller | string | Name of the person who placed the order. |
caller_phone | string | Phone of the person who placed the order. |
description | string | Order description. |
other_reference | string | Your own reference for the order (PO number etc.). |
pieces | array | The items being moved. Each is linked to the pickup stop and the delivery stop. |
service | string | Service 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.
| Parameter | Type | Description |
|---|---|---|
customer_code * | string | e-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.
| Parameter | Type | Description |
|---|---|---|
customer_id * | integer | Internal 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.
| Parameter | Type | Description |
|---|---|---|
phone * | string | Phone 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.
| Parameter | Type | Description |
|---|---|---|
customer_id | integer | Internal customer id: all its saved addresses. |
ship_to_id | integer | One 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.
| Parameter | Type | Description |
|---|---|---|
site_id | integer | Only 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.
| Parameter | Type | Description |
|---|---|---|
driver_code | string | Driver code. |
driver_id | integer | Internal 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.
| Parameter | Type | Description |
|---|---|---|
driver_code | string | Driver code. |
driver_phone | string | The 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.
| Parameter | Type | Description |
|---|---|---|
driver_code | string | Driver code. |
driver_id | integer | Internal 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.
| Parameter | Type | Description |
|---|---|---|
manifest_driver_id * | integer | The 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.
| Parameter | Type | Description |
|---|---|---|
driver_id * | integer | Internal driver id. |
end_date * | string | Last day, yyyy-mm-dd. |
start_date * | string | First day, yyyy-mm-dd. |
manifest_status | string | Manifest status code filter (default A). |
site_id | integer | Only 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.
| Parameter | Type | Description |
|---|---|---|
invoice_end_date * | string | Invoice date to, yyyy-mm-dd. Required, at most 31 days after the start. |
invoice_start_date * | string | Invoice date from, yyyy-mm-dd. Required. |
changed_end_date | string | Last changed to, yyyy-mm-dd. |
changed_start_date | string | Last changed from, yyyy-mm-dd. |
customer_code | string | Only 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.
| Parameter | Type | Description |
|---|---|---|
invoice_id * | integer | Invoice 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.
| Parameter | Type | Description |
|---|---|---|
payment_end_date * | string | Payment date to, yyyy-mm-dd. Required, at most 10 days after the start. |
payment_start_date * | string | Payment date from, yyyy-mm-dd. Required. |
check_number | string | Check number. |
customer_code | string | Only this customer. |
payment_id | integer | One payment id. |