Retrieve a Validation Request
GET/v1/validation-requests/:id
Retrieve a Validation Request
Request​
Path Parameters
id stringrequired
Id of the Validation Request.
Responses​
- 200
- 400
- 401
- 403
- 404
Successfully retrieved a Validation Request
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
data
object
idstring
Example:
validationrequest_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
namestring
Example:
Some charity
registryNamestring
Example:
National Charities Registry
registryIdstring
Charity's ID in registry
Example:
I34324
emailemailnullable
Example:
test@percent.internal
addressLine1stringnullable
Example:
Testowa street 15
addressLine2stringnullable
Example:
Testowa street 22/15
citystringnullable
Example:
Katowice
postalstringnullable
Example:
44-100
statestringnullable
Example:
Silesia
websitewebsite
Example:
https://percent.internal
organisationIdstringnullable
Example:
organisation_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
countryCodestring
Example:
POL
rejectionReasonstringnullabledeprecated
Reason for rejecting
Possible values: [Organisation is not a nonprofit.
, Organisation didn’t provide sufficient proof of nonprofit status.
, Organisation is a nonprofit but doesn’t have an official registry ID.
, Other
]
rejectionReasonCodestringnullable
Reason code for rejecting
Possible values: [other
, not_eligible
, incorrect_documentation
, not_attributable_to_registry
]
usaGroupExemptbooleannullabledeprecated
createdAtdate-time
Example:
2020-10-13T17:46:54.000Z
deletedAtdate-timenullable
Example:
2020-10-13T17:46:54.000Z
acceptedAtdate-timenullable
Example:
2020-10-13T17:46:54.000Z
rejectedAtdate-timenullable
Example:
2020-10-13T17:46:54.000Z
documents
object[]
idstring
Example:
validationrequestdocument_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
validationRequestIdstring
Example:
validationrequest_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
urlstring
Example:
https://s3-eu-west-1.amazonaws.com/assets.poweredbypercent.com/document.docx
createdAtdate-time
deletedAtdate-timenullable
organisationTypesstring[]
Possible values: [social_impact
, nonprofit
]
objectstring
Example:
validation_request
{
"data": {
"id": "validationrequest_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"name": "Some charity",
"registryName": "National Charities Registry",
"registryId": "I34324",
"email": "test@percent.internal",
"addressLine1": "Testowa street 15",
"addressLine2": "Testowa street 22/15",
"city": "Katowice",
"postal": "44-100",
"state": "Silesia",
"website": "https://percent.internal",
"organisationId": "organisation_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"countryCode": "POL",
"rejectionReasonCode": "other",
"createdAt": "2020-10-13T17:46:54.000Z",
"deletedAt": "2020-10-13T17:46:54.000Z",
"acceptedAt": "2020-10-13T17:46:54.000Z",
"rejectedAt": "2020-10-13T17:46:54.000Z",
"documents": [
{
"id": "validationrequestdocument_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"validationRequestId": "validationrequest_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"url": "https://s3-eu-west-1.amazonaws.com/assets.poweredbypercent.com/document.docx",
"createdAt": "2024-07-29T15:51:28.071Z",
"deletedAt": "2024-07-29T15:51:28.071Z"
}
],
"organisationTypes": [
"social_impact"
]
},
"object": "validation_request"
}
Error validating inputs
- application/json
- Schema
- Example (from schema)
Schema
error
object
codestring
Example:
bad_request
titlestring
Example:
Bad request
messagestring
Example:
One or more of the inputs were invalid
reasonsstring[]
{
"error": {
"code": "bad_request",
"title": "Bad request",
"message": "One or more of the inputs were invalid",
"reasons": [
"pageSize must be greater than or equal to 0"
]
}
}
Unauthorized
Forbidden (scope)
- application/json
- Schema
- Example (from schema)
Schema
error
object
codestring
Example:
forbidden
titlestring
Example:
Forbidden
messagestring
Example:
Access is denied due to missing scope permissions
{
"error": {
"code": "forbidden",
"title": "Forbidden",
"message": "Access is denied due to missing scope permissions"
}
}
The specified resource was not found
- application/json
- Schema
- Example (from schema)
Schema
error
object
codestring
Example:
not_found
titlestring
Example:
Resource not found
messagestring
Example:
This endpoint is unavailable or can not be found
{
"error": {
"code": "not_found",
"title": "Resource not found",
"message": "This endpoint is unavailable or can not be found"
}
}