Apply pledge payment
Applies a payment to a pledge with the pledge's own codes.
MCP tool donorperfect_write → apply_pledge_payment
write Confirm
Uses Apply payment on the pledge, so the gift data comes from the pledge and nothing is edited by hand. It saves one payment of the amount you give and returns its gift_id. It does not change the pledge or its Schedule of payments. Take pledge_id from list_pledges. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| donor_id integer required | integer | Donor ID from search_donors. |
| pledge_id integer required | integer | Pledge ID from list_pledges. |
| amount number required | number | Payment amount. |
| date date | date | Payment date. Default: the date DonorPerfect fills in. |
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "donorperfect_write",
"arguments": {
"operation": "apply_pledge_payment",
"arguments": {
"donor_id": 51907,
"pledge_id": 77120,
"amount": 100
}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"payment_gift_id": 91002,
"donor_id": 51907,
"pledge_id": 77120,
"amount": 100,
"date": "2026-10-22",
"status": "applied"
},
"isError": false
}