GSC POD API

Route

Get Assigned Route

Returns the pending route for the authenticated driver, including all stops, products, collections, and OSD data.

Endpoint: GET /api/route

Authentication: Required — headers: employee_id, api_token


Stop types:

Product / collection fields:

Customer contact fields:

OSD data fields (v21):

Example response:

{
  "success": true,
  "message": "Pending route found for driver.",
  "data": {
    "id": "17140",
    "facility": "011",
    "name": "ROUTE NAME",
    "week_end": "20251031",
    "last_updated": "2025-10-31T12:00:00.000Z",
    "drivers": [
      { "id": "T0048", "name": "DRIVER NAME", "type": "driver" }
    ],
    "stops": [
      {
        "id": 258,
        "type": "delivery",
        "updates": {
          "status": "P",
          "followup": false,
          "delivered_by_driver_id": null,
          "store_emp_id": null,
          "store_emp_name": null,
          "driver_comments": null,
          "signature_id": null,
          "osd_emails": [],
          "overage_items": []
        },
        "osd_emails": [],
        "customer": {
          "id": "CUSTID",
          "name": "STORE NAME",
          "verify_returns": false,
          "contact": { "phone": "5551234567", "email": "store@example.com", "contact_email": "gsc-contact@example.com",
            "salesrep": { "id": "SR01", "name": "REP NAME", "phone": "5559876543" } },
          "location": {
            "address": ["123 Main St"], "city": "ANYTOWN", "state": "IL", "zip": "60601",
            "coordinates": { "latitude": "41.8781", "longitude": "-87.6298" }
          }
        },
        "invoices": [{ "id": "0806591", "date": "2025-10-31" }],
        "products": [
          {
            "id": "038976",
            "name": "GARDETTOS SPEC RQST",
            "description": "GARDETTOS SPEC RQST RYE CHPS 7/4.75 OZ",
            "invoice": "0806591",
            "quantity": 7,
            "box_upc": "00016000148710",
            "item_upc": "016000502789",
            "section": "GROCERY",
            "updates": {
              "delivered": 6,
              "accounting_complete": false,
              "image_ids": null,
              "osd_data": [
                {
                  "osd_code": "51",
                  "data": [
                    { "comment": "1 bag missing", "quantity": 1, "images_id": null, "barcodes": "00016000148710" },
                    { "comment": "1 damaged box", "quantity": 1, "images_id": null, "barcodes": "016000502789"  }
                  ]
                }
              ]
            },
            "action": null
          }
        ],
        "collections": [
          {
            "id": "9010", "name": "PLASTIC TOTE", "description": "RECLAMATION TOTES",
            "required": true, "count_in_totes": true, "add_photos": false,
            "container_type": "PLASTIC TOTE", "section": "COLLECTIONS",
            "quantity": 2,
            "updates": { "returned": 0, "osd_data": [] },
            "action": { "type": "collect" }
          }
        ]
      }
    ]
  }
}
		

Try It Out


Result:

...

Get Active Drivers

Returns a list of employee IDs currently assigned to active (non-completed) routes.

Endpoint: GET /api/route/drivers

Authentication: None


Try It Out



Result:

...