I try to run a query on the collection Invoices (WIX editor).
import wixData from ‘wix-data’;
console.log(“1”)
wixData.query(“Billing/Invoices”)
.find()
.then( (results) => {
console.log(“2”)
console.log(results)
} );
I get the following error: Error: WDE0149: Internal application error.
Am I doing something wrong?
I have found this thread:
Hi again! I am happy to provide an update about the Wix Invoice APIs.
Invoice functions from the wix-billing-backend API require wixAuth.elevate() in order to work.
Here is an example implementation:
import * as wixAuth from 'wix-auth';
import {invoices} from 'wix-billing-backend';
export function getInvoice(id){
const elevatedGetInvoice = wixAuth.elevate(invoices.getInvoice)
return elevatedGetInvoice(id);
}
Let me know if this solves your issue!
Additionally, please note that Wix CMS…
Does the issue describe here also affect queries?
Hi,
This issue is related. The ‘Billing/Invoice’ collection has been temporarily removed from the CMS. You can check for updates regarding this issue using the following page:
Hello, having the same issue.
Additionally, please note that Wix CMS Billing Collections have been temporarily removed from CMS in both the Editor and Site Dashboard. In the meantime, the Wix Billing Backend API should suit your needs.
how wix-billing-backend-api should fit my needs?
in fact i need to browse the invoices to send them to our billing system.
is there a workaround, or how long will the collection disappear?
thanks in advance.