GET /service/api/ecom/shop/carts/{vendorOrderCode}/customers

Gets the customers associated to a cart.

Request Information

URI Parameters

NameDescriptionTypeAdditional Information
vendorOrderCode

Identifier of the cart.

string

Required

Body Parameters

None.

Response Information

Resource Description

Customers associated to 'vendorOrderCode'.

GetCustomersOfCartResponseServiceModel
NameDescriptionTypeAdditional 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": "E000332949",
    "VatId": "A123456",
    "CustomerTypeId": 1,
    "CustomerTypeDescription": "Billing"
  },
  "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": "E000641275",
    "VatId": "A123456",
    "CustomerTypeId": 3,
    "CustomerTypeDescription": "Reseller"
  },
  "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": "E000411537",
    "VatId": "A123456",
    "CustomerTypeId": 2,
    "CustomerTypeDescription": "Shipping"
  }
}                    
<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>E000332949</ExternalCustomerKey>
    <FirstName>John</FirstName>
    <LastName>Doe</LastName>
    <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>E000641275</ExternalCustomerKey>
    <FirstName>John</FirstName>
    <LastName>Doe</LastName>
    <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>E000411537</ExternalCustomerKey>
    <FirstName>John</FirstName>
    <LastName>Doe</LastName>
    <PostalCode>80021</PostalCode>
    <State i:nil="true" />
    <VatId>A123456</VatId>
  </Shipping>
</GetCustomersOfCartResponseServiceModel>