Get products
curl --request GET \
--url https://api.sandbox.usenash.com/v1/products \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sandbox.usenash.com/v1/products"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.sandbox.usenash.com/v1/products', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sandbox.usenash.com/v1/products",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.sandbox.usenash.com/v1/products"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.sandbox.usenash.com/v1/products")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.usenash.com/v1/products")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"products": [
{
"id": "<string>",
"name": "Organic Bananas",
"externalIdentifier": "ext_001",
"sku": "11111",
"description": "Fresh organic bananas, perfect for smoothies and baking",
"imageUrls": [
"https://example.com/bananas1.jpg",
"https://example.com/bananas2.jpg"
],
"categories": [
"Produce",
"Fruits",
"Organic"
],
"weight": 0.5,
"dimensions": {
"depth": 8,
"height": 4,
"width": 12
},
"identifiers": [
{
"type": "UPC",
"value": "123456789012"
}
],
"attributes": [
"WEIGHTED"
],
"details": {
"packSizeSpecification": {
"description": "10 units per pack",
"value": 10
},
"sizeSpecification": {
"description": "ea",
"value": 1
},
"weightedItemInfo": {
"weightPerItem": 0.12,
"weightUnit": "kg"
}
},
"providerConfigs": [
{
"categories": [
"Produce",
"Fruits",
"Organic"
],
"provider": "X",
"serviceType": "pick_and_deliver"
}
]
}
],
"totalResults": 123
}[
{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
},
"response_status": "<string>",
"RequestID": "<string>"
}
]Get products
List products in the store catalog with pagination and optional filtering. Filter by IDs, SKUs, text search, or semantic search.
GET
/
v1
/
products
Get products
curl --request GET \
--url https://api.sandbox.usenash.com/v1/products \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sandbox.usenash.com/v1/products"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.sandbox.usenash.com/v1/products', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sandbox.usenash.com/v1/products",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.sandbox.usenash.com/v1/products"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.sandbox.usenash.com/v1/products")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.usenash.com/v1/products")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"products": [
{
"id": "<string>",
"name": "Organic Bananas",
"externalIdentifier": "ext_001",
"sku": "11111",
"description": "Fresh organic bananas, perfect for smoothies and baking",
"imageUrls": [
"https://example.com/bananas1.jpg",
"https://example.com/bananas2.jpg"
],
"categories": [
"Produce",
"Fruits",
"Organic"
],
"weight": 0.5,
"dimensions": {
"depth": 8,
"height": 4,
"width": 12
},
"identifiers": [
{
"type": "UPC",
"value": "123456789012"
}
],
"attributes": [
"WEIGHTED"
],
"details": {
"packSizeSpecification": {
"description": "10 units per pack",
"value": 10
},
"sizeSpecification": {
"description": "ea",
"value": 1
},
"weightedItemInfo": {
"weightPerItem": 0.12,
"weightUnit": "kg"
}
},
"providerConfigs": [
{
"categories": [
"Produce",
"Fruits",
"Organic"
],
"provider": "X",
"serviceType": "pick_and_deliver"
}
]
}
],
"totalResults": 123
}[
{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
},
"response_status": "<string>",
"RequestID": "<string>"
}
]Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Required range:
x >= 0Example:
0
Required range:
x >= 1Example:
100
Example:
"organic apples"
Example:
"pro_123,pro_456"
Example:
"SKU-001,SKU-002"
Was this page helpful?
⌘I