Validate Bulk Upload
curl --request POST \
--url https://api.zinc.com/orders/bulk/validate \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"filename": "<string>",
"rows": [
{}
],
"notify_on_complete": false
}
'import requests
url = "https://api.zinc.com/orders/bulk/validate"
payload = {
"filename": "<string>",
"rows": [{}],
"notify_on_complete": False
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({filename: '<string>', rows: [{}], notify_on_complete: false})
};
fetch('https://api.zinc.com/orders/bulk/validate', 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.com/orders/bulk/validate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'filename' => '<string>',
'rows' => [
[
]
],
'notify_on_complete' => false
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.zinc.com/orders/bulk/validate"
payload := strings.NewReader("{\n \"filename\": \"<string>\",\n \"rows\": [\n {}\n ],\n \"notify_on_complete\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.zinc.com/orders/bulk/validate")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"filename\": \"<string>\",\n \"rows\": [\n {}\n ],\n \"notify_on_complete\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zinc.com/orders/bulk/validate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"filename\": \"<string>\",\n \"rows\": [\n {}\n ],\n \"notify_on_complete\": false\n}"
response = http.request(request)
puts response.read_body{
"total_rows": 123,
"valid_rows": 123,
"invalid_rows": 123,
"estimated_total_cents": 123,
"wallet_balance_cents": 123,
"sufficient_funds": true,
"filename": "<string>",
"rows": [
{
"index": 123,
"ok": true,
"errors": [
"<string>"
],
"product_urls": [
"<string>"
],
"quantities": [
123
],
"recipient": "<string>",
"destination": "<string>",
"max_price": 123,
"retailer_credentials_id": "<string>",
"passthrough": {}
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Bulk Orders
Validate Bulk Upload
Validate a CSV bulk upload with the Zinc API before placing any real orders.
POST
/
orders
/
bulk
/
validate
Validate Bulk Upload
curl --request POST \
--url https://api.zinc.com/orders/bulk/validate \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"filename": "<string>",
"rows": [
{}
],
"notify_on_complete": false
}
'import requests
url = "https://api.zinc.com/orders/bulk/validate"
payload = {
"filename": "<string>",
"rows": [{}],
"notify_on_complete": False
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({filename: '<string>', rows: [{}], notify_on_complete: false})
};
fetch('https://api.zinc.com/orders/bulk/validate', 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.com/orders/bulk/validate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'filename' => '<string>',
'rows' => [
[
]
],
'notify_on_complete' => false
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.zinc.com/orders/bulk/validate"
payload := strings.NewReader("{\n \"filename\": \"<string>\",\n \"rows\": [\n {}\n ],\n \"notify_on_complete\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.zinc.com/orders/bulk/validate")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"filename\": \"<string>\",\n \"rows\": [\n {}\n ],\n \"notify_on_complete\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zinc.com/orders/bulk/validate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"filename\": \"<string>\",\n \"rows\": [\n {}\n ],\n \"notify_on_complete\": false\n}"
response = http.request(request)
puts response.read_body{
"total_rows": 123,
"valid_rows": 123,
"invalid_rows": 123,
"estimated_total_cents": 123,
"wallet_balance_cents": 123,
"sufficient_funds": true,
"filename": "<string>",
"rows": [
{
"index": 123,
"ok": true,
"errors": [
"<string>"
],
"product_urls": [
"<string>"
],
"quantities": [
123
],
"recipient": "<string>",
"destination": "<string>",
"max_price": 123,
"retailer_credentials_id": "<string>",
"passthrough": {}
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Dry-run a CSV upload: every row is validated and the estimated spend is
calculated, but no orders are placed. Use this to show a confirmation
preview before calling Create Bulk Upload.
Columns that don’t map to a known order field are echoed back as
Request
Send the parsed CSV as JSON:- filename (optional) — Original uploaded filename, for display.
- rows — Array of objects, one per CSV row, mapping column header to cell value.
{
"filename": "may-orders.csv",
"rows": [
{
"product_url": "https://www.amazon.com/dp/B08N5WRWNW",
"quantity": "2",
"name": "Jane Doe",
"address1": "123 Main St",
"city": "Portland",
"state": "OR",
"zip": "97201",
"max_price": "4999",
"internal_ref": "PO-1042"
}
]
}
passthrough data on each row and included in the results CSV.
Response
The summary tells you whether the batch is safe to place:- total_rows / valid_rows / invalid_rows — Row counts.
- estimated_total_cents — Estimated spend across all valid rows.
- wallet_balance_cents — Your current wallet balance.
- sufficient_funds — Whether your balance covers the estimate.
- rows — Per-row validation results, each with
okand anyerrors.
Surface
rows[].errors to the user so they can fix the CSV and re-validate.
Only call Create Bulk Upload
once invalid_rows is 0 and sufficient_funds is true.Authorizations
Zinc API key (Bearer zn_...)
Headers
Body
application/json
Raw CSV rows (header -> cell) posted from the dashboard.
Original uploaded filename, for display.
Parsed CSV rows, each a mapping of column header to cell value.
Email the account holder once every order in this batch has reached a terminal state (placed, failed, or cancelled).
Response
Successful Response
Dry-run summary returned before any orders are placed.

