Northwind Web Services

<back to all web services

CustomerDetails

The following routes are available for this service:
All Verbs/customers/{Id}
CustomerDetails Parameters:
NameParameterData TypeRequiredDescription
IdpathstringNo
CustomerDetailsResponse Parameters:
NameParameterData TypeRequiredDescription
CustomerformCustomerNo
CustomerOrdersformList<CustomerOrder>No
ResponseStatusformResponseStatusNo
Customer Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
CompanyNameformstringNo
ContactNameformstringNo
ContactTitleformstringNo
AddressformstringNo
CityformstringNo
RegionformstringNo
PostalCodeformstringNo
CountryformstringNo
PhoneformstringNo
FaxformstringNo
CustomerOrder Parameters:
NameParameterData TypeRequiredDescription
OrderformOrderNo
OrderDetailsformList<OrderDetail>No
Order Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
CustomerIdformstringNo
EmployeeIdformintNo
OrderDateformDateTime?No
RequiredDateformDateTime?No
ShippedDateformDateTime?No
ShipViaformint?No
FreightformdecimalNo
ShipNameformstringNo
ShipAddressformstringNo
ShipCityformstringNo
ShipRegionformstringNo
ShipPostalCodeformstringNo
ShipCountryformstringNo
OrderDetail Parameters:
NameParameterData TypeRequiredDescription
OrderIdformintNo
ProductIdformintNo
UnitPriceformdecimalNo
QuantityformshortNo
DiscountformdoubleNo

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

HTTP + CSV

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

POST /csv/reply/CustomerDetails HTTP/1.1 
Host: northwind.servicestack.net 
Content-Type: text/csv
Content-Length: length

{"Id":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"Customer":{"Id":"String","CompanyName":"String","ContactName":"String","ContactTitle":"String","Address":"String","City":"String","Region":"String","PostalCode":"String","Country":"String","Phone":"String","Fax":"String"},"CustomerOrders":[{"Order":{"Id":0,"CustomerId":"String","EmployeeId":0,"OrderDate":"\/Date(-62135596800000-0000)\/","RequiredDate":"\/Date(-62135596800000-0000)\/","ShippedDate":"\/Date(-62135596800000-0000)\/","ShipVia":0,"Freight":0,"ShipName":"String","ShipAddress":"String","ShipCity":"String","ShipRegion":"String","ShipPostalCode":"String","ShipCountry":"String"},"OrderDetails":[{"OrderId":0,"ProductId":0,"UnitPrice":0,"Quantity":0,"Discount":0}]}],"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}