All Collections
Cloud Commerce Pro
CCP - Open API: Adding/finding a Customer
CCP - Open API: Adding/finding a Customer

Using our API to add or find details for a customer in CCP

Chelsea Kelly avatar
Written by Chelsea Kelly
Updated over a week ago

The AddCustomer function either:-

  • returns the first matching customer

  • or creates a new customer with the data passed up

If successful it will return a customer object:-

  • populated with the values you passed in if the user was created

  • populated with some matching values if the user was found (usually via the email address)

  • Content > ID the CustomerID you need this to use the customer in other API calls, such as SubmitOrder to create an order

Tips and Recommendations when using this function

  • Do not pass in null values, if a value is optional, it is better not to send that node in the request if you don't want to set a value.

  • An existing customer will be returned if the Email passed in matches them, this is not SalesChannelID specific

  • Use caution if the customer is on other channels, only the first matching customer is returned and this would always be the first customer regardless of the channel you put in your request

  • If Country is not populated, United Kingdom is assumed.

  • The passed in Country needs to match the name we have in our DB (need page of this list to link to)

  • VATNumber can be populated as a customer is created, but this does not mark the customer as VAT Exempt - which is a property that is not exposed by the API against the customer.


All requests for this function need to go to the following endpoints:



  • intBrandID required, int32 - your brand ID

  • SalesChannelID required, int32 - the target channel ID

  • CompanyName required, string - Full customer name for Retail customer, company name if Trade customer

  • TradingName required, string - Full customer name for Retail customer, company name if Trade customer

  • FirstName required, string - First name of customer

  • LastName required, string - Surname of customer

  • EmailAddress required, string - Email of customer, this is the main field that differentiates customers - if this email matches a customer already in the system then it will return the first matching customer. Email doesn't need to be valid for new customers however if you put in a fake email address this will disable email triggers set up for that customer

  • intCustomerType required, int32 - restricted input, recognised values are:-

    • 0 - uses default, customer will be set as Public (aka Retail on screen)

    • 5 - Retailer (aka Trade on customer screen)

    • 8 - Public (aka Retail on customer screen)

  • intPaymentTerms required, int32 - restricted input, recognised values are (not sure about how some of these should work):-

    • 0 - none?

    • 1 - Full Payment Before Dispatch

    • 2 - 28 Days Credit

    • 3 - 60 Days Credit

    • 4 - Full Payment With 10 Percent Early Payment Discount

    • 5 - 50% Upfront Balance in 30 Days

    • 6 - 30% Deposit Balance on Delivery

    • 7 - Direct Debit

    • 8 - 30 Days Credit

  • CreditLimit optional, string - customers credit limit, useful for when payment terms have some credit element

  • VATNumber optional, string - customer VAT number, value here does not make customer VAT Exempt.

  • Address1 required, string - first line of Billing/Admin address

  • Address2 required, string - second line of Billing/Admin address, can be blank (not null) if no value

  • Postcode required, string - postcode of Billing/Admin address

  • TownCity required, string - town/city of Billing/Admin address

  • CountyRegion optional, string - county/region of Billing/Admin address

  • Country optional, string - full country name of Billing/Admin address, no abbreviations, default is United Kingdom if not provided.

  • TelNo required, string - landline number for Billing/Admin address, can be blank (not null) as per example

  • FaxNo optional, string - fax number for Billing/Admin address

  • MobileNo optional, string - mobile number for Billing/Admin address

  • LoginID not recommended - send 0 if your code library expects a value

  • AgentID not recommended - send 0 if your code library expects a value

Example Minimal Request:

<soapenv:Envelope xmlns:soapenv="" xmlns:tem="">
<soapenv:Header />
<tem:CompanyName>Company Name</tem:CompanyName>
<tem:TradingName>Trading Name</tem:TradingName>
<tem:TelNo />

Example of Successful Response:

<s:Envelope xmlns:s="">
<s:Body xmlns:xsi="" xmlns:xsd="">
<AddCustomerResponse xmlns="">
<UserName />
<Password />
<VATNumber />
<CompanyName>Company Name</CompanyName>
<TradingName>Trading Name</TradingName>
<TelNo />
<FaxNo />
<MobNo />
<CountyRegion />
<Country>United Kingdom</Country>
<Errors />

Did this answer your question?