Nonprofits
Create nonprofit
Create a nonprofit organization.
This is useful for integration partners to use after a nonprofit consents to use the Chariot payment option on their donation forms.
<Tip> If a nonprofit does not already exist for the EIN, this will return a `201 Created` status. If a nonprofit already exists for the given EIN on the system, this will return a `200 OK` status. </Tip> <Warning> Handling errors: - If the nonprofit does not exist within Chariot's database, a `404 Not Found` status is returned. - If the nonprofit exists but does not pass Chariot's compliance checks, a `412 Precondition Failed` status is returned with a reason. </Warning>post/v1/nonprofits
Request body
Example request
{
"user": {
"email": "ben.give@co.com",
"phone": "9127772424",
"firstName": "Ben",
"lastName": "Give"
},
"ein": "043567500"
}Response
OK
Example response
{
"id": "g33ee4ee-f881-42a0-85e3-1dde7118w9k2",
"name": "Leading for Children",
"preferredName": "LfC",
"ein": "043567500",
"suborganizations": [
{
"id": "g33ee4ee-f881-42a0-85e3-1dde7118w9k2",
"name": "Leading for Children",
"preferredName": "LfC",
"createdAt": "2020-01-31T23:00:00Z",
"updatedAt": "2020-01-31T23:59:59Z"
}
],
"createdAt": "2020-01-31T23:00:00Z",
"updatedAt": "2020-01-31T23:59:59Z",
"inGoodStanding": true
}