Service
https://api.timewax.com/company/get/
Goal
Getting a company with all fields.
Request
The following xml structure must be provided:
<request>
<token></token>
<company></company>
</request>
Parameter | Description | Required |
---|---|---|
token | Token for this request | yes |
company | Code or name of the company | yes |
The following xml structure is received after an successful execution:
<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>
</debtor>
</debtors>
</company>
Parameter | Description |
---|---|
token | Token for this request |
company/code | Company code |
company/Name | Company name |
company/isDebtor | yes or no. Marks if this company is a debtor |
company/language | Language |
company/contactPerson | Contact (an existing resource) |
company/parent | The parent company (an existing company) |
company/industry | Industry (attribute value) |
company/type | Type (attribute value) |
company/mailingAttn | Contact person office address |
company/mailingAddress | Office address |
company/mailingPostcode | Postcode office address |
company/mailingCity | City office address |
company/mailingCountry | Country office address |
company/officeAttn | Contact t.b.v. bezoekadres |
company/officeAddress | Address |
company/officePostcode | Postcode address |
company/officeCity | City address |
company/officeCountry | Country address |
company/telephone | Telephone |
company/fax | Fax |
company/VATNumber | VAT number |
company/website | URL website |
company/notes | Remarks |
debtor/name | Debitor name |
debtor/attn | Contact person for invoices |
debtor/address | Invoice address |
debtor/postcode | Postcode invoice address |
debtor/city | City invoice address |
debtor/country | Country invoice address |
debtor/currency | Debtor currency |
debtor/debtorNumber | Debtor number |
The following xml structure is received after an incorrect execution:
<response>
<valid>no</valid>
<errors>no</errors>
</response>
Parameter | Description |
---|---|
valid | Indication that service was not executed successfully |
error | Reason why the service has executed unsuccessfully |
Comments