Skip to content

Export a 360 spin to Amazon, Walmart and other retailers

By , Head of IntegrationsUpdated

Open this page in a new chat

Short answer

This page has 6 commands: Export spin to Amazon, Export spin to Walmart, Export spin to Home Depot, Export spin to Lowe's, Export spin to Grainger and Export spin to MSC Direct. Each call needs a bearer token and counts towards your hourly API limit.

After reading this you will know

  • How to export a 360 spin to Amazon, Walmart and other retailers
  • Which parameters each of the 6 commands takes
  • Sample code in 9 languages and a sample answer

Every command on this page needs a bearer token and counts towards your hourly limit.

POSThttps://api.sirv.com/v2/files/spin2amazon360

This API method will generate a zip file containing 360 spin images that meet Amazon’s requirements for width, height, format and file naming.

The response will contain the zip file URL. You must know the ASIN (Amazon Standard Identification Number) to use this 360 spin zip method.

The ASIN is displayed on the Amazon product page.

Request body (JSON)

FieldTypeRequiredExampleDescription
filenamestringYes/REST API Examples/coin/coin.spinPath of the .spin file to export.
asinstringYesASIN1234Amazon Standard Identification Number

Example request

// Your bearer token, from POST /v2/token, in the SIRV_TOKEN environment variable
const res = await fetch('https://api.sirv.com/v2/files/spin2amazon360', {
method: 'POST',
headers: { authorization: `Bearer ${process.env.SIRV_TOKEN}`, 'content-type': 'application/json' },
body: JSON.stringify({
"filename": "/REST API Examples/coin/coin.spin",
"asin": "ASIN1234"
}),
});
console.log(res.status, await res.text());

Example response

{
"filename": "/REST API Examples/coin/ASIN1234.zip"
}
POSThttps://api.sirv.com/v2/files/spin2walmart360

This API method will generate a zip file containing 360 spin images that meet Walmart’s requirements for format and file naming.

The response will contain the zip file URL. You must know the Walmart GTIN to use this 360 spin zip method.

Request body (JSON)

FieldTypeRequiredExampleDescription
filenamestringYes/REST API Examples/coin/coin.spinPath of the .spin file to export.
gtinstringYes00612052029955Walmart GTIN

Example request

// Your bearer token, from POST /v2/token, in the SIRV_TOKEN environment variable
const res = await fetch('https://api.sirv.com/v2/files/spin2walmart360', {
method: 'POST',
headers: { authorization: `Bearer ${process.env.SIRV_TOKEN}`, 'content-type': 'application/json' },
body: JSON.stringify({
"filename": "/REST API Examples/coin/coin.spin",
"gtin": "00612052029955"
}),
});
console.log(res.status, await res.text());

Example response

{
"filename": "/REST API Examples/coin/00612052029955.zip"
}
POSThttps://api.sirv.com/v2/files/spin2homedepot360

This API method will generate a zip file containing 360 spin images that meet Home Depot’s requirements for image dimensions, format and naming.

The response will contain the zip file URL for download. You must know the Home Depot OMSID to use this 360 spin zip method.

Request body (JSON)

FieldTypeRequiredExampleDescription
filenamestringYes/REST API Examples/coin/coin.spinPath of the .spin file to export.
omsidstringYes100650378Home Depot OMSID
spinNumbernumberNo2Spin number in case product has more than 1 spin

Example request

// Your bearer token, from POST /v2/token, in the SIRV_TOKEN environment variable
const res = await fetch('https://api.sirv.com/v2/files/spin2homedepot360', {
method: 'POST',
headers: { authorization: `Bearer ${process.env.SIRV_TOKEN}`, 'content-type': 'application/json' },
body: JSON.stringify({
"filename": "/REST API Examples/coin/coin.spin",
"omsid": "100650378",
"spinNumber": 2
}),
});
console.log(res.status, await res.text());

Example response

{
"filename": "/REST API Examples/coin/100650378.zip"
}
POSThttps://api.sirv.com/v2/files/spin2lowes360

This API method will generate a zip file containing 360 spin images that meet Lowe’s requirements for format and file naming.

The response will contain the zip file URL. You must know the Lowe’s barcode to use this 360 spin zip method.

Request body (JSON)

FieldTypeRequiredExampleDescription
filenamestringYes/REST API Examples/coin/coin.spinPath of the .spin file to export.
barcodestringYes1234567890Lowe’s barcode

Example request

// Your bearer token, from POST /v2/token, in the SIRV_TOKEN environment variable
const res = await fetch('https://api.sirv.com/v2/files/spin2lowes360', {
method: 'POST',
headers: { authorization: `Bearer ${process.env.SIRV_TOKEN}`, 'content-type': 'application/json' },
body: JSON.stringify({
"filename": "/REST API Examples/coin/coin.spin",
"barcode": "1234567890"
}),
});
console.log(res.status, await res.text());

Example response

{
"filename": "/REST API Examples/coin/1234567890.zip"
}
POSThttps://api.sirv.com/v2/files/spin2grainger360

This API method will generate a zip file containing 360 spin images that meet Grainger’s requirements for format and file naming.

The response will contain the zip file URL. You must know the Grainger SKU to use this 360 spin zip method.

Request body (JSON)

FieldTypeRequiredExampleDescription
filenamestringYes/REST API Examples/coin/coin.spinPath of the .spin file to export.
skustringYesSKU1234Grainger SKU

Example request

// Your bearer token, from POST /v2/token, in the SIRV_TOKEN environment variable
const res = await fetch('https://api.sirv.com/v2/files/spin2grainger360', {
method: 'POST',
headers: { authorization: `Bearer ${process.env.SIRV_TOKEN}`, 'content-type': 'application/json' },
body: JSON.stringify({
"filename": "/REST API Examples/coin/coin.spin",
"sku": "SKU1234"
}),
});
console.log(res.status, await res.text());

Example response

{
"filename": "/REST API Examples/coin/SKU1234.zip"
}
POSThttps://api.sirv.com/v2/files/spin2msc360

This API method will generate a zip file containing 360 spin images that meet MSC Direct’s requirements for format and file naming.

The response will contain the zip file URL.

You must know the MSC Direct’s vendor item # (MSC ID) to use this 360 spin zip method.

Request body (JSON)

FieldTypeRequiredExampleDescription
filenamestringYes/REST API Examples/coin/coin.spinPath of the .spin file to export.
mscidstringYes12345678MSC Direct’s MSC ID

Example request

// Your bearer token, from POST /v2/token, in the SIRV_TOKEN environment variable
const res = await fetch('https://api.sirv.com/v2/files/spin2msc360', {
method: 'POST',
headers: { authorization: `Bearer ${process.env.SIRV_TOKEN}`, 'content-type': 'application/json' },
body: JSON.stringify({
"filename": "/REST API Examples/coin/coin.spin",
"mscid": "12345678"
}),
});
console.log(res.status, await res.text());

Example response

{
"filename": "/.Export/MSC-Spins/12345678.zip"
}
Back to top