How to connect the ShipBob API to Google Sheets

ShipBob is a global logistics platform that fulfills ecommerce orders for direct-to-consumer brands. We can use the ShipBob API to import data from ShipBob into Google Sheets. In this tutorial, we’ll show you how to connect the ShipBob REST API to Google Sheets in 5 steps:

  1. Install the Apipheny add-on
  2. Get an app ID and an Access Token
  3. Choose a ShipBob endpoint
  4. Enter your ShipBob API request into Apipheny
  5. Run the ShipBob API request in your Google Sheet

Step 1.) Install and open the Apipheny add-on in Google Sheets

To pull data from the ShipBob API to Google Sheets, first install and open the Apipheny Google Sheets add-on.

Apipheny is a no-code API integrator for Google Sheets that you can use to make unlimited API requests, connect to unlimited APIs, save API requests, schedule API requests, and more. 

1. Install Apipheny by opening the following link on desktop and then clicking the Install button on the page: https://apipheny.io/install

2. After you’ve installed Apipheny, open a Google Sheet and then click on the Add-Ons or Extensions option in the top menu. In the add-ons menu, you should see Apipheny.

Click Apipheny > Import API to open the Apipheny sidebar in your Google Sheets.

Opening the Apipheny add-on in Google Sheets
Opening the Apipheny add-on in Google Sheets

Step 2.) Get an app id and an access token

As per instructions on the ShipBob website, the next step is to fill out this form to get API access: https://docs.google.com/forms/d/e/1FAIpQLSdRyS39zBhQfdC-AV4Yf1Oi0BNDExCZPSw0QAvYm4eaURsZ8g/viewform?pli=1

Complete the form in the link above to request an access token, and then click the Next button:

Access request form
Access request form

Verify that your data is correct and then click the Submit button:

Submitting the access request form
Submitting the access request form

A confirmation message will be displayed on the screen:

Confirmation message page
Confirmation message page

After some time, you will receive an encrypted email from ShipBob. Click the View Encrypted Message button to download a file containing your credentials:

Email from ShipBob
Email from ShipBob

Complete the fields:

Form to obtain the token
Form to obtain the token

On the next screen, click the Download All button to get the file with your credentials:

Downloading the file containing the token
Downloading the file containing the token

Open the file with a text editor, like Notepad:

The file containing the token and the app id
The file containing the Token and the App ID

Step 3.) Choose a ShipBob endpoint

In this section, we’ll show you how to browse the ShipBob API documentation to find the endpoint that retrieves the information you need from your account. If you already know your API URL, or you want to use the same example URL as us, just skip to Step 4.

First, open the ShipBob API documentation page: https://developer.shipbob.com/api-docs

This page contains a list of categorized endpoints:

ShipBob API documentation page
ShipBob API documentation page

If we click the Products category, its description and the corresponding endpoints will be displayed on the screen:

The Products category
The Products category

An example endpoint is Get Multiple Products, which returns all products. The URL for this endpoint is:

https://api.shipbob.com/1.0/product

The endpoint’s documentation contains the authorization method, the query parameters, the HTTP method (GET) and URI and several response samples:

Endpoint documentation
Endpoint documentation

All endpoints can be accessed using the following base domain: https://api.shipbob.com/1.0/

All endpoints are appended to this base domain.

Step 4.) Enter your ShipBob API request into Apipheny

Now go back to your Google Sheet and make sure that the Apipheny add-on is open on the “Import” tab. With the Import tab open, enter these details into the add-on:

Method: At the top of the Apipheny sidebar, select the HTTP method (GET or POST) required by your API endpoint. For this example, we are using the GET method.

API URL: In Step 3, we explained how you can find the ShipBob REST API endpoint that you need. Now copy and paste your complete ShipBob API URL into the Apipheny add-on, where it says API URL Path, followed by any parameters required for your query (if applicable).

For this example, we are using the Get Orders endpoint, which retrieves all orders. This is what the whole URL looks like for this endpoint:

https://api.shipbob.com/1.0/order

Headers: In the Headers section of Apipheny, add one row with the following key and value:

Header
Key:
Authorization 

Value:
Bearer your_auth_token

For the header value, enter the word Bearer, then a space, then replace your_auth_token with the value of the token you obtained previously, in Step 2.

  ShipBob API request entered into Apipheny
ShipBob API request entered into Apipheny

Step 5.) Run the ShipBob API request in your Google Sheet

Finally, the last step is to click the Run button at the bottom of the Apipheny add-on and then wait for the ShipBob API data to be imported into your Google Sheet. Here’s what our request looked like when completed:

  ShipBob data imported into Google Sheets
ShipBob data imported into Google Sheets

That’s it! You’ve successfully connected your ShipBob account to Google Sheets using the ShipBob API, Google Sheets API, and the Apipheny add-on.

After making a successful request to the ShipBob API, try querying a different ShipBob API endpoint, or try using one of the more advanced features in the Apipheny add-on.


API Tutorials



Related Posts