Skip to content

Sage 200 Online Department XML

Departments are a subdivision of cost centres and are used where specific costs or revenue need to be collated and reported on separately. Further information can be found on the Sage 200 Online Department API Documentation.

Tasks

Fields for Download Only

id

Read Only
Department record Id.

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

date_time_created

Read Only
The date and time this entity was created (UTC).

Type Example XML
datetime 2021-02-28T14:03:56.75Z <date_time_created>2021-02-28T14:03:56.75Z</date_time_created>

date_time_updated

Read Only
The date and time this entity was last updated (UTC).

Type Example XML
datetime 2021-02-28T14:23:46.277Z <date_time_updated>2021-02-28T14:23:46.277Z</date_time_updated>

code

Read Only
Department code.

Type Example XML
string(2) AT <code>AT</code>

name

Read Only
Department name.

Type Example XML
string(60) Sales <name>Sales</name>

contact_name

Read Only
Contact name.

Type Example XML
string(200) John Smith <contact_name>John Smith</contact_name>

contact_details

Read Only
Contact Details.

Type Example XML
string(235) 0191 393 7279 <contact_details>0191 393 7279</contact_details>

contact_email_address

Read Only
Contact email address

Type Example XML
string(200) [email protected] <contact_email_address>[email protected]</contact_email_address>

Example XML

<?xml version="1.0" encoding="utf-8"?>
<Departments 
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
  xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <Department>
    <id>2251</id>
    <date_time_created>2021-02-28T14:03:56.75Z</date_time_created>
    <date_time_updated>2021-02-28T14:23:46.277Z</date_time_updated>
    <code>1</code>
    <name>Sales</name>
    <contact_name />
    <contact_details />
    <contact_email_address />
  </Department>
  <Department>
    <id>2252</id>
    <date_time_created>2021-02-28T14:03:56.943Z</date_time_created>
    <date_time_updated>2021-02-28T14:23:46.277Z</date_time_updated>
    <code>2</code>
    <name>Purchasing</name>
    <contact_name />
    <contact_details />
    <contact_email_address />
  </Department>
</Departments>