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 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.
Thank you for letting us know about this issue as we seek to actively improve our documentation to reflect changes in our APIs.