ordercloud.payments.patch
Updates an OrderCloud payment partially by order ID, direction, and payment ID, letting you change fields like amount, status, or type without replacing the full payment.
Instructions
Update an OrderCloud payment (partial update)
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": {
"orderId": "<orderId>",
"direction": "<direction>",
"paymentId": "<paymentId>",
"payment": "<payment>"
},
"name": "ordercloud.payments.patch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| orderId | Yes | The order ID | |
| payment | Yes | Partial payment object with fields to update | |
| direction | Yes | Order direction | |
| paymentId | Yes | The payment ID to update |