Persons
The persons you are able to fetch might be filtered, based upon your service account's organization scope, if applicable. Besides those filters, you can apply additional filters by supplying query parameters to the url.
The collection you are paginating is sorted by creation datetime, descending. This means that the first page contains the most recently created persons.
Filter persons by owning organization uuids (version 4). If not supplied, the owning organization scope of the service account, if applicable, will be used.
["a3c2a57e-2797-4159-8700-8ad55bf8150e"]ISO8601 compatible datetime string
2017-07-21T17:32:28ZFilter persons by IBAN
NL00INGB0000000000Person cursor to fetch results before
a3c2a57e-2797-4159-8700-8ad55bf8150eThe amount of results to fetch before the 'before' cursor
10Person cursor to fetch results after
a3c2a57e-2797-4159-8700-8ad55bf8150eThe amount of results to fetch after the 'after' cursor
10Bad request. Response body shows what the problem is.
Service account not properly authenticated
Service account forbids executing this action
GET /api/v1/persons HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"edges": [
{
"node": {
"uuid": "82b431f0-f401-4afd-b6db-9d1d751232d9",
"academicTitle": "Dr.",
"initials": "B.",
"firstName": "Beth",
"lastNamePrefix": null,
"lastName": "Cormier",
"dateOfBirth": "1978-05-01",
"socialSecurityNumber": "12345678901",
"iban": "NL13ABNA6371362585",
"address": {
"street": "Claudius Prinsenlaan",
"houseNumber": "12",
"houseNumberExtension": null,
"zipCode": "4811DK",
"city": "Breda",
"country": "NL"
},
"phoneNumber": "+31208995262",
"mobilePhoneNumber": "+31611223344",
"email": "[email protected]",
"gender": "male",
"optInEmail": true,
"optInPhone": false,
"optInMail": null,
"optInSms": null,
"language": "nl",
"mandate": {
"createdAt": "2017-07-21T17:32:28Z"
},
"createdAt": "2017-07-21T17:32:28Z",
"owningOrganization": {
"uuid": "2fcc7d41-a72a-4f38-94ff-8a0484b8fc4c",
"name": "Good Cause Charity"
}
},
"cursor": "48094b0e-15b3-430f-ab5a-16ecf12b9171"
}
],
"pageInfo": {
"startCursor": "48094b0e-15b3-430f-ab5a-16ecf12b9171",
"endCursor": "494d74df-6fbc-46a3-811e-1c17230340a1",
"hasPreviousPage": true,
"hasNextPage": false
}
}This endpoint allows you to create a person, if your service account allows you to.
The 'owningOrganizationUuid' and 'recruitingOrganizationUuid' might also be bound to limitations depending on your service account's organization scope and permissions.
We advice you to provide your own 'uuid' value, as you can use this as a mechanism to ensure the person is only created once. When accidentally the person is posted twice, the uuid will ensure it is only saved the first time, and a 409 CONFLICT status will be returned when posted a second time with the same uuid. When you don't supply a uuid, the system will generate one for you, which will be returned in the response body.
This endpoint will return the person created with the data in your request body.
UUID (v4). The person's globally unique identifier in the system. If not provided, a new UUID will be generated.
82b431f0-f401-4afd-b6db-9d1d751232d9UUID (v4) of the organization that owns this person
82b431f0-f401-4afd-b6db-9d1d751232d9UUID (v4) of the organization that recruited this person
82b431f0-f401-4afd-b6db-9d1d751232d9Dr.Date of birth, formatted as ISO8601 date string
1978-05-01T00:00:00.000ZSocial security number as string without any separators.
12345678901malePossible values: International phone number
+31312345678International phone number
+31612345678ISO6391 language code
nlValid iBAN
NL13ABNA6371362585Person was created
Bad request. Response body shows what the problem is.
Service account not properly authenticated
Service account forbids executing this action
Person already exists
POST /api/v1/persons HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 798
{
"uuid": "82b431f0-f401-4afd-b6db-9d1d751232d9",
"owningOrganizationUuid": "82b431f0-f401-4afd-b6db-9d1d751232d9",
"recruitingOrganizationUuid": "82b431f0-f401-4afd-b6db-9d1d751232d9",
"academicTitle": "Dr.",
"name": {
"initials": "P.",
"firstName": "Peter",
"lastNamePrefix": "van der",
"lastName": "Plas"
},
"dateOfBirth": "1978-05-01T00:00:00.000Z",
"socialSecurityNumber": "12345678901",
"gender": "male",
"phoneNumber": "+31312345678",
"mobilePhoneNumber": "+31612345678",
"email": "[email protected]",
"address": {
"street": "Kerkstraat",
"houseNumber": "1",
"houseNumberExtension": "a",
"zipCode": "3031LS",
"city": "Arnhem",
"country": "NL"
},
"language": "nl",
"iban": "NL13ABNA6371362585",
"optIns": {
"email": true,
"mail": true,
"phone": true,
"sms": true
},
"mandate": {
"id": "skd-39-ss9dskdk33k2hjsdkfj",
"createdAt": "2019-01-01T21:00:21+00:00Z"
}
}{
"uuid": "82b431f0-f401-4afd-b6db-9d1d751232d9",
"academicTitle": "Dr.",
"initials": "B.",
"firstName": "Beth",
"lastNamePrefix": null,
"lastName": "Cormier",
"dateOfBirth": "1978-05-01",
"socialSecurityNumber": "12345678901",
"iban": "NL13ABNA6371362585",
"address": {
"street": "Claudius Prinsenlaan",
"houseNumber": "12",
"houseNumberExtension": null,
"zipCode": "4811DK",
"city": "Breda",
"country": "NL"
},
"phoneNumber": "+31208995262",
"mobilePhoneNumber": "+31611223344",
"email": "[email protected]",
"gender": "male",
"optInEmail": true,
"optInPhone": false,
"optInMail": null,
"optInSms": null,
"language": "nl",
"mandate": {
"createdAt": "2017-07-21T17:32:28Z"
},
"createdAt": "2017-07-21T17:32:28Z",
"owningOrganization": {
"uuid": "2fcc7d41-a72a-4f38-94ff-8a0484b8fc4c",
"name": "Good Cause Charity"
}
}This endpoint allows you to update a person.
You only have to provide the fields you want to update. Any fields that you set to null, will be cleared. Any fields that you don't supply will not be updated.
Whether you are allowed to execute this request, depends on your service account's permissions and organization scope.
This endpoint will return the updated person.
Dr.Date of birth, formatted as ISO8601 date string
1978-05-01T00:00:00.000ZSocial security number as string without any separators.
12345678901malePossible values: International phone number
+31312345678International phone number
+31612345678ISO6391 language code
nlValid iBAN
NL13ABNA6371362585Person was updated
Bad request. Response body shows what the problem is.
Service account not properly authenticated
Service account forbids executing this action
Person with this Uuid not found
PUT /api/v1/persons/{uuid}/actions/update HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 620
{
"academicTitle": "Dr.",
"name": {
"initials": "P.",
"firstName": "Peter",
"lastNamePrefix": "van der",
"lastName": "Plas"
},
"dateOfBirth": "1978-05-01T00:00:00.000Z",
"socialSecurityNumber": "12345678901",
"gender": "male",
"phoneNumber": "+31312345678",
"mobilePhoneNumber": "+31612345678",
"email": "[email protected]",
"address": {
"street": "Kerkstraat",
"houseNumber": "1",
"houseNumberExtension": "a",
"zipCode": "3031LS",
"city": "Arnhem",
"country": "NL"
},
"language": "nl",
"iban": "NL13ABNA6371362585",
"optIns": {
"email": true,
"mail": true,
"phone": true,
"sms": true
},
"mandate": {
"id": "skd-39-ss9dskdk33k2hjsdkfj",
"createdAt": "2019-01-01T21:00:21+00:00Z"
}
}{
"uuid": "82b431f0-f401-4afd-b6db-9d1d751232d9",
"academicTitle": "Dr.",
"initials": "B.",
"firstName": "Beth",
"lastNamePrefix": null,
"lastName": "Cormier",
"dateOfBirth": "1978-05-01",
"socialSecurityNumber": "12345678901",
"iban": "NL13ABNA6371362585",
"address": {
"street": "Claudius Prinsenlaan",
"houseNumber": "12",
"houseNumberExtension": null,
"zipCode": "4811DK",
"city": "Breda",
"country": "NL"
},
"phoneNumber": "+31208995262",
"mobilePhoneNumber": "+31611223344",
"email": "[email protected]",
"gender": "male",
"optInEmail": true,
"optInPhone": false,
"optInMail": null,
"optInSms": null,
"language": "nl",
"mandate": {
"createdAt": "2017-07-21T17:32:28Z"
},
"createdAt": "2017-07-21T17:32:28Z",
"owningOrganization": {
"uuid": "2fcc7d41-a72a-4f38-94ff-8a0484b8fc4c",
"name": "Good Cause Charity"
}
}Last updated
Was this helpful?