settings/companytypes/print

Retrieves the list of all company types defined in the platform with company type and title, returning an Excel, JSON or XML file.

URL

(GET) /api/settings/companytypes/print

PARAMETERS

The URL parameters are:

format

The report format, any of:

  • Excel (default)

  • Xml

  • Json

Optional, string

RESULTS

The method returns a file “company-types” in the following format:

JSON

The file content is a JSON array. See example below:

[ { "v": "0", "t": "Corporation" }, { "v": "1", "t": "Freelance Translator" }, { "v": "2", "t": "Translation agency" }, { "v": "3", "t": "Association" }, { "v": "4", "t": "Organisation" }, ... ]

XML

<?xml version="1.0" encoding="utf-8"?> <Rows> <Row> <v>0</v> <t>Corporation</t> </Row> <Row> <v>1</v> <t>Freelance Translator</t> </Row> <Row> <v>2</v> <t>Translation agency</t> </Row> <Row> <v>3</v> <t>Association</t> </Row> <Row> <v>4</v> <t>Organisation</t> </Row> ... </Rows>

EXCEL

The report is an .xlsx file.

 

Copyright Wordbee - Buzzin' Outside the Box since 2008