Skip to main content

Shipping methods

The shipping methods API allows you to view individual shipping methods.

Shipping method properties

AttributeTypeDescription
idstringMethod ID. READ-ONLY
titlestringShipping method title. READ-ONLY
descriptionstringShipping method description. READ-ONLY

Retrieve a shipping method

This API lets you retrieve and view a specific shipping method.

GET /wp-json/wc/v3/shipping_methods/<id>
curl https://example.com/wp-json/wc/v3/shipping_methods/flat_rate \
-u consumer_key:consumer_secret

List all shipping methods

This API helps you to view all the shipping methods.

GET /wp-json/wc/v3/shipping_methods
curl https://example.com/wp-json/wc/v3/shipping_methods \
-u consumer_key:consumer_secret