Orders
Create an Order
Creates a new order.
POST
Overview
The request payload should include all necessary details about the order, such as the location, assessment types, responsible party information, metadata, and any attachments related to the order. The order may contain multiple assessments and attachments based on the assessment type.
Key Details
- Assessments: Each order can have one or more assessments. An assessment must include key information such as the location, asset type, assessment type, and responsible party.
- Required Attachment: If the
assessment_type
isDraw
, aSCOPE_OF_WORK
attachment is required. This attachment should contain details like budgets, funding, and requested amounts for the work. - Attachments: Attachments are optional but may be included depending on the assessment_type.
- The allowed attachment types are:
JSON
: Structured data (e.g., scope of work details like budget, funding, and requested amounts).URL
: A link to an external resource (such as an image or document related to the assessment).Base64
: Encoded binary data, suitable for including files or images directly in the request.
- The allowed attachment types are:
- Webhook: Optionally, a
webhook
URL can be specified to receive real-time notifications for events related to this order. This URL will be triggered when the status of the order changes or updates are available. - Metadata: The
metadata
field allows for external metadata to be added to the order in the form of key-value pairs. This can be useful for tracking additional information or enabling filtering of orders based on the metadata provided. For example, metadata could include custom identifiers or details that help the customer categorize or track orders.
Allowed Content Types for Attachments:
JSON
: Used for structured data (e.g., scope of work details, including budget and requested amounts). Example:URL
: A link to an external resource, such as an image or document related to the assessment.Base64
: Encoded binary data, typically used for including files or images directly within the request.
Please Note: If the assessment_type
is Draw
, a SCOPE_OF_WORK
attachment is required.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
List of assessments for the order
Name of the order
Example:
"Property inspection"
Description of the order
Example:
"Description of the property inspection order"
External ID of the order
Example:
"project123"
Response
201 - application/json
Create new order
Links related to the order
Was this page helpful?