I’m having trouble with
queryCoupons() backend method query syntax
Working in
Dev Mode
What I’m trying to do
Return results that are sorted / filtered by field
**What I’ve tried so far
// this query works as expected**
import { elevate } from "wix-auth";import { coupons as c } from "wix-marketing.v2";
export async function get_coupons_v2(){
const query = {
"paging": {
"limit": 50,
"offset": 0}
}
const el = elevate(c.queryCoupons)
const result = await el(query)
return result
// adding different variations based on
// API Query Language
// leads to errors like
message: Unexpected value for StringValue details: applicationError: description: Bad Request code: BAD_REQUEST data: {}