POST
/
calculate
/
shipping
Calculate shipping
curl --request POST \
  --url {protocol}://{host}/wp-json/cocart/v1/calculate/shipping \
  --header 'Content-Type: application/json' \
  --data '{
  "country": "<string>",
  "state": "<string>",
  "city": "<string>",
  "postcode": "<string>",
  "return_methods": false
}'
"<string>"
This endpoint is available in CoCart Plus.

Body

application/json

Response

200
application/json

Shipping calculated successfully.

The response is of type string.