Documentation is still being updated. Some content maybe unfinished.
A valid request URL is required to generate request examples
"Cart totals have been calculated."
Calculates the cart totals including taxes, shipping, and discounts.
cURL
curl --request POST \ --url {protocol}://{host}/wp-json/cocart/v1/calculate \ --header 'Content-Type: application/json' \ --data ' { "return": false } '
Returns the cart totals once calculated.
Cart totals calculated successfully.
Success message when return parameter is false or not provided.
Was this page helpful?