Light Mode
Shipping Rule Details
GET
/shipping/rules/{rule_id}Last modified:Â 18 days ago
This endpoint allows you to show details in regards to a specific new shipping rule, by passing the rule_id
as a path parameter.
Request
Path Params
rule_id
integerÂ
required
Shipping Rule ID
Request samples
Responses
Success(200)
Error Validation(404)
HTTP Code:Â 200
Content Type :Â JSONapplication/json
Data Schema
status
integerÂ
optional
Status Code of the Shipping Rule
success
booleanÂ
optional
Success of the Shipping Rule
data
objectÂ
optional
id
numberÂ
optional
ID of the Shipping Rule
title
stringÂ
optional
Title of the Shipping Rule
status
stringÂ
optional
Status of the Shipping Rule
shipping_companies_ids
array[number]
optional
You can get a list of Shipment Companies by querying this endpoint: https://api.salla.dev/admin/v2/shipping/companies
restrictions
array [object {3}]Â
optional
Restrictions Associated with the Shipping Rule
Example
{
"status": 200,
"success": true,
"data": {
"title": "CPSAVIP",
"status": "active",
"shipping_companies_ids": [
322729604
],
"restrictions": [
{
"type": "cart-price",
"condition": "==",
"value": 100
},
{
"type": "category",
"condition": null,
"value": "Dress"
},
{
"type": "customer-group",
"condition": null,
"value": "VIP"
}
]
}
}
Last modified: 18 days ago