Pobierz reguły parametrów katalogu
GET
/api/ParameterRules/GetParameterRules
const url = 'https://twoja-instancja-sales-offers-allegro-api.enterprise.sellrocket.pl/api/ParameterRules/GetParameterRules';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://twoja-instancja-sales-offers-allegro-api.enterprise.sellrocket.pl/api/ParameterRules/GetParameterRules \ --header 'Authorization: Bearer <token>'Autoryzacja
Dział zatytułowany „Autoryzacja”Parametry
Dział zatytułowany „Parametry”Parametry zapytania
Dział zatytułowany „Parametry zapytania”CatalogId
string
Odpowiedzi
Dział zatytułowany „Odpowiedzi”OK
object
rules
wymagane
Array<object>
object
id
wymagane
integer format: int64
ruleType
wymagane
string
conditionType
wymagane
string
parameterName
wymagane
string
unit
string
customValue
string
parameterRulesMap
Array<object>
object
warehouseValue
wymagane
string
allegroValue
wymagane
string
conditionValue
string
conditionParameterName
string
valueSourceType
string
object
rules
wymagane
Array<object>
object
id
wymagane
integer format: int64
ruleType
wymagane
string
conditionType
wymagane
string
parameterName
wymagane
string
unit
string
customValue
string
parameterRulesMap
Array<object>
object
warehouseValue
wymagane
string
allegroValue
wymagane
string
conditionValue
string
conditionParameterName
string
valueSourceType
string
Example
{ "rules": [ { "ruleType": "CopyFromWarehouseParameter", "conditionType": "Always", "valueSourceType": "SetValue" } ]}object
rules
wymagane
Array<object>
object
id
wymagane
integer format: int64
ruleType
wymagane
string
conditionType
wymagane
string
parameterName
wymagane
string
unit
string
customValue
string
parameterRulesMap
Array<object>
object
warehouseValue
wymagane
string
allegroValue
wymagane
string
conditionValue
string
conditionParameterName
string
valueSourceType
string
Example
{ "rules": [ { "ruleType": "CopyFromWarehouseParameter", "conditionType": "Always", "valueSourceType": "SetValue" } ]}
