Retrieve GiftAid id for User
GET/v1/users/:id/has-gift-aid
Returns the most recent gift aid id for a given user, returns 404 not found if no gift aid exists.
Request​
Path Parameters
id integerrequired
Id of the user.
Responses​
- 200
- 401
- 404
Successfully retrieved GiftAid id for User
- application/json
- Schema
- Example (from schema)
Schema
data
object
id string
Example:
giftaid_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
object string
Example:
id
{
"data": {
"id": "giftaid_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
},
"object": "id"
}
Unauthorized
The specified resource was not found
- application/json
- Schema
- Example (from schema)
Schema
error
object
code string
Example:
not_found
title string
Example:
Resource not found
message string
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"
}
}
Loading...