Batch Add Scan Task (per-barcode countries)
curl --request POST \
--url https://ato.fnskutoasin.com/api/v1/ScanTask/BatchV2 \
--header 'Api-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"items": [
{
"barCode": "<string>",
"countries": []
}
],
"callBackUrl": "<string>"
}
'import requests
url = "https://ato.fnskutoasin.com/api/v1/ScanTask/BatchV2"
payload = {
"items": [
{
"barCode": "<string>",
"countries": []
}
],
"callBackUrl": "<string>"
}
headers = {
"Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({items: [{barCode: '<string>', countries: []}], callBackUrl: '<string>'})
};
fetch('https://ato.fnskutoasin.com/api/v1/ScanTask/BatchV2', 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://ato.fnskutoasin.com/api/v1/ScanTask/BatchV2",
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([
'items' => [
[
'barCode' => '<string>',
'countries' => [
]
]
],
'callBackUrl' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Api-Key: <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://ato.fnskutoasin.com/api/v1/ScanTask/BatchV2"
payload := strings.NewReader("{\n \"items\": [\n {\n \"barCode\": \"<string>\",\n \"countries\": []\n }\n ],\n \"callBackUrl\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Api-Key", "<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://ato.fnskutoasin.com/api/v1/ScanTask/BatchV2")
.header("Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"items\": [\n {\n \"barCode\": \"<string>\",\n \"countries\": []\n }\n ],\n \"callBackUrl\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://ato.fnskutoasin.com/api/v1/ScanTask/BatchV2")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"items\": [\n {\n \"barCode\": \"<string>\",\n \"countries\": []\n }\n ],\n \"callBackUrl\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"messages": [
"<string>"
],
"succeeded": true,
"data": [
{
"id": 123,
"barCode": "<string>"
}
]
}Batch Add Scan Task (per-barcode countries)
Submit many barcodes in one request, each with its own marketplaces. Use this instead of Batch when barcodes target different marketplaces: Batch applies its single countries list to every barcode.
POST
/
v1
/
ScanTask
/
BatchV2
Batch Add Scan Task (per-barcode countries)
curl --request POST \
--url https://ato.fnskutoasin.com/api/v1/ScanTask/BatchV2 \
--header 'Api-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"items": [
{
"barCode": "<string>",
"countries": []
}
],
"callBackUrl": "<string>"
}
'import requests
url = "https://ato.fnskutoasin.com/api/v1/ScanTask/BatchV2"
payload = {
"items": [
{
"barCode": "<string>",
"countries": []
}
],
"callBackUrl": "<string>"
}
headers = {
"Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({items: [{barCode: '<string>', countries: []}], callBackUrl: '<string>'})
};
fetch('https://ato.fnskutoasin.com/api/v1/ScanTask/BatchV2', 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://ato.fnskutoasin.com/api/v1/ScanTask/BatchV2",
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([
'items' => [
[
'barCode' => '<string>',
'countries' => [
]
]
],
'callBackUrl' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Api-Key: <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://ato.fnskutoasin.com/api/v1/ScanTask/BatchV2"
payload := strings.NewReader("{\n \"items\": [\n {\n \"barCode\": \"<string>\",\n \"countries\": []\n }\n ],\n \"callBackUrl\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Api-Key", "<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://ato.fnskutoasin.com/api/v1/ScanTask/BatchV2")
.header("Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"items\": [\n {\n \"barCode\": \"<string>\",\n \"countries\": []\n }\n ],\n \"callBackUrl\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://ato.fnskutoasin.com/api/v1/ScanTask/BatchV2")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"items\": [\n {\n \"barCode\": \"<string>\",\n \"countries\": []\n }\n ],\n \"callBackUrl\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"messages": [
"<string>"
],
"succeeded": true,
"data": [
{
"id": 123,
"barCode": "<string>"
}
]
}Submit many barcodes in one request, each with its own marketplaces.
Batch vs. BatchV2: Batch Add Scan Task applies its single
countries list to every barcode in the request. Use BatchV2 when different barcodes should be scanned in different marketplaces.Do not repeat a country code within a barcode’s
countries (for example ["US", "US"] or ["US", "us"]). A request containing repeated codes is rejected and no tasks are created.Supported Marketplaces
Use these 2-letter codes in thecountries array (multi-marketplace request) or the X-Country-Code header (single marketplace).
| Code | Marketplace | Code | Marketplace |
|---|---|---|---|
| AE | United Arab Emirates | UK | United Kingdom |
| IT | Italy | FR | France |
| MX | Mexico | SG | Singapore |
| IN | India | JP | Japan |
| CA | Canada | SA | Saudi Arabia |
| TR | Turkey | SE | Sweden |
| NL | Netherlands | BE | Belgium |
| ES | Spain | EG | Egypt |
| BR | Brazil | PL | Poland |
| AU | Australia | ZA | South Africa |
| DE | Germany | US | United States |
Multi-marketplace requests: pass up to 4 country codes in the
countries array to scan across several Amazon marketplaces in one request. Maximum 4 codes per request.Token cost: a single-marketplace request (one code, or none) consumes 1 token. A multi-marketplace request (2–4 codes) consumes 2 tokens.
If you omit the
countries array, the request uses the marketplace from the X-Country-Code header. When that header is not provided, it defaults to US.Example: one marketplace per barcode
{
"items": [
{ "barCode": "X0012ABCDE", "countries": ["US"] },
{ "barCode": "X0034FGHIJ", "countries": ["DE"] },
{ "barCode": "X0056KLMNO", "countries": ["UK", "FR"] }
],
"callBackUrl": "https://your-app.example.com/webhook"
}
Example response
{
"data": [
{ "id": 101, "barCode": "X0012ABCDE" },
{ "id": 102, "barCode": "X0034FGHIJ" },
{ "id": 103, "barCode": "X0056KLMNO" }
],
"messages": [],
"succeeded": true
}
Authorizations
Headers
Optional 2-letter marketplace country code (e.g. US, UK, CA). Defaults to US if not provided. Used when the request body does not specify a 'countries' array. See the Supported Marketplaces list on this page.
Body
application/json