Delete a Tax Item

delete
Delete by ID

https://api.moltin.com/v2/carts/:cartID/items/:itemID/taxes/:id
Request
Response
Path Parameters
id
required
string
The ID for the Tax Item to delete
Headers
Authorization
required
string
The Bearer token to grant access to the API
204: No Content
cURL
Moltin Request
curl -X DELETE https://api.moltin.com/v2/carts/:cartID/items/:itemID/taxes/:taxItemID \
-H "Authorization: Bearer XXXX"
const { MoltinClient } = require('@moltin/request')
const client = new MoltinClient({
client_id: 'X',
client_secret: 'X'
})
const reference = 'XXXX'
const itemId = 'XXXX'
const taxItemID = 'XXXX'
client
.delete(`carts/${reference}/items/${itemId}/taxes/${taxItemID}`)
.then(items => {
// Do something...
})
.catch(console.error)