GET Customers/{customerID}?includeChildCustomers={includeChildCustomers}

Gets a Customer by id

Request Information

URI Parameters

NameDescriptionTypeAdditional information
customerID

The ID of the Customer to get

integer

Required

includeChildCustomers

Includes THE FIRST LEVEL of child Customers associated with the given Customer

boolean

Default value is False

Body Parameters

None.

Response Information

Resource Description

The Customer with the given ID or a DOES_NOT_EXIST bad request

OutputCustomerModel
NameDescriptionTypeAdditional information
ChildCustomers

Collection of OutputCustomerModel

None.

CustomerID

integer

Required

IsDisabled

boolean

None.

Name

string

Required

Max length: 128

ParentCustomerID

integer

None.

Response Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: Self referencing loop detected with type 'Toluna.TEF.Common.ViewModels.Authentication.OutputCustomerModel'. Path 'ChildCustomers'.

text/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: Self referencing loop detected with type 'Toluna.TEF.Common.ViewModels.Authentication.OutputCustomerModel'. Path 'ChildCustomers'.

text/html

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/html'. Exception message: Self referencing loop detected with type 'Toluna.TEF.Common.ViewModels.Authentication.OutputCustomerModel'. Path 'ChildCustomers'.

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'System.Collections.Generic.List`1[[Toluna.TEF.Common.ViewModels.Authentication.OutputCustomerModel, Toluna.TEF.Common, Version=2.9.231.0, Culture=neutral, PublicKeyToken=4e91e76674745180]]' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'System.Collections.Generic.List`1[[Toluna.TEF.Common.ViewModels.Authentication.OutputCustomerModel, Toluna.TEF.Common, Version=2.9.231.0, Culture=neutral, PublicKeyToken=4e91e76674745180]]' contains cycles and cannot be serialized if reference tracking is disabled.

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.