Service
https://api.timewax.com/company/add/
Goal
Adding new companies
Request
The following xml structure must be provided:
<request>
<token></token>
<company>
<code></code>
<name></name>
<isDebtor></isDebtor>
<language></language>
<contactPerson></contactPerson>
<parent></parent>
<industry></industry>
<type></type>
<mailingAttn></mailingAttn>
<mailingAddress></mailingAddress>
<mailingPostcode></mailingPostcode>
<mailingCity></mailingCity>
<mailingCountry></mailingCountry>
<officeAttn></officeAttn>
<officeAddress></officeAddress>
<officePostcode></officePostcode>
<officeCity></officeCity>
<officeCountry></officeCountry>
<telephone></telephone>
<fax></fax>
<VATNumber></VATNumber>
<website></website>
<notes></notes>
<debtors>
<debtor>
<name></name>
<attn></attn>
<address></address>
<postcode></postcode>
<city></city>
<country></country>
<currency></currency>
<debtorNumber></debtorNumber>
<email></email>
</debtor>
</debtors>
<contactPersons>
<contactPerson>
<name></name>
<position></position>
<organisationalUnit></organisationalUnit>
<telephone></telephone>
<mobile></mobile>
<email></email>
<birthDate></birthDate>
<communication1></communication1>
<communication2></communication2>
<communication3></communication3>
<communication4></communication4>
<communication5></communication5>
<notes></notes>
</contactPerson>
</contactPersons>
</company>
</request>
Parameter | Description | Required |
---|---|---|
token | Token for this request | Yes |
company/code | Company code | Yes |
company/name | Company name | Yes |
company/isDebtor | yes or no. Marks if this company is a debtor | no |
company/language | Language (iso code) | no |
company/contactPerson | Contact (an existing resource) | no |
company/parent | The parent company (an existing company) | no |
company/industry | Industry (attribute value) | no |
company/type | Type (attribute value) | no |
company/mailingAttn | Contact person office address | no |
company/mailingAddress | Office address | no |
company/mailingPostcode | Postcode office address | no |
company/mailingCity | City office address | no |
company/mailingCountry | Country office address | no |
company/officeAttn | Contact t.b.v. bezoekadres | no |
company/officeAddress | Address | no |
company/officePostcode | Postcode address | no |
company/officeCity | City address | no |
company/officeCountry | Country address | no |
company/telephone | Telephone | no |
company/fax | Fax | no |
company/VATNumber | VAT number | no |
company/website | URL website | no |
company/notes | Remarks | no |
debtor/name | Debitor name | no |
debtor/attn | Contact person for invoices | no |
debtor/address | Invoice address | no |
debtor/postcode | Postcode invoice address | no |
debtor/city | City invoice address | no |
debtor/country | Country invoice address | no |
debtor/currency | Debtor currency | no |
debtor/debtorNumber | Debtor number | no |
debtor/email | Debtor email | no |
contactPerson/name | Contact person name | no |
contactPerson/position | Position | no |
contactPerson/organisationalUnit | Departments | no |
contactPerson/telephone | Telephone | no |
contactPerson/mobile | Mobile | no |
contactPerson/email | no | |
contactPerson/birthDate | Day of birth. Format: yyyymmdd | no |
contactPerson/communication1 - 5 | Code or name. Attribute value | no |
contactPerson/notes | Notes | no |
The following xml structure is received after an successful execution:
Parameter | Description |
---|---|
valid | Indication that service was executed successfully |
The following xml structure is received after an incorrect execution:
<response>
<valid>no</valid>
<errors>no</errors>
</response>
Comments