PATCH
/
taxesandfees
/
{id}
Update existing Taxes & Fees
curl --request PATCH \
  --url https://commerce.driv.ly/api/taxesandfees/{id} \
  --header 'Content-Type: application/json' \
  --data '{
  "id": "tax_9kq3j4ldks03",
  "type": "Sales Tax",
  "amount": 2800
}'
{
  "data": {
    "id": "tax_9kq3j4ldks03",
    "type": "Sales Tax",
    "amount": 2800
  },
  "success": true
}

Path Parameters

id
string
required

Taxes & Fees is uniquely identified by id

Query Parameters

depth
integer

The number of levels of related objects to include in the response

Body

application/json
id
string

Taxes & Fees is uniquely identified by id

docFee
number

Taxes & Fees includes Doc Fee

Must be a multiple of 0.01
registrationFee
number

Taxes & Fees includes Registration Fee

Must be a multiple of 0.01
titleFee
number

Taxes & Fees includes Title Fee

Must be a multiple of 0.01
gasGuzzlerTax
number

Taxes & Fees includes Gas Guzzler Tax

Must be a multiple of 0.01
stateSalesTax
number

Taxes & Fees includes State Sales Tax

Must be a multiple of 0.01
deal

Deal has Taxes & Fees

Response

Taxes & Fees Updated

data
object
Examples:
{
"id": "tax_9kq3j4ldks03",
"type": "Sales Tax",
"amount": 2800
}
success
boolean