Hi,
Theres an error in the api of getcurrentmemberorders. The params for offset and limit are reversed
https://www.wix.com/corvid/reference/wix-paid-plans/getcurrentmemberorders
In the api documentation is:
function getCurrentMemberOrders ([offset: number],[limit: number]):Order
That will lead to the following error:
Error: Bad Request
at new t (wixcode-paid-plans.js:610)
at wixcode-paid-plans.js:518
And, if go to see the function at line 497 of the wixcode-paid-plans.js, the funciton is defined as:
function getCurrentMemberOrders(limit, offset) {
var definedLimit = limit || 50;
var definedOffset = offset || 0;
return api.get(‘/orders/my-orders?limit=’ + definedLimit + ‘&offset=’ + definedOffset).then(function (response) {
return (0, _ordersMapper.mapGetCurrentMemberOrdersResponseToOrdersList)(response);
});
}
Thank you, cheers