RDS Article Stock Service
- Path: /v2/articles/stock
- Method:
GET(read) - Authentication required: yes
- Output formats: all formats
- Output type: list
- Field description:
id(string): Article numbereancode(string): Article EAN codestock(int): Available units in stockdate(string): Contains next possible delivery date if the requested quantity is not available. Only for “Tapetenfabrik Gebr. Rasch”.discontinued(boolean): Contains 1 if the article is not produced anymore
- Extra parameters:
item=...: Comma-separated list of article numberscollection=...: Comma-separated list of collection numberswithoutExpiring=1: Hide items that will expire soonqty=...: Requested quantity (number > 0)withDecimals=1 or 0: With or without decimals (default: 1)
- Restrictions: The
qty=parameter is restricted to an upper limit of 3000 if used in conjunction with a single-valueditem=parameter, or to a limit of 10 (300 for “Tapetenfabrik Gebr. Rasch”) for bulk requests. If you need to know if a higher stock is available please contact our sales department.
This services provides access to our article stock information.
Per default you can request the data of known article, by providing a comma-separated list of articles numbers in the item=... query parameter.
A special authorization to get a list of all available items by omiting the item parameter is possible. Please contact our sales department.
Example:
$ curl -s -o- -u :KEY 'https://rds.rasch.de/v2/articles/stock?item=204834,204810,208634&qty=710'
[ {
"id" : "204810",
"eancode" : "4000441204810",
"stock" : 586,
"date" : null,
"discontinued" : 0
}, {
"id" : "204834",
"eancode" : "4000441204834",
"stock" : 710,
"date" : null,
"discontinued" : 0
}, {
"id" : "208634",
"eancode" : "4000441208634",
"stock" : 710,
"date" : "2015-03-20",
"discontinued" : 0
} ]
$ curl -s -o- -u :KEY 'https://rds.rasch.de/v2/articles/stock.csv?fields=id,stock,date,discontinued&item=204834,204810,208634&qty=710'
id,stock,date,discontinued
204810,710,,0
204834,703,,0
208634,648,2015-03-20,0
</pre>