Difference between revisions of "Get Item by External Id"

From MyMobileWorkers API
Jump to: navigation, search
(Created page with "== Summary == {| border="1" class="wikitable" ! Item by External Id ! colspan="2" | |- ! URL | colspan="2" | http://:base_url/:api_path/:version/items/item/external?api_key...")
 
(→‎Response Parameters)
Line 24: Line 24:
  
 
== Response Parameters ==
 
== Response Parameters ==
 +
{| border="1" class="wikitable"
 +
 +
! Field
 +
! Description
 +
|-
 +
! name
 +
| Item name
 +
|-
 +
|-
 +
! category
 +
| Contains both category name and id for item
 +
|-
 +
|-
 +
! notes
 +
| Item notes
 +
|-
 +
|-
 +
! price
 +
| Item price
 +
|-
 +
! external_id
 +
| Item external id
 +
|-
 +
! product_code
 +
| Item product code
 +
|-
 +
|}
  
 
== Example response ==
 
== Example response ==

Revision as of 11:41, 12 August 2013

Contents

Summary

Item by External Id
URL http://:base_url/:api_path/:version/items/item/external?api_key=YOUR_KEY&external_id=EXTERNAL_ID
Type GET
Params: api_key required
item_name required
Response JSON

The Get Item By External Id method returns the item corresponding to the external id provided.

Response Parameters

Field Description
name Item name
category Contains both category name and id for item
notes Item notes
price Item price
external_id Item external id
product_code Item product code

Example response

{
   "name":"darrenItem",
   "category":{
      "external_id":"",
      "name":"Test1"
   },
   "notes":"notes",
   "external_id":"ss303",
   "product_code":"productCodeTest",
   "price":2.5
}

Example curl request

curl "http://live.mymobileworkers.com:8080/api/1/items/item/external/?api_key=darrenwebapi&external_id=ss303"

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox