Creates a new customer in vWork. Customers can have a third_party_id set. This is useful for passing through an external id, such as from a CRM.
Security
apiKey
POST
curl -i -X POST \
'https://api.vworkapp.com/v5/customers.xml?api_key=string&api_key=YOUR_API_KEY_HERE' \
-H 'Accept-Encoding: gzip' \
-H 'Content-Type: application/xml; charset=utf-8' \
-d '<?xml version="1.0" encoding="utf-8"?>
<customer>
<name>Joe'\''s Plumbing</name>
<third_party_id>ABC123</third_party_id>
<notes/>
<delivery_contact>
<first_name>Cathy</first_name>
<last_name>Knocks</last_name>
<phone>1 555 111 1111</phone>
<mobile>1 555 111 1111</mobile>
<email>joe@acmeplumbers.com</email>
<location>
<formatted_address>880 Harrison Street, San Francisco, CA, 94107</formatted_address>
<lat>-37.779536</lat>
<lng>-122.401503</lng>
</location>
</delivery_contact>
<billing_contact>
<first_name>Bob</first_name>
<last_name>Lei</last_name>
<phone>1 555 111 1111</phone>
<location>
<formatted_address>880 Harrison Street, San Francisco, CA, 94107</formatted_address>
<lat>-37.779536</lat>
<lng>-122.401503</lng>
</location>
</billing_contact>
</customer>'Response
<?xml version="1.0" encoding="utf-8"?>
<customer>
<id>1119086</id>
<name>Joe's Plumbing</name>
<notes/>
<third_party_id>ABC123</third_party_id>
<billing_contact>
<first_name>Bob</first_name>
<last_name>Lei</last_name>
<phone>1 555 111 1111</phone>
<mobile/>
<email/>
<location>
<id type="integer">23839050</id>
<created_at type="datetime" readonly="readonly">2016-06-13T22:51:25+00:00</created_at>
<updated_at type="datetime" readonly="readonly">2016-06-13T22:51:25+00:00</updated_at>
<address1/>
<address2/>
<suburb/>
<city/>
<post_code/>
<country/>
<province/>
<region/>
<state/>
<formatted_address>880 Harrison Street, San Francisco, CA, 94107</formatted_address>
<lat type="decimal">-37.779536</lat>
<lng type="decimal">-122.401503</lng>
…