Light Mode
Shipping Rule Details
GET
/shipping/rules/{rule_id}Last modified: a month 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: a month ago