purchasing_insertPurchaseOrder

WRITE

Create a new purchase order with all business logic - generates sequence, creates supplier interaction, resolves payment/shipping defaults from supplier. LLM can create a PO with just supplierId..

Parameters

supplierIdstringrequired
purchaseOrderIdstringoptional
purchaseOrderTypeenumoptional
locationIdstringoptional
statusstringoptional
currencyCodestringoptional
orderDatestringoptional
supplierContactIdstringoptional
supplierLocationIdstringoptional
supplierQuoteIdstringoptional
receiptRequestedDatestringoptional
supplierReferencestringoptional
notesanyoptional
externalNotesanyoptional
customFieldsanyoptional

Call it

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

call_tool
call_tool({
  "name": "purchasing_insertPurchaseOrder",
  "arguments": {
    "supplierId": "string"
  }
})

Input schema

The raw JSON Schema the tool validates its arguments against.

schema
{
  "type": "object",
  "properties": {
    "supplierId": {
      "type": "string"
    },
    "purchaseOrderId": {
      "type": "string"
    },
    "purchaseOrderType": {
      "type": "string",
      "enum": [
        "Purchase",
        "Return",
        "Outside Processing"
      ]
    },
    "locationId": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "currencyCode": {
      "type": "string"
    },
    "orderDate": {
      "type": "string"
    },
    "supplierContactId": {
      "type": "string"
    },
    "supplierLocationId": {
      "type": "string"
    },
    "supplierQuoteId": {
      "type": "string"
    },
    "receiptRequestedDate": {
      "type": "string"
    },
    "supplierReference": {
      "type": "string"
    },
    "notes": {},
    "externalNotes": {},
    "customFields": {}
  },
  "required": [
    "supplierId"
  ]
}