Documentation is still being updated. Some content maybe unfinished.
cURL
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>"
Adds a fee to the cart.
Name of the fee.
Amount for the fee.
Determines if the fee is taxable.
The tax class the fee applies to.
Fee added successfully.
The response is of type string.
string
Was this page helpful?