guibranco / VTEX-SDK-dotnet

:shopping_cart: :gear: VTEX platform .NET SDK

Home Page:https://guibranco.github.io/VTEX-SDK-dotnet/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problems with the endpoint in GetOrder method

FranciscoAmo opened this issue · comments

I want to get the getOrders orders from a vtex store and the lib returns an error because the internal getOrder endpoint is https://{{accountName}}.myvtex.com.vtexcommercestable.com.br/api/oms/pvt/orders.

In my case if I point via POSTMAN to https://{{accountName}}.myvtex.com/api/oms/pvt/orders it returns them correctly.

Your private method ServiceInvokerAsync has a parameter for the endpoint and a switch to select them.
I see that the requests method uses the default value and in my case I need the RequestEndpoint.BRIDGE point. but it is read only.

Thanks for your time

@FranciscoAmo thanks for the report, I'll work to fix it!

@FranciscoAmo did you pass only the accountName instead accountName.myvtex.com to the constructor method ?