getTaxRegion( )


Developer Preview

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.

Permissions
Manage Stores - all permissions
Manage eCommerce - all permissions
Manage Orders
Learn more about app permissions.
Method Declaration
Copy
function getTaxRegion(taxRegionId: string): Promise<TaxRegion>;
Method Parameters
taxRegionIdstringRequired

ID of the tax region to retrieve.

Returns
Return Type:Promise<TaxRegion>
JavaScript
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 } }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?