Skip to main content

Schedule

The Schedule Payment API sets up recurring or future-dated payments.


Endpoint

/v1/External/SchedulePayment

Http Request Method

POST

Request Header

See authorization.

Request Body

note

* Indicates required field.
* Required when using a credit card.
* Indicates suggested field.
* Required when using ACH.

NameTypeDescriptionChild Attributes
orgGUID *stringIdentifier for the organization receiving the funds.Placeholder
amount doubleTotal sum to be paid in the schedule, including initial payment.Placeholder
paymentMethodId stringMethod of payment, format as follows:
OJC
Credit_Card
Matbia
Pledger
Donors_Fund
ACH
Placeholder
note stringAdditional note for the payment.Placeholder
paymentDate stringDate and time of the payment in UTC format.Placeholder
uniqueTransactionId *stringUnique identifier for the transaction in GUID format.Placeholder
currency *stringCurrency of the transaction, the following currencies are supported:
USD
ILS
EUR
CAD
GBP
Placeholder
⚠️ Your account needs to be set up to accept the necessary currencies.

Response

NameTypeDescriptionChild Attributes
scheduleNum intIdentifier for the payment schedule.Placeholder
scheduleTotal intTotal amount charged for the schedule.Placeholder
receiptNum stringReceipt number associated with the payment.Placeholder
amount intAmount of the payment.Placeholder
accountId intAccount ID of the donor associated with the payment.Placeholder
currency stringCurrency code used for the payment.Placeholder
paymentStatus stringStatus of the payment:
Success
Failed
Placeholder
responseTitle stringStatusPlaceholder

Example:

cURL:

curl --location 'https://sandbox-api.donary.com/v1/External/SchedulePayment' \
--header 'APIKey: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{"amount":1,"bankAccount":{"accountNum":null,"accountType":null,"checkType":null,"nameOnAccount":null,"routingNum":null},"campaign":{"campaignName":"BaisMedresh","campaignNum":1001},"card":{"ccNum":"4242424242424242","cvv":"666","expiry":"12/28"},"currency":"USD","donor":{"accountNum":"DNR1015","firstName":"Moshe","lastName":"Green","phoneNumber":"2162544878"},"note":"TestSchedule","orgGUID":"115e9d3d-baf2-4089-b896-9b2621ffcf1b","paymentDate":"2024-12-15","paymentMethodId":"Credit_Card","reason":null,"reasons":[{"reasonAmount":1,"reasonName":"KerenHabinyan","reasonNum":55555},{"reasonAmount":9,"reasonName":"Mamudes","reasonNum":1001}],"scheduleDetails":{"amountPerPayment":1,"firstPaymentAmount":1,"frequencyID":"Daily","startDate":"2024-12-15","totalPaymentsCount":10},"uniqueTransactionId":"5f10f1a9-4d5f-ef48-03b4-e44428e1e60e892"}'

Payload:

{
"amount": 1,
"bankAccount": {
"accountNum": null,
"accountType": null,
"checkType": null,
"nameOnAccount": null,
"routingNum": null
},
"campaign": {
"campaignName": "BaisMedresh",
"campaignNum": 1001
},
"card": {
"ccNum": "4242424242424242",
"cvv": "666",
"expiry": "12/28"
},
"currency": "USD",
"donor": {
"accountNum": "DNR1015",
"firstName": "Moshe",
"lastName": "Green",
"phoneNumber": "2162544878"
},
"note": "TestSchedule",
"orgGUID": "115e9d3d-baf2-4089-b896-9b2621ffcf1b",
"paymentDate": "2024-12-15",
"paymentMethodId": "Credit_Card",
"reason": null,
"reasons": [
{
"reasonAmount": 1,
"reasonName": "KerenHabinyan",
"reasonNum": 55555
},
{
"reasonAmount": 9,
"reasonName": "Mamudes",
"reasonNum": 1001
}
],
"scheduleDetails": {
"amountPerPayment": 1,
"firstPaymentAmount": 1,
"frequencyID": "Daily",
"startDate": "2024-12-15",
"totalPaymentsCount": 10
},
"uniqueTransactionId": "5f10f1a9-4d5f-ef48-03b4-e44428e1e60e892"
}

Response:

{
"scheduleNum": null,
"scheduleTotal": null,
"receiptNum": "1288-1",
"amount": 10.0000,
"accountNum": "DNR1015",
"currency": "USD",
"paymentStatus": "Success",
"responseTitle": "Success !!",
"error": {
"errorCode": null,
"message": null
}
}