Skip to navigation

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

taxCodestringRequired1-255 characters

The tax code’s code.

Headers

Paid-BetaenumRequired

This endpoint is in the tax=v1 beta. Send this header to use it.

Allowed values:

Request

Body
activebooleanRequired

true to make the code available, false to deactivate it. A code in use cannot be deactivated.

Response

200
objectenum

The type of object. Always taxCode.

Allowed values:
activeboolean

Whether the code can be used. Only an active code can be set as a taxCode.

codestring1-255 characters

The provider’s tax code. It is the code’s key: products, prices and commits name it in taxCode.

descriptionstring or null
The provider's description of what the code covers, or null.
livemodeboolean

true for an object on a live account, false on a test account.

namestring1-255 characters
The provider's name for the code.
providerenum
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