List all Products
1 min
GET
https://developer.digitail.io/api/v1/products
Query Parameters
- filter[updated_from]string<date-time>DescriptionFormatdate-time
- filter[updated_to]string<date-time>DescriptionFormatdate-time
- filter[search]stringDescription
- filter[service_package_id]integer
- filter[categories]integer[]Description
- filter[producer_ids]integer[]
- filter[aaha_codes]string[]
- filter[status]stringDescriptionDefaultactiveAllowedactiveinactiveboth
- filter[only_in_stock]booleanDefaultfalse
- filter[mapped_to_external_products]booleanDescription
- filter[external_product_provider]stringDescriptionAllowedcdmvmidwestnsv
- filter[exclude_newly_auto_created]boolean
- filter[subset]stringDescription
- filter[is_consumable]boolean
- filter[vat]numberDescription
- sortstring[]Description
- includestringDescription
Responses
200
- object
- datadata[]
- linkslinks
- metameta
curl
curl --request GET \
--url 'https://developer.digitail.io/api/v1/products?filter[status]=active&filter[only_in_stock]=false' \
--header 'accept: application/json'javascript
var myHeaders = new Headers();
myHeaders.append("accept", "application/json");
myHeaders.append("content-type", "application/json");
var requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow'
};
fetch("https://developer.digitail.io/api/v1/products?filter[status]=active&filter[only_in_stock]=false", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));ruby
require "uri"
require "json"
require "net/http"
url = URI("https://developer.digitail.io/api/v1/products?filter[status]=active&filter[only_in_stock]=false")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Get.new(url)
request["accept"] = "application/json"
request["content-type"] = "application/json"
response = https.request(request)
puts response.read_body
python
import requests
import json
url = "https://developer.digitail.io/api/v1/products?filter[status]=active&filter[only_in_stock]=false"
payload = {}
headers = {
'accept': 'application/json',
'content-type': 'application/json'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
200
// Successful operation
{
"data": [
""
],
"links": {},
"meta": {}
}