Przejdź do głównej zawartości

Pobierz pola dodatkowe obiektu

GET
/api/v2/AdditionalFields
curl --request GET \
--url https://twoja-instancja-additional-fields-api.enterprise.sellrocket.pl/api/v2/AdditionalFields \
--header 'Authorization: Bearer <token>'

Zwraca wszystkie pola dodatkowe (definicje z wartościami) dla obiektu danego typu, np. zamówienia; pola bez wartości również są zwracane. Odpowiada odczytowi pól dodatkowych zamówienia w BaseLinker.

If the owner with specified type has any field definitions assigned, fields should be returned even if there are no values for the owner with specified id.

objectId
integer format: int64

Id of an object for which the all the fields should be returned

ownerType
string

Type of an object for which the all the fields should be returned. To check available OwnerTypes, check GET /AdditionalFieldsOwners

Success

Typ treściapplication/json
Array<object>
object
objectId
integer format: int64
ownerType
string
nullable
definitionId
integer format: int64
nullable
fieldType
string
nullable
fieldName
string
nullable
fieldDisplayName
string
nullable
displayMode
string
nullable
fieldValue
string
nullable
Examplegenerated
[
{
"objectId": 1,
"ownerType": "example",
"definitionId": 1,
"fieldType": "example",
"fieldName": "example",
"fieldDisplayName": "example",
"displayMode": "example",
"fieldValue": "example"
}
]

Bad Request

Typ treściapplication/json
object
error
string
nullable
Examplegenerated
{
"error": "example"
}

Server Error