(Quick Reference) Service: Show a price

Description: This web service return an existing price of the specified id in JSON format

Method: GET

URL:

https://BASE_URL/api/VERSION/prices/{id}

Parameters:

NameDescriptionTypeRequiredExample values
idThe numerical ID of the desired priceLongYes777

URL with external_id:

https://BASE_URL/api/VERSION/prices/reference/{itemId}/{unitId}/{priceListId}

Parameters:

NameDescriptionTypeRequiredExamples values
itemIdreference of the itemStringYeseliteBook_820
unitIdreference of the unitStringYesPiéce
priceListIdreference of the price listStringYesDL-001

Success Output

Success case: response.status=200
{
  "id": 1,
  "priceList": {
    "id": 1,
    "reference": "cost_based_pricing",
    "name": "Cost-based Pricing",
    "href": "/api/v1.0/priceLists/1"
  },
  "itemReference": "bracelet-GRP09062",
  "unitReference": "pcs",
  "itemUnit": {
    "id": 1,
    "href": "/api/v1.0/itemUnits/1"
  },
  "value": 22,
  "unitPrice": 20,
  "marginRate": 10,
  "organization": "entity1",
  "dateCreated": "2015-12-17T08:18:27Z",
  "lastUpdated": "2015-12-17T08:18:27Z"
}

Failure Output

Failure case:response.status = 404
{
  "error": "not_found",
  "error_description": "The price with the id 10 doesn't exist."
}

Failure case:response.status = 400
{
    "error": "invalid_param_type",
    "error_description": "The type of parameter id you provided is not valid for this request."
}