Server to Server Apps
Server-to-server apps leverage the OAuth flow to obtain API access and then use the Admin APIs and Webhooks to subscribe to store event activity.
Server-to-server apps don't need to upload any code or files to Next Commerce; they are fully external and simply use OAuth to obtain Admin API access.
In this guide, we'll walk through creating your first app so you can get up and running with the core concepts.
Preparation
-
If you haven't done so already, create your Next Commerce account and complete your Partner Registration.
-
Make sure you have access to a store you plan to use for development - you will use this in later steps.
If you need a development store for your app, submit a development store request below and we'll hook you up. Request a Development Store
Create Your App
-
Inside your Partner Account, navigate to Apps and then Create App. Follow the form to create your first app, don't worry about the App name and details, you can change this later.
-
After creating your App, you'll be able to see your App details. Take note of your
Client IDandClient Secretwhich are used in the OAuth flow to retrieve an API Access Token during the App Install flow.
Configure App OAuth
Server-to-server apps use the OAuth flow to get an Admin API access token. Let's add the OAuth 2.0
-
In App > Settings, add
https://oauthdebugger.com/debugas your App URL and Redirect URL to configure your app to use OAuth Debugger. -
Install your app on your store using the Install Link tool on your App Overview.
Test App On Development Store
- You can now use OAuth Debugger to simulate the OAuth flow.
Your app should now be installed and ready for testing and further development. :raised_hands: