curl --request GET \
--url https://api.zinc.io/v1/orders \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://api.zinc.io/v1/orders"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://api.zinc.io/v1/orders', 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.zinc.io/v1/orders",
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: Basic <encoded-value>"
],
]);
$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.zinc.io/v1/orders"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
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.zinc.io/v1/orders")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zinc.io/v1/orders")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body[
{
"_type": "order_response",
"price_components": {
"converted_payment_total": 123,
"currency": "<string>",
"payment_currency": "<string>",
"shipping": 123,
"subtotal": 123,
"tax": 123,
"total": 123
},
"merchant_order_ids": [
{
"merchant_order_id": "<string>",
"merchant": "<string>",
"account": "<string>",
"placed_at": "2023-11-07T05:31:56Z"
}
],
"tracking": [
{
"product_id": "<string>",
"merchant_order_id": "<string>",
"carrier": "<string>",
"tracking_number": "<string>",
"obtained_at": "2023-11-07T05:31:56Z"
}
],
"request": {},
"delivery_dates": "<array>",
"account_status": {
"prime": true,
"fresh": true,
"business": true,
"charity": "<string>"
}
}
]List Orders
Get a list of all orders in your account
curl --request GET \
--url https://api.zinc.io/v1/orders \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://api.zinc.io/v1/orders"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://api.zinc.io/v1/orders', 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.zinc.io/v1/orders",
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: Basic <encoded-value>"
],
]);
$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.zinc.io/v1/orders"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
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.zinc.io/v1/orders")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zinc.io/v1/orders")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body[
{
"_type": "order_response",
"price_components": {
"converted_payment_total": 123,
"currency": "<string>",
"payment_currency": "<string>",
"shipping": 123,
"subtotal": 123,
"tax": 123,
"total": 123
},
"merchant_order_ids": [
{
"merchant_order_id": "<string>",
"merchant": "<string>",
"account": "<string>",
"placed_at": "2023-11-07T05:31:56Z"
}
],
"tracking": [
{
"product_id": "<string>",
"merchant_order_id": "<string>",
"carrier": "<string>",
"tracking_number": "<string>",
"obtained_at": "2023-11-07T05:31:56Z"
}
],
"request": {},
"delivery_dates": "<array>",
"account_status": {
"prime": true,
"fresh": true,
"business": true,
"charity": "<string>"
}
}
]Authorizations
Use your client token as the username. Leave the password blank.
Query Parameters
Maximum number of orders to return in the results (defaults to 10)
Number of order responses to skip before including up to limit orders in results
Timestamp of start of the range (inclusive)
Timestamp of end of the range (exclusive)
Name of the retailer to include orders from. See Supported Retailers for a list of supported retailers.
Response
List of orders retrieved successfully
Response type
order_response Show child attributes
Show child attributes
A merchant order ids object which contains details about the retailer's order identifiers
Show child attributes
Show child attributes
An array of tracking objects that contain the order's tracking information
Show child attributes
Show child attributes
The original request that was sent to the Zinc API
An array of ordered products and their given delivery dates
(Amazon only) An account status object that gives details about the ordering account
Show child attributes
Show child attributes

