Create Sales Order
Perform Create Sales Order through NikoHealth.
nikohealth_create_sales_orderwritenikohealth
Inputs
- Document Id
document_idexpressionrequiredRequired literal value or workflow expression.
- Patient Id
patient_idexpressionrequiredRequired literal value or workflow expression.
- Service Location Id
service_location_idtextOptional text value.
- Service Location Id Select
service_location_id_selectselectdynamic optionsOptional selected identifier or value. Retrieve allowed values from the dynamic options endpoint.
- Notes
notesexpressionOptional literal value or workflow expression.
- Order Tag Ids
order_tag_idsexpressionOptional literal value or workflow expression.
- Order Tag Ids Select
order_tag_ids_selectmulti_selectdynamic optionsOptional list of selected values. Retrieve allowed values from the dynamic options endpoint.
Outputs
successSuccessorder_idOrder Idorder_urlOrder UrlresourceResourcepatient_idPatient Idservice_location_idService Location Iditem_countItem Counttag_idsTag Idspersisted_order_countPersisted Order Countprovider_resolution_warningProvider Resolution Warninggeneric_fallback_warningGeneric Fallback Warningorder_date_warningOrder Date Warningfailure_categoryFailure Categoryreview_reasonReview ReasonmessageMessageerrorError
Output schema completeness: best_effort_declared
Safety
- External effect
- write
- Confirmation recommended
- No
- Retry safe
- No
- Dry run supported
- No
Schemas
These schemas are first-pass authoring guidance. Runtime validation remains authoritative.
Input schema
{
"type": "object",
"required": [
"document_id",
"patient_id"
],
"properties": {
"notes": {
"description": "Optional literal value or workflow expression.",
"x-workflow-field-type": "expression"
},
"patient_id": {
"description": "Required literal value or workflow expression.",
"x-workflow-field-type": "expression"
},
"document_id": {
"description": "Required literal value or workflow expression.",
"x-workflow-field-type": "expression"
},
"order_tag_ids": {
"description": "Optional literal value or workflow expression.",
"x-workflow-field-type": "expression"
},
"service_location_id": {
"type": "string",
"description": "Optional text value.",
"x-workflow-field-type": "text"
},
"order_tag_ids_select": {
"type": "array",
"items": {
"type": "string"
},
"description": "Optional list of selected values. Retrieve allowed values from the dynamic options endpoint.",
"x-dynamic-options": true,
"x-workflow-field-type": "multi_select"
},
"service_location_id_select": {
"type": "string",
"description": "Optional selected identifier or value. Retrieve allowed values from the dynamic options endpoint.",
"x-dynamic-options": true,
"x-workflow-field-type": "select"
}
},
"additionalProperties": false
}Output schema
{
"type": "object",
"properties": {
"error": {},
"message": {},
"success": {},
"tag_ids": {},
"order_id": {},
"resource": {},
"order_url": {},
"item_count": {},
"patient_id": {},
"review_reason": {},
"failure_category": {},
"order_date_warning": {},
"service_location_id": {},
"persisted_order_count": {},
"generic_fallback_warning": {},
"provider_resolution_warning": {}
},
"additionalProperties": true
}