Just setting up an instance of SW6 for a client but need to integrate with their existing ERP - using Integromat to create the necessary API connections but struggling with the endpoints for Orders and Customers - both constantly error:
„status“: „403“,
„code“: „CHECKOUT__CUSTOMER_NOT_LOGGED_IN“,
„title“: „Forbidden“,
„detail“: „Customer is not logged in.“,
There’s one test customer with one test order and the customer has an account created. Wasted hours on this now. Can anyone shed any light?
Okay, using a GET request on the Admin API you need to add any filter/association/include requests etc as an HTTP Query String directly to the URL.
I had been adding it as a JSON request. If you’re using Integromat HTTP modules - it doesn’t even seem to recognise the Query String Parameters - so just add straight to the URL.
So for example for this:
{
associations: {
lineItems: {
limit: 50
}
}
add this to the end of the URL:
?associations[lineItems][limit]=50
Even if you don’t want to ‚limit‘ or ‚filter‘ or ‚include‘ - you will not get the payload for associations unless you add some parameter - ie this on its own won’t work: ?associations[lineItems]
I am having am issue which i have tired to resolve for some time now, I am using the storefront api to expose endpoints for consumption, currently the official api documentation is guiding me shopware wishlist
First of all, i made sure i was logged in and provided by the application with a response