Grants
Create Grant
Create and submit a new grant. This should be used to capture a grant intent from an authorized DAFpay workflow session and submit the grant request to the DAF sponsor. On initial creation of the grant, this request will return a 201 Created status. On subsequent requests, the request will return status 200 OK.
<Warning> Error handling: - The grant must be captured within 15 minutes of authorization otherwise the request will return status `410 Gone`. - If this request is submitted while this grant is already being processed, the request 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. </Warning>post/v1/grants
Request body
Example request
{
"amount": 15000,
"applicationFeeAmount": 3000
}Response
The grant
Example response
{
"id": "cfe09e64-6a74-4dab-a565-361185a6f248",
"userFriendlyId": "chariot-1234455",
"trackingId": "L9E182VBGP",
"workflowSessionId": "2d4b2a43-a5b4-4be1-ad1f-f932016ca4a6",
"fundId": "daf-id",
"externalGrantId": "897823sdjf8sfjs",
"createdAt": "2020-01-31T23:00:00Z",
"updatedAt": "2020-01-31T23:59:59Z",
"amount": 15000,
"status": "Initiated",
"feeDetail": {
"total": 1500,
"contributions": [
{
"name": "Chariot",
"amount": 1500,
"feeType": "chariot"
}
]
},
"firstName": "Warren",
"lastName": "Buffet",
"phone": "1237861020",
"email": "warrenBuffet@example.com",
"note": "Please dedicate in memory of grandma",
"statuses": [
{
"id": "cfe09e64-6a74-4dab-a565-361185a6f248",
"createdAt": "2020-01-31T23:00:00Z",
"status": "Initiated",
"comment": "The grant has been received by the nonprofit"
}
],
"paymentChannel": "direct"
}