Apply pledge payment

Applies a payment to a pledge with the pledge's own codes.

POST https://cotlet.dev/api/v1/donorperfect/donors/{donor_id}/pledges/{pledge_id}/payment/apply

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

Parameters: apply_pledge_payment
NameTypeDescription
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.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/donorperfect/donors/51907/pledges/77120/payment/apply \
  -H "Authorization: Bearer $COTLET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"amount":100}'
Python
result = client.call("donorperfect", "apply_pledge_payment", {"donor_id":51907,"pledge_id":77120,"amount":100})
Node.js
const result = await cotlet.call('donorperfect', 'apply_pledge_payment', {"donor_id":51907,"pledge_id":77120,"amount":100});
CLI
cotlet call donorperfect apply_pledge_payment --data '{"donor_id":51907,"pledge_id":77120,"amount":100}'

Example response

JSON

{
  "payment_gift_id": 91002,
  "donor_id": 51907,
  "pledge_id": 77120,
  "amount": 100,
  "date": "2026-10-22",
  "status": "applied"
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.