Stock Item
Return details on stock items.
Date Released: Oct 25th 2013 Date Updated: May 30th 2014
URL | Supports |
{URI}/stockitem/{id}
{URI}/stockitem/search?q={query}
{URI}/stockitem/{id}/image?height={h}&width={w}
|
GET |
PUT |
POST
GET |
PUT |
POST
GET |
PUT |
POST
|
{URI} is exo.api.myob.com when connecting to the cloud or the address of the machine hosting the API when connecting on premise. |
search
returns stock items that match the specified search string.
image
returns the stock item's image file with dimensions specified (in pixels) by the height
and width
parameters. The image’s aspect ratio is preserved if just one of the dimensions is specified. If no dimensions are supplied, the width defaults to 100 pixels (with the height calculated to preserve the aspect ratio). You can return the actual dimensions of the image with width=auto
and/or height=auto
.
Note: Actual fields returned may differ slightly depending on local settings and configuration.
The elements list below details information for Stock Item. To view the descriptions for the elements you can either hover any attribute to reveal details or click here to show all details inline.
Attribute Details
EXO API Schema Doc Helper
Host Address API Request
Developer Key Authorisation
EXO Token
- primarygroupid integer
- Required on PUT
- primarygroup object,null
- Type: object,null
- active boolean
- Type: boolean
- name string,null
- Type: string,null
- rel string,null
- Type: string,null
- title string,null
- Type: string,null
- id integer
- Required on PUT
- href string,null
- Type: string,null
- secondarygroupid integer
- Required on PUT
- secondarygroup object,null
- Type: object,null
- name string,null
- Type: string,null
- rel string,null
- Type: string,null
- title string,null
- Type: string,null
- id integer
- Required on PUT
- href string,null
- Type: string,null
- stockpricegroupid integer
- Required on PUT
- stockpricegroup object,null
- Type: object,null
- name string,null
- Type: string,null
- rel string,null
- Type: string,null
- title string,null
- Type: string,null
- id integer
- Required on PUT
- href string,null
- Type: string,null
- stockclassificationid integer
- Required on PUT
- stockclassification object,null
- Type: object,null
- name string,null
- Type: string,null
- rel string,null
- Type: string,null
- title string,null
- Type: string,null
- id integer
- Required on PUT
- href string,null
- Type: string,null
- suppliercreditoraccountid integer
- Required on PUT
- suppliercreditoraccountname string,null
- Type: string,null
- unitofmeasureid string,null
- Required on PUT
- unitofmeasure object,null
- Type: object,null
- description string,null
- Type: string,null
- rel string,null
- Type: string,null
- title string,null
- Type: string,null
- id string
- Required on PUT
- href string,null
- Type: string,null
- salestaxrateid integer
- Required on PUT
- salestaxrate object,null
- Type: object,null
- name string,null
- Type: string,null
- shortname string,null
- Type: string,null
- rate number
- Type: number
- rel string,null
- Type: string,null
- title string,null
- Type: string,null
- id integer
- Required on PUT
- href string,null
- Type: string,null
- serialnumberstracked boolean
- Type: boolean
- serialnumberstrackingtypeid integer
- Required on PUT
- serialnumberstrackingtypename string,null
- Type: string,null
- batchnumberstracked boolean
- Type: boolean
- discountable boolean
- Type: boolean
- canexpire boolean
- Type: boolean
- expireindays integer,null
- Type: integer,null
- restricted boolean
- Type: boolean
- totalinstock number
- Type: number
- barcode1 string,null
- Type: string,null
- barcode2 string,null
- Type: string,null
- barcode3 string,null
- Type: string,null
- showonweb boolean
- Type: boolean
- webdescription string,null
- Type: string,null
- webimagefilename string,null
- Type: string,null
- latestcost number
- Type: number
- suppliercost number
- Type: number
- standardcost number
- Type: number
- averagecost number
- Type: number
- stocktype string,null
- Type: string,null
- description string,null
- Type: string,null
- saleprices array,null
- Type: array,null
- active boolean
- Type: boolean
- notes string,null
- Type: string,null
- extrafields array,null
- Type: array,null
- rel string,null
- Type: string,null
- title string,null
- Type: string,null
- id string
- Required on PUT
- href string,null
- Type: string,null