Docs

Create Order Type Effect

POST /order-types/{typeId}/effects

POST/order-types/{typeId}/effects

Adds an effect to an order type and returns its id. Conditions and outputs may reference only what the type places. Core conditions may test name, declaredStatus (eq, in or changed, with order statuses) and the quoteUploaded, quoteChosen and invoiceUploaded events (eq true); a document event notifies once per document. Needs Order.Configure at the organization.

Path Parameters

FieldTypeRequiredDescription
typeIduuidRequired

Request Body

FieldTypeRequiredDescription
namestringOptional
indexintegerOptional
rootLogicstringOptional
groupsCreateOrderTypeEffectRequestConditionGroup[]Optional
outputsCreateOrderTypeEffectRequestOutput[]Optional

CreateOrderTypeEffectRequestConditionGroup

FieldTypeDescription
logicstring| null
thresholdinteger| null
conditionsCreateOrderTypeEffectRequestCondition[]| null

CreateOrderTypeEffectRequestOutput

FieldTypeDescription
typestring| null
subjectTemplatestring| null
bodyTemplatestring| null
recipientsCreateOrderTypeEffectRequestOutputRecipient[]| null
roleDefinitionIduuid| null
targetAttributeIduuid| null
requiredboolean| null
isRequiredboolean| null
isTaskTrackedboolean| null
isTaskReviewRequiredboolean| null
fillSourcestring| null
sourceQuestionIduuid| null
sourceRoleDefinitionIduuid| null
fillValuestring| null

CreateOrderTypeEffectRequestCondition

FieldTypeDescription
sourceKindstring| null
sourceIduuid| null
sourcePathstring| null
operatorstring| null
valuestring| null

CreateOrderTypeEffectRequestOutputRecipient

FieldTypeDescription
crewIduuid| null
roleDefinitionIduuid| null
channelstring| null

Response

Type: uuid