Scale ticket and weighing operations
Scale API (1.0.0)
The Scale API manages scale tickets with inbound and outbound flow data for the Hauler Hero platform.
Important: If you want to integrate your scale tickets into the Hauler Hero platform, you must call this API endpoint with the required data specified in this specification.
Partners need to:
- Obtain API credentials (HERO-API-KEY) from Hauler Hero. Important: Each Hauler Hero account has a unique API key.
- Call the POST /hero-api/v1/tickets endpoint whenever a scale ticket is created or updated in your system
- Send the required data including site, materials, and flow information as specified in the request schema
- Receive confirmation that the ticket was successfully integrated into Hauler Hero
When calling this API, you must include:
- Site identification - UUID for the site
- Material quantities - List of materials with IDs, names, quantities, pricing, and units
- Inbound/Outbound flow data - Ticket numbers, effective dates
Download OpenAPI description
Languages
Servers
Mock server
https://docs.haulerhero.com/_mock/scale/
Hauler Hero production server
https://api.haulerhero.com/
Bodyapplication/jsonrequired
Unique identifier for the disposal site
Example: "64318450-1ce2-499d-8a70-f313aabe1831"
List of materials with quantities
Unique identifier for the material
Example: "a51b814b-1b23-4f28-8c2a-b90030340eea"
Unit price in cents (e.g., 15.50 for $0.155)
Example: 15.5
- Mock serverhttps://docs.haulerhero.com/_mock/scale/hero-api/v1/tickets
- Hauler Hero production serverhttps://api.haulerhero.com/hero-api/v1/tickets
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://docs.haulerhero.com/_mock/scale/hero-api/v1/tickets \
-H 'Content-Type: application/json' \
-H 'HERO-API-KEY: YOUR_API_KEY_HERE' \
-d '{
"siteId": "64318450-1ce2-499d-8a70-f313aabe1831",
"materials": [
{
"id": "a51b814b-1b23-4f28-8c2a-b90030340eea",
"name": "Paper",
"quantity": 100,
"unitPriceCents": 15.5,
"unitOfMeasure": "Ton"
}
],
"inboundFlow": {
"ticketNumber": "INB-20240701-001",
"updatedAt": "2024-07-01T12:00:00Z"
},
"outboundFlow": {
"ticketNumber": "OUT-20250701-001",
"updatedAt": "2025-07-01T12:00:00Z"
}
}'Response
application/json
{ "success": true, "disposalTicketId": "123e4567-e89b-12d3-a456-426614174000" }