Adding a custom API call
We are trying to create a Business unit upon the creation of the new user for that we have created a custom API extension but we are not able to execute the graphql given to the custom API extension
17 Replies
Hi @san123 π , which integration are you using?
I believe that extendApiMethods should return something
yep, I was wrong, no need to return anything
@san123 have you had a look here: https://docs.vuestorefront.io/v2/integrate/extending-integrations.html ?
Extending integrations | Vue Storefront 2
Vue Storefront 2 documentation
Commercetools Integration
if you set a debugger, is businessUnit being called?
Any errors?
I have placed a debugger for business unit still I am able to call the business unit
good, I see you have HttpToolkit setup there. Is the request being sent?
Are you getting any errors?
In the application we are able to hit the businessUnit api but in the httptoolkit we aren't able to hit businessUnit api
what response are you getting here?
π please wrap the request in a try/catch and let me know what you're getting . . .
I am not getting any responce in the console
But when you debug, it does go into this function?
Have you tested this graphQl query?
Yes
when I debug it doesn't go into the function
βοΈ It looks like the debugger is there to me. π€ Can you elaborate on what you mean?
you were previously asking to check does go into the function or not when we debug