This documentation is a Work in Progress. There maybe content unfinished. Feedback is welcome.
cURL
curl --request POST \ --url {protocol}://{host}/wp-json/cocart/v1/calculate \ --header 'Content-Type: application/json' \ --data '{ "return": false }'
"Cart totals have been calculated."
Calculates the cart totals including taxes, shipping, and discounts.
Cart totals calculated successfully.
Success message when return parameter is false or not provided.
Was this page helpful?