List Products
Returns a list of all products.
Endpoint
Method:
GETPath:
/api/v4/productsDescription: Returns a list of all products.
Authentication
Required headers
Date(string) — RFC7231 GMT date stringAuthorization(string)
Recommended headers
Accept: application/json
Examples
curl --location --request GET '/api/v4/products' \
--header 'Accept: application/json' \
--header 'Date: string' \
--header 'Authorization: string'var request = require('request');
var options = {
method: 'GET',
url: '/api/v4/products',
headers: {
'Accept': 'application/json',
'Date': 'string',
'Authorization': 'string'
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});var myHeaders = new Headers();
myHeaders.append("Accept", "application/json");
myHeaders.append("Date", "string");
myHeaders.append("Authorization", "string");
var requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow'
};
fetch("/api/v4/products", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));Example responses
Schema
Response Body
Errors
If an error occurs, the response will have an HTTP status code of 400 or higher, and the response body will contain an error description in the following format:
List of exceptions
Last updated
Was this helpful?