Skip to main content

settings/priceunits/print

Retrieves the list of all price units defined in the platform with price unit and title, returning an Excel, JSON or XML file.

URL

CODE
(GET) /api/settings/priceunits/print

PARAMETERS

The URL parameters are:

format

The report format, any of:

  • Excel (default)

  • Xml

  • Json

Optional, string

RESULTS

The method returns a file “price-units” in the following format:

JSON

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

CODE
[
  {
    "v": "WD",
    "t": "Word(s)"
  },
  {
    "v": "CH",
    "t": "Character(s)"
  },
  {
    "v": "LN",
    "t": "Line(s)"
  },
  {
    "v": "PG",
    "t": "Page(s)"
  },
  ...
]

XML

CODE
<?xml version="1.0" encoding="utf-8"?>
<Rows>
  <Row>
    <v>WD</v>
    <t>Word(s)</t>
  </Row>
  <Row>
    <v>CH</v>
    <t>Character(s)</t>
  </Row>
  <Row>
    <v>LN</v>
    <t>Line(s)</t>
  </Row>
  <Row>
    <v>PG</v>
    <t>Page(s)</t>
  </Row>
  ...
</Rows>

EXCEL

The report is an .xlsx file.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.