# Export 360 Spins to MSC Direct

![MSC Industrial Supply logo](https://sirv.sirv.com/website/screenshots/MSC-logo.png?w=200)

Use Sirv to prepare 360-degree product spin images for your [MSC Direct](https://www.mscdirect.com/) listings.

Your [360 spins](/help/spin/getting-started/how-spin-files-are-created/) can be displayed on the MSC Industrial Supply website.

To submit your product images to MSC, they should be prepared to certain specifications for image format, size and filename.

Sirv can automatically make all the necessary preparations, helping you to pass through the MSC quality control process, as it does for [Lowe’s](/help/spin/export-publishing/export-360-spins-to-lowes-listings/), [The Home Depot](/help/spin/export-publishing/export-360-spins-for-home-depot/), [Walmart](/help/spin/export-publishing/create-360-spin-for-walmart-products-sirv/) and [Grainger](/help/spin/export-publishing/create-360-spin-for-grainger-products-sirv/).

## Batch create MSC zips

To make many zips in one go, run a short script with the Sirv REST API. It sends each spin to the [Export spin to MSC Direct](/help/rest-api/reference/conversions/export-spin/#export-spin-to-msc-direct) command, the same export as in your account.

**1.** In your Sirv account, go to [Settings > API access](https://app.sirv.com/settings/api) and [create an API client](/help/rest-api/sirv-rest-api/#create-an-api-client). Keep its client ID and secret to hand.

**2.** Make a file called spins.csv with one spin per line: the spin’s path in your Sirv account, a comma, then its MSC ID:

```text
/products/drill/drill.spin,12345678
/products/saw/saw.spin,12345679
```

**3.** Save this script as export.mjs in the same folder:

```js
// export.mjs: makes a MSC Direct zip for each spin in spins.csv
import { readFileSync } from 'node:fs';

const api = 'https://api.sirv.com/v2';
const auth = await fetch(`${api}/token`, {
  method: 'POST',
  headers: { 'content-type': 'application/json' },
  body: JSON.stringify({ clientId: process.env.SIRV_CLIENT_ID, clientSecret: process.env.SIRV_CLIENT_SECRET }),
});
const { token } = await auth.json();

for (const line of readFileSync('spins.csv', 'utf8').split('\n').filter(Boolean)) {
  const [filename, id] = line.split(',').map((s) => s.trim());
  const res = await fetch(`${api}/files/spin2msc360`, {
    method: 'POST',
    headers: { 'content-type': 'application/json', authorization: `Bearer ${token}` },
    body: JSON.stringify({ filename, mscid: id }),
  });
  console.log(filename, res.status, await res.text());
}
```

**4.** Run it with [Node.js](https://nodejs.org/) 18 or later, with your client ID and secret in the environment:

```bash
SIRV_CLIENT_ID=your-client-id SIRV_CLIENT_SECRET=your-client-secret node export.mjs
```

Each line of the output names the zip Sirv made, saved in your account next to the spin. Rather not run a script? Send the same request one spin at a time from [Postman](/help/rest-api/using-postman-with-the-sirv-api/).

## Create MSC 360 spins via API

Alternatively, you can use the Sirv REST API to automatically convert spins to MSC Direct zips via your own script.

API endpoint:

```
/v2/files/spin2msc360
```

Parameters:

-   **filename** - path to your .spin file
-   **mscid** - MSC ID (unique vendor item number for each product)

First you would create a Sirv API key and [obtain a bearer token](/help/rest-api/reference/authentication/).

Then you would write a script, using that bearer token to submit a zip preparation request. Below is an example script using Curl:

```bash
curl --request POST \
  --url https://api.sirv.com/v2/files/spin2msc360 \
  --header 'Authorization: Bearer eyJhb207uhakD7j29Fjak6jS754gOGkq3b' \
  --header 'Content-Type: application/json' \
  --data '{
    "filename": "/My-Products/Dial-Callipers/Dial-Callipers.spin",
    "mscid": "MT5-01870H"
}
'
```

After a few seconds, the zip file will appear in your account.

## What are MSC’s 360 spin requirements?

Sirv applies the following processing options to meet MSC’s 360-degree product photography requirements:

-   JPEG format
-   24 to 48 images for single row spin; up to 72 images for multi-row spin
-   At least 1000px by 1000px (width/height)
-   Images should be cropped close to the product edges
-   Images should be free from shadows, [hotspots](/help/spin/advanced-features/hotspots-on-360-spin/), discoloration
-   Background must be white
-   Color profile must be RGB
-   Name files with MSC ID, underscore, 2-digits e.g. `{ID}_C01.jpg`, `{ID}_C02.jpg` etc.
-   Compressed in .zip file, with folder named after MSC ID

Each zip will be created within a few seconds, then you can send the zip URLs to MSC.
