Skip to content
Developers
Pilot. The API is open to a small number of organisations and may change — every change is in the changelog.

Reference · Taxes

Create a tax

POST/v1/sites/{siteId}/taxes

Adds a tax to a site. The response is the tax, with the code to use from then on.

Needs Catalogue: writeChanges live data

Path

  • siteIdrequired

    The site, from GET /v1/sites.

    string

Headers

  • Authorizationrequired

    An API key from Automation > Access in the Dnero portal, sent as Authorization: Bearer <key>.

    string

  • Idempotency-Key

    A value you choose, unique to what this request creates: a UUID, or your own id for it. Sending it again with the same body returns the first response and creates nothing more. Required.

    string · at most 255 characters

Body

  • namerequired

    The tax's name.

    string · 1–200 characters

  • ratePercentrequired

    The rate, as a percentage, to three decimal places.

    number · double · ≥ 0 · ≤ 100

  • active

    False to create it retired. Defaults to true.

    boolean

Responses

201 Created

  • activerequired

    False for a retired tax.

    boolean

  • coderequired

    The tax's code. Products carry these.

    string

  • namerequired

    The tax's name.

    string

  • ratePercentrequired

    The rate, as a percentage.

    number · double

  • updatedAt

    When the tax last changed.

    string · date-time