Evo Voice

<back to all web services

ListCustomers

Retrieve customers

Requires Authentication
Requires any of the roles:SystemAdministrator, Manager, Customer
The following routes are available for this service:
GET/customers
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
import com.google.gson.annotations.*;
import com.google.gson.reflect.*;

public class dtos
{

    /**
    * Retrieve customers
    */
    @Api(Description="Retrieve customers")
    public static class ListCustomers extends ListRequest<CustomerInfo>
    {
        /**
        * Filter by accounts
        */
        @ApiMember(Description="Filter by accounts")
        public ArrayList<String> accountIds = null;

        /**
        * Filter by name
        */
        @ApiMember(Description="Filter by name")
        public String nameFilter = null;

        /**
        * The IDs of the parent customers you want to filter by
        */
        @ApiMember(Description="The IDs of the parent customers you want to filter by")
        public ArrayList<String> parentCustomerIds = null;

        /**
        * If you want a shall parent customer filter (e.g. no deep children)
        */
        @ApiMember(Description="If you want a shall parent customer filter (e.g. no deep children)")
        public Boolean shallowParent = null;

        /**
        * The list of tag IDs to filter by (must contain all)
        */
        @ApiMember(Description="The list of tag IDs to filter by (must contain all)")
        public ArrayList<String> tagIds = null;
        
        public ArrayList<String> getAccountIds() { return accountIds; }
        public ListCustomers setAccountIds(ArrayList<String> value) { this.accountIds = value; return this; }
        public String getNameFilter() { return nameFilter; }
        public ListCustomers setNameFilter(String value) { this.nameFilter = value; return this; }
        public ArrayList<String> getParentCustomerIds() { return parentCustomerIds; }
        public ListCustomers setParentCustomerIds(ArrayList<String> value) { this.parentCustomerIds = value; return this; }
        public Boolean isShallowParent() { return shallowParent; }
        public ListCustomers setShallowParent(Boolean value) { this.shallowParent = value; return this; }
        public ArrayList<String> getTagIds() { return tagIds; }
        public ListCustomers setTagIds(ArrayList<String> value) { this.tagIds = value; return this; }
    }

    public static class ListRequest<T> implements IGet
    {
        /**
        * The page of data to retrieve
        */
        @ApiMember(Description="The page of data to retrieve")
        public Integer page = null;

        /**
        * If you want all objects to be returned. This should be used with care
        */
        @ApiMember(Description="If you want all objects to be returned. This should be used with care")
        public Boolean all = null;

        /**
        * The number per page to retrieve
        */
        @ApiMember(Description="The number per page to retrieve")
        public Integer countPerPage = null;

        /**
        * Specific IDs
        */
        @ApiMember(Description="Specific IDs")
        public ArrayList<String> specificIds = null;

        /**
        * Specify a sort field
        */
        @ApiMember(Description="Specify a sort field")
        public String sortField = null;

        /**
        * Specify a sort order
        */
        @ApiMember(Description="Specify a sort order")
        public SortOrders sortOrder = null;

        /**
        * Disables total / page counts - improves performance. Returns only data. If there is no more data, Items will be empty array
        */
        @ApiMember(Description="Disables total / page counts - improves performance. Returns only data. If there is no more data, Items will be empty array")
        public Boolean simplifiedPaging = null;
        
        public Integer getPage() { return page; }
        public ListRequest<T> setPage(Integer value) { this.page = value; return this; }
        public Boolean isAll() { return all; }
        public ListRequest<T> setAll(Boolean value) { this.all = value; return this; }
        public Integer getCountPerPage() { return countPerPage; }
        public ListRequest<T> setCountPerPage(Integer value) { this.countPerPage = value; return this; }
        public ArrayList<String> getSpecificIds() { return specificIds; }
        public ListRequest<T> setSpecificIds(ArrayList<String> value) { this.specificIds = value; return this; }
        public String getSortField() { return sortField; }
        public ListRequest<T> setSortField(String value) { this.sortField = value; return this; }
        public SortOrders getSortOrder() { return sortOrder; }
        public ListRequest<T> setSortOrder(SortOrders value) { this.sortOrder = value; return this; }
        public Boolean isSimplifiedPaging() { return simplifiedPaging; }
        public ListRequest<T> setSimplifiedPaging(Boolean value) { this.simplifiedPaging = value; return this; }
    }

    public static enum SortOrders
    {
        Ascend,
        Descend;
    }

    public static class CustomerInfo extends EntityInfo
    {
        /**
        * The ID of the account associated with this customer
        */
        @ApiMember(Description="The ID of the account associated with this customer")
        public String accountId = null;

        /**
        * The parent customer ID for this customer
        */
        @ApiMember(Description="The parent customer ID for this customer")
        public String parentCustomerId = null;

        /**
        * The breadcrumb to this customer
        */
        @ApiMember(Description="The breadcrumb to this customer")
        public ArrayList<CustomerBreadcrumb> breadcrumb = null;

        /**
        * The name of the account associated with this customer
        */
        @ApiMember(Description="The name of the account associated with this customer")
        public String accountName = null;

        /**
        * Is this customer staging or production?
        */
        @ApiMember(Description="Is this customer staging or production?")
        public Boolean isStaging = null;

        /**
        * The name of the company
        */
        @ApiMember(Description="The name of the company")
        public String name = null;

        /**
        * The reference ID for this company
        */
        @ApiMember(Description="The reference ID for this company")
        public String referenceId = null;

        /**
        * This customer's data values
        */
        @ApiMember(Description="This customer's data values")
        public Struct data = null;

        /**
        * The list of tags for this customer
        */
        @ApiMember(Description="The list of tags for this customer")
        public ArrayList<Tag> tags = null;

        /**
        * This customer's schedule
        */
        @ApiMember(Description="This customer's schedule")
        public Schedule schedule = null;

        /**
        * Integration data for this customer
        */
        @ApiMember(Description="Integration data for this customer")
        public EntityIntegrationData integrationData = null;

        /**
        * Override this customer's billing settings? Otherwise inherits from parent
        */
        @ApiMember(Description="Override this customer's billing settings? Otherwise inherits from parent")
        public Boolean overrideBillingSettings = null;

        /**
        * Billing settings for this customer
        */
        @ApiMember(Description="Billing settings for this customer")
        public BillingSettings billingSettings = null;

        /**
        * Should this customer override the parent customer's app settings
        */
        @ApiMember(Description="Should this customer override the parent customer's app settings")
        public Boolean overrideAppSettings = null;

        /**
        * App / Portal settings for this customer
        */
        @ApiMember(Description="App / Portal settings for this customer")
        public AppSettings appSettings = null;
        
        public String getAccountId() { return accountId; }
        public CustomerInfo setAccountId(String value) { this.accountId = value; return this; }
        public String getParentCustomerId() { return parentCustomerId; }
        public CustomerInfo setParentCustomerId(String value) { this.parentCustomerId = value; return this; }
        public ArrayList<CustomerBreadcrumb> getBreadcrumb() { return breadcrumb; }
        public CustomerInfo setBreadcrumb(ArrayList<CustomerBreadcrumb> value) { this.breadcrumb = value; return this; }
        public String getAccountName() { return accountName; }
        public CustomerInfo setAccountName(String value) { this.accountName = value; return this; }
        public Boolean getIsStaging() { return isStaging; }
        public CustomerInfo setIsStaging(Boolean value) { this.isStaging = value; return this; }
        public String getName() { return name; }
        public CustomerInfo setName(String value) { this.name = value; return this; }
        public String getReferenceId() { return referenceId; }
        public CustomerInfo setReferenceId(String value) { this.referenceId = value; return this; }
        public Struct getData() { return data; }
        public CustomerInfo setData(Struct value) { this.data = value; return this; }
        public ArrayList<Tag> getTags() { return tags; }
        public CustomerInfo setTags(ArrayList<Tag> value) { this.tags = value; return this; }
        public Schedule getSchedule() { return schedule; }
        public CustomerInfo setSchedule(Schedule value) { this.schedule = value; return this; }
        public EntityIntegrationData getIntegrationData() { return integrationData; }
        public CustomerInfo setIntegrationData(EntityIntegrationData value) { this.integrationData = value; return this; }
        public Boolean isOverrideBillingSettings() { return overrideBillingSettings; }
        public CustomerInfo setOverrideBillingSettings(Boolean value) { this.overrideBillingSettings = value; return this; }
        public BillingSettings getBillingSettings() { return billingSettings; }
        public CustomerInfo setBillingSettings(BillingSettings value) { this.billingSettings = value; return this; }
        public Boolean isOverrideAppSettings() { return overrideAppSettings; }
        public CustomerInfo setOverrideAppSettings(Boolean value) { this.overrideAppSettings = value; return this; }
        public AppSettings getAppSettings() { return appSettings; }
        public CustomerInfo setAppSettings(AppSettings value) { this.appSettings = value; return this; }
    }

    public static class EntityInfo
    {
        /**
        * The ID of the object
        */
        @ApiMember(Description="The ID of the object")
        public String id = null;

        /**
        * The date the object was created
        */
        @ApiMember(Description="The date the object was created")
        public String dateCreated = null;

        /**
        * The date the object was last modified
        */
        @ApiMember(Description="The date the object was last modified")
        public String dateLastModified = null;

        /**
        * The user that created this object
        */
        @ApiMember(Description="The user that created this object")
        public String createdBy = null;

        /**
        * The user that last modified this object
        */
        @ApiMember(Description="The user that last modified this object")
        public String lastModifiedBy = null;
        
        public String getId() { return id; }
        public EntityInfo setId(String value) { this.id = value; return this; }
        public String getDateCreated() { return dateCreated; }
        public EntityInfo setDateCreated(String value) { this.dateCreated = value; return this; }
        public String getDateLastModified() { return dateLastModified; }
        public EntityInfo setDateLastModified(String value) { this.dateLastModified = value; return this; }
        public String getCreatedBy() { return createdBy; }
        public EntityInfo setCreatedBy(String value) { this.createdBy = value; return this; }
        public String getLastModifiedBy() { return lastModifiedBy; }
        public EntityInfo setLastModifiedBy(String value) { this.lastModifiedBy = value; return this; }
    }

    public static class CustomerBreadcrumb
    {
        public String id = null;
        public String name = null;
        
        public String getId() { return id; }
        public CustomerBreadcrumb setId(String value) { this.id = value; return this; }
        public String getName() { return name; }
        public CustomerBreadcrumb setName(String value) { this.name = value; return this; }
    }

    public static class Struct extends HashMap<String,Value>
    {
        
    }

    public static class Value
    {
        public Boolean boolValue = null;
        public String stringValue = null;
        public Double numberValue = null;
        public ArrayList<Struct> listValue = null;
        public Struct structValue = null;
        
        public Boolean isBoolValue() { return boolValue; }
        public Value setBoolValue(Boolean value) { this.boolValue = value; return this; }
        public String getStringValue() { return stringValue; }
        public Value setStringValue(String value) { this.stringValue = value; return this; }
        public Double getNumberValue() { return numberValue; }
        public Value setNumberValue(Double value) { this.numberValue = value; return this; }
        public ArrayList<Struct> getListValue() { return listValue; }
        public Value setListValue(ArrayList<Struct> value) { this.listValue = value; return this; }
        public Struct getStructValue() { return structValue; }
        public Value setStructValue(Struct value) { this.structValue = value; return this; }
    }

    public static class Tag
    {
        public String id = null;
        public String name = null;
        public TagColors color = null;
        
        public String getId() { return id; }
        public Tag setId(String value) { this.id = value; return this; }
        public String getName() { return name; }
        public Tag setName(String value) { this.name = value; return this; }
        public TagColors getColor() { return color; }
        public Tag setColor(TagColors value) { this.color = value; return this; }
    }

    public static enum TagColors
    {
        Magenta,
        Red,
        Volcano,
        Orange,
        Gold,
        Lime,
        Green,
        Cyan,
        Blue,
        GeekBlue,
        Purple;
    }

    public static class Schedule
    {
        public String timeZoneId = null;
        public Boolean inherit = null;
        public Boolean forceClosed = null;
        public ArrayList<SchedulingRule> rules = null;
        public String defaultState = null;
        
        public String getTimeZoneId() { return timeZoneId; }
        public Schedule setTimeZoneId(String value) { this.timeZoneId = value; return this; }
        public Boolean isInherit() { return inherit; }
        public Schedule setInherit(Boolean value) { this.inherit = value; return this; }
        public Boolean isForceClosed() { return forceClosed; }
        public Schedule setForceClosed(Boolean value) { this.forceClosed = value; return this; }
        public ArrayList<SchedulingRule> getRules() { return rules; }
        public Schedule setRules(ArrayList<SchedulingRule> value) { this.rules = value; return this; }
        public String getDefaultState() { return defaultState; }
        public Schedule setDefaultState(String value) { this.defaultState = value; return this; }
    }

    public static class SchedulingRule
    {
        public String id = null;
        public String name = null;
        public Integer priority = null;
        public String state = null;
        public String source = null;
        public String condition = null;
        public SimpleSchedulingRuleTypes simpleRuleType = null;
        public String customerState = null;
        public String flowId = null;
        public Struct flowParams = null;
        public Boolean isAllDay = null;
        public String startDate = null;
        public String startTime = null;
        public String endTime = null;
        public ArrayList<Integer> bySetPosition = null;
        public ArrayList<Integer> byMonth = null;
        public ArrayList<Integer> byWeekNo = null;
        public ArrayList<Integer> byYearDay = null;
        public ArrayList<Integer> byMonthDay = null;
        public ArrayList<ScheduleDay> byDay = null;
        public ArrayList<Integer> byHour = null;
        public ArrayList<Integer> byMinute = null;
        public Integer interval = null;
        public Integer count = null;
        public String untilDate = null;
        public SchedulingRuleFrequency frequency = null;
        
        public String getId() { return id; }
        public SchedulingRule setId(String value) { this.id = value; return this; }
        public String getName() { return name; }
        public SchedulingRule setName(String value) { this.name = value; return this; }
        public Integer getPriority() { return priority; }
        public SchedulingRule setPriority(Integer value) { this.priority = value; return this; }
        public String getState() { return state; }
        public SchedulingRule setState(String value) { this.state = value; return this; }
        public String getSource() { return source; }
        public SchedulingRule setSource(String value) { this.source = value; return this; }
        public String getCondition() { return condition; }
        public SchedulingRule setCondition(String value) { this.condition = value; return this; }
        public SimpleSchedulingRuleTypes getSimpleRuleType() { return simpleRuleType; }
        public SchedulingRule setSimpleRuleType(SimpleSchedulingRuleTypes value) { this.simpleRuleType = value; return this; }
        public String getCustomerState() { return customerState; }
        public SchedulingRule setCustomerState(String value) { this.customerState = value; return this; }
        public String getFlowId() { return flowId; }
        public SchedulingRule setFlowId(String value) { this.flowId = value; return this; }
        public Struct getFlowParams() { return flowParams; }
        public SchedulingRule setFlowParams(Struct value) { this.flowParams = value; return this; }
        public Boolean getIsAllDay() { return isAllDay; }
        public SchedulingRule setIsAllDay(Boolean value) { this.isAllDay = value; return this; }
        public String getStartDate() { return startDate; }
        public SchedulingRule setStartDate(String value) { this.startDate = value; return this; }
        public String getStartTime() { return startTime; }
        public SchedulingRule setStartTime(String value) { this.startTime = value; return this; }
        public String getEndTime() { return endTime; }
        public SchedulingRule setEndTime(String value) { this.endTime = value; return this; }
        public ArrayList<Integer> getBySetPosition() { return bySetPosition; }
        public SchedulingRule setBySetPosition(ArrayList<Integer> value) { this.bySetPosition = value; return this; }
        public ArrayList<Integer> getByMonth() { return byMonth; }
        public SchedulingRule setByMonth(ArrayList<Integer> value) { this.byMonth = value; return this; }
        public ArrayList<Integer> getByWeekNo() { return byWeekNo; }
        public SchedulingRule setByWeekNo(ArrayList<Integer> value) { this.byWeekNo = value; return this; }
        public ArrayList<Integer> getByYearDay() { return byYearDay; }
        public SchedulingRule setByYearDay(ArrayList<Integer> value) { this.byYearDay = value; return this; }
        public ArrayList<Integer> getByMonthDay() { return byMonthDay; }
        public SchedulingRule setByMonthDay(ArrayList<Integer> value) { this.byMonthDay = value; return this; }
        public ArrayList<ScheduleDay> getByDay() { return byDay; }
        public SchedulingRule setByDay(ArrayList<ScheduleDay> value) { this.byDay = value; return this; }
        public ArrayList<Integer> getByHour() { return byHour; }
        public SchedulingRule setByHour(ArrayList<Integer> value) { this.byHour = value; return this; }
        public ArrayList<Integer> getByMinute() { return byMinute; }
        public SchedulingRule setByMinute(ArrayList<Integer> value) { this.byMinute = value; return this; }
        public Integer getInterval() { return interval; }
        public SchedulingRule setInterval(Integer value) { this.interval = value; return this; }
        public Integer getCount() { return count; }
        public SchedulingRule setCount(Integer value) { this.count = value; return this; }
        public String getUntilDate() { return untilDate; }
        public SchedulingRule setUntilDate(String value) { this.untilDate = value; return this; }
        public SchedulingRuleFrequency getFrequency() { return frequency; }
        public SchedulingRule setFrequency(SchedulingRuleFrequency value) { this.frequency = value; return this; }
    }

    public static enum SimpleSchedulingRuleTypes
    {
        Always,
        CustomerState,
        Time;
    }

    public static class ScheduleDay
    {
        public Integer offset = null;
        public DayOfWeek dayOfWeek = null;
        
        public Integer getOffset() { return offset; }
        public ScheduleDay setOffset(Integer value) { this.offset = value; return this; }
        public DayOfWeek getDayOfWeek() { return dayOfWeek; }
        public ScheduleDay setDayOfWeek(DayOfWeek value) { this.dayOfWeek = value; return this; }
    }

    public static enum SchedulingRuleFrequency
    {
        None,
        Secondly,
        Minutely,
        Hourly,
        Daily,
        Weekly,
        Monthly,
        Yearly;
    }

    public static class EntityIntegrationData extends HashMap<String,IntegrationData>
    {
        
    }

    public static class IntegrationData
    {
        public String thirdPartyId = null;
        
        public String getThirdPartyId() { return thirdPartyId; }
        public IntegrationData setThirdPartyId(String value) { this.thirdPartyId = value; return this; }
    }

    public static class BillingSettings
    {
        public BillingItem base = null;
        public BillingItem localNumbers = null;
        public BillingItem tollFreeNumbers = null;
        public BillingItem inboundVoiceCalls = null;
        public BillingItem outboundVoiceCalls = null;
        public BillingItem inboundFaxes = null;
        public BillingItem outboundFaxes = null;
        public BillingItem inboundSmsMessages = null;
        public BillingItem outboundSmsMessages = null;
        
        public BillingItem getBase() { return base; }
        public BillingSettings setBase(BillingItem value) { this.base = value; return this; }
        public BillingItem getLocalNumbers() { return localNumbers; }
        public BillingSettings setLocalNumbers(BillingItem value) { this.localNumbers = value; return this; }
        public BillingItem getTollFreeNumbers() { return tollFreeNumbers; }
        public BillingSettings setTollFreeNumbers(BillingItem value) { this.tollFreeNumbers = value; return this; }
        public BillingItem getInboundVoiceCalls() { return inboundVoiceCalls; }
        public BillingSettings setInboundVoiceCalls(BillingItem value) { this.inboundVoiceCalls = value; return this; }
        public BillingItem getOutboundVoiceCalls() { return outboundVoiceCalls; }
        public BillingSettings setOutboundVoiceCalls(BillingItem value) { this.outboundVoiceCalls = value; return this; }
        public BillingItem getInboundFaxes() { return inboundFaxes; }
        public BillingSettings setInboundFaxes(BillingItem value) { this.inboundFaxes = value; return this; }
        public BillingItem getOutboundFaxes() { return outboundFaxes; }
        public BillingSettings setOutboundFaxes(BillingItem value) { this.outboundFaxes = value; return this; }
        public BillingItem getInboundSmsMessages() { return inboundSmsMessages; }
        public BillingSettings setInboundSmsMessages(BillingItem value) { this.inboundSmsMessages = value; return this; }
        public BillingItem getOutboundSmsMessages() { return outboundSmsMessages; }
        public BillingSettings setOutboundSmsMessages(BillingItem value) { this.outboundSmsMessages = value; return this; }
    }

    public static class BillingItem
    {
        public Double baseCost = null;
        public Double rawUnitMultiplier = null;
        public Double unitCost = null;
        public Integer allowance = null;
        
        public Double getBaseCost() { return baseCost; }
        public BillingItem setBaseCost(Double value) { this.baseCost = value; return this; }
        public Double getRawUnitMultiplier() { return rawUnitMultiplier; }
        public BillingItem setRawUnitMultiplier(Double value) { this.rawUnitMultiplier = value; return this; }
        public Double getUnitCost() { return unitCost; }
        public BillingItem setUnitCost(Double value) { this.unitCost = value; return this; }
        public Integer getAllowance() { return allowance; }
        public BillingItem setAllowance(Integer value) { this.allowance = value; return this; }
    }

    public static class AppSettings
    {
        public Boolean enablePhoneNumberManagement = null;
        public Boolean enableDeviceManagement = null;
        public Boolean enableDialer = null;
        public Boolean enableCallHistory = null;
        public Boolean showFileNameInMessageCenter = null;
        public String chakraTheme = null;
        public String customCss = null;
        public String pageTitle = null;
        public String stringMappings = null;
        public String logoutUrl = null;
        public String portMyNumberUrl = null;
        
        public Boolean isEnablePhoneNumberManagement() { return enablePhoneNumberManagement; }
        public AppSettings setEnablePhoneNumberManagement(Boolean value) { this.enablePhoneNumberManagement = value; return this; }
        public Boolean isEnableDeviceManagement() { return enableDeviceManagement; }
        public AppSettings setEnableDeviceManagement(Boolean value) { this.enableDeviceManagement = value; return this; }
        public Boolean isEnableDialer() { return enableDialer; }
        public AppSettings setEnableDialer(Boolean value) { this.enableDialer = value; return this; }
        public Boolean isEnableCallHistory() { return enableCallHistory; }
        public AppSettings setEnableCallHistory(Boolean value) { this.enableCallHistory = value; return this; }
        public Boolean isShowFileNameInMessageCenter() { return showFileNameInMessageCenter; }
        public AppSettings setShowFileNameInMessageCenter(Boolean value) { this.showFileNameInMessageCenter = value; return this; }
        public String getChakraTheme() { return chakraTheme; }
        public AppSettings setChakraTheme(String value) { this.chakraTheme = value; return this; }
        public String getCustomCss() { return customCss; }
        public AppSettings setCustomCss(String value) { this.customCss = value; return this; }
        public String getPageTitle() { return pageTitle; }
        public AppSettings setPageTitle(String value) { this.pageTitle = value; return this; }
        public String getStringMappings() { return stringMappings; }
        public AppSettings setStringMappings(String value) { this.stringMappings = value; return this; }
        public String getLogoutUrl() { return logoutUrl; }
        public AppSettings setLogoutUrl(String value) { this.logoutUrl = value; return this; }
        public String getPortMyNumberUrl() { return portMyNumberUrl; }
        public AppSettings setPortMyNumberUrl(String value) { this.portMyNumberUrl = value; return this; }
    }

    public static class ListResponse<AccountInfo>
    {
        /**
        * The items
        */
        @ApiMember(Description="The items")
        public ArrayList<AccountInfo> items = null;

        /**
        * The total number of items
        */
        @ApiMember(Description="The total number of items")
        public Integer totalCount = null;

        /**
        * The total number of pages
        */
        @ApiMember(Description="The total number of pages")
        public Integer totalPages = null;

        /**
        * Are there more pages of items? Used with simplified paging
        */
        @ApiMember(Description="Are there more pages of items? Used with simplified paging")
        public Boolean hasMorePages = null;
        
        public ArrayList<AccountInfo> getItems() { return items; }
        public ListResponse<AccountInfo> setItems(ArrayList<AccountInfo> value) { this.items = value; return this; }
        public Integer getTotalCount() { return totalCount; }
        public ListResponse<AccountInfo> setTotalCount(Integer value) { this.totalCount = value; return this; }
        public Integer getTotalPages() { return totalPages; }
        public ListResponse<AccountInfo> setTotalPages(Integer value) { this.totalPages = value; return this; }
        public Boolean isHasMorePages() { return hasMorePages; }
        public ListResponse<AccountInfo> setHasMorePages(Boolean value) { this.hasMorePages = value; return this; }
    }

    public static class AccountInfo extends EntityInfo
    {
        /**
        * The name of this account
        */
        @ApiMember(Description="The name of this account")
        public String name = null;

        /**
        * The ID of this account's parent
        */
        @ApiMember(Description="The ID of this account's parent")
        public String parentAccountId = null;

        /**
        * The twilio account SID
        */
        @ApiMember(Description="The twilio account SID")
        public String twilioAccountSid = null;

        /**
        * The ancestors of this account. Useful for breadcrumbs
        */
        @ApiMember(Description="The ancestors of this account. Useful for breadcrumbs")
        public ArrayList<String> ancestorIds = null;

        /**
        * The max number of phone numbers this account can have
        */
        @ApiMember(Description="The max number of phone numbers this account can have")
        public Integer maxPhoneNumbers = null;

        /**
        * This account is BYOA
        */
        @ApiMember(Description="This account is BYOA")
        public Boolean isBYOA = null;

        /**
        * TrustHub Profile Sid
        */
        @ApiMember(Description="TrustHub Profile Sid")
        public String trustHubProfileSid = null;

        /**
        * The ID of the logo file
        */
        @ApiMember(Description="The ID of the logo file")
        public String logoId = null;

        /**
        * The URI of the logo file
        */
        @ApiMember(Description="The URI of the logo file")
        public String logoUri = null;

        /**
        * The billing settings for this account
        */
        @ApiMember(Description="The billing settings for this account")
        public BillingSettings billingSettings = null;
        
        public String getName() { return name; }
        public AccountInfo setName(String value) { this.name = value; return this; }
        public String getParentAccountId() { return parentAccountId; }
        public AccountInfo setParentAccountId(String value) { this.parentAccountId = value; return this; }
        public String getTwilioAccountSid() { return twilioAccountSid; }
        public AccountInfo setTwilioAccountSid(String value) { this.twilioAccountSid = value; return this; }
        public ArrayList<String> getAncestorIds() { return ancestorIds; }
        public AccountInfo setAncestorIds(ArrayList<String> value) { this.ancestorIds = value; return this; }
        public Integer getMaxPhoneNumbers() { return maxPhoneNumbers; }
        public AccountInfo setMaxPhoneNumbers(Integer value) { this.maxPhoneNumbers = value; return this; }
        public Boolean getIsBYOA() { return isBYOA; }
        public AccountInfo setIsBYOA(Boolean value) { this.isBYOA = value; return this; }
        public String getTrustHubProfileSid() { return trustHubProfileSid; }
        public AccountInfo setTrustHubProfileSid(String value) { this.trustHubProfileSid = value; return this; }
        public String getLogoId() { return logoId; }
        public AccountInfo setLogoId(String value) { this.logoId = value; return this; }
        public String getLogoUri() { return logoUri; }
        public AccountInfo setLogoUri(String value) { this.logoUri = value; return this; }
        public BillingSettings getBillingSettings() { return billingSettings; }
        public AccountInfo setBillingSettings(BillingSettings value) { this.billingSettings = value; return this; }
    }

}

Java ListCustomers DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /customers HTTP/1.1 
Host: evovoice.io 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<ListResponseOfCustomerInfoznfKbIMc xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Voice.Api">
  <HasMorePages>false</HasMorePages>
  <Items xmlns:d2p1="http://schemas.datacontract.org/2004/07/Voice.Api.Customers">
    <d2p1:CustomerInfo>
      <CreatedBy>String</CreatedBy>
      <DateCreated>String</DateCreated>
      <DateLastModified>String</DateLastModified>
      <Id>String</Id>
      <LastModifiedBy>String</LastModifiedBy>
      <d2p1:AccountId>String</d2p1:AccountId>
      <d2p1:AccountName>String</d2p1:AccountName>
      <d2p1:AppSettings>
        <d2p1:ChakraTheme>String</d2p1:ChakraTheme>
        <d2p1:CustomCss>String</d2p1:CustomCss>
        <d2p1:EnableCallHistory>false</d2p1:EnableCallHistory>
        <d2p1:EnableDeviceManagement>false</d2p1:EnableDeviceManagement>
        <d2p1:EnableDialer>false</d2p1:EnableDialer>
        <d2p1:EnablePhoneNumberManagement>false</d2p1:EnablePhoneNumberManagement>
        <d2p1:LogoutUrl>String</d2p1:LogoutUrl>
        <d2p1:PageTitle>String</d2p1:PageTitle>
        <d2p1:PortMyNumberUrl>String</d2p1:PortMyNumberUrl>
        <d2p1:ShowFileNameInMessageCenter>false</d2p1:ShowFileNameInMessageCenter>
        <d2p1:StringMappings>String</d2p1:StringMappings>
      </d2p1:AppSettings>
      <d2p1:BillingSettings xmlns:d4p1="http://schemas.datacontract.org/2004/07/Voice.Api.Accounts">
        <d4p1:Base>
          <d4p1:Allowance>0</d4p1:Allowance>
          <d4p1:BaseCost>0</d4p1:BaseCost>
          <d4p1:RawUnitMultiplier>0</d4p1:RawUnitMultiplier>
          <d4p1:UnitCost>0</d4p1:UnitCost>
        </d4p1:Base>
        <d4p1:InboundFaxes>
          <d4p1:Allowance>0</d4p1:Allowance>
          <d4p1:BaseCost>0</d4p1:BaseCost>
          <d4p1:RawUnitMultiplier>0</d4p1:RawUnitMultiplier>
          <d4p1:UnitCost>0</d4p1:UnitCost>
        </d4p1:InboundFaxes>
        <d4p1:InboundSmsMessages>
          <d4p1:Allowance>0</d4p1:Allowance>
          <d4p1:BaseCost>0</d4p1:BaseCost>
          <d4p1:RawUnitMultiplier>0</d4p1:RawUnitMultiplier>
          <d4p1:UnitCost>0</d4p1:UnitCost>
        </d4p1:InboundSmsMessages>
        <d4p1:InboundVoiceCalls>
          <d4p1:Allowance>0</d4p1:Allowance>
          <d4p1:BaseCost>0</d4p1:BaseCost>
          <d4p1:RawUnitMultiplier>0</d4p1:RawUnitMultiplier>
          <d4p1:UnitCost>0</d4p1:UnitCost>
        </d4p1:InboundVoiceCalls>
        <d4p1:LocalNumbers>
          <d4p1:Allowance>0</d4p1:Allowance>
          <d4p1:BaseCost>0</d4p1:BaseCost>
          <d4p1:RawUnitMultiplier>0</d4p1:RawUnitMultiplier>
          <d4p1:UnitCost>0</d4p1:UnitCost>
        </d4p1:LocalNumbers>
        <d4p1:OutboundFaxes>
          <d4p1:Allowance>0</d4p1:Allowance>
          <d4p1:BaseCost>0</d4p1:BaseCost>
          <d4p1:RawUnitMultiplier>0</d4p1:RawUnitMultiplier>
          <d4p1:UnitCost>0</d4p1:UnitCost>
        </d4p1:OutboundFaxes>
        <d4p1:OutboundSmsMessages>
          <d4p1:Allowance>0</d4p1:Allowance>
          <d4p1:BaseCost>0</d4p1:BaseCost>
          <d4p1:RawUnitMultiplier>0</d4p1:RawUnitMultiplier>
          <d4p1:UnitCost>0</d4p1:UnitCost>
        </d4p1:OutboundSmsMessages>
        <d4p1:OutboundVoiceCalls>
          <d4p1:Allowance>0</d4p1:Allowance>
          <d4p1:BaseCost>0</d4p1:BaseCost>
          <d4p1:RawUnitMultiplier>0</d4p1:RawUnitMultiplier>
          <d4p1:UnitCost>0</d4p1:UnitCost>
        </d4p1:OutboundVoiceCalls>
        <d4p1:TollFreeNumbers>
          <d4p1:Allowance>0</d4p1:Allowance>
          <d4p1:BaseCost>0</d4p1:BaseCost>
          <d4p1:RawUnitMultiplier>0</d4p1:RawUnitMultiplier>
          <d4p1:UnitCost>0</d4p1:UnitCost>
        </d4p1:TollFreeNumbers>
      </d2p1:BillingSettings>
      <d2p1:Breadcrumb>
        <d2p1:CustomerBreadcrumb>
          <d2p1:Id>String</d2p1:Id>
          <d2p1:Name>String</d2p1:Name>
        </d2p1:CustomerBreadcrumb>
      </d2p1:Breadcrumb>
      <d2p1:Data xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:KeyValueOfstringValue8Ahp2kgT>
          <d4p1:Key>String</d4p1:Key>
          <d4p1:Value xmlns:d6p1="http://schemas.datacontract.org/2004/07/Voice.Api.Flows.Data">
            <d6p1:BoolValue>false</d6p1:BoolValue>
            <d6p1:ListValue>
              <d4p1:ArrayOfKeyValueOfstringValue8Ahp2kgT>
                <d4p1:KeyValueOfstringValue8Ahp2kgT>
                  <d4p1:Key>String</d4p1:Key>
                  <d4p1:Value>
                    <d6p1:BoolValue>false</d6p1:BoolValue>
                    <d6p1:ListValue>
                      <d4p1:ArrayOfKeyValueOfstringValue8Ahp2kgT>
                        <d4p1:KeyValueOfstringValue8Ahp2kgT>
                          <d4p1:Key>String</d4p1:Key>
                          <d4p1:Value>
                            <d6p1:BoolValue>false</d6p1:BoolValue>
                            <d6p1:ListValue>
                              <d4p1:ArrayOfKeyValueOfstringValue8Ahp2kgT i:nil="true" />
                            </d6p1:ListValue>
                            <d6p1:NumberValue>0</d6p1:NumberValue>
                            <d6p1:StringValue>String</d6p1:StringValue>
                            <d6p1:StructValue i:nil="true" />
                          </d4p1:Value>
                        </d4p1:KeyValueOfstringValue8Ahp2kgT>
                      </d4p1:ArrayOfKeyValueOfstringValue8Ahp2kgT>
                    </d6p1:ListValue>
                    <d6p1:NumberValue>0</d6p1:NumberValue>
                    <d6p1:StringValue>String</d6p1:StringValue>
                    <d6p1:StructValue>
                      <d4p1:KeyValueOfstringValue8Ahp2kgT>
                        <d4p1:Key>String</d4p1:Key>
                        <d4p1:Value>
                          <d6p1:BoolValue>false</d6p1:BoolValue>
                          <d6p1:ListValue>
                            <d4p1:ArrayOfKeyValueOfstringValue8Ahp2kgT i:nil="true" />
                          </d6p1:ListValue>
                          <d6p1:NumberValue>0</d6p1:NumberValue>
                          <d6p1:StringValue>String</d6p1:StringValue>
                          <d6p1:StructValue i:nil="true" />
                        </d4p1:Value>
                      </d4p1:KeyValueOfstringValue8Ahp2kgT>
                    </d6p1:StructValue>
                  </d4p1:Value>
                </d4p1:KeyValueOfstringValue8Ahp2kgT>
              </d4p1:ArrayOfKeyValueOfstringValue8Ahp2kgT>
            </d6p1:ListValue>
            <d6p1:NumberValue>0</d6p1:NumberValue>
            <d6p1:StringValue>String</d6p1:StringValue>
            <d6p1:StructValue>
              <d4p1:KeyValueOfstringValue8Ahp2kgT>
                <d4p1:Key>String</d4p1:Key>
                <d4p1:Value>
                  <d6p1:BoolValue>false</d6p1:BoolValue>
                  <d6p1:ListValue>
                    <d4p1:ArrayOfKeyValueOfstringValue8Ahp2kgT>
                      <d4p1:KeyValueOfstringValue8Ahp2kgT>
                        <d4p1:Key>String</d4p1:Key>
                        <d4p1:Value>
                          <d6p1:BoolValue>false</d6p1:BoolValue>
                          <d6p1:ListValue>
                            <d4p1:ArrayOfKeyValueOfstringValue8Ahp2kgT i:nil="true" />
                          </d6p1:ListValue>
                          <d6p1:NumberValue>0</d6p1:NumberValue>
                          <d6p1:StringValue>String</d6p1:StringValue>
                          <d6p1:StructValue i:nil="true" />
                        </d4p1:Value>
                      </d4p1:KeyValueOfstringValue8Ahp2kgT>
                    </d4p1:ArrayOfKeyValueOfstringValue8Ahp2kgT>
                  </d6p1:ListValue>
                  <d6p1:NumberValue>0</d6p1:NumberValue>
                  <d6p1:StringValue>String</d6p1:StringValue>
                  <d6p1:StructValue>
                    <d4p1:KeyValueOfstringValue8Ahp2kgT>
                      <d4p1:Key>String</d4p1:Key>
                      <d4p1:Value>
                        <d6p1:BoolValue>false</d6p1:BoolValue>
                        <d6p1:ListValue>
                          <d4p1:ArrayOfKeyValueOfstringValue8Ahp2kgT i:nil="true" />
                        </d6p1:ListValue>
                        <d6p1:NumberValue>0</d6p1:NumberValue>
                        <d6p1:StringValue>String</d6p1:StringValue>
                        <d6p1:StructValue i:nil="true" />
                      </d4p1:Value>
                    </d4p1:KeyValueOfstringValue8Ahp2kgT>
                  </d6p1:StructValue>
                </d4p1:Value>
              </d4p1:KeyValueOfstringValue8Ahp2kgT>
            </d6p1:StructValue>
          </d4p1:Value>
        </d4p1:KeyValueOfstringValue8Ahp2kgT>
      </d2p1:Data>
      <d2p1:IntegrationData xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:KeyValueOfstringIntegrationDataY_SkqLnhh>
          <d4p1:Key>String</d4p1:Key>
          <d4p1:Value xmlns:d6p1="http://schemas.datacontract.org/2004/07/Voice.Api.Integrations">
            <d6p1:ThirdPartyId>String</d6p1:ThirdPartyId>
          </d4p1:Value>
        </d4p1:KeyValueOfstringIntegrationDataY_SkqLnhh>
      </d2p1:IntegrationData>
      <d2p1:IsStaging>false</d2p1:IsStaging>
      <d2p1:Name>String</d2p1:Name>
      <d2p1:OverrideAppSettings>false</d2p1:OverrideAppSettings>
      <d2p1:OverrideBillingSettings>false</d2p1:OverrideBillingSettings>
      <d2p1:ParentCustomerId>String</d2p1:ParentCustomerId>
      <d2p1:ReferenceId>String</d2p1:ReferenceId>
      <d2p1:Schedule xmlns:d4p1="http://schemas.datacontract.org/2004/07/Voice.Api.Scheduling">
        <d4p1:DefaultState>String</d4p1:DefaultState>
        <d4p1:ForceClosed>false</d4p1:ForceClosed>
        <d4p1:Inherit>false</d4p1:Inherit>
        <d4p1:Rules>
          <d4p1:SchedulingRule>
            <d4p1:ByDay>
              <d4p1:ScheduleDay>
                <d4p1:DayOfWeek>Sunday</d4p1:DayOfWeek>
                <d4p1:Offset>0</d4p1:Offset>
              </d4p1:ScheduleDay>
            </d4p1:ByDay>
            <d4p1:ByHour xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
              <d7p1:int>0</d7p1:int>
            </d4p1:ByHour>
            <d4p1:ByMinute xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
              <d7p1:int>0</d7p1:int>
            </d4p1:ByMinute>
            <d4p1:ByMonth xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
              <d7p1:int>0</d7p1:int>
            </d4p1:ByMonth>
            <d4p1:ByMonthDay xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
              <d7p1:int>0</d7p1:int>
            </d4p1:ByMonthDay>
            <d4p1:BySetPosition xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
              <d7p1:int>0</d7p1:int>
            </d4p1:BySetPosition>
            <d4p1:ByWeekNo xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
              <d7p1:int>0</d7p1:int>
            </d4p1:ByWeekNo>
            <d4p1:ByYearDay xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
              <d7p1:int>0</d7p1:int>
            </d4p1:ByYearDay>
            <d4p1:Condition>String</d4p1:Condition>
            <d4p1:Count>0</d4p1:Count>
            <d4p1:CustomerState>String</d4p1:CustomerState>
            <d4p1:EndTime>String</d4p1:EndTime>
            <d4p1:FlowId>String</d4p1:FlowId>
            <d4p1:FlowParams xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
              <d7p1:KeyValueOfstringValue8Ahp2kgT>
                <d7p1:Key>String</d7p1:Key>
                <d7p1:Value xmlns:d9p1="http://schemas.datacontract.org/2004/07/Voice.Api.Flows.Data">
                  <d9p1:BoolValue>false</d9p1:BoolValue>
                  <d9p1:ListValue>
                    <d7p1:ArrayOfKeyValueOfstringValue8Ahp2kgT>
                      <d7p1:KeyValueOfstringValue8Ahp2kgT>
                        <d7p1:Key>String</d7p1:Key>
                        <d7p1:Value>
                          <d9p1:BoolValue>false</d9p1:BoolValue>
                          <d9p1:ListValue>
                            <d7p1:ArrayOfKeyValueOfstringValue8Ahp2kgT>
                              <d7p1:KeyValueOfstringValue8Ahp2kgT>
                                <d7p1:Key>String</d7p1:Key>
                                <d7p1:Value>
                                  <d9p1:BoolValue>false</d9p1:BoolValue>
                                  <d9p1:ListValue>
                                    <d7p1:ArrayOfKeyValueOfstringValue8Ahp2kgT i:nil="true" />
                                  </d9p1:ListValue>
                                  <d9p1:NumberValue>0</d9p1:NumberValue>
                                  <d9p1:StringValue>String</d9p1:StringValue>
                                  <d9p1:StructValue i:nil="true" />
                                </d7p1:Value>
                              </d7p1:KeyValueOfstringValue8Ahp2kgT>
                            </d7p1:ArrayOfKeyValueOfstringValue8Ahp2kgT>
                          </d9p1:ListValue>
                          <d9p1:NumberValue>0</d9p1:NumberValue>
                          <d9p1:StringValue>String</d9p1:StringValue>
                          <d9p1:StructValue>
                            <d7p1:KeyValueOfstringValue8Ahp2kgT>
                              <d7p1:Key>String</d7p1:Key>
                              <d7p1:Value>
                                <d9p1:BoolValue>false</d9p1:BoolValue>
                                <d9p1:ListValue>
                                  <d7p1:ArrayOfKeyValueOfstringValue8Ahp2kgT i:nil="true" />
                                </d9p1:ListValue>
                                <d9p1:NumberValue>0</d9p1:NumberValue>
                                <d9p1:StringValue>String</d9p1:StringValue>
                                <d9p1:StructValue i:nil="true" />
                              </d7p1:Value>
                            </d7p1:KeyValueOfstringValue8Ahp2kgT>
                          </d9p1:StructValue>
                        </d7p1:Value>
                      </d7p1:KeyValueOfstringValue8Ahp2kgT>
                    </d7p1:ArrayOfKeyValueOfstringValue8Ahp2kgT>
                  </d9p1:ListValue>
                  <d9p1:NumberValue>0</d9p1:NumberValue>
                  <d9p1:StringValue>String</d9p1:StringValue>
                  <d9p1:StructValue>
                    <d7p1:KeyValueOfstringValue8Ahp2kgT>
                      <d7p1:Key>String</d7p1:Key>
                      <d7p1:Value>
                        <d9p1:BoolValue>false</d9p1:BoolValue>
                        <d9p1:ListValue>
                          <d7p1:ArrayOfKeyValueOfstringValue8Ahp2kgT>
                            <d7p1:KeyValueOfstringValue8Ahp2kgT>
                              <d7p1:Key>String</d7p1:Key>
                              <d7p1:Value>
                                <d9p1:BoolValue>false</d9p1:BoolValue>
                                <d9p1:ListValue>
                                  <d7p1:ArrayOfKeyValueOfstringValue8Ahp2kgT i:nil="true" />
                                </d9p1:ListValue>
                                <d9p1:NumberValue>0</d9p1:NumberValue>
                                <d9p1:StringValue>String</d9p1:StringValue>
                                <d9p1:StructValue i:nil="true" />
                              </d7p1:Value>
                            </d7p1:KeyValueOfstringValue8Ahp2kgT>
                          </d7p1:ArrayOfKeyValueOfstringValue8Ahp2kgT>
                        </d9p1:ListValue>
                        <d9p1:NumberValue>0</d9p1:NumberValue>
                        <d9p1:StringValue>String</d9p1:StringValue>
                        <d9p1:StructValue>
                          <d7p1:KeyValueOfstringValue8Ahp2kgT>
                            <d7p1:Key>String</d7p1:Key>
                            <d7p1:Value>
                              <d9p1:BoolValue>false</d9p1:BoolValue>
                              <d9p1:ListValue>
                                <d7p1:ArrayOfKeyValueOfstringValue8Ahp2kgT i:nil="true" />
                              </d9p1:ListValue>
                              <d9p1:NumberValue>0</d9p1:NumberValue>
                              <d9p1:StringValue>String</d9p1:StringValue>
                              <d9p1:StructValue i:nil="true" />
                            </d7p1:Value>
                          </d7p1:KeyValueOfstringValue8Ahp2kgT>
                        </d9p1:StructValue>
                      </d7p1:Value>
                    </d7p1:KeyValueOfstringValue8Ahp2kgT>
                  </d9p1:StructValue>
                </d7p1:Value>
              </d7p1:KeyValueOfstringValue8Ahp2kgT>
            </d4p1:FlowParams>
            <d4p1:Frequency>None</d4p1:Frequency>
            <d4p1:Id>String</d4p1:Id>
            <d4p1:Interval>0</d4p1:Interval>
            <d4p1:IsAllDay>false</d4p1:IsAllDay>
            <d4p1:Name>String</d4p1:Name>
            <d4p1:Priority>0</d4p1:Priority>
            <d4p1:SimpleRuleType>Always</d4p1:SimpleRuleType>
            <d4p1:Source>String</d4p1:Source>
            <d4p1:StartDate>String</d4p1:StartDate>
            <d4p1:StartTime>String</d4p1:StartTime>
            <d4p1:State>String</d4p1:State>
            <d4p1:UntilDate>String</d4p1:UntilDate>
          </d4p1:SchedulingRule>
        </d4p1:Rules>
        <d4p1:TimeZoneId>String</d4p1:TimeZoneId>
      </d2p1:Schedule>
      <d2p1:Tags xmlns:d4p1="http://schemas.datacontract.org/2004/07/Voice.Api.Settings">
        <d4p1:Tag>
          <d4p1:Color>Magenta</d4p1:Color>
          <d4p1:Id>String</d4p1:Id>
          <d4p1:Name>String</d4p1:Name>
        </d4p1:Tag>
      </d2p1:Tags>
    </d2p1:CustomerInfo>
  </Items>
  <TotalCount>0</TotalCount>
  <TotalPages>0</TotalPages>
</ListResponseOfCustomerInfoznfKbIMc>