Skip to navigation

Update tax settings

Draft scaffold — not implemented or available in the API.

Changes only the fields sent: enabled, defaultTaxCode, discountTaxCode and depositTaxCode. A tax code must be active. Enabling tax with no provider connected fails with tax_provider_not_connected. The provider is connected in the dashboard.

Authentication

AuthorizationBearer
API Key authentication using Bearer token

Headers

Paid-BetaenumRequired

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

Allowed values:

Request

Body
defaultTaxCodestringOptional1-255 characters

The tax code for a product, price or commit that names none. Must be an active tax code. Defaults to SW054003; it can be changed to another code but not cleared.

depositTaxCodestringOptional1-255 characters

The non-taxable code for prepaid commit invoices taxed at consumption: the prepayment is a deposit, and the usage it covers is taxed when it’s invoiced. Must be an active tax code. Defaults to NT; it can be changed to another code but not cleared.

discountTaxCodestringOptional1-255 characters

The tax code for discount lines, sent to the tax provider as negative amounts that lower the taxable total. Must be an active tax code. Defaults to PD000000; it can be changed to another code but not cleared.

enabledbooleanOptional

true to tax invoices through the connected provider. Fails with tax_provider_not_connected when none is connected.

Response

200
objectenum

The type of object. Always taxSettings.

Allowed values:
defaultTaxCodestring1-255 characters

The tax code for a product, price or commit that names none. Must be an active tax code. Defaults to SW054003; it can be changed to another code but not cleared.

depositTaxCodestring1-255 characters

The non-taxable code for prepaid commit invoices taxed at consumption: the prepayment is a deposit, and the usage it covers is taxed when it’s invoiced. Must be an active tax code. Defaults to NT; it can be changed to another code but not cleared.

discountTaxCodestring1-255 characters

The tax code for discount lines, sent to the tax provider as negative amounts that lower the taxable total. Must be an active tax code. Defaults to PD000000; it can be changed to another code but not cleared.

enabledboolean
Whether invoices are taxed through the connected tax provider.
livemodeboolean

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

providerenum
The connected tax provider, or null when none is connected. Connected in the dashboard, not through the API.
Allowed values:
updatedAtdatetime
When the settings were last changed.

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