Przejdź do głównej zawartości

Wystaw wiele ofert na Allegro

Przestarzałe
POST
/api/Offers/SubmitOffers
curl --request POST \
--url https://twoja-instancja-sales-offers-allegro-api.enterprise.sellrocket.pl/api/Offers/SubmitOffers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "submitOffers": [ { "connectionId": "example", "productId": 1, "parentProductId": 1, "templateId": 1, "categoryId": "example", "shippingRate": "example", "availability": "example", "name": "example", "priceGross": 1, "currency": "example", "voivodeship": "example", "city": "example", "postCode": "example", "country": "example", "quantity": 1, "unit": "example", "duration": "example", "startingAt": "example", "sku": "example", "payment": "example", "complaint": "example", "return": "example", "warranty": "example", "responsibleProducer": "example", "responsiblePerson": "example", "marketedBeforeGPSRObligation": "example", "safetyInformation": { "type": "example", "description": "example", "attachments": [ { "id": "example" } ] }, "taxSettings": { "rates": [ { "rate": "example", "countryCode": "example" } ] }, "includeProductizationImages": true, "product": { "id": "example", "name": "example", "parameters": [ { "id": "example", "name": "example", "rangeValue": { "from": "example", "to": "example" }, "values": [ "example" ], "valuesLabels": [ "example" ], "valuesIds": [ "example" ], "unit": "example", "options": { "identifiesProduct": true, "isGTIN": true, "isTrusted": true, "isAiCoCreated": true } } ], "images": [ { "url": "example", "aiCreated": true } ] }, "offerParameters": [ { "id": "example", "name": "example", "rangeValue": { "from": "example", "to": "example" }, "values": [ "example" ], "valuesLabels": [ "example" ], "valuesIds": [ "example" ], "unit": "example", "options": { "identifiesProduct": true, "isGTIN": true, "isTrusted": true, "isAiCoCreated": true } } ], "description": { "sections": [ { "items": [ { "type": "example", "content": "example", "url": "example" } ] } ] }, "offerAttachments": [ { "attachmentType": "MANUAL", "complexFieldName": "example" } ], "createAsDraft": true } ], "connectionId": "example" }'

Wystawia wiele ofert w jednym żądaniu.

object
submitOffers
wymagane
Array<object>
object
connectionId
wymagane

SMERP ID of the Allegro marketplace connection

string
productId
wymagane

SMERP ID of the product

integer format: int32
parentProductId

SMERP ID of the parent product

integer format: int64
nullable
templateId
wymagane

SMERP ID of the template

integer format: int32
categoryId
wymagane

Id of the category in Allegro

string
shippingRate
wymagane

Id of the shipping rates option from Allegro

string
availability
wymagane

Delivery.HandlingTime value for offer creation

string
name
wymagane

Name of the offer being created

string
priceGross
wymagane

Gross price of the offer

number format: double
currency
wymagane

Currency of the offer - defaults to PLN

string
voivodeship
wymagane

Location.Province value for offer creation. Possible values: DOLNOSLASKIE, KUJAWSKO_POMORSKIE, LUBELSKIE, LUBUSKIE, LODZKIE, MALOPOLSKIE, MAZOWIECKIE, OPOLSKIE, PODKARPACKIE, PODLASKIE, POMORSKIE, SLASKIE, SWIETOKRZYSKIE, WARMINSKO_MAZURSKIE, WIELKOPOLSKIE, ZACHODNIOPOMORSKIE

string
city
wymagane

Location.City value for offer creation

string
postCode
wymagane

Location.PostCode value for offer creation

string
country
wymagane

Location.CountryCode value for offer creation as defined in ISO 3166

string
quantity
wymagane

Stock of the offer

integer format: int32
unit
wymagane

Unit by which it is being offered

string
duration
wymagane

Duration of the offer being available

string
startingAt
wymagane

Defines when the offer goes live - two possible values. NOW - for starting as soon as posible or specifi DateTime value in format (ISO 8601) - ‘yyyy-MM-dd’T’HH:mm:ss.SSSZ’

string
sku
wymagane

Used for External Id value

string
payment
wymagane

Payment type for the offer - possible values: “VAT” “VAT_MARGIN” “WITHOUT_VAT” “NO_INVOICE”

string
complaint

ID of the Allegro ImpliedWarranty object

string
nullable
return
wymagane

ID of the Allegro ReturnPolicy object

string
warranty

ID of the Allegro Warranty object

string
nullable
responsibleProducer
wymagane

Id of the responsible producers option from Allegro

string
responsiblePerson
wymagane

Id of the responsible persons option from Allegro

string
marketedBeforeGPSRObligation
wymagane

Product placed on the EU market before 13.12.2024

string
safetyInformation
wymagane

Contains information about product’s safety

object
type
wymagane
string
description
string
nullable
attachments
Array<object>
nullable
object
id
wymagane
string
taxSettings
wymagane

Tax rates settings

object
rates
wymagane
Array<object>
object
rate
string
nullable
countryCode
wymagane
string
includeProductizationImages
wymagane

Should we include images from productization catalog in the offer

boolean
product
wymagane

Product to be linked to or created and linked to the offer

object
id
wymagane

Id of the product used when ‘Link’ mode specified

string
name
wymagane

Name of the product

string
parameters
wymagane

Set of parameters for the product

Array<object>
object
id
wymagane
string
name
wymagane
string
rangeValue
object
from
wymagane
string
to
wymagane
string
values
Array<string>
nullable
valuesLabels
Array<string>
nullable
valuesIds
Array<string>
nullable
unit
wymagane
string
options
object
identifiesProduct
wymagane
boolean
isGTIN
wymagane
boolean
isTrusted
wymagane
boolean
isAiCoCreated
wymagane
boolean
images
wymagane

Images for the product. Accepts either string URLs or { url, aiCreated } objects.

Array<object>
object
url
wymagane
string
aiCreated
wymagane
boolean
offerParameters
wymagane

Set of parameters for the offer

Array<object>
object
id
wymagane
string
name
wymagane
string
rangeValue
object
from
wymagane
string
to
wymagane
string
values
Array<string>
nullable
valuesLabels
Array<string>
nullable
valuesIds
Array<string>
nullable
unit
wymagane
string
options
object
identifiesProduct
wymagane
boolean
isGTIN
wymagane
boolean
isTrusted
wymagane
boolean
isAiCoCreated
wymagane
boolean
description
wymagane

Offer description

object
sections
wymagane
Array<object>
object
items
wymagane
Array<object>
object
type
wymagane
string
content
string
nullable
url
string
nullable
offerAttachments

List of offer’s attachments

Array<object>
nullable
object
attachmentType
wymagane

Type of attachment

string
Dozwolone wartości: MANUAL SPECIAL_OFFER_RULES COMPETITION_RULES BOOK_EXCERPT USER_MANUAL INSTALLATION_INSTRUCTIONS GAME_INSTRUCTIONS ENERGY_LABEL PRODUCT_INFORMATION_SHEET TIRE_LABEL SAFETY_INFORMATION_MANUAL SOFTWARE_DATA_PROCESSING HARDWARE_DATA_PROCESSING PLANT_PROTECTION_PRODUCTS_AUTHORIZATION
complexFieldName
wymagane

Complex field name which should be used to attach the file to offer.

string
createAsDraft
boolean
nullable
connectionId
wymagane
string

OK

Array<object>
object
offerId
wymagane
string
url
wymagane
string
error
string
nullable
warning
string
nullable

Bad Request

object
type
string
nullable
title
string
nullable
status
integer format: int32
nullable
detail
string
nullable
instance
string
nullable
key
additional properties

Not Found

object
type
string
nullable
title
string
nullable
status
integer format: int32
nullable
detail
string
nullable
instance
string
nullable
key
additional properties

Unprocessable Content

object
type
string
nullable
title
string
nullable
status
integer format: int32
nullable
detail
string
nullable
instance
string
nullable
key
additional properties