The Account API manages customer accounts, billing addresses, and contact information for the Hauler Hero platform. All endpoints require API key authentication using the HERO-API-KEY header.
Account API (1.0.0)
Download OpenAPI description
Languages
Servers
Mock server
https://docs.haulerhero.com/_mock/account/
Production server
https://api.haulerhero.com/
- Mock serverhttps://docs.haulerhero.com/_mock/account/hero-api/v1/accounts
- Production serverhttps://api.haulerhero.com/hero-api/v1/accounts
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://docs.haulerhero.com/_mock/account/hero-api/v1/accounts \
-H 'Content-Type: application/json' \
-H 'HERO-API-KEY: YOUR_API_KEY_HERE' \
-d '{
"accountName": "Acme Corporation",
"billingAddress": {
"street": "123 Main St",
"city": "San Francisco",
"state": "CA",
"country": "USA",
"zip": "94105"
},
"primaryContact": {
"firstName": "John",
"lastName": "Doe",
"email": "john.doe@acme.com",
"phone": "+1-555-0123"
}
}'Response
application/json
{ "accountId": "acc-789xyz", "accountNumber": "ACC-2024-0001", "accountName": "Acme Corporation", "billingAddress": { "addressId": "addr-123", "street": "123 Main St", "city": "San Francisco", "state": "CA", "country": "USA", "zip": "94105" }, "primaryContact": { "contactId": "cont-456", "firstName": "John", "lastName": "Doe", "email": "john.doe@acme.com", "phone": "+1-555-0123" } }