Przejdź do głównej zawartości

Pobierz definicje pól dodatkowych

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

Zwraca definicje pól dodatkowych dla typu obiektu, opcjonalnie dla konkretnej nazwy pola. Odpowiednik getOrderExtraFields w BaseLinker.

OwnerType
string
FieldName
string

Success

Typ treściapplication/json
Array<object>
object
ownerType
string
nullable
name
string
nullable
displayName
string
nullable
type
string
nullable
displayMode
string
nullable
id
integer format: int64
nullable
predefinedValues
Array<string>
nullable
Examplegenerated
[
{
"ownerType": "example",
"name": "example",
"displayName": "example",
"type": "example",
"displayMode": "example",
"id": 1,
"predefinedValues": [
"example"
]
}
]

Not Found

Typ treściapplication/json
object
type
string
nullable
title
string
nullable
status
integer format: int32
nullable
detail
string
nullable
instance
string
nullable
key
additional properties
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}

Server Error