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.

Operations 7

POST /taskOrders Create Order #
GET /taskOrders/{orderShortId} Get Order #
PUT /taskOrders/{orderShortId} Update Order #
POST /taskOrders/{orderShortId}/cancel Cancel Order #
POST /taskOrders/{orderShortId}/reject Reject Order #
POST /taskOrders/clone Clone Orders #
POST /taskOrders/quote Quote Order #

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-orders-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. 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:
    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
    OrderUpdate:
      type: object
      properties:
        price:
          type: number
        currency:
          type: string
        pickupTask:
          type: object
        dropoffTask:
          type: object
    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
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic