Issue when I try to fetch the order info with orderId using Order API

Hi,

Ran into the following issue, When trying to fetch the order info using the orderId in order API. Please can you get me through with this issue.

{
  "error": {
    "code": "OMS001",
    "message": "An error has occurred",
    "exception": null
  }
}

I have gone through the similar tickets but could not find the solution in them.

Thanks.

Hi! Welcome to our Community.

If you are doing a get Order using this api
you need to review the endpoint domain.

The correct endpoints are:

{{account}}.myvtex.com/api/oms/pvt/orders/{orderId}

or

{{account}}.vtexcommercestable.com.br/api/oms/pvt/orders/{orderId}
1 Like

The Orders API error OMS001 is always an internal server error, which you should also note by the HTTP status code 500 in the response.

With that in mind, there are many possible reasons for that error to show up. So you should always share the exact scenario which leads you to that response, allowing our team to replicate it and pinpoint what went wrong in your attempt to use the API.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.