I get this error every time I try to update the paymentStatus of an order:
const order = await wixData.get(
'Stores/Orders',
paymentIntent.metadata.orderId,
{ suppressAuth: true }
);
console.log('ABOUT TO UPDATE', order);
order.paymentStatus = 'PENDING';
const updatedOrder = await wixData.update(
'Stores/Orders',
order,
{ suppressAuth: true }
);
console.log('UPDATE OK', updatedOrder);
I never see the “UPDATE OK” in the logs, instead, I get:
"Unknown error. Request ID: 1611770320.93139175542964216103. Message: Request failed with status code 404."
Edit: This is all on the backend.