api/v1/customers

Method: GET https://simportal-api-staging.azurewebsites.net/api/v1/customers?skip={skip}&take={take}&search={search}&hidden={hidden}&sortBy={sortBy}&sortOrder={sortOrder}

Summary

Get a list of customers that belongs to a reseller by ID and matching selected criteria.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
skip

Optional, the number of records to skip

integer

None.

take

Optional, the number of records requested

integer

None.

search

Optional, customer name or email, can be partial match

string

None.

hidden

Optional, show hidden customers as default false

boolean

None.

sortBy

The name of the parameter by which you wish to sort. 'allowanceused' is default. Optional

string

None.

sortOrder

Enter 'asc' for ascending or 'desc' for descending sort. Ascending is default behaviour. Optional

string

Default value is asc

Body Parameters

None.

Response Information

Resource Description

List of customers matching criteria.

Collection of CustomerOverview
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

Name

string

None.

Email

string

None.

TotalSims

integer

None.

UnactivatedSims

integer

None.

InactiveSims

integer

None.

ActiveBoltOns

integer

None.

TotalData

integer

None.

ActiveSims

integer

None.

Status

string

None.

Hidden

boolean

None.

DefaultPool

string

None.

DefaultPoolId

globally unique identifier

None.

DefaultPrivateAPN

string

None.

DateCreated

date

None.

ICCID

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": "1fc8ac48-ca57-40df-9f78-ca7150089d95",
    "Name": "sample string 2",
    "Email": "sample string 3",
    "TotalSims": 4,
    "UnactivatedSims": 5,
    "InactiveSims": 6,
    "ActiveBoltOns": 7,
    "TotalData": 8,
    "ActiveSims": 9,
    "Status": "sample string 10",
    "Hidden": true,
    "DefaultPool": "sample string 12",
    "DefaultPoolId": "16af84c2-b96e-4130-ab41-9e13534c8fd1",
    "DefaultPrivateAPN": "sample string 14",
    "DateCreated": "2024-11-21T10:08:14.5146827+00:00",
    "ICCID": "sample string 15"
  },
  {
    "Id": "1fc8ac48-ca57-40df-9f78-ca7150089d95",
    "Name": "sample string 2",
    "Email": "sample string 3",
    "TotalSims": 4,
    "UnactivatedSims": 5,
    "InactiveSims": 6,
    "ActiveBoltOns": 7,
    "TotalData": 8,
    "ActiveSims": 9,
    "Status": "sample string 10",
    "Hidden": true,
    "DefaultPool": "sample string 12",
    "DefaultPoolId": "16af84c2-b96e-4130-ab41-9e13534c8fd1",
    "DefaultPrivateAPN": "sample string 14",
    "DateCreated": "2024-11-21T10:08:14.5146827+00:00",
    "ICCID": "sample string 15"
  }
]

application/xml, text/xml

Sample:
<ArrayOfCustomerOverview xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/JolaSimPortal.Shared.Models.Customer">
  <CustomerOverview>
    <ActiveBoltOns>7</ActiveBoltOns>
    <ActiveSims>9</ActiveSims>
    <DateCreated>2024-11-21T10:08:14.5146827+00:00</DateCreated>
    <DefaultPool>sample string 12</DefaultPool>
    <DefaultPoolId>16af84c2-b96e-4130-ab41-9e13534c8fd1</DefaultPoolId>
    <DefaultPrivateAPN>sample string 14</DefaultPrivateAPN>
    <Email>sample string 3</Email>
    <Hidden>true</Hidden>
    <ICCID>sample string 15</ICCID>
    <Id>1fc8ac48-ca57-40df-9f78-ca7150089d95</Id>
    <InactiveSims>6</InactiveSims>
    <Name>sample string 2</Name>
    <Status>sample string 10</Status>
    <TotalData>8</TotalData>
    <TotalSims>4</TotalSims>
    <UnactivatedSims>5</UnactivatedSims>
  </CustomerOverview>
  <CustomerOverview>
    <ActiveBoltOns>7</ActiveBoltOns>
    <ActiveSims>9</ActiveSims>
    <DateCreated>2024-11-21T10:08:14.5146827+00:00</DateCreated>
    <DefaultPool>sample string 12</DefaultPool>
    <DefaultPoolId>16af84c2-b96e-4130-ab41-9e13534c8fd1</DefaultPoolId>
    <DefaultPrivateAPN>sample string 14</DefaultPrivateAPN>
    <Email>sample string 3</Email>
    <Hidden>true</Hidden>
    <ICCID>sample string 15</ICCID>
    <Id>1fc8ac48-ca57-40df-9f78-ca7150089d95</Id>
    <InactiveSims>6</InactiveSims>
    <Name>sample string 2</Name>
    <Status>sample string 10</Status>
    <TotalData>8</TotalData>
    <TotalSims>4</TotalSims>
    <UnactivatedSims>5</UnactivatedSims>
  </CustomerOverview>
</ArrayOfCustomerOverview>