Skip to main content

Non-Official Operators

This endpoint retrieves a list of all non-official operators associated with a specified company. Non-official operators are individuals or entities that interact with the company's products or services but do not hold an official verification status.

Non Official Partners

1. View All Non-Official Operators

GET /view-non-official-operators/:companyId

Description: Retrieve a list of all non-official operators associated with a specific company.

Parameters:

  • companyId (string, required): The ID of the company whose non-official operators you want to view.

Response

StatusDescription
200 OKSuccessfully retrieved the list of non-official operators.
500 Internal Server ErrorFailed to view non-official operators.

Response Object

{
"nonOfficialOperators": [
{
"id": "string",
"email": "string",
"country_code": "string",
"company_name": "string",
"created_at": "string"
}
]
}
  • Error (500):
    {
    "error": "Failed to view non-official operators: error_message"
    }

2. View a Specific Non-Official Operator

GET /view-non-official-operator/:companyId/:userId

Description: Retrieve details of a specific non-official operator associated with a specific company.

Parameters:

  • companyId (string, required): The ID of the company whose non-official operator you want to view.
  • userId (string, required): The ID of the non-official operator you want to view.

Response

StatusDescription
200 OKSuccessfully retrieved the details of the specific non-official operator.
400 Bad RequestNon-official operator not found or user is an official member of the company.
500 Internal Server ErrorFailed to view non-official operator.

Response Object

{
"nonOfficialOperator": {
"id": "string",
"email": "string",
"country_code": "string",
"company_name": "string",
"updated_at": "string"
}
}