updatePayment
updatePaymentUpdates a payment's invoice allocations using a required non-empty payment_parts array, so you can correct how the payment amount is distributed across invoices.
Instructions
Update a payment's invoice allocations. The API requires a non-empty request body with payment_parts.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"paymentId": "<paymentId>",
"payment_parts": "<payment_parts>"
},
"name": "updatePayment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paymentId | Yes | The unique identifier (UUID) of the payment to update. | |
| __userContext | No | Internal user context for multi-tenant authentication and approval workflow | |
| payment_parts | Yes | Updated array of invoice allocations. Each element: {invoice_id: 'UUID', amount: 10000}, with amount in cents. This field is required by the API. |