Website logo

Retrieves companies for the currently logged in member

Retrieves companies for the currently logged in member

URL: https://api.trademe.co.nz/v1/Jobs/Companies.{file_format}
HTTP Method: GET
Requires Authentication? Yes
Permission Required: MyTradeMeRead: Read your membership & listing data.
Supported Formats: XML, JSON
Rate Limited? Yes

URL parameters

file_format Enumeration (required) The format of the response.
xml Serialize responses into XML.
json Serialize responses into JSON.

Returns

Collection of <Company>

A collection of companies

CompanyId Integer

The id of the company

CompanyName String or null

The name of the company

IsCompanyOwner Boolean

The flag indicates whether the current member is the owner of the company

Example XML Response (switch to JSON)

<Companies xmlns="http://api.trademe.co.nz/v1">
  <Company>
    <CompanyId>123</CompanyId>
    <CompanyName>ABC</CompanyName>
    <IsCompanyOwner>false</IsCompanyOwner>
  </Company>
  <Company>
    <CompanyId>123</CompanyId>
    <CompanyName>ABC</CompanyName>
    <IsCompanyOwner>false</IsCompanyOwner>
  </Company>
</Companies>

Example JSON Response (switch to XML)

[
  {
    "CompanyId": 123,
    "CompanyName": "ABC",
    "IsCompanyOwner": false
  },
  {
    "CompanyId": 123,
    "CompanyName": "ABC",
    "IsCompanyOwner": false
  }
]