POST
/
calculate
Calculate cart totals
curl --request POST \
  --url {protocol}://{host}/wp-json/cocart/v1/calculate \
  --header 'Content-Type: application/json' \
  --data '{
  "return": false
}'
"Cart totals have been calculated."

Body

application/json

Response

200
application/json

Cart totals calculated successfully.

Success message when return parameter is false or not provided.

Example:

"Cart totals have been calculated."