curl --request POST \
--url https://api.platformdtc.com/api/v1/products/import/shopify \
--header 'Content-Type: application/json' \
--header 'X-Agent-Key: <api-key>' \
--data '
{
"urls": [
"<string>"
],
"status": 0,
"skip_existing": true
}
'import requests
url = "https://api.platformdtc.com/api/v1/products/import/shopify"
payload = {
"urls": ["<string>"],
"status": 0,
"skip_existing": True
}
headers = {
"X-Agent-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Agent-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({urls: ['<string>'], status: 0, skip_existing: true})
};
fetch('https://api.platformdtc.com/api/v1/products/import/shopify', 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.platformdtc.com/api/v1/products/import/shopify",
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([
'urls' => [
'<string>'
],
'status' => 0,
'skip_existing' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Agent-Key: <api-key>"
],
]);
$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.platformdtc.com/api/v1/products/import/shopify"
payload := strings.NewReader("{\n \"urls\": [\n \"<string>\"\n ],\n \"status\": 0,\n \"skip_existing\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Agent-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://api.platformdtc.com/api/v1/products/import/shopify")
.header("X-Agent-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"urls\": [\n \"<string>\"\n ],\n \"status\": 0,\n \"skip_existing\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.platformdtc.com/api/v1/products/import/shopify")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Agent-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"urls\": [\n \"<string>\"\n ],\n \"status\": 0,\n \"skip_existing\": true\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "<string>",
"data": {
"imported": 123,
"skipped": 123,
"failed": 123,
"items": [
{
"url": "<string>",
"ok": true,
"error": "<string>",
"product_id": "<string>",
"title": "<string>",
"handle": "<string>",
"skipped": true,
"variants_count": 123,
"images_imported": 123,
"images_failed": 123,
"source": "<string>"
}
]
},
"meta": {}
}{
"success": true,
"message": "<string>",
"data": {
"imported": 123,
"skipped": 123,
"failed": 123,
"items": [
{
"url": "<string>",
"ok": true,
"error": "<string>",
"product_id": "<string>",
"title": "<string>",
"handle": "<string>",
"skipped": true,
"variants_count": 123,
"images_imported": 123,
"images_failed": 123,
"source": "<string>"
}
]
},
"meta": {}
}{
"success": false,
"message": "<string>",
"error_code": "NOT_FOUND",
"errors": {}
}{
"success": false,
"message": "<string>",
"error_code": "NOT_FOUND",
"errors": {}
}{
"success": false,
"message": "<string>",
"error_code": "NOT_FOUND",
"errors": {}
}{
"success": true,
"message": "<string>",
"data": {
"imported": 123,
"skipped": 123,
"failed": 123,
"items": [
{
"url": "<string>",
"ok": true,
"error": "<string>",
"product_id": "<string>",
"title": "<string>",
"handle": "<string>",
"skipped": true,
"variants_count": 123,
"images_imported": 123,
"images_failed": 123,
"source": "<string>"
}
]
},
"meta": {}
}Create a product per Shopify product link.
Copies title, sanitized description, images, options and every variant with its own price, compare-at price and SKU. Images are downloaded and re-hosted on the store’s CDN rather than hotlinked. Money is copied verbatim in the source store’s currency — no conversion is applied. Inventory is not imported: public storefronts expose whether a variant is in stock but never the count.
curl --request POST \
--url https://api.platformdtc.com/api/v1/products/import/shopify \
--header 'Content-Type: application/json' \
--header 'X-Agent-Key: <api-key>' \
--data '
{
"urls": [
"<string>"
],
"status": 0,
"skip_existing": true
}
'import requests
url = "https://api.platformdtc.com/api/v1/products/import/shopify"
payload = {
"urls": ["<string>"],
"status": 0,
"skip_existing": True
}
headers = {
"X-Agent-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Agent-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({urls: ['<string>'], status: 0, skip_existing: true})
};
fetch('https://api.platformdtc.com/api/v1/products/import/shopify', 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.platformdtc.com/api/v1/products/import/shopify",
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([
'urls' => [
'<string>'
],
'status' => 0,
'skip_existing' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Agent-Key: <api-key>"
],
]);
$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.platformdtc.com/api/v1/products/import/shopify"
payload := strings.NewReader("{\n \"urls\": [\n \"<string>\"\n ],\n \"status\": 0,\n \"skip_existing\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Agent-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://api.platformdtc.com/api/v1/products/import/shopify")
.header("X-Agent-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"urls\": [\n \"<string>\"\n ],\n \"status\": 0,\n \"skip_existing\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.platformdtc.com/api/v1/products/import/shopify")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Agent-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"urls\": [\n \"<string>\"\n ],\n \"status\": 0,\n \"skip_existing\": true\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "<string>",
"data": {
"imported": 123,
"skipped": 123,
"failed": 123,
"items": [
{
"url": "<string>",
"ok": true,
"error": "<string>",
"product_id": "<string>",
"title": "<string>",
"handle": "<string>",
"skipped": true,
"variants_count": 123,
"images_imported": 123,
"images_failed": 123,
"source": "<string>"
}
]
},
"meta": {}
}{
"success": true,
"message": "<string>",
"data": {
"imported": 123,
"skipped": 123,
"failed": 123,
"items": [
{
"url": "<string>",
"ok": true,
"error": "<string>",
"product_id": "<string>",
"title": "<string>",
"handle": "<string>",
"skipped": true,
"variants_count": 123,
"images_imported": 123,
"images_failed": 123,
"source": "<string>"
}
]
},
"meta": {}
}{
"success": false,
"message": "<string>",
"error_code": "NOT_FOUND",
"errors": {}
}{
"success": false,
"message": "<string>",
"error_code": "NOT_FOUND",
"errors": {}
}{
"success": false,
"message": "<string>",
"error_code": "NOT_FOUND",
"errors": {}
}{
"success": true,
"message": "<string>",
"data": {
"imported": 123,
"skipped": 123,
"failed": 123,
"items": [
{
"url": "<string>",
"ok": true,
"error": "<string>",
"product_id": "<string>",
"title": "<string>",
"handle": "<string>",
"skipped": true,
"variants_count": 123,
"images_imported": 123,
"images_failed": 123,
"source": "<string>"
}
]
},
"meta": {}
}Authorizations
Service-account key, format sq_agt_*. Carries least-privilege scopes.
Headers
Optional on the products domain API — absent, the request simply executes. When present, a replay with the same body returns the cached response and a different body returns 409. Send it on every write anyway.
200Target store; required when the key is bound to multiple stores.
Body
1 - 20 elements0 draft (default), 1 active, 2 archived. Imports default to draft so nothing reaches the storefront before the pricing is reviewed.
0, 1, 2 true reports an already-imported source product as skipped with its existing product_id instead of creating a duplicate. Dedupe is on the source product identity, not the title.