This documentation is a Work in Progress. There maybe content unfinished. Feedback is welcome.
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.
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>"
Fee added successfully.
The response is of type string
.
Was this page helpful?