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

Response

200
application/json

Fee added successfully.

The response is of type string.