Wyszukaj obiekty po wartości pola (GET)
GET
/api/v3/AdditionalFields/Search
const url = 'https://twoja-instancja-additional-fields-api.enterprise.sellrocket.pl/api/v3/AdditionalFields/Search?offset=0&limit=100';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-additional-fields-api.enterprise.sellrocket.pl/api/v3/AdditionalFields/Search?offset=0&limit=100' \ --header 'Authorization: Bearer <token>'Zwraca identyfikatory obiektów danego typu, których pole dodatkowe ma wskazaną wartość.
Autoryzacja
Dział zatytułowany „Autoryzacja”Parametry
Dział zatytułowany „Parametry”Parametry zapytania
Dział zatytułowany „Parametry zapytania”ownerType
string
Type of an object for which the all the fields should be searched. To check available OwnerTypes, check GET /AdditionalFieldsOwners
fieldValue
string
Value of the field
offset
integer format: int32
limit
integer format: int32
Odpowiedzi
Dział zatytułowany „Odpowiedzi”Success
Typ treściapplication/json
object
list
Array<integer>
pageNumber
integer format: int32
total
integer format: int32
Examplegenerated
{ "list": [ 1 ], "pageNumber": 1, "total": 1}Bad Request
Typ treściapplication/json
object
error
string
Examplegenerated
{ "error": "example"}Server Error

