Pobierz parametry kategorii i produkty Allegro
GET
/api/Offers/GetOfferCategoryParametersAndProducts
const url = 'https://twoja-instancja-sales-offers-allegro-api.enterprise.sellrocket.pl/api/Offers/GetOfferCategoryParametersAndProducts';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/Offers/GetOfferCategoryParametersAndProducts \ --header 'Authorization: Bearer <token>'Zwraca parametry kategorii oraz pasujące produkty z katalogu Allegro (po EAN, SKU lub nazwie) – używane przy przygotowaniu oferty.
Autoryzacja
Dział zatytułowany „Autoryzacja”Parametry
Dział zatytułowany „Parametry”Parametry zapytania
Dział zatytułowany „Parametry zapytania”ConnectionId
string
CategoryId
string
Gtin
string
Sku
string
AllegroProductId
string
AllegroProductName
string
Matching
string
CatalogId
string
IsVariant
boolean
PimProductId
integer format: int64
PimParentProductId
integer format: int64
Odpowiedzi
Dział zatytułowany „Odpowiedzi”OK
object
parameters
wymagane
Array<object>
object
originalId
wymagane
string
name
wymagane
string
type
wymagane
string
required
wymagane
boolean
requiredForProduct
wymagane
boolean
unit
string
options
object
ambiguousValueId
string
dependsOnParameterId
string
describesProduct
wymagane
boolean
customValuesEnabled
wymagane
boolean
additionalProperties
object
key
additional properties
restrictions
object
min
number format: double
max
number format: double
range
boolean
precision
integer format: int32
minLength
integer format: int32
maxLength
integer format: int32
allowedNumberOfValues
integer format: int32
multipleChoices
boolean
additionalProperties
object
key
additional properties
categoryId
string
categoryName
string
dictionary
Array<object>
object
id
string
value
string
dependsOnValueIds
Array<string>
additionalProperties
object
key
additional properties
defaultValues
Array<string>
additionalProperties
object
key
additional properties
allegroProducts
Array<object>
object
id
wymagane
string
name
wymagane
string
category
wymagane
object
id
wymagane
string
path
wymagane
Array<object>
object
id
wymagane
string
name
wymagane
string
similar
wymagane
Array<object>
object
id
wymagane
string
path
wymagane
Array<object>
object
id
wymagane
string
name
wymagane
string
parameters
wymagane
Array<object>
object
id
wymagane
string
name
wymagane
string
valuesLabels
Array<string>
valuesIds
Array<string>
values
Array<string>
unit
wymagane
string
options
object
identifiesProduct
wymagane
boolean
isGTIN
boolean
images
wymagane
Array<object>
object
url
wymagane
string
description
wymagane
object
sections
wymagane
Array<object>
object
items
wymagane
Array<object>
object
type
wymagane
string
content
string
url
string
publication
wymagane
object
status
wymagane
string
isDraft
wymagane
boolean
categoryId
string
object
parameters
wymagane
Array<object>
object
originalId
wymagane
string
name
wymagane
string
type
wymagane
string
required
wymagane
boolean
requiredForProduct
wymagane
boolean
unit
string
options
object
ambiguousValueId
string
dependsOnParameterId
string
describesProduct
wymagane
boolean
customValuesEnabled
wymagane
boolean
additionalProperties
object
key
additional properties
restrictions
object
min
number format: double
max
number format: double
range
boolean
precision
integer format: int32
minLength
integer format: int32
maxLength
integer format: int32
allowedNumberOfValues
integer format: int32
multipleChoices
boolean
additionalProperties
object
key
additional properties
categoryId
string
categoryName
string
dictionary
Array<object>
object
id
string
value
string
dependsOnValueIds
Array<string>
additionalProperties
object
key
additional properties
defaultValues
Array<string>
additionalProperties
object
key
additional properties
allegroProducts
Array<object>
object
id
wymagane
string
name
wymagane
string
category
wymagane
object
id
wymagane
string
path
wymagane
Array<object>
object
id
wymagane
string
name
wymagane
string
similar
wymagane
Array<object>
object
id
wymagane
string
path
wymagane
Array<object>
object
id
wymagane
string
name
wymagane
string
parameters
wymagane
Array<object>
object
id
wymagane
string
name
wymagane
string
valuesLabels
Array<string>
valuesIds
Array<string>
values
Array<string>
unit
wymagane
string
options
object
identifiesProduct
wymagane
boolean
isGTIN
boolean
images
wymagane
Array<object>
object
url
wymagane
string
description
wymagane
object
sections
wymagane
Array<object>
object
items
wymagane
Array<object>
object
type
wymagane
string
content
string
url
string
publication
wymagane
object
status
wymagane
string
isDraft
wymagane
boolean
categoryId
string
Examplegenerated
{ "parameters": [ { "originalId": "example", "name": "example", "type": "example", "required": true, "requiredForProduct": true, "unit": "example", "options": { "ambiguousValueId": "example", "dependsOnParameterId": "example", "describesProduct": true, "customValuesEnabled": true, "additionalProperties": { "additionalProperty": "example" } }, "restrictions": { "min": 1, "max": 1, "range": true, "precision": 1, "minLength": 1, "maxLength": 1, "allowedNumberOfValues": 1, "multipleChoices": true, "additionalProperties": { "additionalProperty": "example" } }, "categoryId": "example", "categoryName": "example", "dictionary": [ { "id": "example", "value": "example", "dependsOnValueIds": [ "example" ], "additionalProperties": { "additionalProperty": "example" } } ], "defaultValues": [ "example" ], "additionalProperties": { "additionalProperty": "example" } } ], "allegroProducts": [ { "id": "example", "name": "example", "category": { "id": "example", "path": [ { "id": "example", "name": "example" } ], "similar": [ { "id": "example", "path": [ { "id": "example", "name": "example" } ] } ] }, "parameters": [ { "id": "example", "name": "example", "valuesLabels": [ "example" ], "valuesIds": [ "example" ], "values": [ "example" ], "unit": "example", "options": { "identifiesProduct": true, "isGTIN": true } } ], "images": [ { "url": "example" } ], "description": { "sections": [ { "items": [ { "type": "example", "content": "example", "url": "example" } ] } ] }, "publication": { "status": "example" }, "isDraft": true } ], "categoryId": "example"}object
parameters
wymagane
Array<object>
object
originalId
wymagane
string
name
wymagane
string
type
wymagane
string
required
wymagane
boolean
requiredForProduct
wymagane
boolean
unit
string
options
object
ambiguousValueId
string
dependsOnParameterId
string
describesProduct
wymagane
boolean
customValuesEnabled
wymagane
boolean
additionalProperties
object
key
additional properties
restrictions
object
min
number format: double
max
number format: double
range
boolean
precision
integer format: int32
minLength
integer format: int32
maxLength
integer format: int32
allowedNumberOfValues
integer format: int32
multipleChoices
boolean
additionalProperties
object
key
additional properties
categoryId
string
categoryName
string
dictionary
Array<object>
object
id
string
value
string
dependsOnValueIds
Array<string>
additionalProperties
object
key
additional properties
defaultValues
Array<string>
additionalProperties
object
key
additional properties
allegroProducts
Array<object>
object
id
wymagane
string
name
wymagane
string
category
wymagane
object
id
wymagane
string
path
wymagane
Array<object>
object
id
wymagane
string
name
wymagane
string
similar
wymagane
Array<object>
object
id
wymagane
string
path
wymagane
Array<object>
object
id
wymagane
string
name
wymagane
string
parameters
wymagane
Array<object>
object
id
wymagane
string
name
wymagane
string
valuesLabels
Array<string>
valuesIds
Array<string>
values
Array<string>
unit
wymagane
string
options
object
identifiesProduct
wymagane
boolean
isGTIN
boolean
images
wymagane
Array<object>
object
url
wymagane
string
description
wymagane
object
sections
wymagane
Array<object>
object
items
wymagane
Array<object>
object
type
wymagane
string
content
string
url
string
publication
wymagane
object
status
wymagane
string
isDraft
wymagane
boolean
categoryId
string
Examplegenerated
{ "parameters": [ { "originalId": "example", "name": "example", "type": "example", "required": true, "requiredForProduct": true, "unit": "example", "options": { "ambiguousValueId": "example", "dependsOnParameterId": "example", "describesProduct": true, "customValuesEnabled": true, "additionalProperties": { "additionalProperty": "example" } }, "restrictions": { "min": 1, "max": 1, "range": true, "precision": 1, "minLength": 1, "maxLength": 1, "allowedNumberOfValues": 1, "multipleChoices": true, "additionalProperties": { "additionalProperty": "example" } }, "categoryId": "example", "categoryName": "example", "dictionary": [ { "id": "example", "value": "example", "dependsOnValueIds": [ "example" ], "additionalProperties": { "additionalProperty": "example" } } ], "defaultValues": [ "example" ], "additionalProperties": { "additionalProperty": "example" } } ], "allegroProducts": [ { "id": "example", "name": "example", "category": { "id": "example", "path": [ { "id": "example", "name": "example" } ], "similar": [ { "id": "example", "path": [ { "id": "example", "name": "example" } ] } ] }, "parameters": [ { "id": "example", "name": "example", "valuesLabels": [ "example" ], "valuesIds": [ "example" ], "values": [ "example" ], "unit": "example", "options": { "identifiesProduct": true, "isGTIN": true } } ], "images": [ { "url": "example" } ], "description": { "sections": [ { "items": [ { "type": "example", "content": "example", "url": "example" } ] } ] }, "publication": { "status": "example" }, "isDraft": true } ], "categoryId": "example"}
