Skip to content

Sage 200 Online Customer Contact XML

Information can be stored for multiple contacts against each customer account. Each contact can have its own details such as telephone numbers, fax numbers, email address and website. Note: In Sage 200 Standard, only one contact is supported. Further information can be found on the Sage 200 Online Contact API Documentation.

Tasks

Fields for Download Only

id

Read Only
Customer contact record Id.

Type Example XML
integer(int64) 27914 <id>27914</id>

customer_id

Read Only
Customer record Id.

Type Example XML
integer(int64) 27825 <customer_id>27825</customer_id>

salutation_id

Optional
Salutation record Id, can also be set using code, see salutation.

Type Example XML
integer(int64) 1 <salutation_id>1</salutation_id>

name

Read Only Contact Name - Concatenated first_name, middle_name and last_name.

Type Example XML
string(180) John Brian Smith <name>John Brian Smith</name>

first_name

Optional
Contact first name.

Type Example XML
string(60) John <first_name>John</first_name>

middle_name

Optional
Contact middle name.

Type Example XML
string(60) Brian <middle_name>Brian</middle_name>

last_name

Optional
Contact surname.

Type Example XML
string(60) Snape <last_name>Smith</last_name>

default_telephone

Read Only Default telephone number.

Type Example XML
string(227) 01234 567 890 <default_telephone>01234 567 890</default_telephone>

default_email

Read Only Default email address.

Type Example XML
string(227) [email protected] <default_email>[email protected]</default_email>

is_default

Optional
Is this the default contact for the parent customer.

Type Example XML
boolean true <is_default>true</is_default>

Available Values

  • true
  • false

date_time_updated

Read Only
The date and time this entity was last updated (UTC). This field is updated when a contact is uploaded using Zynk as well as when using the Sage 200 Online interface.

Example XML

<?xml version="1.0" encoding="utf-8"?>
<CustomerContacts xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <CustomerContact>
    <id>27914</id>
    <salutation_id>0</salutation_id>
    <name>John Brian Smith</name>
    <first_name>John</first_name>
    <middle_name>Brian</middle_name>
    <last_name>Smith</last_name>
    <is_default>true</is_default>
    <default_telephone>01234 567 890</default_telephone>
    <default_email>[email protected]</default_email>
    <date_time_updated>2021-02-28T14:23:45.733Z</date_time_updated>
    <customer_id>27825</customer_id>
  </CustomerContact>
</CustomerContacts>