Docs

Create Order Type Document

POST /order-types/{typeId}/documents

POST/order-types/{typeId}/documents

Attaches a document template to the order type with a source for each input; every required input needs one. Returns the new id. documentTemplateId from DynamicDocs_GetDocumentTemplates. Needs Order.Configure at the organization.

Path Parameters

FieldTypeRequiredDescription
typeIduuidRequired

Request Body

FieldTypeRequiredDescription
documentTemplateIduuidOptional
namestringOptional
inputsCreateOrderTypeDocumentRequestInput[]Optional

CreateOrderTypeDocumentRequestInput

FieldTypeDescription
filterIduuid
sourceKindstring| null
hostFieldstring| null
eventAttributeIduuid| null
fixedValuesstring[]| null

Response

Type: uuid