curl --request GET \
--url https://api.letsdothis.com/v0/add-ons/import/{jobId} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.letsdothis.com/v0/add-ons/import/{jobId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.letsdothis.com/v0/add-ons/import/{jobId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"importId": "3a55dc4c-6fd2-49bd-90cd-32c65fce7b1a",
"jobId": "65f60718293a4b5c6d7e8f90",
"status": "completed",
"counts": {
"pending": 0,
"processing": 0,
"success": 1,
"failure": 0,
"cancelled": 0,
"total": 1
},
"results": [
{
"status": "succeeded",
"externalAddOnId": "city-marathon-tshirt",
"product": {
"externalAddOnId": "city-marathon-tshirt",
"addOnId": "5fcd4b7e-1a2c-4d89-8f31-6b72e09a45c3",
"outcome": "created",
"variants": [
{
"externalVariantId": "city-marathon-tshirt-navy-m",
"variantId": "29bb39a4-3206-4f43-9a6a-79d83fc1c31e",
"outcome": "created"
}
]
},
"errors": []
},
{
"status": "succeeded",
"externalAddOnId": "city-marathon-cap",
"product": {
"externalAddOnId": "city-marathon-cap",
"addOnId": "7ad1c930-5b64-4e12-9c07-2f8e1d3a6b45",
"outcome": "created",
"variants": [
{
"externalVariantId": "city-marathon-cap-onesize",
"variantId": "3e5f7a91-8c2d-4b06-a1f4-90d6c7b28e13",
"outcome": "created"
}
]
},
"errors": []
}
],
"page": {
"totalResults": 2,
"first": "",
"last": "",
"prev": "",
"next": ""
}
}{
"statusCode": 404,
"error": "<string>",
"message": "<string>"
}Get add-on import status
Returns the progress of an add-on import and the result for each product, a page at a time. See reading a job.
Poll until status is completed or cancelled.
curl --request GET \
--url https://api.letsdothis.com/v0/add-ons/import/{jobId} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.letsdothis.com/v0/add-ons/import/{jobId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.letsdothis.com/v0/add-ons/import/{jobId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"importId": "3a55dc4c-6fd2-49bd-90cd-32c65fce7b1a",
"jobId": "65f60718293a4b5c6d7e8f90",
"status": "completed",
"counts": {
"pending": 0,
"processing": 0,
"success": 1,
"failure": 0,
"cancelled": 0,
"total": 1
},
"results": [
{
"status": "succeeded",
"externalAddOnId": "city-marathon-tshirt",
"product": {
"externalAddOnId": "city-marathon-tshirt",
"addOnId": "5fcd4b7e-1a2c-4d89-8f31-6b72e09a45c3",
"outcome": "created",
"variants": [
{
"externalVariantId": "city-marathon-tshirt-navy-m",
"variantId": "29bb39a4-3206-4f43-9a6a-79d83fc1c31e",
"outcome": "created"
}
]
},
"errors": []
},
{
"status": "succeeded",
"externalAddOnId": "city-marathon-cap",
"product": {
"externalAddOnId": "city-marathon-cap",
"addOnId": "7ad1c930-5b64-4e12-9c07-2f8e1d3a6b45",
"outcome": "created",
"variants": [
{
"externalVariantId": "city-marathon-cap-onesize",
"variantId": "3e5f7a91-8c2d-4b06-a1f4-90d6c7b28e13",
"outcome": "created"
}
]
},
"errors": []
}
],
"page": {
"totalResults": 2,
"first": "",
"last": "",
"prev": "",
"next": ""
}
}{
"statusCode": 404,
"error": "<string>",
"message": "<string>"
}403. Contact your Let’s Do This representative if you’d like access.Authorizations
Query Parameters
Response
The job's progress so far, and a page of products with each one's result.
The state of an add-on import.
results holds one entry per product, with its status and errors. It's the only field that says whether a product was imported, so act on it. status is completed once the job has finished, even if every product failed. counts tracks the job's background work, not your products.
Where you are in a paginated list.
Pass next as page[after] to get the next page, or prev as page[before] to get the previous one. An empty cursor means there are no more pages in that direction. Treat cursors as opaque strings.
Show child attributes
Show child attributes
{
"totalResults": 506,
"first": "eyJpZCI6IjYzOTljMjAwMTVkNjBhZTNmZjI4ZjI0YyIsInVwZGF0ZWRBdCI6IjIwMjItMTItMTRUMTI6MzA6NTkuMjE3WiJ9",
"last": "eyJpZCI6IjY1NGNkZDIxZDlhMTU3ODdiNzFkMTM0YSIsInVwZGF0ZWRBdCI6IjIwMjMtMTEtMTNUMTU6MTE6MTIuNzI0WiJ9",
"prev": "",
"next": "eyJpZCI6IjY0NzBkNTkwM2RjOWE5OWJhMTA0Y2ZhYiIsInVwZGF0ZWRBdCI6IjIwMjMtMTEtMTNUMTU6MTE6MTIuNjE4WiJ9"
}
Was this page helpful?

