Skip to main content
GET
/
totals
/
shipping
Get shipping total
curl --request GET \
  --url {protocol}://{host}/wp-json/cocart/v1/totals/shipping
"<string>"

Documentation Index

Fetch the complete documentation index at: https://docs.cocartapi.com/llms.txt

Use this file to discover all available pages before exploring further.

This endpoint is available in CoCart Plus.

Query Parameters

calculate
boolean
default:false

Calculate shipping before returning total.

Response

200 - application/json

Shipping total retrieved successfully.

The response is of type string.