API Endpoints

At Hiweb, we have 2 possible endpoints:

  1. https://shop-domain.hiweb.io/api/
  2. https://api.hiweb.io/api/

What's the difference?


This is kinda clear, this is a scoped API endpoint for a specified shop having initial domain = shop-domain.


The second one (api.hiweb.io) will be used for API requests which are not related to any shop's resources. For example: /api/apps, /api/oauth_tokens...

However, you can still use api.hiweb.io to consume scoped API from a specified shop by adding this header in every requests:

shop-id: {shop-id}