recurring_grants
Create Recurring Grant
Create and submit a new recurring grant. This should be used to capture a recurring grant intent from an authorized DAFpay workflow session and submit the recurring grant request to the DAF sponsor.
<Warning> Error handling: - The recurring grant must be captured within 15 minutes of authorization otherwise the request will return status `410 Gone`. - A recurring grant can only be captured once from any given workflow session so any duplicate requests will return status `409 Conflict`. - The amount must be in whole dollar increments (rounded to the nearest hundred) as currently DAFs only accept whole dollar grants otherwise the request will return status `400 Bad Request`. - The amount must be greater than or equal to the minimum grant amount for the DAF otherwise the request will return status `400 Bad Request`. - The amount must be less than or equal to the user's DAF account balance otherwise the request will return status `400 Bad Request`. - Any inputs exceeding the maximum allowed length will be automatically truncated unless otherwise stated. </Warning>post/v1/recurring_grants
Request body
Example request
{
"frequency": "MONTHLY",
"amount": 15000,
"applicationFeeAmount": 3000
}Response
Created recurring grant
Example response
{
"id": "cfe09e64-6a74-4dab-a565-361185a6f248",
"trackingId": "L9E182VBGP",
"workflowSessionId": "2d4b2a43-a5b4-4be1-ad1f-f932016ca4a6",
"fundId": "daf-id",
"frequency": "MONTHLY",
"externalRecurringGrantId": "897823sdjf8sfjs",
"createdAt": "2020-01-31T23:00:00Z",
"updatedAt": "2020-01-31T23:59:59Z",
"amount": 15000,
"firstName": "Warren",
"lastName": "Buffet",
"phone": "1237861020",
"email": "warrenBuffet@example.com",
"note": "Please dedicate in memory of grandma"
}