> ## Documentation Index
> Fetch the complete documentation index at: https://docs.salesbricks.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Schemas

> In-depth look at webhook payload schemas

### Order

<ResponseField name="id" type="uuid str">
  Salesbricks ID of the Order
</ResponseField>

<ResponseField name="chain_id" type="uuid str">
  Salesbricks Subscription ID of the Order (legacy field name)
</ResponseField>

<ResponseField name="stage" type="str">
  Stage of the Order
</ResponseField>

<ResponseField name="documents_generated_at" type="ISO8601 datetime str">
  Datetime documents were generated at
</ResponseField>

<ResponseField name="created_at" type="ISO8601 datetime str">
  Datetime order was created
</ResponseField>

<ResponseField name="updated_at" type="ISO8601 datetime str">
  Datetime order was last updated
</ResponseField>

<ResponseField name="starts_at" type="ISO8601 datetime str">
  Datetime order starts at
</ResponseField>

<ResponseField name="buyer" type="Buyer">
  Entity which made this order
</ResponseField>

<ResponseField name="crm_account_id" type="str | null">
  ID of the CRM Account / Company which has been linked to this order
</ResponseField>

<ResponseField name="crm_opportunity_id" type="str | null">
  ID of the CRM Opportunity / Deal which has been linked to this order
</ResponseField>

### Buyer

<ResponseField name="id" type="str">
  Buyer company's ID
</ResponseField>

<ResponseField name="external_id" type="str">
  Buyer company's external ID
</ResponseField>

<ResponseField name="first_name" type="str">
  Buyer user's first name
</ResponseField>

<ResponseField name="last_name" type="str">
  Buyer user's last name
</ResponseField>

<ResponseField name="email" type="str">
  Buyer user's email
</ResponseField>

<ResponseField name="company" type="Company">
  Buyer user's Company
</ResponseField>

### Company

<ResponseField name="id" type="str">
  Buyer company's ID
</ResponseField>

<ResponseField name="external_id" type="str">
  Buyer company's external ID
</ResponseField>

<ResponseField name="name" type="str">
  Company name
</ResponseField>

<ResponseField name="address" type="Address">
  Company address
</ResponseField>

### Address

<ResponseField name="line_1" type="str">
  Street address (e.g. 123 Easy Street)
</ResponseField>

<ResponseField name="line_2" type="str">
  Additional address details (e.g. Suite 123)
</ResponseField>

<ResponseField name="city" type="str">
  City
</ResponseField>

<ResponseField name="region" type="str">
  State or region, if applicable
</ResponseField>

<ResponseField name="zip" type="str">
  Zip or postal code
</ResponseField>

<ResponseField name="country" type="str">
  Country name
</ResponseField>

### Current Order SKUs

<ResponseField name="sku" type="SKU">
  The Plan or Brick setup in Salesbricks
</ResponseField>

<ResponseField name="quantity" type="int">
  How many units of the `sku` are included in the Order
</ResponseField>

### SKU

<ResponseField name="name" type="str">
  The name of the SKU
</ResponseField>

<ResponseField name="code" type="str">
  The internal code set for this SKU

  This field is a set aside for your use - Salesbricks doesn't store any data in it
</ResponseField>
