Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I delete a tax class? #576

Closed
gaazkam opened this issue Mar 7, 2021 · 1 comment
Closed

How do I delete a tax class? #576

gaazkam opened this issue Mar 7, 2021 · 1 comment
Labels
Milestone

Comments

@gaazkam
Copy link

gaazkam commented Mar 7, 2021

WCObject.TaxClass.Delete accepts an int parameter, but the TaxClass class has no such field. Instead there is the string slug field.

As per https://woocommerce.github.io/woocommerce-rest-api-docs/?shell#delete-a-tax-class in order to delete a tax class we need to specify a slug, which is a string, and not an int.

@XiaoFaye
Copy link
Owner

Hi, this is fixed in version 0.8.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants