If you participate in the AfterShip Partner Program (for example, developing an app for AfterShip users or integrating AfterShip products into your platform for your users), you can apply for an OAuth API access for your apps.

This documentation describes how to submit your apps to the AfterShip App Store and integrate AfterShip product features into your apps.

OAuth flow
  1. Requests to install the app
  2. Grants the permission
  3. Authenticates the app and redirects the user to designated uri with code and state parameters
  4. Requests the access token with authorization code
  5. Authenticates the app and returns a refresh token and access token
  6. Use access token to make requests to the AfterShip APIs
  7. Refresh access token with the refresh token