Export stores to a file
curl --request POST \
--url https://api.shoplist.co/v1/exports \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"filters": {
"countries": [
"US"
],
"apps_any": [
"c7d45447-7446-4eb8-9af6-b62c0bfdc3ed"
]
},
"include": [
"location",
"apps"
],
"max_rows": 1000,
"max_credits": 1000
}
'import requests
url = "https://api.shoplist.co/v1/exports"
payload = {
"filters": {
"countries": ["US"],
"apps_any": ["c7d45447-7446-4eb8-9af6-b62c0bfdc3ed"]
},
"include": ["location", "apps"],
"max_rows": 1000,
"max_credits": 1000
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
filters: {countries: ['US'], apps_any: ['c7d45447-7446-4eb8-9af6-b62c0bfdc3ed']},
include: ['location', 'apps'],
max_rows: 1000,
max_credits: 1000
})
};
fetch('https://api.shoplist.co/v1/exports', 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.shoplist.co/v1/exports",
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([
'filters' => [
'countries' => [
'US'
],
'apps_any' => [
'c7d45447-7446-4eb8-9af6-b62c0bfdc3ed'
]
],
'include' => [
'location',
'apps'
],
'max_rows' => 1000,
'max_credits' => 1000
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Idempotency-Key: <idempotency-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.shoplist.co/v1/exports"
payload := strings.NewReader("{\n \"filters\": {\n \"countries\": [\n \"US\"\n ],\n \"apps_any\": [\n \"c7d45447-7446-4eb8-9af6-b62c0bfdc3ed\"\n ]\n },\n \"include\": [\n \"location\",\n \"apps\"\n ],\n \"max_rows\": 1000,\n \"max_credits\": 1000\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
req.Header.Add("Authorization", "Bearer <token>")
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.shoplist.co/v1/exports")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"filters\": {\n \"countries\": [\n \"US\"\n ],\n \"apps_any\": [\n \"c7d45447-7446-4eb8-9af6-b62c0bfdc3ed\"\n ]\n },\n \"include\": [\n \"location\",\n \"apps\"\n ],\n \"max_rows\": 1000,\n \"max_credits\": 1000\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.shoplist.co/v1/exports")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"filters\": {\n \"countries\": [\n \"US\"\n ],\n \"apps_any\": [\n \"c7d45447-7446-4eb8-9af6-b62c0bfdc3ed\"\n ]\n },\n \"include\": [\n \"location\",\n \"apps\"\n ],\n \"max_rows\": 1000,\n \"max_credits\": 1000\n}"
response = http.request(request)
puts response.read_body{
"data": {
"object": "export",
"id": "5f0c6a8e-3b7d-5c41-9a2e-6d1b8f4c2a90",
"status": "queued",
"format": "csv_zip",
"estimated_rows": 1240,
"row_limit": 1000,
"rows_written": null,
"credits": {
"reserved": 1000,
"charged": null,
"refunded": 0
},
"created_at": "2026-12-01T12:00:00.000Z",
"finished_at": null,
"download": null,
"failure": null
}
}{
"type": "https://shoplist.co/docs/errors#invalid_request",
"title": "Invalid request",
"status": 400,
"detail": "<string>",
"code": "invalid_request",
"request_id": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>"
}
]
}{
"type": "https://shoplist.co/docs/errors#unauthenticated",
"title": "Unauthenticated",
"status": 401,
"detail": "<string>",
"code": "unauthenticated",
"request_id": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>"
}
]
}{
"type": "https://shoplist.co/docs/errors#plan_required",
"title": "Plan required",
"status": 402,
"detail": "<string>",
"code": "plan_required",
"request_id": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>"
}
]
}{
"type": "https://shoplist.co/docs/errors#api_access_suspended",
"title": "API access suspended",
"status": 403,
"detail": "<string>",
"code": "api_access_suspended",
"request_id": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>"
}
]
}{
"type": "https://shoplist.co/docs/errors#idempotency_in_progress",
"title": "Request in progress",
"status": 409,
"detail": "<string>",
"code": "idempotency_in_progress",
"request_id": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>"
}
]
}{
"type": "https://shoplist.co/docs/errors#payload_too_large",
"title": "Payload too large",
"status": 413,
"detail": "<string>",
"code": "payload_too_large",
"request_id": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>"
}
]
}{
"type": "https://shoplist.co/docs/errors#empty_selection",
"title": "Empty selection",
"status": 422,
"detail": "<string>",
"code": "empty_selection",
"request_id": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>"
}
]
}{
"type": "https://shoplist.co/docs/errors#rate_limited",
"title": "Rate limit exceeded",
"status": 429,
"detail": "<string>",
"code": "rate_limited",
"request_id": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>"
}
]
}{
"type": "https://shoplist.co/docs/errors#internal_error",
"title": "Internal error",
"status": 500,
"detail": "<string>",
"code": "internal_error",
"request_id": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>"
}
]
}{
"type": "https://shoplist.co/docs/errors#service_unavailable",
"title": "Service unavailable",
"status": 503,
"detail": "<string>",
"code": "service_unavailable",
"request_id": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>"
}
]
}Exports
Export stores to a file
Starts a CSV export of every store that matches the filters, in store ID order. The person who created the API key or approved the OAuth connection owns the export. The export reserves credits for the estimated rows, charges one credit per row written with a minimum of 10, and refunds the rest. Poll GET /v1/exports/ until it completes. The same Idempotency-Key and body return the same export across team API keys and OAuth connections, with one charge.
POST
/
v1
/
exports
Export stores to a file
curl --request POST \
--url https://api.shoplist.co/v1/exports \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"filters": {
"countries": [
"US"
],
"apps_any": [
"c7d45447-7446-4eb8-9af6-b62c0bfdc3ed"
]
},
"include": [
"location",
"apps"
],
"max_rows": 1000,
"max_credits": 1000
}
'import requests
url = "https://api.shoplist.co/v1/exports"
payload = {
"filters": {
"countries": ["US"],
"apps_any": ["c7d45447-7446-4eb8-9af6-b62c0bfdc3ed"]
},
"include": ["location", "apps"],
"max_rows": 1000,
"max_credits": 1000
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
filters: {countries: ['US'], apps_any: ['c7d45447-7446-4eb8-9af6-b62c0bfdc3ed']},
include: ['location', 'apps'],
max_rows: 1000,
max_credits: 1000
})
};
fetch('https://api.shoplist.co/v1/exports', 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.shoplist.co/v1/exports",
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([
'filters' => [
'countries' => [
'US'
],
'apps_any' => [
'c7d45447-7446-4eb8-9af6-b62c0bfdc3ed'
]
],
'include' => [
'location',
'apps'
],
'max_rows' => 1000,
'max_credits' => 1000
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Idempotency-Key: <idempotency-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.shoplist.co/v1/exports"
payload := strings.NewReader("{\n \"filters\": {\n \"countries\": [\n \"US\"\n ],\n \"apps_any\": [\n \"c7d45447-7446-4eb8-9af6-b62c0bfdc3ed\"\n ]\n },\n \"include\": [\n \"location\",\n \"apps\"\n ],\n \"max_rows\": 1000,\n \"max_credits\": 1000\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
req.Header.Add("Authorization", "Bearer <token>")
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.shoplist.co/v1/exports")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"filters\": {\n \"countries\": [\n \"US\"\n ],\n \"apps_any\": [\n \"c7d45447-7446-4eb8-9af6-b62c0bfdc3ed\"\n ]\n },\n \"include\": [\n \"location\",\n \"apps\"\n ],\n \"max_rows\": 1000,\n \"max_credits\": 1000\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.shoplist.co/v1/exports")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"filters\": {\n \"countries\": [\n \"US\"\n ],\n \"apps_any\": [\n \"c7d45447-7446-4eb8-9af6-b62c0bfdc3ed\"\n ]\n },\n \"include\": [\n \"location\",\n \"apps\"\n ],\n \"max_rows\": 1000,\n \"max_credits\": 1000\n}"
response = http.request(request)
puts response.read_body{
"data": {
"object": "export",
"id": "5f0c6a8e-3b7d-5c41-9a2e-6d1b8f4c2a90",
"status": "queued",
"format": "csv_zip",
"estimated_rows": 1240,
"row_limit": 1000,
"rows_written": null,
"credits": {
"reserved": 1000,
"charged": null,
"refunded": 0
},
"created_at": "2026-12-01T12:00:00.000Z",
"finished_at": null,
"download": null,
"failure": null
}
}{
"type": "https://shoplist.co/docs/errors#invalid_request",
"title": "Invalid request",
"status": 400,
"detail": "<string>",
"code": "invalid_request",
"request_id": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>"
}
]
}{
"type": "https://shoplist.co/docs/errors#unauthenticated",
"title": "Unauthenticated",
"status": 401,
"detail": "<string>",
"code": "unauthenticated",
"request_id": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>"
}
]
}{
"type": "https://shoplist.co/docs/errors#plan_required",
"title": "Plan required",
"status": 402,
"detail": "<string>",
"code": "plan_required",
"request_id": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>"
}
]
}{
"type": "https://shoplist.co/docs/errors#api_access_suspended",
"title": "API access suspended",
"status": 403,
"detail": "<string>",
"code": "api_access_suspended",
"request_id": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>"
}
]
}{
"type": "https://shoplist.co/docs/errors#idempotency_in_progress",
"title": "Request in progress",
"status": 409,
"detail": "<string>",
"code": "idempotency_in_progress",
"request_id": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>"
}
]
}{
"type": "https://shoplist.co/docs/errors#payload_too_large",
"title": "Payload too large",
"status": 413,
"detail": "<string>",
"code": "payload_too_large",
"request_id": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>"
}
]
}{
"type": "https://shoplist.co/docs/errors#empty_selection",
"title": "Empty selection",
"status": 422,
"detail": "<string>",
"code": "empty_selection",
"request_id": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>"
}
]
}{
"type": "https://shoplist.co/docs/errors#rate_limited",
"title": "Rate limit exceeded",
"status": 429,
"detail": "<string>",
"code": "rate_limited",
"request_id": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>"
}
]
}{
"type": "https://shoplist.co/docs/errors#internal_error",
"title": "Internal error",
"status": 500,
"detail": "<string>",
"code": "internal_error",
"request_id": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>"
}
]
}{
"type": "https://shoplist.co/docs/errors#service_unavailable",
"title": "Service unavailable",
"status": 503,
"detail": "<string>",
"code": "service_unavailable",
"request_id": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>"
}
]
}Authorizations
bearerAuthpartnerOAuth
Headers
Body
application/json