Skip to main content
Solved

API response: "If a date filter is provided, sort field must also match or be omitted."

  • June 14, 2023
  • 2 replies
  • 68 views

Forum|alt.badge.img+2

The response detail is not accurate, since I’m omitting the sort param.

 

 

Best answer by Brian Turcotte

Hi @portermetrics!

My apologies for the delay here!

I performed some further testing to simulate your use case, and I received the same error in the same context - so my suggestion would be to include a sort method in further calls, and I will speak to our documentation team to determine if there is another interpretation for that error.

 

Best,

Brian

2 replies

Brian Turcotte
Forum|alt.badge.img+37
  • Klaviyo Alum
  • 1393 replies
  • June 15, 2023

Hi @portermetrics!

I’m going to check with Engineering on this and I will get back to you shortly!

 

Best,

Brian


Brian Turcotte
Forum|alt.badge.img+37
  • Klaviyo Alum
  • 1393 replies
  • Answer
  • June 26, 2023

Hi @portermetrics!

My apologies for the delay here!

I performed some further testing to simulate your use case, and I received the same error in the same context - so my suggestion would be to include a sort method in further calls, and I will speak to our documentation team to determine if there is another interpretation for that error.

 

Best,

Brian