Update a Tax Item

Update a Tax Item

PUT https://api.moltin.com/v2/carts/:cartID/items/:itemID/taxes/:id

Path Parameters

NameTypeDescription

id

string

ID of the Tax Item to update

Headers

NameTypeDescription

Authentication

string

Authentication token to track down who is emptying our stocks.

Request Body

NameTypeDescription

type

string

This represents the type of the object being returned

name

string

A new name for the tax.

jurisdiction

string

A new jurisdiction for this tax.

code

string

A new unique code for the tax in this jurisdiction.

rate

number

A new tax rate, represented as a decimal (12.5% -> 0.125).

{
    "data": {
      "id": "003e2458-3415-4fd2-a10c-ed422bfac4bb",
      "type": "tax_item",
      "name": "Tax Name",
      "jurisdiction" : "UK",
      "code": "MYTAX01",
      "rate": 0.2
    }
}
curl -X PUT https://api.moltin.com/v2/carts/:cartID/items/:itemID/taxes/:taxID \
    -H "Content-Type: application/json" \
    -H "Authorization: Bearer XXXX" \
    -d $'{
        "data": {
            "type": "tax_item",
            "name": "Tax Name",
            "jurisdiction" : "UK",
            "code": "MYTAX01",
            "rate": 0.2
        }
    }'

Last updated