Closed pociej closed 1 year ago
When one use api client to check discount code validity and code to check is invalid it throws instead of returning what api actual returns. So
await api.discountCode.lookup({ code: "invalid_code", });
and it throws 404 while direct call to rest api gives :
{"errors":"Not Found"}
My bad. Its shopify who returns 404, it doesn't make sense but it is not fault of package of course.
When one use api client to check discount code validity and code to check is invalid it throws instead of returning what api actual returns. So
and it throws 404 while direct call to rest api gives :