Ao tentar realizar listagem de paginas com o valor acima de 30 como 31, a api retorna erro. Como se eu estivesse ultrapassando o limite de itens na listagem (30 itens por lista no máximo), porem estou apenas trabalhando com a paginação.
URL:
https://{{accountName}}.{{environment}}.com.br/api/oms/pvt/orders?page=31
Retorno:
{
"error": {
"code": "1",
"message": "Max page exceed ( 30 ), refine filter",
"exception": {
"ClassName": "Vtex.Practices.ServiceModel.Client.Exceptions.BadRequestException",
"Message": "Max page exceed ( 30 ), refine filter",
"Data": null,
"InnerException": null,
"HelpURL": null,
"StackTraceString": " at Vtex.Commerce.Oms.WebApi.OrdersApiController.<ListOrders>d__15.MoveNext() in F:\\pachamama\\BuildAgent\\work\\96a083434c98702d\\src\\services\\Private Assemblies\\Vtex.Commerce.Oms.WebApi\\OrdersApiController.cs:line 755\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Threading.Tasks.TaskHelpersExtensions.<CastToObject>d__3`1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Vtex.Commerce.Oms.WebApi.Filter.AccessControlFilter.<ExecuteActionFilterAsync>d__3.MoveNext() in F:\\pachamama\\BuildAgent\\work\\96a083434c98702d\\src\\services\\Private Assemblies\\Vtex.Commerce.Oms.WebApi\\Filter\\AccessControlFilter.cs:line 32\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Filters.AuthorizationFilterAttribute.<ExecuteAuthorizationFilterAsyncCore>d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__0.MoveNext()",
"RemoteStackTraceString": null,
"RemoteStackIndex": 0,
"ExceptionMethod": "8\nMoveNext\nVtex.Commerce.Oms.WebApi, Version=1.6.46.1667, Culture=neutral, PublicKeyToken=null\nVtex.Commerce.Oms.WebApi.OrdersApiController+<ListOrders>d__15\nVoid MoveNext()",
"HResult": -2146233088,
"Source": "Vtex.Commerce.Oms.WebApi",
"WatsonBuckets": null
}
}
}
Isso é uma limitação da própria API?