Download OpenAPI specification:
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. |
| status | string (establishmentStatus) Enum: "MISSING_INFORMATIONS" "WAITING_FOR_APPROVAL" "ACTIVATED" "SUSPENDED" "DELETED" The establishment status.
|
| legalRepresentativeId | string Unique identifier linked to the legal representative of the company. |
| financialInformationId | string Unique identifier linked to the banking and financial details. |
required | object (company) |
object (tourismAgreements) | |
| activities | Array of strings Items Enum: "TRAVEL_SERVICE" "ACCOMMODATION_SERVICE" List of activities the establishment can carry out:
|
{- "id": "string",
- "parentOrganism": "string",
- "status": "MISSING_INFORMATIONS",
- "legalRepresentativeId": "string",
- "financialInformationId": "string",
- "company": {
- "legalName": "Atlas Routes Morocco SARL",
- "legalForm": "EI",
- "ice": "001584930000045",
- "commercialRegister": {
- "number": "74839",
- "courtCity": "Marrakech",
}, - "taxIdentifier": "40294815",
- "professionalTax": "64120845",
- "registeredOffice": {
- "number": "string",
- "route": "string",
- "complement": "string",
- "stage": "string",
- "zipPostal": "string",
- "city": "string",
- "country": "st"
}
}, - "tourismAgreements": {
- "licenseNumber": "24Y/2022",
- "issueDate": "2022-04-18",
- "professionalLiabilityInsurance": {
- "company": "Wafa Assurance",
- "policyNumber": "RC-8493021",
- "expiryDate": "2027-05-31"
}
}, - "activities": [
- "TRAVEL_SERVICE"
]
}{- "id": "string",
- "parentOrganism": "string",
- "status": "MISSING_INFORMATIONS",
- "reference": "AG-3F9A21",
- "registrationDate": "2019-08-24T14:15:22Z",
- "activationDate": "2019-08-24T14:15:22Z",
- "legalRepresentativeId": "string",
- "financialInformationId": "string",
- "company": {
- "legalName": "Atlas Routes Morocco SARL",
- "legalForm": "EI",
- "ice": "001584930000045",
- "commercialRegister": {
- "number": "74839",
- "courtCity": "Marrakech",
}, - "taxIdentifier": "40294815",
- "professionalTax": "64120845",
- "registeredOffice": {
- "number": "string",
- "route": "string",
- "complement": "string",
- "stage": "string",
- "zipPostal": "string",
- "city": "string",
- "country": "st"
}
}, - "tourismAgreements": {
- "licenseNumber": "24Y/2022",
- "issueDate": "2022-04-18",
- "professionalLiabilityInsurance": {
- "company": "Wafa Assurance",
- "policyNumber": "RC-8493021",
- "expiryDate": "2027-05-31"
}
}, - "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" "WAITING_FOR_APPROVAL" "ACTIVATED" "SUSPENDED" "DELETED" 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",
- "status": "MISSING_INFORMATIONS",
- "reference": "AG-3F9A21",
- "registrationDate": "2019-08-24T14:15:22Z",
- "activationDate": "2019-08-24T14:15:22Z",
- "legalRepresentativeId": "string",
- "financialInformationId": "string",
- "company": {
- "legalName": "Atlas Routes Morocco SARL",
- "legalForm": "EI",
- "ice": "001584930000045",
- "commercialRegister": {
- "number": "74839",
- "courtCity": "Marrakech",
}, - "taxIdentifier": "40294815",
- "professionalTax": "64120845",
- "registeredOffice": {
- "number": "string",
- "route": "string",
- "complement": "string",
- "stage": "string",
- "zipPostal": "string",
- "city": "string",
- "country": "st"
}
}, - "tourismAgreements": {
- "licenseNumber": "24Y/2022",
- "issueDate": "2022-04-18",
- "professionalLiabilityInsurance": {
- "company": "Wafa Assurance",
- "policyNumber": "RC-8493021",
- "expiryDate": "2027-05-31"
}
}, - "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",
- "status": "MISSING_INFORMATIONS",
- "reference": "AG-3F9A21",
- "registrationDate": "2019-08-24T14:15:22Z",
- "activationDate": "2019-08-24T14:15:22Z",
- "legalRepresentativeId": "string",
- "financialInformationId": "string",
- "company": {
- "legalName": "Atlas Routes Morocco SARL",
- "legalForm": "EI",
- "ice": "001584930000045",
- "commercialRegister": {
- "number": "74839",
- "courtCity": "Marrakech",
}, - "taxIdentifier": "40294815",
- "professionalTax": "64120845",
- "registeredOffice": {
- "number": "string",
- "route": "string",
- "complement": "string",
- "stage": "string",
- "zipPostal": "string",
- "city": "string",
- "country": "st"
}
}, - "tourismAgreements": {
- "licenseNumber": "24Y/2022",
- "issueDate": "2022-04-18",
- "professionalLiabilityInsurance": {
- "company": "Wafa Assurance",
- "policyNumber": "RC-8493021",
- "expiryDate": "2027-05-31"
}
}, - "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. |
| status | string (establishmentStatus) Enum: "MISSING_INFORMATIONS" "WAITING_FOR_APPROVAL" "ACTIVATED" "SUSPENDED" "DELETED" The establishment status.
|
| legalRepresentativeId | string Unique identifier linked to the legal representative of the company. |
| financialInformationId | string Unique identifier linked to the banking and financial details. |
required | object (company) |
object (tourismAgreements) | |
| activities | Array of strings Items Enum: "TRAVEL_SERVICE" "ACCOMMODATION_SERVICE" List of activities the establishment can carry out:
|
{- "id": "string",
- "parentOrganism": "string",
- "status": "MISSING_INFORMATIONS",
- "legalRepresentativeId": "string",
- "financialInformationId": "string",
- "company": {
- "legalName": "Atlas Routes Morocco SARL",
- "legalForm": "EI",
- "ice": "001584930000045",
- "commercialRegister": {
- "number": "74839",
- "courtCity": "Marrakech",
}, - "taxIdentifier": "40294815",
- "professionalTax": "64120845",
- "registeredOffice": {
- "number": "string",
- "route": "string",
- "complement": "string",
- "stage": "string",
- "zipPostal": "string",
- "city": "string",
- "country": "st"
}
}, - "tourismAgreements": {
- "licenseNumber": "24Y/2022",
- "issueDate": "2022-04-18",
- "professionalLiabilityInsurance": {
- "company": "Wafa Assurance",
- "policyNumber": "RC-8493021",
- "expiryDate": "2027-05-31"
}
}, - "activities": [
- "TRAVEL_SERVICE"
]
}{- "id": "string",
- "parentOrganism": "string",
- "status": "MISSING_INFORMATIONS",
- "reference": "AG-3F9A21",
- "registrationDate": "2019-08-24T14:15:22Z",
- "activationDate": "2019-08-24T14:15:22Z",
- "legalRepresentativeId": "string",
- "financialInformationId": "string",
- "company": {
- "legalName": "Atlas Routes Morocco SARL",
- "legalForm": "EI",
- "ice": "001584930000045",
- "commercialRegister": {
- "number": "74839",
- "courtCity": "Marrakech",
}, - "taxIdentifier": "40294815",
- "professionalTax": "64120845",
- "registeredOffice": {
- "number": "string",
- "route": "string",
- "complement": "string",
- "stage": "string",
- "zipPostal": "string",
- "city": "string",
- "country": "st"
}
}, - "tourismAgreements": {
- "licenseNumber": "24Y/2022",
- "issueDate": "2022-04-18",
- "professionalLiabilityInsurance": {
- "company": "Wafa Assurance",
- "policyNumber": "RC-8493021",
- "expiryDate": "2027-05-31"
}
}, - "activities": [
- "TRAVEL_SERVICE"
]
}Allows an agent to approve an establishment whose supporting documents have been reviewed. The establishment must be in "WAITING_FOR_APPROVAL" status; when approved, its status is updated to "ACTIVATED".
| establishment-id required | string Technical id of the establishment to approve. |
| X-Correlation-ID | string Correlation identifier |
{- "id": "string",
- "parentOrganism": "string",
- "status": "MISSING_INFORMATIONS",
- "reference": "AG-3F9A21",
- "registrationDate": "2019-08-24T14:15:22Z",
- "activationDate": "2019-08-24T14:15:22Z",
- "legalRepresentativeId": "string",
- "financialInformationId": "string",
- "company": {
- "legalName": "Atlas Routes Morocco SARL",
- "legalForm": "EI",
- "ice": "001584930000045",
- "commercialRegister": {
- "number": "74839",
- "courtCity": "Marrakech",
}, - "taxIdentifier": "40294815",
- "professionalTax": "64120845",
- "registeredOffice": {
- "number": "string",
- "route": "string",
- "complement": "string",
- "stage": "string",
- "zipPostal": "string",
- "city": "string",
- "country": "st"
}
}, - "tourismAgreements": {
- "licenseNumber": "24Y/2022",
- "issueDate": "2022-04-18",
- "professionalLiabilityInsurance": {
- "company": "Wafa Assurance",
- "policyNumber": "RC-8493021",
- "expiryDate": "2027-05-31"
}
}, - "activities": [
- "TRAVEL_SERVICE"
]
}Creates and links a new legal representative to the specified partner establishment.
| establishment-id required | string Technical id of the establishment. |
| X-Correlation-ID | string Unique correlation identifier for tracing requests across microservices. |
The legal representative object payload containing identity, contact, and ownership details.
| id | string Technical and unique identifier generated automatically, which identifies an governance object. |
| lastName required | string Last name of the legal representative. |
| firstName required | string First name of the legal representative. |
| identityDocumentType required | string Type of identity document provided (e.g., CIN, Passport). |
| identityNumber required | string Identification number of the official identity document. |
| identityExpiryDate required | string <date> Expiry date of the identity document. |
| supportingDocumentsId | string <uri> URL link to the supporting identity or registration document. |
| email required | string <email> Professional email address of the legal representative. |
required | object (Phone) Phone number. |
| ownershipPercentage required | number <float> Percentage of capital ownership held by the representative. |
| nationality required | string Nationality of the legal representative. |
{- "id": "string",
- "lastName": "Amrani",
- "firstName": "Kamal",
- "identityDocumentType": "CIN",
- "identityNumber": "G849302",
- "identityExpiryDate": "2032-02-14",
- "phoneNumber": {
- "indicative": "str",
- "number": "string"
}, - "ownershipPercentage": 75,
- "nationality": "Moroccan"
}{- "id": "string",
- "lastName": "Amrani",
- "firstName": "Kamal",
- "identityDocumentType": "CIN",
- "identityNumber": "G849302",
- "identityExpiryDate": "2032-02-14",
- "phoneNumber": {
- "indicative": "str",
- "number": "string"
}, - "ownershipPercentage": 75,
- "nationality": "Moroccan"
}Retrieves the detailed information of a specific legal representative tied to an establishment.
| establishment-id required | string Technical id of the establishment. |
| legal-representative-id required | string Technical unique identifier of the legal representative. |
| X-Correlation-ID | string Unique correlation identifier for tracing requests across microservices. |
{- "id": "string",
- "lastName": "Amrani",
- "firstName": "Kamal",
- "identityDocumentType": "CIN",
- "identityNumber": "G849302",
- "identityExpiryDate": "2032-02-14",
- "phoneNumber": {
- "indicative": "str",
- "number": "string"
}, - "ownershipPercentage": 75,
- "nationality": "Moroccan"
}Updates an existing legal representative's details for the given technical identifier.
| establishment-id required | string Technical id of the establishment. |
| legal-representative-id required | string Technical unique identifier of the legal representative. |
| X-Correlation-ID | string Unique correlation identifier for tracing requests across microservices. |
Updated payload data for the legal representative.
| id | string Technical and unique identifier generated automatically, which identifies an governance object. |
| lastName required | string Last name of the legal representative. |
| firstName required | string First name of the legal representative. |
| identityDocumentType required | string Type of identity document provided (e.g., CIN, Passport). |
| identityNumber required | string Identification number of the official identity document. |
| identityExpiryDate required | string <date> Expiry date of the identity document. |
| supportingDocumentsId | string <uri> URL link to the supporting identity or registration document. |
| email required | string <email> Professional email address of the legal representative. |
required | object (Phone) Phone number. |
| ownershipPercentage required | number <float> Percentage of capital ownership held by the representative. |
| nationality required | string Nationality of the legal representative. |
{- "id": "string",
- "lastName": "Amrani",
- "firstName": "Kamal",
- "identityDocumentType": "CIN",
- "identityNumber": "G849302",
- "identityExpiryDate": "2032-02-14",
- "phoneNumber": {
- "indicative": "str",
- "number": "string"
}, - "ownershipPercentage": 75,
- "nationality": "Moroccan"
}{- "id": "string",
- "lastName": "Amrani",
- "firstName": "Kamal",
- "identityDocumentType": "CIN",
- "identityNumber": "G849302",
- "identityExpiryDate": "2032-02-14",
- "phoneNumber": {
- "indicative": "str",
- "number": "string"
}, - "ownershipPercentage": 75,
- "nationality": "Moroccan"
}Registers and attaches financial and banking details (such as RIB) to the establishment.
| establishment-id required | string Technical id of the establishment. |
| X-Correlation-ID | string Unique correlation identifier for tracing requests across microservices. |
Financial information payload including bank name, account holder, and RIB.
| id | string Unique identifier for the financial information record. |
| bankName required | string Name of the partner's financial institution or bank. |
| accountHolder required | string Official name of the bank account holder or corporate entity. |
| rib required | string Bank Identity Statement number (RIB - 24 digits). |
{- "id": "jhgfjhgjhgjh",
- "bankName": "BCP (Banque Centrale Populaire)",
- "accountHolder": "Atlas Routes Morocco SARL",
- "rib": "101450211112345678901244"
}{- "id": "jhgfjhgjhgjh",
- "bankName": "BCP (Banque Centrale Populaire)",
- "accountHolder": "Atlas Routes Morocco SARL",
- "rib": "101450211112345678901244"
}Retrieves the financial and banking data record associated with an establishment.
| establishment-id required | string Technical id of the establishment. |
| financial-information-id required | string Technical unique identifier of the financial information record. |
| X-Correlation-ID | string Unique correlation identifier for tracing requests across microservices. |
{- "id": "jhgfjhgjhgjh",
- "bankName": "BCP (Banque Centrale Populaire)",
- "accountHolder": "Atlas Routes Morocco SARL",
- "rib": "101450211112345678901244"
}Replaces or updates the financial/banking information record for the establishment.
| establishment-id required | string Technical id of the establishment. |
| financial-information-id required | string Technical unique identifier of the financial information record. |
| X-Correlation-ID | string Unique correlation identifier for tracing requests across microservices. |
Updated financial and banking details payload.
| id | string Unique identifier for the financial information record. |
| bankName required | string Name of the partner's financial institution or bank. |
| accountHolder required | string Official name of the bank account holder or corporate entity. |
| rib required | string Bank Identity Statement number (RIB - 24 digits). |
{- "id": "jhgfjhgjhgjh",
- "bankName": "BCP (Banque Centrale Populaire)",
- "accountHolder": "Atlas Routes Morocco SARL",
- "rib": "101450211112345678901244"
}{- "id": "jhgfjhgjhgjh",
- "bankName": "BCP (Banque Centrale Populaire)",
- "accountHolder": "Atlas Routes Morocco SARL",
- "rib": "101450211112345678901244"
}