# CreateALGOrder

Create an Avalara License Guidance order

`POST /licensesuite/endpoint.php`

**API:** Avalara License Guidance Order API
**Tag:** Orders
**API Version:** 1.0.0
**Base URL:** https://www.businesslicenses.com
**Authentication:** API Key (`Authorization` in header)

Source: https://developer.avalara.com/products/registration-and-licensing/api/license-guidance-order/methods/Orders/CreateALGOrder/

## Description

Creates a new order for business license compliance processing. This endpoint accepts business information, location data, and business activities to generate a license report. The API validates the API key and processes the submitted data, including location validation and business activity classification.

## Request Body

**Content-Type:** `application/x-www-form-urlencoded`

## Responses

| Status | Description | Schema |
|---|---|---|
| 200 | Returns the created order details, including the order number and order URL |  |
| 400 | Returns a validation error for an invalid request |  |
| 401 | Returns an authentication error for an invalid API key or token |  |
| 403 | Returns an authorization error when automation is not enabled for the entity |  |
| 500 | Returns an internal server error message |  |

## Example Request

```bash
curl -X POST "https://www.businesslicenses.com/licensesuite/endpoint.php" \
  -H "Authorization: Basic <credentials>" \
  -H "Accept: application/json" \
  -d '{
  "key": "your_key_here",
  "first_name": "John",
  "last_name": "Doe",
  "business_name": "Acme Corporation",
  "business_type": "Corporation",
  "phone": "555-123-4567",
  "email": "john.doe@acme.com",
  "entity_order_id": "EXT-ORDER-123",
  "business_activity": "Software Development",
  "account_id": "ACC-12345",
  "display_totals_by_jurisdiction": 1,
  "partner_redirect": "https://partner.com/redirect",
  "business_activity_ids[0]": "14-39-164-121",
  "industry_keyword_ids[]": [
    146
  ],
  "industry_activity_ids[]": [
    121
  ],
  "answers[0][question]": "Incorporated Type",
  "answers[0][answer]": "Corporation",
  "answers[1][question]": "Incorporated State",
  "answers[1][answer]": "NY",
  "answers[2][question]": "DBA",
  "answers[2][answer]": "No",
  "answers[3][question]": "Employees",
  "answers[3][answer]": "No",
  "answers[4][question]": "Residential or Commercial",
  "answers[4][answer]": "Residential",
  "parameters": {
    "custom_field": "value"
  },
  "location[address1]": "123 Main St",
  "location[city]": "New York",
  "location[state]": "NY",
  "location[postal_code]": "10952",
  "location[county]": "New York County",
  "location[country]": "US"
}'
```