sales_insertSalesOrder

WRITE

Create a new sales order with all business logic - generates sequence, creates opportunity, resolves payment/shipping defaults from customer. LLM can create a sales order with just customerId..

Parameters

customerIdstringrequired
salesOrderIdstringoptional
locationIdstringoptional
statusstringoptional
currencyCodestringoptional
orderDatestringoptional
customerContactIdstringoptional
customerLocationIdstringoptional
quoteIdstringoptional
opportunityIdstringoptional
requestedDatestringoptional
promisedDatestringoptional
notesstringoptional
customFieldsanyoptional

Call it

Invoke it through the call_tool meta-tool with its arguments:

call_tool
call_tool({
  "name": "sales_insertSalesOrder",
  "arguments": {
    "customerId": "string"
  }
})

Input schema

The raw JSON Schema the tool validates its arguments against.

schema
{
  "type": "object",
  "properties": {
    "customerId": {
      "type": "string"
    },
    "salesOrderId": {
      "type": "string"
    },
    "locationId": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "currencyCode": {
      "type": "string"
    },
    "orderDate": {
      "type": "string"
    },
    "customerContactId": {
      "type": "string"
    },
    "customerLocationId": {
      "type": "string"
    },
    "quoteId": {
      "type": "string"
    },
    "opportunityId": {
      "type": "string"
    },
    "requestedDate": {
      "type": "string"
    },
    "promisedDate": {
      "type": "string"
    },
    "notes": {
      "type": "string"
    },
    "customFields": {}
  },
  "required": [
    "customerId"
  ]
}