This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Retrieves a tax region.
function getTaxRegion(taxRegionId: string): Promise<TaxRegion>;
ID of the tax region to retrieve.
import { taxRegions } from "wix-billing.v2";
async function getTaxRegion(taxRegionId) {
try {
const result = await taxRegions.getTaxRegion(taxRegionId);
return result;
} catch (error) {
console.error(error);
// Handle the error
}
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.