Get revision-pinned bulk export links
curl --request GET \
--url http://127.0.0.1:5185/v1/exportsconst options = {method: 'GET'};
fetch('http://127.0.0.1:5185/v1/exports', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "http://127.0.0.1:5185/v1/exports"
response = requests.get(url)
print(response.text){
"data": {
"publication_revision": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"published_at": "2023-11-07T05:31:56Z",
"format": "gzip_ndjson",
"schema_version": 1,
"files": {
"products": {
"record_count": 1,
"url": "<string>"
},
"stores": {
"record_count": 1,
"url": "<string>"
},
"inventory": {
"record_count": 1,
"url": "<string>"
}
}
},
"meta": {
"warnings": [
{
"code": "INVENTORY_COVERAGE_PARTIAL"
}
],
"freshness": {
"catalog": {
"source_updated_at": "2023-11-07T05:31:56Z",
"retrieved_at": "2023-11-07T05:31:56Z",
"published_at": "2023-11-07T05:31:56Z"
},
"inventory": {
"source_updated_at": "2023-11-07T05:31:56Z",
"retrieved_at_min": "2023-11-07T05:31:56Z",
"retrieved_at_max": "2023-11-07T05:31:56Z",
"published_at": "2023-11-07T05:31:56Z",
"upstream_age_known": false
}
}
}
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"detail": "<string>",
"instance": "<string>",
"code": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"invalid_params": [
{
"name": "<string>",
"reason": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"detail": "<string>",
"instance": "<string>",
"code": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"invalid_params": [
{
"name": "<string>",
"reason": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"detail": "<string>",
"instance": "<string>",
"code": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"invalid_params": [
{
"name": "<string>",
"reason": "<string>"
}
]
}Get revision-pinned bulk export links
Returns counts and links for products, stores, and inventory from one immutable Nektir publication. Fetch the files promptly: non-current revisions remain downloadable only for the configured publication-history retention window.
Get revision-pinned bulk export links
curl --request GET \
--url http://127.0.0.1:5185/v1/exportsconst options = {method: 'GET'};
fetch('http://127.0.0.1:5185/v1/exports', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "http://127.0.0.1:5185/v1/exports"
response = requests.get(url)
print(response.text){
"data": {
"publication_revision": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"published_at": "2023-11-07T05:31:56Z",
"format": "gzip_ndjson",
"schema_version": 1,
"files": {
"products": {
"record_count": 1,
"url": "<string>"
},
"stores": {
"record_count": 1,
"url": "<string>"
},
"inventory": {
"record_count": 1,
"url": "<string>"
}
}
},
"meta": {
"warnings": [
{
"code": "INVENTORY_COVERAGE_PARTIAL"
}
],
"freshness": {
"catalog": {
"source_updated_at": "2023-11-07T05:31:56Z",
"retrieved_at": "2023-11-07T05:31:56Z",
"published_at": "2023-11-07T05:31:56Z"
},
"inventory": {
"source_updated_at": "2023-11-07T05:31:56Z",
"retrieved_at_min": "2023-11-07T05:31:56Z",
"retrieved_at_max": "2023-11-07T05:31:56Z",
"published_at": "2023-11-07T05:31:56Z",
"upstream_age_known": false
}
}
}
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"detail": "<string>",
"instance": "<string>",
"code": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"invalid_params": [
{
"name": "<string>",
"reason": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"detail": "<string>",
"instance": "<string>",
"code": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"invalid_params": [
{
"name": "<string>",
"reason": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"detail": "<string>",
"instance": "<string>",
"code": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"invalid_params": [
{
"name": "<string>",
"reason": "<string>"
}
]
}