Get Order

GET /orders

Retrieve a single order by order_number or external_id

Query parameters

  • external_id string Required

    The ID generated by your system (required if order_number is not specified)

  • order_number string Required

    The unique order number generated by FleetRunnr (required if external_id is not specified)

Responses

  • 200
    Hide response attributes Show response attributes object
GET /orders
curl \
 -X GET https://{workspace}.fleetrunnr.com/api/v1/orders?external_id=string&order_number=string \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "message": "string",
  "data": {
    "order": {
      "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
      "order_number": "3453224232",
      "external_id": "66",
      "tracking_url": "http://example.com",
      "status": "NEW",
      "carrier": {
        "uuid": "a8bacf14-19ec-42b8-8911-a293295236bc",
        "name": "ABC Logistics",
        "agent": "John Doe",
        "shipping_method": {
          "name": "standard USD",
          "currency": "USD",
          "amount": 3.5
        },
        "fees": [
          {
            "type": "SHIPPING_FEE",
            "currency": "USD",
            "amount": 3.5
          }
        ]
      },
      "customer": {
        "id": 1,
        "uuid": "69e93118-a581-4a13-afea-b6d4a2d2c40c",
        "external_id": "ABCDE12345",
        "name": "John Doe",
        "email": "john.ondricka@example.com",
        "phone": "+12163547758",
        "avatar": null
      },
      "source_location": {
        "id": 1,
        "external_id": "12hh",
        "name": "Main Warehouse",
        "line_1": "2313 Retreat Avenue",
        "line_2": "Ste 300",
        "city": "Birmingham",
        "region": "Alabama",
        "country": "US",
        "coordinates": {
          "lat": 33.527805,
          "lng": -86.768112
        },
        "zip_code": "35203",
        "directions": null,
        "verified_at": null,
        "can_edit": false
      },
      "source_contact": {
        "uuid": "466816155898609664",
        "name": "Amanda Murrin",
        "email": "amanda.murrin@example.com",
        "phone": "+12025550159"
      },
      "destination_location": {
        "id": 1,
        "external_id": "12hh",
        "name": "Main Warehouse",
        "line_1": "2313 Retreat Avenue",
        "line_2": "Ste 300",
        "city": "Birmingham",
        "region": "Alabama",
        "country": "US",
        "coordinates": {
          "lat": 33.527805,
          "lng": -86.768112
        },
        "zip_code": "35203",
        "directions": null,
        "verified_at": null,
        "can_edit": false
      },
      "destination_contact": {
        "uuid": "466816155898609664",
        "name": "Amanda Murrin",
        "email": "amanda.murrin@example.com",
        "phone": "+12025550159"
      },
      "skills": [
        "cooler"
      ],
      "proof_of_delivery": {
        "signature": true,
        "image": true
      },
      "pickup_schedule": {
        "from": "2022-01-20 13:30",
        "to": "2022-01-20 15:00"
      },
      "delivery_schedule": {
        "from": "2022-01-23 09:00",
        "to": "2022-01-23 11:30"
      },
      "packages": [
        {
          "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
          "external_id": "12hj",
          "barcode": "383176549899173888",
          "type": "PARCEL",
          "length": 20,
          "width": 30,
          "height": 1,
          "weight": 0.25,
          "length_unit": "cm",
          "weight_unit": "kg"
        }
      ],
      "collections": [
        {
          "uuid": "5fba3265-8a6a-4969-9682-889f410e9193",
          "type": "CASH",
          "amount": 120.75,
          "currency": "USD",
          "amount_formatted": "$120.75",
          "is_prepayment": false
        }
      ],
      "tags": [
        "Tag1",
        "Tag2"
      ],
      "is_return": true,
      "notes": "some notes here..",
      "created_at": "2022-01-20 13:30"
    }
  }
}