Skip to content
Last updated

The Account API creates and manages customer accounts, billing addresses, and primary contact information in Hauler Hero.

Use this API to create a new customer account record — either as part of onboarding a new customer or when synchronizing account data from another system.

Prerequisites

  • A HERO-API-KEY issued by Hauler Hero. See Authentication.
  • Base URL: https://api.haulerhero.com

Workflow

Account creation is a single call:

  1. Build an account payload with at minimum accountName. Billing address and primary contact are optional but recommended for complete records.
  2. Send POST /hero-api/v1/accounts with the payload and your HERO-API-KEY header.
  3. Store the returned accountId and accountNumber — both are auto-generated by Hauler Hero and needed to reference the account in future API calls.

Field requirements

Only accountName is required. All other fields are optional.

FieldRequiredNotes
accountNameYes1–200 characters
billingAddress.streetNoMax 100 characters
billingAddress.unitNoMax 20 characters
billingAddress.cityNoMax 50 characters
billingAddress.stateNoTwo-letter US state code (e.g., CA, NY)
billingAddress.countryNoMax 50 characters
billingAddress.zipNoUS format: 12345 or 12345-6789
primaryContact.firstNameNoMax 50 characters
primaryContact.lastNameNoMax 50 characters
primaryContact.emailNoValid email format, max 100 characters
primaryContact.phoneNoDigits, spaces, parens, dashes, optional + prefix

For full schema definitions see the Schemas section of the Account API reference.

Response codes

CodeMeaningAction
200Account created successfullyStore accountId and accountNumber for future reference
400Invalid inputCheck field formats — e.g., state must be two uppercase letters, zip must match US format
401UnauthorizedVerify the HERO-API-KEY header is present and correct
409Conflict — an account with this name already existsUse the existing account or choose a distinct name

Support