Update a tax code
Draft scaffold — not implemented or available in the API.
Activates or deactivates a tax code. Deactivating a code a product, price or commit uses, or that tax settings uses as a default, fails with resource_in_use. {taxCode} takes the tax code’s code.
Authentication
AuthorizationBearer
API Key authentication using Bearer token
Path parameters
taxCode
The tax code’s code.
Headers
Paid-Beta
This endpoint is in the tax=v1 beta. Send this header to use it.
Allowed values:
Request
Body
active
true to make the code available, false to deactivate it. A code in use cannot be deactivated.
Response
200
object
The type of object. Always taxCode.
Allowed values:
active
Whether the code can be used. Only an active code can be set as a taxCode.
code
The provider’s tax code. It is the code’s key: products, prices and commits name it in taxCode.
description
The provider's description of what the code covers, or null.
livemode
true for an object on a live account, false on a test account.
name
The provider's name for the code.
provider
The tax provider the code comes from.
Allowed values:
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
429
Too Many Requests Error
500
Internal Server Error
501
Not Implemented Error