[lightMode]
Shipping Rule Details
GET
/shipping/rules/{rule_id}[updatedIn]ย 2 months 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
[message.pathParameter]
rule_id
integerย
required
Shipping Rule ID
Request samples
[api.label.responses]
Success(200)
Error Validation(404)
HTTP Code:ย 200
Content Type :ย JSONapplication/json
[response.label.jsonSchema]
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
[api.label.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"
}
]
}
}
[updatedIn] 2 months ago