Site, Kiosk, and Material management operations
Site API (1.0.0)
The Site API manages sites, kiosks, and/or materials for the Hauler Hero platform.
This specification is designed for integration partners to implement on their platform. Once implemented, Hauler Hero will call this endpoint to retrieve and synchronize disposal sites, kiosks, and materials from your system.
- Implement the GET /scale-hero/v1/sites endpoint following this specification
- Expose the endpoint at a public URL (e.g.,
https://api.yourcompany.com/scale-hero/v1/sites) - Provide API-KEY credentials to Hauler Hero
- Return all active sites, kiosks, and materials for the requested hauler
- Maintain accurate
updatedAttimestamps for change tracking - Follow the required/optional fields defined in the Schemas section below
- Partner implements this API specification
- Partner provides endpoint URL and API-KEY to Hauler Hero
- Hauler Hero calls GET /scale-hero/v1/sites with the partner's
haulerId - Partner returns sites, kiosks, and materials in the specified format
- Hauler Hero maps and stores the data for ongoing synchronization
See the Schemas section below for complete field definitions:
- Site - Disposal site with address details (always required)
- Kiosk - Kiosk/station linked to a site (optional - only if your system uses this concept)
- Material - Material types with pricing at kiosks/sites
If your system uses kiosks (stations/points within a site):
- Include the
kiosksarray in the response - Materials must have a
kioskIdto link them to a kiosk
If your system does not use kiosks:
- Return an empty
kiosksarray or omit it - Materials must have a
siteIdto link them directly to a site
Note: Each material must have either a siteId OR/AND a kioskId, depending on your system's hierarchy.
- Mock serverhttps://docs.haulerhero.com/_mock/site/scale-hero/v1/sites
- Production serverhttps://api.yourcompany.com/scale-hero/v1/sites
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.haulerhero.com/_mock/site/scale-hero/v1/sites?haulerId=123e4567-e89b-12d3-a456-426614174000' \
-H 'API-KEY: YOUR_API_KEY_HERE'Response
application/json
{ "success": true, "data": { "sites": [ … ], "kiosks": [ … ], "materials": [ … ] } }