API Quick Start

This quickstart guide intends to walk you through the common scenario to help you know how to use the AfterShip Commerce API.


Commerce API is a collection of eCommerce functionality exposed via API. It provides access to core capabilities that are commonly used in Stores, Products, Orders, and other eCommerce activities.

preparing...

All endpoints are only accessible via HTTPS.

AfterShip verifies a user's request by adding an as-api-key in the header.

To get your API key, visit API key, click Create an API key and follow the given instructions to generate your API key.

Please visit here for the API authentication detail.

In the Commerce API, a store represents your actual retail outlet or an online store. All other resources within the API, including orders and products, are linked to a specific store.

Therefore, before you can utilize any features of the Commerce API, you must first create a store. After the store has been created, you will obtain a store ID. This ID is necessary for creating subsequent resources within the API.

Please contact the support team or your customer success manager to activate the connection between your store and AfterShip products. Please provide the store ID from the previous step.

You can utilize the Commerce API in various ways, depending on your specific usage scenarios. Please visit the links below for quick-start tutorials tailored to different use cases: