Skip to main content

Apply Tax Rate Mappings

POST 

/api/ledger/connections/:connectionId/tax-rate-mappings/apply

Save several tax rate mappings at once - the companion save for Auto-Map.

Not yet available to API tokens

This endpoint currently requires session authentication; Personal Access Token scope support is in progress.

Authentication: Requires Bearer token.

Body fields:

  • mappings (array, required, min 1) - the pairings to save.
  • mappings[].tax_rate_id (integer, required) - the tax rate to map.
  • mappings[].provider_tax_code (string or null, required key) - the provider tax code (Xero: the tax type identifier, e.g. OUTPUT; QuickBooks: the tax code id). Send null to clear that mapping. The key must be present even when null.

All or nothing: if any code is unknown or archived in the provider the whole set is rejected and nothing is saved. Returns the refreshed mapping rows. Returns 404 when the connection id does not name the configured accounting connection; 422 on an unknown tax rate or provider code.

Request

Responses

OK

Response Headers
    Content-Type