GET Customers/ByParent/{parentCustomerID}

Gets a Customer by parent Customer id

Request Information

URI Parameters

NameDescriptionTypeAdditional information
parentCustomerID

The ID of the Customer which is a parent of the given Customer

integer

Required

Body Parameters

None.

Response Information

Resource Description

The Customer with the given ID or a DOES_NOT_EXIST bad request

Collection of 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 '[0].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 '[0].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 '[0].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 'Toluna.TEF.Common.ViewModels.Authentication.OutputCustomerModel' 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 'Toluna.TEF.Common.ViewModels.Authentication.OutputCustomerModel' contains cycles and cannot be serialized if reference tracking is disabled.

application/bson

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