Skip to main content
POST
/
fees
Add fee to cart
curl --request POST \
  --url {protocol}://{host}/wp-json/cocart/v1/fees \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "amount": "<string>",
  "taxable": false,
  "tax_class": "<string>"
}
'
"<string>"
This endpoint is available in CoCart Plus.

Body

application/json
name
string
required

Name of the fee.

amount
string
required

Amount for the fee.

taxable
boolean
default:false

Determines if the fee is taxable.

tax_class
string

The tax class the fee applies to.

Response

Fee added successfully.

The response is of type string.