Download OpenAPI specification:Download
Documentation and interface contract for the personsApi, the API responsible for managing natural persons (individual & professional) for all types of profiles, whether partner or individual.
Create a person as a business object.
| X-Correlation-ID | string Correlation identifier |
| id required | string Technical identifier generated by the authentication server, which identifies a person. |
| picture | string Link to the profile picture. |
| lastName | string Last name of a person. |
| firstName | string First name of a person. |
| gender | string Enum: "MALE" "FEMALE" Gender of the person. |
| dateOfBirth | string <date> Date of birth of the person. |
| email required | string Email address of the person. |
object (Phone) Phone number. | |
object (Address) The object representing a postal address of the property to rent. | |
| type required | string Enum: "PART" "PRO" Person type. |
| status | string Enum: "MISSING_INFORMATIONS" "ACTIVATED" "ACTIVATION_IN_PROGRESS" The status of the natural person.
|
| operation | string Enum: "CREATION" "INVITATION" Enum indicating whether the person creation was triggered from an invitation by another user (PRO), or through a standard account creation flow. |
{- "id": "string",
- "picture": "string",
- "lastName": "string",
- "firstName": "string",
- "gender": "MALE",
- "dateOfBirth": "2019-08-24",
- "email": "string",
- "phoneNumber": {
- "indicative": "str",
- "number": "string"
}, - "address": {
- "number": "string",
- "route": "string",
- "complement": "string",
- "stage": "string",
- "zipPostal": "string",
- "city": "string",
- "country": "st"
}, - "type": "PART",
- "status": "MISSING_INFORMATIONS",
- "operation": "CREATION"
}{- "id": "string",
- "picture": "string",
- "lastName": "string",
- "firstName": "string",
- "gender": "MALE",
- "dateOfBirth": "2019-08-24",
- "email": "string",
- "phoneNumber": {
- "indicative": "str",
- "number": "string"
}, - "address": {
- "number": "string",
- "route": "string",
- "complement": "string",
- "stage": "string",
- "zipPostal": "string",
- "city": "string",
- "country": "st"
}, - "type": "PART",
- "status": "MISSING_INFORMATIONS",
- "operation": "CREATION",
- "links": [
- {
- "href": "string",
- "rel": "string",
- "title": "string",
- "mediaType": "string",
- "method": "string",
- "encType": "application/json"
}
]
}List persons.
| currentPage | integer >= 0 Current page number. Do not send this attribute on the first call. |
| sizePage | integer >= 3 Number of elements per page. |
| attachmentIds | string Example: attachmentIds=id1,id2,id3 Filter by attachment identifiers (comma-separated). |
| personIds | string Example: personIds=p1,p2,p3 Filter by person identifiers (comma-separated). |
| search | string Example: search=mohamed Free-text search on last name, first name or email (case-insensitive). |
| status | string Example: status=MISSING_INFORMATIONS Filter by person status. |
| X-Correlation-ID | string Correlation identifier |
{- "totalElements": 0,
- "totalPages": 0,
- "currentPage": 0,
- "content": [
- {
- "id": "string",
- "picture": "string",
- "lastName": "string",
- "firstName": "string",
- "gender": "MALE",
- "dateOfBirth": "2019-08-24",
- "email": "string",
- "phoneNumber": {
- "indicative": "str",
- "number": "string"
}, - "address": {
- "number": "string",
- "route": "string",
- "complement": "string",
- "stage": "string",
- "zipPostal": "string",
- "city": "string",
- "country": "st"
}, - "type": "PART",
- "status": "MISSING_INFORMATIONS",
- "operation": "CREATION",
- "links": [
- {
- "href": "string",
- "rel": "string",
- "title": "string",
- "mediaType": "string",
- "method": "string",
- "encType": "application/json"
}
]
}
]
}Retrieve a person by their id.
| person-id required | string Technical id of the person. |
| X-Correlation-ID | string Correlation identifier |
{- "id": "string",
- "picture": "string",
- "lastName": "string",
- "firstName": "string",
- "gender": "MALE",
- "dateOfBirth": "2019-08-24",
- "email": "string",
- "phoneNumber": {
- "indicative": "str",
- "number": "string"
}, - "address": {
- "number": "string",
- "route": "string",
- "complement": "string",
- "stage": "string",
- "zipPostal": "string",
- "city": "string",
- "country": "st"
}, - "type": "PART",
- "status": "MISSING_INFORMATIONS",
- "operation": "CREATION",
- "links": [
- {
- "href": "string",
- "rel": "string",
- "title": "string",
- "mediaType": "string",
- "method": "string",
- "encType": "application/json"
}
]
}Update a person.
| person-id required | string Technical id of the person. |
| X-Correlation-ID | string Correlation identifier |
| id required | string Technical identifier generated by the authentication server, which identifies a person. |
| picture | string Link to the profile picture. |
| lastName | string Last name of a person. |
| firstName | string First name of a person. |
| gender | string Enum: "MALE" "FEMALE" Gender of the person. |
| dateOfBirth | string <date> Date of birth of the person. |
| email required | string Email address of the person. |
object (Phone) Phone number. | |
object (Address) The object representing a postal address of the property to rent. | |
| type required | string Enum: "PART" "PRO" Person type. |
| status | string Enum: "MISSING_INFORMATIONS" "ACTIVATED" "ACTIVATION_IN_PROGRESS" The status of the natural person.
|
| operation | string Enum: "CREATION" "INVITATION" Enum indicating whether the person creation was triggered from an invitation by another user (PRO), or through a standard account creation flow. |
{- "id": "string",
- "picture": "string",
- "lastName": "string",
- "firstName": "string",
- "gender": "MALE",
- "dateOfBirth": "2019-08-24",
- "email": "string",
- "phoneNumber": {
- "indicative": "str",
- "number": "string"
}, - "address": {
- "number": "string",
- "route": "string",
- "complement": "string",
- "stage": "string",
- "zipPostal": "string",
- "city": "string",
- "country": "st"
}, - "type": "PART",
- "status": "MISSING_INFORMATIONS",
- "operation": "CREATION"
}{- "id": "string",
- "picture": "string",
- "lastName": "string",
- "firstName": "string",
- "gender": "MALE",
- "dateOfBirth": "2019-08-24",
- "email": "string",
- "phoneNumber": {
- "indicative": "str",
- "number": "string"
}, - "address": {
- "number": "string",
- "route": "string",
- "complement": "string",
- "stage": "string",
- "zipPostal": "string",
- "city": "string",
- "country": "st"
}, - "type": "PART",
- "status": "MISSING_INFORMATIONS",
- "operation": "CREATION",
- "links": [
- {
- "href": "string",
- "rel": "string",
- "title": "string",
- "mediaType": "string",
- "method": "string",
- "encType": "application/json"
}
]
}Activate a person's account.
| person-id required | string Technical id of the person. |
| X-Correlation-ID | string Correlation identifier |
{- "id": "string",
- "picture": "string",
- "lastName": "string",
- "firstName": "string",
- "gender": "MALE",
- "dateOfBirth": "2019-08-24",
- "email": "string",
- "phoneNumber": {
- "indicative": "str",
- "number": "string"
}, - "address": {
- "number": "string",
- "route": "string",
- "complement": "string",
- "stage": "string",
- "zipPostal": "string",
- "city": "string",
- "country": "st"
}, - "type": "PART",
- "status": "MISSING_INFORMATIONS",
- "operation": "CREATION",
- "links": [
- {
- "href": "string",
- "rel": "string",
- "title": "string",
- "mediaType": "string",
- "method": "string",
- "encType": "application/json"
}
]
}Save an entity as a favorite.
| person-id required | string Technical id of the person. |
| X-Correlation-ID | string Correlation identifier |
| id | string Technical and unique identifier generated automatically. |
| entityType required | string (entityTypeFavorites) Enum: "TRIP" "HOST" Entity type. |
| entityId required | string The id of the entity in question. |
{- "id": "string",
- "entityType": "TRIP",
- "entityId": "string"
}{- "id": "string",
- "entityType": "TRIP",
- "entityId": "string",
- "links": [
- {
- "href": "string",
- "rel": "string",
- "title": "string",
- "mediaType": "string",
- "method": "string",
- "encType": "application/json"
}
]
}List favorites.
| person-id required | string Technical id of the person. |
| entityType required | string (entityTypeFavorites) Enum: "TRIP" "HOST" Entity type. |
| currentPage | integer >= 0 Current page number. Do not send this attribute on the first call. |
| sizePage | integer >= 3 Number of elements per page. |
| X-Correlation-ID | string Correlation identifier |
{- "totalElements": 0,
- "totalPages": 0,
- "currentPage": 0,
- "content": [
- {
- "id": "string",
- "entityType": "TRIP",
- "entityId": "string",
- "links": [
- {
- "href": "string",
- "rel": "string",
- "title": "string",
- "mediaType": "string",
- "method": "string",
- "encType": "application/json"
}
]
}
]
}Save an entity as an attachment.
| person-id required | string Technical id of the person. |
| X-Correlation-ID | string Correlation identifier |
| id | string Technical and unique identifier generated automatically, which identifies a link between a user and an entity. |
| entityType | string Enum: "ORGANIZATION" "ESTABLISHMENT" Entity type. |
| entityId | string The id of the entity in question. |
{- "id": "string",
- "entityType": "ORGANIZATION",
- "entityId": "string"
}{- "id": "string",
- "entityType": "ORGANIZATION",
- "entityId": "string",
- "links": [
- {
- "href": "string",
- "rel": "string",
- "title": "string",
- "mediaType": "string",
- "method": "string",
- "encType": "application/json"
}
]
}List attachments.
| person-id required | string Technical id of the person. |
| currentPage | integer >= 0 Current page number. Do not send this attribute on the first call. |
| sizePage | integer >= 3 Number of elements per page. |
| X-Correlation-ID | string Correlation identifier |
{- "totalElements": 0,
- "totalPages": 0,
- "currentPage": 0,
- "content": [
- {
- "id": "string",
- "entityType": "ORGANIZATION",
- "entityId": "string",
- "links": [
- {
- "href": "string",
- "rel": "string",
- "title": "string",
- "mediaType": "string",
- "method": "string",
- "encType": "application/json"
}
]
}
]
}Delete an attachment.
| person-id required | string Technical id of the person. |
| entity-id required | string Technical id of the attachment entity. |
| X-Correlation-ID | string Correlation identifier |
{ }