sales_upsertSalesOrder

WRITE

Upsert sales order.

Parameters

customerIdstringrequired
locationIdstringrequired
idstringoptional
salesOrderIdstringoptional
orderDatestringoptional
requestedDatestringoptional
promisedDatestringoptional
statusstringoptional
notesstringoptional
customerLocationIdstringoptional
customerContactIdstringoptional
customerEngineeringContactIdstringoptional
customerReferencestringoptional
quoteIdstringoptional
currencyCodestringoptional
exchangeRatenumberoptional
exchangeRateUpdatedAtstringoptional
salesPersonIdstringoptional

Call it

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

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

Input schema

The raw JSON Schema the tool validates its arguments against.

schema
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "salesOrderId": {
      "type": "string"
    },
    "orderDate": {
      "type": "string"
    },
    "requestedDate": {
      "type": "string"
    },
    "promisedDate": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "notes": {
      "type": "string"
    },
    "customerId": {
      "type": "string"
    },
    "customerLocationId": {
      "type": "string"
    },
    "customerContactId": {
      "type": "string"
    },
    "customerEngineeringContactId": {
      "type": "string"
    },
    "customerReference": {
      "type": "string"
    },
    "quoteId": {
      "type": "string"
    },
    "locationId": {
      "type": "string"
    },
    "currencyCode": {
      "type": "string"
    },
    "exchangeRate": {
      "type": "number"
    },
    "exchangeRateUpdatedAt": {
      "type": "string"
    },
    "salesPersonId": {
      "type": "string"
    }
  },
  "required": [
    "customerId",
    "locationId"
  ]
}