Rest API connection method

Modified on Wed, 21 Feb at 11:05 PM

Before setting up a connection to the Rest API feed, you should test out with any of the software to check whether the API can retrieve the product or not.


Example of software: Postman 


If you do not know how to test out the API request using other software, please do contact support via support@stock-sync.com


  1. Fill in the endpoint URL based on your API request.

  2. Select the Authorization Type needed for that API request. There are a few authorization which are Basic Auth, Bearer Token, Oauth2, and No Auth.

    a) Basic Auth
    This authorization method involves username and password only. When your API request with username and password you can select Basic Auth.
    b) Bearer Token
    A bearer token is another method of authorization that uses tokens from your API. So that, you can fill up the token in the required field.

    c) Oauth2
    Oauth2 is to provide consented access and restrict actions of what the client app can perform on resources on behalf of the user without sharing the user's credentials. So certain APIs use this method to secure their authorization. If your API URL, using this method please select this and insert all the respective details.

    d) Oauth2 with password
    Oauth2 is to provide consented access and restrict actions of what the client app can perform on resources on behalf of the user without sharing the user's credentials. So certain APIs use this method to secure their authorization with a password. If your API URL is using this method, please select this and insert all the respective details.


  3. If there are any header params or query params that need to be keyed in for that API request fill in the given field. To know more about the query param and header param, refer here.
     

  4. For the Body Raw is defined as the filter part. If you want to filter any collection or category from the Rest API, you may use Body Raw to enter the filter category or collections in the provided field as well.

  5. Choose the HTTP method:

    GET: retrieves information from the server

    PUT: used to create
    POST: accept the data enclosed in the body of the request message, most likely for storing it

  6. Ensure the correct File Format


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article