URL | https://api_url/v1/measurement_unit |
Supported Methods | GET |
Description | Returns one or several of the firm's measurement unit records |
Accepted Query Formats
GET /measurement_unit[.format] | retrieve all measurement units |
GET /measurement_unit/1[.format] | retrieve measurement_unit with ID = 1 |
Examples
Retrieve a single measurement_unit record in XML format:
$ curl -i --header "VERSACCOUNTS_AUTHORIZATION:409696900e0b3f5a4297e3cd5823f734f0095e66" https://api_url/v1/measurement_unit/3242.xml
Returns:
<?xml version="1.0" encoding="UTF-8"?> <measurement-units type="array"> <measurement-unit> <id type="integer">3242</id> <name>LOT</name> <description>Lot</description> </measurement-unit> </measurement-units>
Retrieve all measurement_units in XML format:
$ curl -i --header "VERSACCOUNTS_AUTHORIZATION:409696900e0b3f5a4297e3cd5823f734f0095e66" https://api_url/v1/measurement_unit.xml
Returns:
<?xml version="1.0" encoding="UTF-8"?> <measurement-units type="array"> <measurement-unit> <id type="integer">1358</id> <name>EA</name> <description>Each</description> </measurement-unit> <measurement-unit> <id type="integer">1359</id> <name>DOZ</name> <description>Dozen</description> </measurement-unit> . . . <measurement-unit> <id type="integer">3242</id> <name>LOT</name> <description>Lot</description> </measurement-unit> </measurement-units>
Comments and Suggestions
0 comments
Please sign in to leave a comment.
Related articles