API Integration ERP system

KlaraP
Visitor
1 0 0

We setup integration with our ERP System - Metakocka. Everything works fine except the inventory. Stock in Shopify stay the same and Metakocka doesn't get any reply from the store (API) what went wrong. 

We set up integration correctly, we have all info about orders and everything from Shopify. 

Reply 1 (1)

Liam
Shopify Staff
2731 302 777

Hi KlaraP,

 

Without seeing the full implementation, it's difficult to pinpoint and exact reason why stock is not syncing correctly, but it could be due to a variety of reasons. Here are a few troubleshooting steps to consider:

  1. Check API Access: Ensure that your ERP system has the necessary access to the Inventory APIs. Shopify requires specific permissions for each type of API resource.

  2. Check API Call: Ensure that the API call being made is correct. This includes the endpoint, method (GET, POST, PUT, etc.), and the data being sent in the call.

  3. Check Inventory Item ID: When retrieving inventory levels, ensure you're providing the correct ID of the inventory item in your request.

  4. Check API Response: Make sure to properly handle and check the response from the API call. This can provide clues as to what might be going wrong.

  5. Check Shopify Webhooks: If you're using webhooks to sync inventory, ensure they are set up correctly and triggering as expected.

  6. Check Log Files: If possible, check the log files of your ERP system. This might provide more detailed information about what's going wrong.

If you're still having trouble, it might be best to get in touch with the support team of your ERP system. They might be able to provide more specific guidance based on your situation.

 

Hope this helps!

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog