invoicing_upsertPurchaseInvoice

WRITE

Upsert purchase invoice.

Parameters

supplierIdstringrequired
locationIdstringrequired
idstringoptional
invoiceIdstringoptional
supplierReferencestringoptional
paymentTermIdstringoptional
currencyCodestringoptional
invoiceSupplierIdstringoptional
invoiceSupplierContactIdstringoptional
invoiceSupplierLocationIdstringoptional
dateIssuedstringoptional
dateDuestringoptional
supplierShippingCostnumberoptional
exchangeRatenumberoptional
exchangeRateUpdatedAtstringoptional

Call it

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

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

Input schema

The raw JSON Schema the tool validates its arguments against.

schema
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "invoiceId": {
      "type": "string"
    },
    "supplierId": {
      "type": "string"
    },
    "supplierReference": {
      "type": "string"
    },
    "paymentTermId": {
      "type": "string"
    },
    "currencyCode": {
      "type": "string"
    },
    "locationId": {
      "type": "string"
    },
    "invoiceSupplierId": {
      "type": "string"
    },
    "invoiceSupplierContactId": {
      "type": "string"
    },
    "invoiceSupplierLocationId": {
      "type": "string"
    },
    "dateIssued": {
      "type": "string"
    },
    "dateDue": {
      "type": "string"
    },
    "supplierShippingCost": {
      "type": "number"
    },
    "exchangeRate": {
      "type": "number"
    },
    "exchangeRateUpdatedAt": {
      "type": "string"
    }
  },
  "required": [
    "supplierId",
    "locationId"
  ]
}