Creates end customer (shipping) and/or reseller customer records to associate to a given cart. Note that a billing customer is associated when the cart is created and cannot be modified.

POST {{baseUrl}}/api/ecom/shop/carts/:vendorOrderCode/customers

Request Body

{"Reseller"=>{"FirstName"=>"John", "LastName"=>"Doe", "Address1"=>"Webroot Way 21", "Address2"=>nil, "City"=>"Broomfield", "PostalCode"=>"80021", "State"=>"CO", "Country"=>"US", "CustomerEmail"=>"jdoe@webroot.com", "CompanyName"=>"ACME, Inc.", "CompanyTypeId"=>11, "ExternalCustomerKey"=>"E000293344"}, "Shipping"=>{"FirstName"=>"John", "LastName"=>"Doe", "Address1"=>"Webroot Way 21", "Address2"=>nil, "City"=>"Broomfield", "PostalCode"=>"80021", "State"=>"CO", "Country"=>"US", "CustomerEmail"=>"jdoe@webroot.com", "CompanyName"=>"ACME, Inc.", "CompanyTypeId"=>11, "ExternalCustomerKey"=>"E000520516"}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{"Billing":{"FirstName":"John","LastName":"Doe","Address1":"Webroot Way 21","Address2":null,"City":"Broomfield","PostalCode":"80021","State":"CO","Country":"US","CustomerEmail":"jdoe@webroot.com","CompanyName":"ACME, Inc.","ExternalCustomerKey":"E000964267","VatId":"A123456","CustomerTypeId":1,"CustomerTypeDescription":"Billing"},"Reseller":{"FirstName":"John","LastName":"Doe","Address1":"Webroot Way 21","Address2":null,"City":"Broomfield","PostalCode":"80021","State":"CO","Country":"US","CustomerEmail":"jdoe@webroot.com","CompanyName":"ACME, Inc.","ExternalCustomerKey":"E000531626","VatId":"A123456","CustomerTypeId":3,"CustomerTypeDescription":"Reseller"},"Shipping":{"FirstName":"John","LastName":"Doe","Address1":"Webroot Way 21","Address2":null,"City":"Broomfield","PostalCode":"80021","State":"CO","Country":"US","CustomerEmail":"jdoe@webroot.com","CompanyName":"ACME, Inc.","ExternalCustomerKey":"E000861343","VatId":"A123456","CustomerTypeId":2,"CustomerTypeDescription":"Shipping"}}