Create an Eligibility Subscription
POST/v1/eligibility-subscriptions
Create an Eligibility Subscription
Request​
Header Parameters
Idempotency key
- application/json
Body
required
- MOD1
- MOD2
oneOf
Responses​
- 200
- 400
- 401
- 403
Successfully created a Eligibility Subscription
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Array [
]
Array [
]
data
object
eligibilitysubscription_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
organisation_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
validationrequest_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
suggestedActivitySubTags
object[]
nullable
activitysubtag_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
SubTag name
Sport school
tag
object
activitytag_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Tag name
Education
Tag description
2020-10-13T17:46:54.000Z
2020-10-13T17:46:54.000Z
SubTag description
2020-10-13T17:46:54.000Z
2020-10-13T17:46:54.000Z
Possible values: [live
, pending_validation_request
, validation_request_failed
, pending
, cancelled
, cannot_define_eligibility
]
live
results
object
Possible values: [pass
, fail
]
fail
confirmedActivitySubTags
object[]
nullable
activitysubtag_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
SubTag name
Sport school
tag
object
activitytag_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Tag name
Education
Tag description
2020-10-13T17:46:54.000Z
2020-10-13T17:46:54.000Z
SubTag description
2020-10-13T17:46:54.000Z
2020-10-13T17:46:54.000Z
rejectedActivitySubTags
object[]
nullable
Confirmed organisation's activity subtags that are not allowed in partner's configuration
activitysubtag_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
SubTag name
Sport school
tag
object
activitytag_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Tag name
Education
Tag description
2020-10-13T17:46:54.000Z
2020-10-13T17:46:54.000Z
SubTag description
2020-10-13T17:46:54.000Z
2020-10-13T17:46:54.000Z
2020-10-13T17:46:54.000Z
2020-10-13T17:46:54.000Z
eligibility_subscription
{
"data": {
"id": "eligibilitysubscription_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"organisationId": "organisation_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"organisationName": "string",
"partnerId": "string",
"configurationId": "string",
"validationRequestId": "validationrequest_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"suggestedActivitySubTags": [
{
"id": "activitysubtag_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"name": "Sport school",
"tag": {
"id": "activitytag_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"name": "Education",
"description": "string",
"createdAt": "2020-10-13T17:46:54.000Z",
"updatedAt": "2020-10-13T17:46:54.000Z"
},
"description": "string",
"createdAt": "2020-10-13T17:46:54.000Z",
"updatedAt": "2020-10-13T17:46:54.000Z"
}
],
"status": "live",
"results": {
"eligibilityStatus": "fail",
"confirmedActivitySubTags": [
{
"id": "activitysubtag_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"name": "Sport school",
"tag": {
"id": "activitytag_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"name": "Education",
"description": "string",
"createdAt": "2020-10-13T17:46:54.000Z",
"updatedAt": "2020-10-13T17:46:54.000Z"
},
"description": "string",
"createdAt": "2020-10-13T17:46:54.000Z",
"updatedAt": "2020-10-13T17:46:54.000Z"
}
],
"rejectedActivitySubTags": [
{
"id": "activitysubtag_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"name": "Sport school",
"tag": {
"id": "activitytag_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"name": "Education",
"description": "string",
"createdAt": "2020-10-13T17:46:54.000Z",
"updatedAt": "2020-10-13T17:46:54.000Z"
},
"description": "string",
"createdAt": "2020-10-13T17:46:54.000Z",
"updatedAt": "2020-10-13T17:46:54.000Z"
}
]
},
"createdAt": "2020-10-13T17:46:54.000Z",
"updatedAt": "2020-10-13T17:46:54.000Z"
},
"object": "eligibility_subscription"
}
Bad request
- application/json
- Schema
- Example (from schema)
- EntityNotFound
- OrganisationNotActive
- InvalidSubTags
- BadRequest
- IncorrectParams
- OriginalCallInProgress
- SameKeyDifferentData
- KeyInUse
Schema
error
object
{
"error": {
"code": "string",
"title": "string",
"message": "string",
"reasons": [
"string"
]
}
}
Subscription Entity Not Found
{
"error": {
"code": "eligibility_subscription/entity_not_found",
"title": "Bad request",
"message": "Organisation or validation request was not found"
}
}
400 Bad request
{
"error": {
"code": "eligibility_subscription/organisation_not_active",
"title": "Bad request",
"message": "Organisation is not active"
}
}
400 Bad request
{
"error": {
"code": "eligibility_subscription/invalid_sub_tags",
"title": "Bad request",
"message": "At least one of provided suggested subtags is invalid"
}
}
400 Bad Request
{
"error": {
"code": "bad_request",
"title": "Bad request",
"message": "Something is wrong with your request, please check any parameters and try again"
}
}
400 Incorrect Parameters
{
"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"
]
}
}
Idempotency - Original call in progress
{
"error": {
"code": "idempotency/original_call_in_progress",
"title": "Bad request",
"message": "Original call with this idempotency key is still in progress"
}
}
Idempotency - Data has changed from previous request
{
"error": {
"code": "idempotency/same_key_different_data",
"title": "Bad request",
"message": "Data has changed from previous request"
}
}
Idempotency - Key in use
{
"error": {
"code": "idempotency/key_already_in_use",
"title": "Bad request",
"message": "Idempotency Key is already in use"
}
}
Unauthorized
Forbidden (scope)
- application/json
- Schema
- Example (from schema)
Schema
error
object
forbidden
Forbidden
Access is denied due to missing scope permissions
{
"error": {
"code": "forbidden",
"title": "Forbidden",
"message": "Access is denied due to missing scope permissions"
}
}