How can I test the API credentials I entered in CSM?

To ensure that the API credentials you've entered in Channel Sales Manager (CSM) are functioning correctly, follow these steps:

 

Access the CSM API Credentials Page

  1. In Business Central, go to the Sales Channel Page for the platform being tested.
  2. Navigate to API Credentials page by clicking on Actions > API and Automation > API Credentials.

 Verify the Credentials

  1. Check for Typos: Ensure that there are no typographical errors in your API keys.
  2. Confirm Format: Make sure that all credentials are in the correct format as required by your eCommerce platform (e.g., no extra spaces or invalid characters).

Test Communication

  1. After confirming the credentials are correct, go back to the Sales Channel Page and navigate to APIs > Test Channel Communication.
  2. A message will appear to let you know whether the test was successful or if it failed.

Review Error Messages

If the request fails, review the error message returned by the API in the CSM API Messages page. Common issues include:

  • 401 Unauthorized: Indicates that your credentials are incorrect or not accepted.
  • 403 Forbidden: Suggests that your account may not have permissions for the requested operation.

Check API Documentation

Refer to the API documentation of your eCommerce platform for specific requirements related to authentication, permissions and error handling.