priority: null for an offer to clear it.offers_limit and offers. Multi-market stores send scopes, one entry per market. Sending the wrong shape for the store fails validation, so call Get Offer Priorities first and branch on is_multi_scope.offers[].id must belong to the calling store, and every scopes[].id must be one of the store's markets, otherwise the endpoint returns 422.specialoffers.read_write- Special Offers Read & WriteAuthorization: Bearer ********************{
"offers_limit": 2,
"offers": [
{
"id": 1473353380,
"priority": 1
},
{
"id": 1985324751,
"priority": 2
}
]
}curl --location --request PUT 'https://api.salla.dev/admin/v2/specialoffers/priorities' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"offers_limit": 2,
"offers": [
{
"id": 1473353380,
"priority": 1
},
{
"id": 1985324751,
"priority": 2
}
]
}'{
"status": 200,
"success": true,
"data": {
"code": 200,
"message": "تم تحديث أولويات العروض بنجاح"
}
}