GET /service/api/ecom/shop/carts/{vendorOrderCode}/customers
Gets the customers associated to a cart.
Request Information
URI Parameters
| Name | Description | Type | Additional Information |
|---|---|---|---|
| vendorOrderCode |
Identifier of the cart. |
string |
Required |
URI Sample(s)
|
GET
|
https://unityapi.webrootcloudav.com/service/api/ecom/shop/carts/PSV0045106478/customers
|
Body Parameters
None.
Response Information
Resource Description
Customers associated to 'vendorOrderCode'.
GetCustomersOfCartResponseServiceModel| Name | Description | Type | Additional Information |
|---|---|---|---|
| Billing |
Customer record for the billing entity |
GetCustomersOfCartResponseServiceModel_Customer |
None. |
| Reseller |
Customer record for the reseller (if any) |
GetCustomersOfCartResponseServiceModel_Customer |
None. |
| Shipping |
Customer record designating the shipping entity |
GetCustomersOfCartResponseServiceModel_Customer |
None. |
Sample Response
{
"Billing": {
"FirstName": "John",
"LastName": "Doe",
"Address1": "Webroot Way 21",
"Address2": null,
"City": "Broomfield",
"PostalCode": "80021",
"State": null,
"Country": "US",
"CustomerEmail": "jdoe@webroot.com",
"CompanyName": "ACME, Inc.",
"ExternalCustomerKey": "E000568558",
"VatId": "A123456",
"CustomerTypeId": 1,
"CustomerTypeDescription": "Billing",
"OptIn": true
},
"Reseller": {
"FirstName": "John",
"LastName": "Doe",
"Address1": "Webroot Way 21",
"Address2": null,
"City": "Broomfield",
"PostalCode": "80021",
"State": null,
"Country": "US",
"CustomerEmail": "jdoe@webroot.com",
"CompanyName": "ACME, Inc.",
"ExternalCustomerKey": "E000258468",
"VatId": "A123456",
"CustomerTypeId": 3,
"CustomerTypeDescription": "Reseller",
"OptIn": true
},
"Shipping": {
"FirstName": "John",
"LastName": "Doe",
"Address1": "Webroot Way 21",
"Address2": null,
"City": "Broomfield",
"PostalCode": "80021",
"State": null,
"Country": "US",
"CustomerEmail": "jdoe@webroot.com",
"CompanyName": "ACME, Inc.",
"ExternalCustomerKey": "E000762198",
"VatId": "A123456",
"CustomerTypeId": 2,
"CustomerTypeDescription": "Shipping",
"OptIn": true
}
}
<GetCustomersOfCartResponseServiceModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.ECom.Models">
<Billing>
<Address1>Webroot Way 21</Address1>
<Address2 i:nil="true" />
<City>Broomfield</City>
<CompanyName>ACME, Inc.</CompanyName>
<Country>US</Country>
<CustomerEmail>jdoe@webroot.com</CustomerEmail>
<CustomerTypeDescription>Billing</CustomerTypeDescription>
<CustomerTypeId>1</CustomerTypeId>
<ExternalCustomerKey>E000568558</ExternalCustomerKey>
<FirstName>John</FirstName>
<LastName>Doe</LastName>
<OptIn>true</OptIn>
<PostalCode>80021</PostalCode>
<State i:nil="true" />
<VatId>A123456</VatId>
</Billing>
<Reseller>
<Address1>Webroot Way 21</Address1>
<Address2 i:nil="true" />
<City>Broomfield</City>
<CompanyName>ACME, Inc.</CompanyName>
<Country>US</Country>
<CustomerEmail>jdoe@webroot.com</CustomerEmail>
<CustomerTypeDescription>Reseller</CustomerTypeDescription>
<CustomerTypeId>3</CustomerTypeId>
<ExternalCustomerKey>E000258468</ExternalCustomerKey>
<FirstName>John</FirstName>
<LastName>Doe</LastName>
<OptIn>true</OptIn>
<PostalCode>80021</PostalCode>
<State i:nil="true" />
<VatId>A123456</VatId>
</Reseller>
<Shipping>
<Address1>Webroot Way 21</Address1>
<Address2 i:nil="true" />
<City>Broomfield</City>
<CompanyName>ACME, Inc.</CompanyName>
<Country>US</Country>
<CustomerEmail>jdoe@webroot.com</CustomerEmail>
<CustomerTypeDescription>Shipping</CustomerTypeDescription>
<CustomerTypeId>2</CustomerTypeId>
<ExternalCustomerKey>E000762198</ExternalCustomerKey>
<FirstName>John</FirstName>
<LastName>Doe</LastName>
<OptIn>true</OptIn>
<PostalCode>80021</PostalCode>
<State i:nil="true" />
<VatId>A123456</VatId>
</Shipping>
</GetCustomersOfCartResponseServiceModel>