> For the complete documentation index, see [llms.txt](https://chekin.gitbook.io/chekin-public-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://chekin.gitbook.io/chekin-public-api/api-reference/stats/create-stat-account.md).

# Create Stat Account

The "Create Stat Account" endpoint enables users to set up a new statistical account for reporting purposes. This functionality is vital for accommodation providers or property managers who are obligated to submit statistical data to local or regional authorities, allowing them to automate and streamline this process by connecting their housing units to the relevant stat accounts

### **Header Parameters:**

* **Authorization** *(string) <mark style="color:red;">**\***</mark>**Mandatory***\
  Required for authentication and authorization. You'll need to include a valid token here to access the Stats requests

### Body Parameters:

* **type** (*string*)\
  Specifies the type of statistical account, indicating the service or entity it is associated with
* **username** (*string*)\
  The username required to access the statistical account
* **password** (*string*)\
  The password associated with the statistical account
* **external\_housing\_id** (*string, uuid*)\
  The unique identifier of the housing or property associated with this account for statistical reporting
* **external\_location\_id** (*string*)\
  An identifier that may link the account to a specific location or region for targeted statistical analysis
* **id\_camera** (*string*)
* **delay** (*string*)\
  Specifies if there is a scheduled delay for the submission of statistical data
* **local\_send\_time** (*string, hour*)\
  The preferred time of day for sending data to the statistical body data
* **send\_mode** (*string*)\
  Defines the mode or method of data transmission (e.g., automatic, manual)
* **housing** (*string, uuid*)\
  Identifier for the housing on Chekin

{% openapi src="/files/2YNWdcD7SWYAbJN2lC4R" path="/stat-accounts" method="post" %}
[Chekin-Chekin-1.0.0-resolved.json](https://3564732132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfAJzL2tAGO9ZwOToBa0R%2Fuploads%2Fgit-blob-0641a0e07e27281f11fe82de446c7229bfe15c1e%2FChekin-Chekin-1.0.0-resolved.json?alt=media)
{% endopenapi %}
