branches.read_write
- Branchs Read & WriteAuthorization: Bearer ********************
{
"name": "Allocation Rout Name",
"company_id": "665151403",
"priority": 1,
"rules": [
{
"type": "total_quantity",
"operator": ">=",
"value": "3"
}
],
"action": {
"type": "branches",
"strategy": "most_stock",
"single_branch_only": true
}
}
curl --location --request POST 'https://api.salla.dev/admin/v2/branches/allocation' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Allocation Rout Name",
"company_id": "665151403",
"priority": 1,
"rules": [
{
"type": "total_quantity",
"operator": ">=",
"value": "3"
}
],
"action": {
"type": "branches",
"strategy": "most_stock",
"single_branch_only": true
}
}'
{
"status": 201,
"success": true,
"data": {
"id": 349994915,
"name": "Allocation Rout Name",
"company_id": 665151403,
"priority": 1,
"rules": [
{
"type": "total_quantity",
"operator": ">=",
"value": [
"3"
]
}
],
"action": {
"type": "branches",
"strategy": "most_stock",
"branch_ids": [],
"single_branch_only": true
}
}
}