invoicing_upsertSalesInvoice

WRITE

Upsert sales invoice.

Parameters

customerIdstringrequired
locationIdstringrequired
idstringoptional
invoiceIdstringoptional
customerReferencestringoptional
paymentTermIdstringoptional
currencyCodestringoptional
invoiceCustomerIdstringoptional
invoiceCustomerContactIdstringoptional
invoiceCustomerLocationIdstringoptional
dateIssuedstringoptional
dateDuestringoptional
supplierShippingCostnumberoptional
exchangeRatenumberoptional
exchangeRateUpdatedAtstringoptional

Call it

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

call_tool
call_tool({
  "name": "invoicing_upsertSalesInvoice",
  "arguments": {
    "customerId": "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"
    },
    "customerId": {
      "type": "string"
    },
    "customerReference": {
      "type": "string"
    },
    "paymentTermId": {
      "type": "string"
    },
    "currencyCode": {
      "type": "string"
    },
    "locationId": {
      "type": "string"
    },
    "invoiceCustomerId": {
      "type": "string"
    },
    "invoiceCustomerContactId": {
      "type": "string"
    },
    "invoiceCustomerLocationId": {
      "type": "string"
    },
    "dateIssued": {
      "type": "string"
    },
    "dateDue": {
      "type": "string"
    },
    "supplierShippingCost": {
      "type": "number"
    },
    "exchangeRate": {
      "type": "number"
    },
    "exchangeRateUpdatedAt": {
      "type": "string"
    }
  },
  "required": [
    "customerId",
    "locationId"
  ]
}