> For the complete documentation index, see [llms.txt](https://docs.imperialcad.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.imperialcad.app/api-and-integrations/api-integrations/civilian-endpoints/create-advanced-character.md).

# Create Advanced Character

This endpoint allows you to create a character with miscellaneous information.

{% hint style="warning" %}
This endpoint requires **an Advanced** ImperialCAD subscription or higher.
{% endhint %}

### CreateAdvancedCharacter(data, callback)

<mark style="color:green;">`POST`</mark> `https://imperialcad.app/api/1.1/wf/createadvancedcharacter`

***

#### Request Body

| Name              | Type   | Description             |
| ----------------- | ------ | ----------------------- |
| `users_discordID` | string | Discord ID of user      |
| `Fname`           | string | First Name              |
| `Mname`           | string | Middle Name             |
| `Lname`           | string | Last Name               |
| `Birthdate`       | string | Date of Birth           |
| `gender`          | string | Gender                  |
| `race`            | string | Race                    |
| `hairC`           | string | Hair Color              |
| `eyeC`            | string | Eye Color               |
| `height`          | string | Height                  |
| `weight`          | string | Weight                  |
| `postal`          | string | Postal                  |
| `address`         | string | Street Name             |
| `city`            | string | City                    |
| `county`          | string | County                  |
| `phonenum`        | string | Phone Number            |
| `dlstatus`        | string | Driver's License Status |
| `citizenid`       | string | Unique Character ID     |

licensedetails = \[

| Name                       | Type    | Description                        |
| -------------------------- | ------- | ---------------------------------- |
| `hasBoatLic`               | boolean | Has boating license?               |
| `hasCDL`                   | boolean | Has commercial driver's license?   |
| `CDLNumber`                | string  | Commercial driver's license number |
| `CDLStatus`                | string  | Commercial driver's license status |
| `hasDL`                    | boolean | Has driver's license?              |
| `DLNumber`                 | string  | Driver's license number            |
| `DLStatus`                 | string  | Driver's license status            |
| `hasFirearmsCertification` | boolean | Has Firearms Certifications?       |
| `hasFishLic`               | boolean | Has Fishing License?               |
| `hasHuntLic`               | boolean | Has Hunting License?               |

***

{% tabs %}
{% tab title="Example" %}

```lua
exports["ImperialCAD"]:NewCharacterAdvanced({
    Fname = "Jane",
    Mname = "A",
    Lname = "Smith",
    Birthdate = "1990-07-15",
    gender = "Female",
    race = "Hispanic",
    hairC = "Blonde",
    eyeC = "Green",
    height = "5'7",
    weight = "145",
    postal = "404",
    address = "555 Clinton Ave",
    city = "Los Santos",
    county = "Blaine",
    state = "San Andreas",
    phonenum = "5558881212",
    licensedetails = {
      hasBoatLic = false,
      hasCDL = true,
      CDLNumber = "CDL5678",
      CDLStatus = "Valid",
      hasDL = true,
      DLNumber = "D7894561",
      DLStatus = "Valid",
      hasFirearmsCertification = true,
      hasFishLic = true,
      hasHuntLic = true
    },
    misc = {
      missing = false
    }
  }, function(success, res)
    if success then print("Advanced character created!") else print("Failed:", res) end
end)
```

{% endtab %}

{% tab title="Response of Example" %}

```lua
{
  "status": "success",
  "response": {
    "ssn": 684699354,
    "DLN": "D7894561",
    "age": 35,
    "name": "Jane A Smith"
  }
}
```

{% endtab %}
{% endtabs %}
