»
Shipping Rule DELETE API Documentation
Deleting a Shipping Rule
Endpoint: DELETE /admin/shipping_rules/{shipping_rule_id}
Purpose
This API deletes a specific shipping rule identified by its ID. This action removes the rule permanently, disassociating any linked shipping policies and zones.
Path Parameters
Parameter | Type | Description |
---|---|---|
shipping_rule_id | Integer | Required. ID of the shipping rule. |
Query Parameters
No query parameters for this endpoint.
Use Case
An admin removes a shipping rule that is obsolete, incorrectly configured, or no longer aligns with the business's shipping strategies.
Request Body
No data is required for the request body.
Response
If successful, returns a 204 No Content response indicating the shipping rule has been deleted. No response body is returned.
DELETE
https://{your_site_domain}/api/v4/admin/shipping_rules/{shipping_rule_id}
Try It Out