{"items":[{"type":"link","label":"Account API","link":"/account","routeSlug":"/account","content":{"contentType":"overview","meta":{"name":"Account API"},"children":[{"nodeType":"container","panels":[{"title":"Download OpenAPI description","titleTranslationKey":"download.description.title","children":[{"kind":"download","label":"account.json","url":"/_bundle/account.json?download"},{"kind":"download","label":"account.yaml","url":"/_bundle/account.yaml?download"}]},{"title":"Overview","titleTranslationKey":"info.title","children":[]},{"title":"Languages","titleTranslationKey":"languages.title","children":[{"kind":"languages","options":[{"key":"curl","title":"curl","lang":"curl"},{"key":"javascript","title":"JavaScript","lang":"JavaScript"},{"key":"node","title":"Node.js","lang":"Node.js"},{"key":"python","title":"Python","lang":"Python"},{"key":"java","title":"Java","lang":"Java"},{"key":"csharp","title":"C#","lang":"C#"},{"key":"php","title":"PHP","lang":"PHP"},{"key":"go","title":"Go","lang":"Go"},{"key":"ruby","title":"Ruby","lang":"Ruby"},{"key":"r","title":"R","lang":"R"},{"key":"payload","title":"Payload","lang":"Payload"}]}]},{"title":"Servers","titleTranslationKey":"servers.title","children":[{"kind":"servers","servers":[{"url":"/_mock/account","description":"Mock server","isMockServer":true},{"url":"https://api.haulerhero.com","description":"Production server"}],"mode":"default"}]}],"children":[{"nodeType":"overview-section-wrapper","children":[{"nodeType":"header","level":1,"label":"Account API (1.0.0)","showPageActions":true},{"nodeType":"overview-section-wrapper","children":[{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The Account API creates and manages customer accounts, billing addresses, and primary contact information in Hauler Hero. See the "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"/account-integration"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Account API Integration Guide"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for setup, field requirements, and response codes."},"children":[]}]}]}]}],"sectionId":"/account"}],"sectionId":"/account"}]}]}},{"label":"Create a new account","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/account/other/createaccount","routeSlug":"/account/other/createaccount","metadata":{"seo":{"title":"Create a new account","description":"Creates a new customer account with billing address and primary contact information"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"createAccount","name":"Create a new account","isWebhook":false,"pointer":"/paths/~1hero-api~1v1~1accounts/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Create a new account","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"Creates a new customer account with billing address and primary contact information"},{"nodeType":"security","requirements":[{"schemes":[{"name":"apiKey","scopes":[],"type":"apiKey","in":"header","paramName":"HERO-API-KEY","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"API key for authenticating requests."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"To obtain an API key:"},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Contact your account manager"},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Email: api-support@haulerhero.com"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Include in request header: "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"HERO-API-KEY: your_api_key_here"},"children":[]}]}]}]}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/AccountView","exampleIds":["paths/~1hero-api~1v1~1accounts/post/requestBody/content/application~1json/examples/newAccount"]}},"schemaId":"components/schemas/AccountView","exampleIds":["paths/~1hero-api~1v1~1accounts/post/requestBody/content/application~1json/examples/newAccount"],"pointer":"/paths/~1hero-api~1v1~1accounts/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/hero-api/v1/accounts","servers":[{"url":"/_mock/account","description":"Mock server","isMockServer":true},{"url":"https://api.haulerhero.com","description":"Production server"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"apiKey","type":"apiKey","name":"HERO-API-KEY","in":"header"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"components/schemas/AccountView","exampleIds":["paths/~1hero-api~1v1~1accounts/post/requestBody/content/application~1json/examples/newAccount"]}},"responseCodes":["200","400","401","409"],"pointer":"/hero-api/v1/accounts","href":"other/createaccount","openApiOperationId":"createAccount","summary":"Create a new account"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/account","description":"Mock server","isMockServer":true},{"url":"https://api.haulerhero.com","description":"Production server"}],"schemaId":"components/schemas/AccountView","exampleIds":["paths/~1hero-api~1v1~1accounts/post/requestBody/content/application~1json/examples/newAccount"],"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/AccountView","exampleIds":["paths/~1hero-api~1v1~1accounts/post/requestBody/content/application~1json/examples/newAccount"]}},"examples":[{}]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Account created successfully","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/AccountView","exampleIds":["paths/~1hero-api~1v1~1accounts/post/responses/200/content/application~1json/examples/success"]}},"schemaId":"components/schemas/AccountView","exampleIds":["paths/~1hero-api~1v1~1accounts/post/responses/200/content/application~1json/examples/success"]},{"code":"400","description":"Invalid input - missing required fields or invalid format"},{"code":"401","description":"Unauthorized - invalid or missing API key"},{"code":"409","description":"Conflict - account already exists with this name"}],"pointer":"/paths/~1hero-api~1v1~1accounts/post/responses"}],"panels":[{"children":[{"kind":"response","headerTitle":"Response","responseCodes":[{"code":"200","schemaId":"components/schemas/AccountView","exampleIds":["paths/~1hero-api~1v1~1accounts/post/responses/200/content/application~1json/examples/success"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/AccountView","exampleIds":["paths/~1hero-api~1v1~1accounts/post/responses/200/content/application~1json/examples/success"]}}},{"code":"400"},{"code":"401"},{"code":"409"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/other/createaccount"}],"panels":[]}]},"httpPath":"/hero-api/v1/accounts"}],"store":{"schemaStore":{"components/schemas/AccountView":{"id":"components/schemas/AccountView","kind":"json-schema","title":"AccountView","data":{"type":"object","required":["accountName"],"properties":{"accountId":{"type":"string","description":"Unique identifier for the account (auto-generated)","readOnly":true,"example":"acc-789xyz"},"accountNumber":{"type":"string","description":"Unique account number (auto-generated)","readOnly":true,"example":"ACC-2024-0001"},"accountName":{"type":"string","description":"Name of the account/company","minLength":1,"maxLength":200,"example":"Acme Corporation"},"billingAddress":{"$ref":"#/components/schemas/AddressView"},"primaryContact":{"$ref":"#/components/schemas/ContactView"}}}},"components/schemas/AddressView":{"id":"components/schemas/AddressView","kind":"json-schema","title":"AddressView","data":{"type":"object","properties":{"addressId":{"type":"string","description":"Unique identifier for the address (auto-generated)","readOnly":true,"example":"addr-123"},"street":{"type":"string","maxLength":100,"example":"123 Main St"},"unit":{"type":"string","maxLength":20,"example":"Suite 100"},"city":{"type":"string","maxLength":50,"example":"San Francisco"},"state":{"type":"string","maxLength":2,"pattern":"^[A-Z]{2}$","example":"CA"},"country":{"type":"string","maxLength":50,"example":"USA"},"zip":{"type":"string","pattern":"^\\d{5}(-\\d{4})?$","example":"94105"}}}},"components/schemas/ContactView":{"id":"components/schemas/ContactView","kind":"json-schema","title":"ContactView","data":{"type":"object","properties":{"contactId":{"type":"string","description":"Unique identifier for the contact (auto-generated)","readOnly":true,"example":"cont-456"},"firstName":{"type":"string","maxLength":50,"example":"John"},"lastName":{"type":"string","maxLength":50,"example":"Doe"},"email":{"type":"string","format":"email","maxLength":100,"example":"john.doe@acme.com"},"phone":{"type":"string","pattern":"^[+]?[\\d\\s()-]+$","maxLength":20,"example":"+1-555-0123"}}}}},"exampleStore":{"paths/~1hero-api~1v1~1accounts/post/requestBody/content/application~1json/examples/newAccount":{"value":{"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"}},"key":"newAccount","summary":"New account example","id":"paths/~1hero-api~1v1~1accounts/post/requestBody/content/application~1json/examples/newAccount"},"paths/~1hero-api~1v1~1accounts/post/responses/200/content/application~1json/examples/success":{"value":{"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"}},"key":"success","summary":"success","id":"paths/~1hero-api~1v1~1accounts/post/responses/200/content/application~1json/examples/success"}},"securitySchemeStore":{"apiKey":{"id":"apiKey","type":"apiKey","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"API key for authenticating requests."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"To obtain an API key:"},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Contact your account manager"},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Email: api-support@haulerhero.com"},"children":[]}]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Include in request header: "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"HERO-API-KEY: your_api_key_here"},"children":[]}]}]}],"in":"header","paramName":"HERO-API-KEY"}},"servers":[{"url":"/_mock/account","isMockServer":true,"description":"Mock server"},{"url":"https://api.haulerhero.com","description":"Production server"}]},"options":{"hideSidebar":true,"mockServer":{"url":"/_mock/account","position":"first","description":"Mock server"},"disableRouter":true,"downloadUrls":[{"url":"/_bundle/account.json?download"},{"url":"/_bundle/account.yaml?download"}],"excludeFromSearch":false,"specType":"openapi","markdocOptions":{"tags":{},"nodes":{},"components":{}},"metadata":{"title":"Account API","description":"The Account API creates and manages customer accounts, billing addresses, and primary contact information in Hauler Hero. See the [Account API Integration Guide](/account-integration) for setup, field requirements, and response codes.\n"}},"baseSlug":"/account","routesMapping":{}}