Onfleet Orders API

Orders represent a pickup-dropoff task pair shared between a courier organization and its clients on the Onfleet Connect network. Clients can quote, create, update, clone, cancel, or reject orders; couriers can create orders on behalf of clients and respond to them.

GitHub OpenAPI
Business capability
Last-Mile Delivery Operations Management BC-2420.40

Operations 7

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /taskOrders Create a task order · Create Order #
Ask an LLM
“How do I create a new delivery order with a pickup and dropoff?”
“Can I set a price and currency when creating an order?”
Tell an agent
Create an order with pickup {pickup} and dropoff {dropoff}.
Create order {pickup} to {dropoff} priced at {price} {currency}.
GET /taskOrders/{orderShortId} Get a task order · Get Order #
Ask an LLM
“What pickup and dropoff tasks does an order have?”
“Can I look up an order by its short ID?”
Tell an agent
Get order {orderShortId}.
Show the pickup and dropoff tasks of order {orderShortId}.
PUT /taskOrders/{orderShortId} Update a task order · Update Order #
Ask an LLM
“Can I change the price or currency of an existing order?”
“Is it possible to swap the pickup or dropoff tasks on an order?”
Tell an agent
Update order {orderShortId} to price {price} {currency}.
Replace the pickup task on order {orderShortId} with {pickup}.
POST /taskOrders/{orderShortId}/cancel Cancel a task order · Cancel Order #
Ask an LLM
“How do I cancel an order that hasn't been assigned yet?”
“Can I cancel an order by its short ID?”
Tell an agent destructive · confirm first
Cancel order {orderShortId}.
Cancel the unassigned order {orderShortId}.
POST /taskOrders/{orderShortId}/reject Reject an order · Reject Order #
Ask an LLM
“How do I reject an order and give a reason?”
“Can I record why an order was rejected?”
Tell an agent destructive · confirm first
Reject order {orderShortId} because {reason}.
Decline order {orderShortId}.
POST /taskOrders/clone Clone several task orders · Clone Orders #
Ask an LLM
“Can I duplicate a batch of orders at once?”
“How do I clone several orders by their IDs?”
Tell an agent
Clone orders {orderIds}.
Duplicate the orders {orderIds}.
POST /taskOrders/quote Get a quote for a task order · Quote Order #
Ask an LLM
“How much would a delivery cost for a pickup and dropoff?”
“Can I get a price quote for a task order before creating it?”
Tell an agent
Quote a delivery from {pickup} to {dropoff}.
Get a quote for {pickup} to {dropoff} at {price} {currency}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/onfleet:onfleet-orders-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

onfleet-orders-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Onfleet Destinations Orders API
  description: 'The Destinations API manages physical addresses associated with tasks.

    Destinations include parsed address fields and a GeoJSON location, and can

    be reused across tasks. Onfleet geocodes addresses on creation; you can

    also supply an `unparsed` address.'
  version: '2.7'
  contact:
    name: Onfleet Support
    email: support@onfleet.com
  license:
    name: Onfleet Terms of Service
    url: https://onfleet.com/legal
servers:
- url: https://onfleet.com/api/v2
  description: Production
security:
- basicAuth: []
tags:
- name: Orders
paths:
  /taskOrders:
    post:
      tags:
      - Orders
      summary: Create Order
      operationId: createOrder
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OrderCreate'
      responses:
        '200':
          description: Order created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Order'
  /taskOrders/{orderShortId}:
    parameters:
    - name: orderShortId
      in: path
      required: true
      schema:
        type: string
    get:
      tags:
      - Orders
      summary: Get Order
      operationId: getOrder
      responses:
        '200':
          description: Order
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Order'
    put:
      tags:
      - Orders
      summary: Update Order
      operationId: updateOrder
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OrderUpdate'
      responses:
        '200':
          description: Updated order
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Order'
  /taskOrders/{orderShortId}/cancel:
    post:
      tags:
      - Orders
      summary: Cancel Order
      operationId: cancelOrder
      parameters:
      - name: orderShortId
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Cancelled
  /taskOrders/{orderShortId}/reject:
    post:
      tags:
      - Orders
      summary: Reject Order
      operationId: rejectOrder
      parameters:
      - name: orderShortId
        in: path
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                reason:
                  type: string
      responses:
        '200':
          description: Rejected
  /taskOrders/clone:
    post:
      tags:
      - Orders
      summary: Clone Orders
      operationId: cloneOrders
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                orderIds:
                  type: array
                  items:
                    type: string
      responses:
        '200':
          description: Cloned orders
  /taskOrders/quote:
    post:
      tags:
      - Orders
      summary: Quote Order
      operationId: quoteOrder
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OrderCreate'
      responses:
        '200':
          description: Price quote
          content:
            application/json:
              schema:
                type: object
                properties:
                  price:
                    type: number
                  currency:
                    type: string
                  estimatedDeliveryTime:
                    type: integer
                    format: int64
components:
  schemas:
    Order:
      type: object
      properties:
        id:
          type: string
        shortId:
          type: string
        organization:
          type: string
        client:
          type: string
        timeCreated:
          type: integer
          format: int64
        deliveryServiceId:
          type:
          - string
          - 'null'
        price:
          type:
          - number
          - 'null'
        currency:
          type:
          - string
          - 'null'
        status:
          type: string
          enum:
          - QUOTED
          - CREATED
          - ASSIGNED
          - IN_PROGRESS
          - COMPLETED
          - CANCELLED
          - REJECTED
        pickupTask:
          type: string
        dropoffTask:
          type: string
    OrderUpdate:
      type: object
      properties:
        price:
          type: number
        currency:
          type: string
        pickupTask:
          type: object
        dropoffTask:
          type: object
    OrderCreate:
      type: object
      properties:
        client:
          type: string
        deliveryServiceId:
          type: string
        price:
          type: number
        currency:
          type: string
        pickupTask:
          $ref: onfleet-tasks-api-openapi.yml#/components/schemas/TaskCreate
        dropoffTask:
          $ref: onfleet-tasks-api-openapi.yml#/components/schemas/TaskCreate
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic