Download OpenAPI specification:Download
Documentation and interface contract for the partnersApi, the API responsible for managing legal entities (partner management).
Create an organization as a business object.
| X-Correlation-ID | string Correlation identifier |
| id | string Technical and unique identifier generated automatically, which identifies an organization. |
| name required | string Partner's name. |
| picture | string Link to the partner's logo. |
required | object (Address) |
| status | string Enum: "MISSING_INFORMATIONS" "COMPLETED" The partner's status.
|
{- "id": "string",
- "name": "string",
- "picture": "string",
- "address": {
- "number": "string",
- "route": "string",
- "complement": "string",
- "stage": "string",
- "zipPostal": "string",
- "city": "string",
- "country": "st"
}, - "status": "MISSING_INFORMATIONS"
}{- "id": "string",
- "name": "string",
- "picture": "string",
- "address": {
- "number": "string",
- "route": "string",
- "complement": "string",
- "stage": "string",
- "zipPostal": "string",
- "city": "string",
- "country": "st"
}, - "status": "MISSING_INFORMATIONS"
}List organizations.
| 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",
- "name": "string",
- "picture": "string",
- "address": {
- "number": "string",
- "route": "string",
- "complement": "string",
- "stage": "string",
- "zipPostal": "string",
- "city": "string",
- "country": "st"
}, - "status": "MISSING_INFORMATIONS"
}
]
}Retrieve organization information by its id.
| organization-id required | string Technical id of the organization. |
| X-Correlation-ID | string Correlation identifier |
{- "id": "string",
- "name": "string",
- "picture": "string",
- "address": {
- "number": "string",
- "route": "string",
- "complement": "string",
- "stage": "string",
- "zipPostal": "string",
- "city": "string",
- "country": "st"
}, - "status": "MISSING_INFORMATIONS"
}Update an organization.
| organization-id required | string Technical id of the organization. |
| X-Correlation-ID | string Correlation identifier |
| id | string Technical and unique identifier generated automatically, which identifies an organization. |
| name required | string Partner's name. |
| picture | string Link to the partner's logo. |
required | object (Address) |
| status | string Enum: "MISSING_INFORMATIONS" "COMPLETED" The partner's status.
|
{- "id": "string",
- "name": "string",
- "picture": "string",
- "address": {
- "number": "string",
- "route": "string",
- "complement": "string",
- "stage": "string",
- "zipPostal": "string",
- "city": "string",
- "country": "st"
}, - "status": "MISSING_INFORMATIONS"
}{- "id": "string",
- "name": "string",
- "picture": "string",
- "address": {
- "number": "string",
- "route": "string",
- "complement": "string",
- "stage": "string",
- "zipPostal": "string",
- "city": "string",
- "country": "st"
}, - "status": "MISSING_INFORMATIONS"
}Activate an organization.
| organization-id required | string Technical id of the organization. |
| X-Correlation-ID | string Correlation identifier |
{- "id": "string",
- "name": "string",
- "picture": "string",
- "address": {
- "number": "string",
- "route": "string",
- "complement": "string",
- "stage": "string",
- "zipPostal": "string",
- "city": "string",
- "country": "st"
}, - "status": "MISSING_INFORMATIONS"
}Deactivate an organization.
| organization-id required | string Technical id of the organization. |
| X-Correlation-ID | string Correlation identifier |
{- "id": "string",
- "name": "string",
- "picture": "string",
- "address": {
- "number": "string",
- "route": "string",
- "complement": "string",
- "stage": "string",
- "zipPostal": "string",
- "city": "string",
- "country": "st"
}, - "status": "MISSING_INFORMATIONS"
}Create an establishment as a business object.
| X-Correlation-ID | string Correlation identifier |
| id | string Technical and unique identifier generated automatically, which identifies an establishment. |
| parentOrganism required | string Technical identifier of the parent organization. |
| name required | string Name of the establishment. |
| legalStatus | string Enum: "EI" "SA" "SARL" "SAS" "SCS" "SCA" "SEP" "SNC" "GIE" Legal form of the establishment:
|
object (Address) | |
| supportingDocumentsID | string Technical identifier of the supporting document proving the establishment's identity. |
| status | string (establishmentStatus) Enum: "MISSING_INFORMATIONS" "ACTIVATED" "DISABLED" The establishment status.
|
| activities | Array of strings Items Enum: "TRAVEL_SERVICE" "ACCOMMODATION_SERVICE" List of activities the establishment can carry out:
|
{- "id": "string",
- "parentOrganism": "string",
- "name": "string",
- "legalStatus": "EI",
- "address": {
- "number": "string",
- "route": "string",
- "complement": "string",
- "stage": "string",
- "zipPostal": "string",
- "city": "string",
- "country": "st"
}, - "supportingDocumentsID": "string",
- "status": "MISSING_INFORMATIONS",
- "activities": [
- "TRAVEL_SERVICE"
]
}{- "id": "string",
- "parentOrganism": "string",
- "name": "string",
- "legalStatus": "EI",
- "address": {
- "number": "string",
- "route": "string",
- "complement": "string",
- "stage": "string",
- "zipPostal": "string",
- "city": "string",
- "country": "st"
}, - "supportingDocumentsID": "string",
- "status": "MISSING_INFORMATIONS",
- "activities": [
- "TRAVEL_SERVICE"
]
}List establishments.
| organization-id | string Technical id of the organization. |
| search | string Example: search=Marrakech Free-text search on (reference, title or destination). |
| status | string (establishmentStatus) Enum: "MISSING_INFORMATIONS" "ACTIVATED" "DISABLED" The establishment status.
|
| 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",
- "parentOrganism": "string",
- "name": "string",
- "legalStatus": "EI",
- "address": {
- "number": "string",
- "route": "string",
- "complement": "string",
- "stage": "string",
- "zipPostal": "string",
- "city": "string",
- "country": "st"
}, - "supportingDocumentsID": "string",
- "status": "MISSING_INFORMATIONS",
- "activities": [
- "TRAVEL_SERVICE"
]
}
]
}Retrieve establishment information by its id.
| establishment-id required | string Technical id of the establishment. |
| X-Correlation-ID | string Correlation identifier |
{- "id": "string",
- "parentOrganism": "string",
- "name": "string",
- "legalStatus": "EI",
- "address": {
- "number": "string",
- "route": "string",
- "complement": "string",
- "stage": "string",
- "zipPostal": "string",
- "city": "string",
- "country": "st"
}, - "supportingDocumentsID": "string",
- "status": "MISSING_INFORMATIONS",
- "activities": [
- "TRAVEL_SERVICE"
]
}Update an establishment.
| establishment-id required | string Technical id of the establishment. |
| X-Correlation-ID | string Correlation identifier |
| id | string Technical and unique identifier generated automatically, which identifies an establishment. |
| parentOrganism required | string Technical identifier of the parent organization. |
| name required | string Name of the establishment. |
| legalStatus | string Enum: "EI" "SA" "SARL" "SAS" "SCS" "SCA" "SEP" "SNC" "GIE" Legal form of the establishment:
|
object (Address) | |
| supportingDocumentsID | string Technical identifier of the supporting document proving the establishment's identity. |
| status | string (establishmentStatus) Enum: "MISSING_INFORMATIONS" "ACTIVATED" "DISABLED" The establishment status.
|
| activities | Array of strings Items Enum: "TRAVEL_SERVICE" "ACCOMMODATION_SERVICE" List of activities the establishment can carry out:
|
{- "id": "string",
- "parentOrganism": "string",
- "name": "string",
- "legalStatus": "EI",
- "address": {
- "number": "string",
- "route": "string",
- "complement": "string",
- "stage": "string",
- "zipPostal": "string",
- "city": "string",
- "country": "st"
}, - "supportingDocumentsID": "string",
- "status": "MISSING_INFORMATIONS",
- "activities": [
- "TRAVEL_SERVICE"
]
}{- "id": "string",
- "parentOrganism": "string",
- "name": "string",
- "legalStatus": "EI",
- "address": {
- "number": "string",
- "route": "string",
- "complement": "string",
- "stage": "string",
- "zipPostal": "string",
- "city": "string",
- "country": "st"
}, - "supportingDocumentsID": "string",
- "status": "MISSING_INFORMATIONS",
- "activities": [
- "TRAVEL_SERVICE"
]
}