Get Stock Updates
Changed onThis endpoint retrieves all offers for a given project of your company, sorted from most recent to oldest. Offers are the product updates that you posted.
These are found under "Orders" > "Product updates" in the Channable tool. Optionally, you can pass query parameters to customize the query and response content.
Example usage
Suppose the following scenario for a given project of yours:
- The project contains the offers o1, o2, o3, and o4 (from oldest to most recent)
- o1 and o4 are searchable by the term t
- o3 is searchable by the term tE
| Request parameters | Response |
|---|---|
| none | {"offers": [o4, o3, o2, o1], "total": 4} |
| ?limit=2 | {"offers": [o4, o3], "total": 2} |
| ?offset=4 | {"offers": [], "total": 0} |
| ?offset=1 | {"offers": [o3, o2, o1], "total": 3} |
| ?offset=1&limit=1 | {"offers": [o3], "total": 1} |
| ?offset=1&limit=2 | {"offers": [o3, o2], "total": 2} |
| ?search=t | {"offers": [o4, o1], "total": 2} |
| ?search=tE | {"offers": [o3], "total": 1} |
| ?start_date=2018-01-01 | {"offers": [o4, o3, o2], "total": 3} |
| ?start_date=2018-01-01&end_date=2018-02-28 | {"offers": [o3, o2], "total": 2} |
| ?last_modified_after=2018-02-29 | {"offers": [o4], "total": 1} |
Request
- Base URLhttps://api.channable.com (the document declares no server; this is the origin it was published from)
- Authnone declared
Path parameters
Query parameters
Any text based search query
Max number of results in a single page.
Filter results starting from this offset.
Response
Successful Response
Example response
{
"offers": [
{
"client_id": "2026523",
"created": "2022-04-19T07:18:44.436934+00:00",
"gtin": "1234567890123",
"id": 2251,
"modified": "2022-04-19T07:18:44.436934+00:00",
"price": 10.5,
"project_id": -1,
"stock": 0,
"stock_tracking": true,
"title": "test title"
}
],
"total": 1
}Changes
- info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
the
///response's property pattern^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$was added for the status
- info
- breaking
the response property
//became optional for the status - breaking
response property
offers/items/availabilitylist-of-types was widened by adding typesnullto media typeapplication/jsonof response200 - breaking
response property
offers/items/gtinlist-of-types was widened by adding typesnullto media typeapplication/jsonof response200 - breaking
response property
offers/items/idlist-of-types was widened by adding typesnullto media typeapplication/jsonof response200 - breaking
response property
offers/items/pricelist-of-types was widened by adding typesnull and stringto media typeapplication/jsonof response200 - breaking
response property
offers/items/stocklist-of-types was widened by adding typesnullto media typeapplication/jsonof response200 - breaking
response property
offers/items/titlelist-of-types was widened by adding typesnullto media typeapplication/jsonof response200 - info
queryrequest parameterend_datelist-of-types was widened by adding typesnull - info
queryrequest parameterlast_modified_afterlist-of-types was widened by adding typesnull - info
queryrequest parameterlast_modified_beforelist-of-types was widened by adding typesnull - info
queryrequest parametersearchlist-of-types was widened by adding typesnull - info
queryrequest parameterstart_datelist-of-types was widened by adding typesnull - info
for the
queryrequest parameterend_date, the type was generalized fromstringto no type, and format fromdateto no format - info
for the
queryrequest parameterlast_modified_after, the type was generalized fromstringto no type, and format fromdateto no format - info
for the
queryrequest parameterlast_modified_before, the type was generalized fromstringto no type, and format fromdateto no format - info
for the
queryrequest parametersearch, the type was generalized fromstringto no type - info
for the
queryrequest parameterstart_date, the type was generalized fromstringto no type, and format fromdateto no format
- breaking