List all customers

GET /v1/Customers

Returns a list of your customers. The customers are returned sorted by the specified sortPropertyName. Available to the roles: csp, reseller

Headers

  • X-Tenant string Required

    This header identifies which tenant to access with this request. This value should be an existent domain for the specified tenant.

  • Authorization string Required

    JWT Authorization header using the Bearer scheme. Example: "Authorization: Bearer {token}"

    Default value is Bearer eyJ0eXAiO....

  • X-Correlation-Id string(UUID)

    This header is optional and by setting it you can correlate the audit logs made by this request.

Query parameters

  • pageNumber integer(int32)

    A cursor for pagination across multiple pages of results. The default value is 1.

  • pageSize integer(int32)

    The number of objects to be returned at each page. The size can range between 1 and 2000, and the default is 25.

  • The search query string. Required if searchField is provided. The search value has a maximum of 255 characters.

  • The field in which the search is performed. Possible values: Company.Name; Domain; InternalIdentifier and ProviderCustomerId. If searchValue was set but searchField wasn't then by default the search will be done by Company.Name.

  • The name of the property to sort the customers by. Possible values: Company.Name

  • if set to true [ascending order].

  • resellerId string(uuid)

    The reseller identifier. View only the customers that have relation with the specified resellerId.

  • If true the deleted customers will be included.

    Default value is true.

Responses

  • Success

    Hide response attributes Show response attributes object
    • items array[object] | null

      View model that represents a customer.

      Hide items attributes Show items attributes object
      • id string(uuid)

        The GUID identifier for the customer.

      • companyName string | null Required

        The name of the company. This may be up to 255 characters.

      • taxId string | null

        The company tax Id. This may be up to 255 characters.

      • country string | null Required

        The company country code in the ISO 3166-1 alpha-2 standard.

      • addressLine1 string | null Required

        The company address line 1. This may be up to 255 characters.

      • addressLine2 string | null

        The company address line 2. This may be up to 255 characters.

      • city string | null Required

        The company city. This may be up to 255 characters.

      • state string | null Required

        The company State. This may be up to 255 characters.

      • zip string | null Required

        The company ZIP. This may be up to 30 characters.

      • firstName string | null Required

        The company primary contact first name. This may be up to 255 characters.

      • middleName string | null

        The company primary contact middle name. This may be up to 255 characters.

      • lastName string | null Required

        The company primary contact last name. This may be up to 255 characters.

      • email string | null Required

        The company primary contact email. This may be up to 255 characters.

      • phone string | null Required

        The company primary contact phone. This may be up to 30 characters.

      • internalIdentifier string | null

        The customer internal identifier. This may be up to 255 characters.

      • resellerId string(uuid) | null

        The reseller identifier. If this value is set a relation between this customer and the reseller will be created, if null a direct relation between the CSP and the customer will be created instead.

      • providerCustomers object | null Required

        The provider customers. A list containing the info about this customer in one or more provider instances.

        Hide providerCustomers attributes Show providerCustomers attributes
        • The GUID identifier for the provider instance.

        • providerCustomerId string | null

          The identifier for customer on the provider. This property will only be populated after a customer is successfully created on the provider.

        • The provider specific data for this customer.

        • margin object

          This value object contains the price margin for this entity.

          Hide margin attributes Show margin attributes
        • offerTypeMargins object | null

          Contains as key the name of the offer type and as value the price margin applied to each offer type for this specific provider instance. Price margins applied at the offer type level will override the price margin applied at the provider instance level. If no price margin is applied to a specific offer type of this provider instance then it will not be in the dictionary. This dictionary is optional.

          Hide offerTypeMargins attributes Show offerTypeMargins attributes
        • status object

          The status for this entity. Possible values: Processing, Success, Failed

          Hide status attributes Show status attributes
        • The creation error for this provider customer. This property will only have a diferent value than None if the Status is equal to Failed. Possible values: DomainExists, InvalidCompanyInfo, None or Unknown

          Hide customerCreationError attributes Show customerCreationError attributes
      • customerAssociations array[object] | null

        The viewmodel for the customer relationships.

        Hide customerAssociations attributes Show customerAssociations attributes object
    • A model that is used to encapsulate the parameters needed to perform pagination queries.

      Hide paginationParameters attributes Show paginationParameters attributes
    • totalPages integer(int32)

      The total number of pages available for the specified parameters and page size.

    • totalCount integer(int32)

      The total number of results available for the specified parameters. Note this is typically not equal to the Count of items in the Items property, will only be equal if all the items fit in the first page.

    • Indicates if there is a previous page.

    • Indicates if there is a next page.

    • continuationToken string | null

      The token to continue to retrieve the paginated items.

    Hide response attributes Show response attributes object
    • items array[object] | null

      View model that represents a customer.

      Hide items attributes Show items attributes object
      • id string(uuid)

        The GUID identifier for the customer.

      • companyName string | null Required

        The name of the company. This may be up to 255 characters.

      • taxId string | null

        The company tax Id. This may be up to 255 characters.

      • country string | null Required

        The company country code in the ISO 3166-1 alpha-2 standard.

      • addressLine1 string | null Required

        The company address line 1. This may be up to 255 characters.

      • addressLine2 string | null

        The company address line 2. This may be up to 255 characters.

      • city string | null Required

        The company city. This may be up to 255 characters.

      • state string | null Required

        The company State. This may be up to 255 characters.

      • zip string | null Required

        The company ZIP. This may be up to 30 characters.

      • firstName string | null Required

        The company primary contact first name. This may be up to 255 characters.

      • middleName string | null

        The company primary contact middle name. This may be up to 255 characters.

      • lastName string | null Required

        The company primary contact last name. This may be up to 255 characters.

      • email string | null Required

        The company primary contact email. This may be up to 255 characters.

      • phone string | null Required

        The company primary contact phone. This may be up to 30 characters.

      • internalIdentifier string | null

        The customer internal identifier. This may be up to 255 characters.

      • resellerId string(uuid) | null

        The reseller identifier. If this value is set a relation between this customer and the reseller will be created, if null a direct relation between the CSP and the customer will be created instead.

      • providerCustomers object | null Required

        The provider customers. A list containing the info about this customer in one or more provider instances.

        Hide providerCustomers attributes Show providerCustomers attributes
        • The GUID identifier for the provider instance.

        • providerCustomerId string | null

          The identifier for customer on the provider. This property will only be populated after a customer is successfully created on the provider.

        • The provider specific data for this customer.

        • margin object

          This value object contains the price margin for this entity.

          Hide margin attributes Show margin attributes
        • offerTypeMargins object | null

          Contains as key the name of the offer type and as value the price margin applied to each offer type for this specific provider instance. Price margins applied at the offer type level will override the price margin applied at the provider instance level. If no price margin is applied to a specific offer type of this provider instance then it will not be in the dictionary. This dictionary is optional.

          Hide offerTypeMargins attributes Show offerTypeMargins attributes
        • status object

          The status for this entity. Possible values: Processing, Success, Failed

          Hide status attributes Show status attributes
        • The creation error for this provider customer. This property will only have a diferent value than None if the Status is equal to Failed. Possible values: DomainExists, InvalidCompanyInfo, None or Unknown

          Hide customerCreationError attributes Show customerCreationError attributes
      • customerAssociations array[object] | null

        The viewmodel for the customer relationships.

        Hide customerAssociations attributes Show customerAssociations attributes object
    • A model that is used to encapsulate the parameters needed to perform pagination queries.

      Hide paginationParameters attributes Show paginationParameters attributes
    • totalPages integer(int32)

      The total number of pages available for the specified parameters and page size.

    • totalCount integer(int32)

      The total number of results available for the specified parameters. Note this is typically not equal to the Count of items in the Items property, will only be equal if all the items fit in the first page.

    • Indicates if there is a previous page.

    • Indicates if there is a next page.

    • continuationToken string | null

      The token to continue to retrieve the paginated items.

    Hide response attributes Show response attributes object
    • items array[object] | null

      View model that represents a customer.

      Hide items attributes Show items attributes object
      • id string(uuid)

        The GUID identifier for the customer.

      • companyName string | null Required

        The name of the company. This may be up to 255 characters.

      • taxId string | null

        The company tax Id. This may be up to 255 characters.

      • country string | null Required

        The company country code in the ISO 3166-1 alpha-2 standard.

      • addressLine1 string | null Required

        The company address line 1. This may be up to 255 characters.

      • addressLine2 string | null

        The company address line 2. This may be up to 255 characters.

      • city string | null Required

        The company city. This may be up to 255 characters.

      • state string | null Required

        The company State. This may be up to 255 characters.

      • zip string | null Required

        The company ZIP. This may be up to 30 characters.

      • firstName string | null Required

        The company primary contact first name. This may be up to 255 characters.

      • middleName string | null

        The company primary contact middle name. This may be up to 255 characters.

      • lastName string | null Required

        The company primary contact last name. This may be up to 255 characters.

      • email string | null Required

        The company primary contact email. This may be up to 255 characters.

      • phone string | null Required

        The company primary contact phone. This may be up to 30 characters.

      • internalIdentifier string | null

        The customer internal identifier. This may be up to 255 characters.

      • resellerId string(uuid) | null

        The reseller identifier. If this value is set a relation between this customer and the reseller will be created, if null a direct relation between the CSP and the customer will be created instead.

      • providerCustomers object | null Required

        The provider customers. A list containing the info about this customer in one or more provider instances.

        Hide providerCustomers attributes Show providerCustomers attributes
        • The GUID identifier for the provider instance.

        • providerCustomerId string | null

          The identifier for customer on the provider. This property will only be populated after a customer is successfully created on the provider.

        • The provider specific data for this customer.

        • margin object

          This value object contains the price margin for this entity.

          Hide margin attributes Show margin attributes
        • offerTypeMargins object | null

          Contains as key the name of the offer type and as value the price margin applied to each offer type for this specific provider instance. Price margins applied at the offer type level will override the price margin applied at the provider instance level. If no price margin is applied to a specific offer type of this provider instance then it will not be in the dictionary. This dictionary is optional.

          Hide offerTypeMargins attributes Show offerTypeMargins attributes
        • status object

          The status for this entity. Possible values: Processing, Success, Failed

          Hide status attributes Show status attributes
        • The creation error for this provider customer. This property will only have a diferent value than None if the Status is equal to Failed. Possible values: DomainExists, InvalidCompanyInfo, None or Unknown

          Hide customerCreationError attributes Show customerCreationError attributes
      • customerAssociations array[object] | null

        The viewmodel for the customer relationships.

        Hide customerAssociations attributes Show customerAssociations attributes object
    • A model that is used to encapsulate the parameters needed to perform pagination queries.

      Hide paginationParameters attributes Show paginationParameters attributes
    • totalPages integer(int32)

      The total number of pages available for the specified parameters and page size.

    • totalCount integer(int32)

      The total number of results available for the specified parameters. Note this is typically not equal to the Count of items in the Items property, will only be equal if all the items fit in the first page.

    • Indicates if there is a previous page.

    • Indicates if there is a next page.

    • continuationToken string | null

      The token to continue to retrieve the paginated items.

  • Bad Request

    Hide response attributes Show response attributes object
    • statusCode integer(int32)

      The HTTP status code that represents a specific error scenario.

    • type string | null

      The type of error that occurred.

    • description string | null

      Describes the error scenario that occurred.

    • correlationId string | null

      The correlationId of the request that originated the error.

    • errors array[object] | null

      This class is used to represent the details of an error and specifies the name of the property and the description of each of the errors associated with that property.

      Hide errors attributes Show errors attributes object
    Hide response attributes Show response attributes object
    • statusCode integer(int32)

      The HTTP status code that represents a specific error scenario.

    • type string | null

      The type of error that occurred.

    • description string | null

      Describes the error scenario that occurred.

    • correlationId string | null

      The correlationId of the request that originated the error.

    • errors array[object] | null

      This class is used to represent the details of an error and specifies the name of the property and the description of each of the errors associated with that property.

      Hide errors attributes Show errors attributes object
    Hide response attributes Show response attributes object
    • statusCode integer(int32)

      The HTTP status code that represents a specific error scenario.

    • type string | null

      The type of error that occurred.

    • description string | null

      Describes the error scenario that occurred.

    • correlationId string | null

      The correlationId of the request that originated the error.

    • errors array[object] | null

      This class is used to represent the details of an error and specifies the name of the property and the description of each of the errors associated with that property.

      Hide errors attributes Show errors attributes object
  • 401

    Unauthorized

  • 403

    Forbidden

  • Server Error

    Hide response attributes Show response attributes object
    • statusCode integer(int32)

      The HTTP status code that represents a specific error scenario.

    • type string | null

      The type of error that occurred.

    • description string | null

      Describes the error scenario that occurred.

    • correlationId string | null

      The correlationId of the request that originated the error.

    • errors array[object] | null

      This class is used to represent the details of an error and specifies the name of the property and the description of each of the errors associated with that property.

      Hide errors attributes Show errors attributes object
    Hide response attributes Show response attributes object
    • statusCode integer(int32)

      The HTTP status code that represents a specific error scenario.

    • type string | null

      The type of error that occurred.

    • description string | null

      Describes the error scenario that occurred.

    • correlationId string | null

      The correlationId of the request that originated the error.

    • errors array[object] | null

      This class is used to represent the details of an error and specifies the name of the property and the description of each of the errors associated with that property.

      Hide errors attributes Show errors attributes object
    Hide response attributes Show response attributes object
    • statusCode integer(int32)

      The HTTP status code that represents a specific error scenario.

    • type string | null

      The type of error that occurred.

    • description string | null

      Describes the error scenario that occurred.

    • correlationId string | null

      The correlationId of the request that originated the error.

    • errors array[object] | null

      This class is used to represent the details of an error and specifies the name of the property and the description of each of the errors associated with that property.

      Hide errors attributes Show errors attributes object
GET /v1/Customers
curl \
 -X GET https://app-cloudcockpitapi-prod-01.azurewebsites.net/v1/Customers \
 -H "X-Tenant: string" \
 -H "Authorization: Bearer eyJ0eXAiO..." \
 -H "X-Correlation-Id: string"
Response examples (200)
{
  "items": [
    {
      "id": "string",
      "companyName": "string",
      "taxId": "string",
      "country": "PT",
      "addressLine1": "string",
      "addressLine2": "string",
      "city": "string",
      "state": "string",
      "zip": "string",
      "firstName": "string",
      "middleName": "string",
      "lastName": "string",
      "email": "string",
      "phone": "string",
      "internalIdentifier": "string",
      "resellerId": "string",
      "providerCustomers": {
        "cb3cd15b-1d6e-45be-b493-c71549cbfd87": {
          "providerInstanceId": "cb3cd15b-1d6e-45be-b493-c71549cbfd87",
          "providerCustomerId": "f574cf12-a7d6-43fe-9663-1af97b04e5ab",
          "providerCustomerData": "{\"Domain\":\"TestDomain\",\"CredentialsEmail\":\"test@email.com\",\"AcceptedMCA\":true,\"AgreementDate\":\"2022-12-28T00:00:00Z\",\"KeepPrimaryInformation\":true,\"FirstName\":\"Test\",\"LastName\":\"Test\",\"Email\":\"test@email.com\",\"Phone\":\"921231231\",\"DefaultCulture\":\"en-US\",\"Language\":\"en\",\"AssociatedPartnerId\":null,\"Qualifications\":[],\"EnableGDAP\":true}",
          "margin": {
            "marginRule": {
              "name": "markup"
            },
            "value": 10.6
          },
          "offerTypeMargins": {
            "Value": {
              "license": {
                "MarginRule": {
                  "Name": "markup"
                },
                "Value": 10
              }
            }
          }
        }
      },
      "customerAssociations": [
        {
          "resellerId": "string",
          "name": "string"
        }
      ]
    }
  ],
  "paginationParameters": {
    "pageNumber": 42,
    "pageSize": 42
  },
  "totalPages": 42,
  "totalCount": 42,
  "hasPreviousPage": true,
  "hasNextPage": true,
  "continuationToken": "string"
}
Response examples (200)
{
  "items": [
    {
      "id": "string",
      "companyName": "string",
      "taxId": "string",
      "country": "PT",
      "addressLine1": "string",
      "addressLine2": "string",
      "city": "string",
      "state": "string",
      "zip": "string",
      "firstName": "string",
      "middleName": "string",
      "lastName": "string",
      "email": "string",
      "phone": "string",
      "internalIdentifier": "string",
      "resellerId": "string",
      "providerCustomers": {
        "cb3cd15b-1d6e-45be-b493-c71549cbfd87": {
          "providerInstanceId": "cb3cd15b-1d6e-45be-b493-c71549cbfd87",
          "providerCustomerId": "f574cf12-a7d6-43fe-9663-1af97b04e5ab",
          "providerCustomerData": "{\"Domain\":\"TestDomain\",\"CredentialsEmail\":\"test@email.com\",\"AcceptedMCA\":true,\"AgreementDate\":\"2022-12-28T00:00:00Z\",\"KeepPrimaryInformation\":true,\"FirstName\":\"Test\",\"LastName\":\"Test\",\"Email\":\"test@email.com\",\"Phone\":\"921231231\",\"DefaultCulture\":\"en-US\",\"Language\":\"en\",\"AssociatedPartnerId\":null,\"Qualifications\":[],\"EnableGDAP\":true}",
          "margin": {
            "marginRule": {
              "name": "markup"
            },
            "value": 10.6
          },
          "offerTypeMargins": {
            "Value": {
              "license": {
                "MarginRule": {
                  "Name": "markup"
                },
                "Value": 10
              }
            }
          }
        }
      },
      "customerAssociations": [
        {
          "resellerId": "string",
          "name": "string"
        }
      ]
    }
  ],
  "paginationParameters": {
    "pageNumber": 42,
    "pageSize": 42
  },
  "totalPages": 42,
  "totalCount": 42,
  "hasPreviousPage": true,
  "hasNextPage": true,
  "continuationToken": "string"
}
Response examples (400)
{
  "statusCode": 42,
  "type": "string",
  "description": "string",
  "correlationId": "string",
  "errors": [
    {
      "propertyName": "string",
      "description": [
        "string"
      ]
    }
  ]
}
Response examples (400)
{
  "statusCode": 42,
  "type": "string",
  "description": "string",
  "correlationId": "string",
  "errors": [
    {
      "propertyName": "string",
      "description": [
        "string"
      ]
    }
  ]
}
Response examples (500)
{
  "statusCode": 42,
  "type": "string",
  "description": "string",
  "correlationId": "string",
  "errors": [
    {
      "propertyName": "string",
      "description": [
        "string"
      ]
    }
  ]
}
Response examples (500)
{
  "statusCode": 42,
  "type": "string",
  "description": "string",
  "correlationId": "string",
  "errors": [
    {
      "propertyName": "string",
      "description": [
        "string"
      ]
    }
  ]
}