invoicing_applyCreditsToInvoices
WRITEApply credits to invoices.
Parameters
paymentIdstringrequiredappliedDatestringrequiredsideenumrequiredapplicationsobject[]requiredCall it
Invoke it through the call_tool meta-tool with its arguments:
call_tool
call_tool({
"name": "invoicing_applyCreditsToInvoices",
"arguments": {
"paymentId": "string",
"appliedDate": "string",
"side": "string",
"applications": []
}
})Input schema
The raw JSON Schema the tool validates its arguments against.
schema
{
"type": "object",
"properties": {
"paymentId": {
"type": "string"
},
"appliedDate": {
"type": "string"
},
"side": {
"type": "string",
"enum": [
"sales",
"purchase"
]
},
"applications": {
"type": "array",
"items": {
"type": "object",
"properties": {
"memoId": {
"type": "string"
},
"invoiceId": {
"type": "string"
},
"amount": {
"type": "number"
}
},
"required": [
"memoId",
"invoiceId",
"amount"
]
}
}
},
"required": [
"paymentId",
"appliedDate",
"side",
"applications"
]
}