Grants
Sandbox: Cancel a grant
Simulates the DAF sponsor canceling the grant. Transitions the grant status to canceled.
<Note title="Sandbox Only" icon="fa-light fa-atom-simple"> This API is only available in the sandbox environment. </Note>post/v1/simulations/grants/{id}/cancel
Path parameters
idstring uuid required
The unique identifier for the grant.
Response
The updated grant
Example response
{
"id": "cfe09e64-6a74-4dab-a565-361185a6f248",
"userFriendlyId": "chariot-1234455",
"trackingId": "L9E182VBGP",
"workflowSessionId": "2d4b2a43-a5b4-4be1-ad1f-f932016ca4a6",
"fundId": "daf-id",
"donor_account_id": "donor_account_01jpjenf5q6cawy43yxfcrxhct",
"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": "awaiting_daf_submission",
"comment": "The grant has been received by the nonprofit"
}
],
"paymentChannel": "direct"
}