> ## Documentation Index
> Fetch the complete documentation index at: https://docs.orderprotection.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ShipStation

> Make sure all of your fulfillments are tracked to ensure that your customers can file a claim with OrderProtection.

### Setup

<Steps>
  <Step title="Create an API token">
    <Tip>
      We currently use ShipStation's V1 API. Please select V1 API when creating your API Token.
    </Tip>

    Click on the settings icon in the top right of ShipStation once you are logged in.

    You will need to open the `Account` accordion menu and open the API Settings link.

    <img src="https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/shipstation/api-settings.png?fit=max&auto=format&n=GDuchlp6KbhScehe&q=85&s=a3d5a3387e7910161697c1eb0c75ff1e" alt="" width="1145" height="713" data-path="public/assets/img/shipstation/api-settings.png" />

    Once you are here you need to select the `V1 API` and generate an API Key.

    Keep the key and secret somewhere that you can reference later. You will need these.
  </Step>

  <Step title="Add Connection in OrderProtection Dashboard">
    Open your OrderProtection dashboard. You should see on the left bar an `Integrations` tab. Go to this section and then
    click on the `Available` tab. You should see the ShipStation integration.

    Click on Edit and enter the values you retrieved from ShipStation here.

    <img src="https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/shipstation/v2-integrations.png?fit=max&auto=format&n=GDuchlp6KbhScehe&q=85&s=219c4f1b52e779b76d216079c923d2f3" alt="" width="806" height="423" data-path="public/assets/img/shipstation/v2-integrations.png" />
  </Step>

  <Step title="Get Your Store ID">
    Click on the Settings tab in the side navigation menu.

    You need to copy the Store ID value as you'll need this to create the webhook within ShipStation.

    <img src="https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/shipstation/v2-settings.png?fit=max&auto=format&n=GDuchlp6KbhScehe&q=85&s=d4401827b7d083b70cb2bb677a08fb17" alt="" width="709" height="251" data-path="public/assets/img/shipstation/v2-settings.png" />
  </Step>

  <Step title="Create a Webhook">
    <Tip>
      You will need to create 2 Webhooks to ensure that we get the fulfillment event.

      * On Fulfillment Shipped
      * On Items Shipped
    </Tip>

    Inside of ShipStation you need to go to the Settings again. You will then click on the very last tab in the
    side navigation. It is called `Integration Partners`. You will then choose Webhooks, or `Manage Settings`.

    Once here you need to create `2` new webhooks.

    <img src="https://mintcdn.com/orderprotectioncom/GDuchlp6KbhScehe/public/assets/img/shipstation/shipstation-webhook.png?fit=max&auto=format&n=GDuchlp6KbhScehe&q=85&s=ff393a7afd9c32563208d7a6942f2311" alt="" width="798" height="120" data-path="public/assets/img/shipstation/shipstation-webhook.png" />

    `Name` can be anything.

    For the `Event` you need a webhook for each of the following events:

    * On Fulfillment Shipped
    * On Items Shipped

    The URL will look like the following:

    ```
    https://api.production.orderprotection.com/v1/integrations/shipstation/${your store id}
    ```

    e.g

    ```
    https://api.production.orderprotection.com/v1/integrations/shipstation/somerandomid
    ```

    Save these settings and you are done!
  </Step>
</Steps>
