Przygotuj konto Allegro do obsługi ofert
POST
/api/Connections/PrepareConnection
const url = 'https://twoja-instancja-sales-offers-allegro-api.enterprise.sellrocket.pl/api/Connections/PrepareConnection';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"connectionId":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://twoja-instancja-sales-offers-allegro-api.enterprise.sellrocket.pl/api/Connections/PrepareConnection \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "connectionId": "example" }'Inicjalizuje moduł ofert dla połączonego konta Allegro.
Autoryzacja
Dział zatytułowany „Autoryzacja”Treść żądania
Dział zatytułowany „Treść żądania”object
connectionId
wymagane
SMERP ID of the Allegro marketplace connection
string
Examplegenerated
{ "connectionId": "example"}object
connectionId
wymagane
SMERP ID of the Allegro marketplace connection
string
Examplegenerated
{ "connectionId": "example"}object
connectionId
wymagane
SMERP ID of the Allegro marketplace connection
string
Examplegenerated
{ "connectionId": "example"}Odpowiedzi
Dział zatytułowany „Odpowiedzi”OK
object
id
wymagane
integer format: int64
connectionId
wymagane
string
lastSyncTime
string format: date-time
defaultAuctionTemplateId
integer format: int64
defaultShippingRateId
string
defaultReturnsPolicyId
string
defaultCategoryId
string
defaultResponsibleProducerId
string
defaultResponsiblePersonId
string
defaultMarketedBeforeGPSRObligation
string
defaultSafetyInformationType
string
defaultSafetyInformationText
string
defaultSafetyInformationExtraField
string
defaultUserWarrantyId
string
defaultAvailability
string
defaultPriceGroupId
integer format: int64
priceMultiplier
number format: float
additionalPrice
number format: float
country
string
city
string
postCode
string
voivodeship
string
requireZeroStockOnAllegro
wymagane
boolean
isConnectionValid
wymagane
boolean
usePermanentlyDeletedOffers
wymagane
boolean
additionalMarketplaceSettings
wymagane
Array<object>
object
marketplace
wymagane
string
type
wymagane
string
multiplier
number format: float
vat
number format: float
shippingRates
wymagane
Array<object>
object
id
wymagane
string
name
wymagane
string
marketplaces
wymagane
Array<object>
object
id
wymagane
string
returnPolicies
wymagane
Array<object>
object
id
wymagane
string
name
wymagane
string
userWarranties
wymagane
Array<object>
object
id
wymagane
string
name
wymagane
string
impliedWarranties
wymagane
Array<object>
object
id
wymagane
string
name
wymagane
string
responsibleProducers
wymagane
Array<object>
object
id
string
name
wymagane
string
producerData
wymagane
object
tradeName
wymagane
string
address
wymagane
object
countryCode
wymagane
string
street
wymagane
string
postalCode
wymagane
string
city
wymagane
string
contact
wymagane
object
email
wymagane
string
phoneNumber
wymagane
string
formUrl
wymagane
string
responsiblePersons
wymagane
Array<object>
object
id
string
name
wymagane
string
personalData
wymagane
object
name
wymagane
string
address
wymagane
object
countryCode
wymagane
string
street
wymagane
string
postalCode
wymagane
string
city
wymagane
string
contact
wymagane
object
email
wymagane
string
phoneNumber
wymagane
string
formUrl
wymagane
string
offerAttachments
Array<object>
object
attachmentType
wymagane
Type of attachment
string
complexFieldName
wymagane
Complex field name which should be used to attach the file to offer.
string
wholesalePriceList
Array<object>
object
id
wymagane
string
name
wymagane
string
object
id
wymagane
integer format: int64
connectionId
wymagane
string
lastSyncTime
string format: date-time
defaultAuctionTemplateId
integer format: int64
defaultShippingRateId
string
defaultReturnsPolicyId
string
defaultCategoryId
string
defaultResponsibleProducerId
string
defaultResponsiblePersonId
string
defaultMarketedBeforeGPSRObligation
string
defaultSafetyInformationType
string
defaultSafetyInformationText
string
defaultSafetyInformationExtraField
string
defaultUserWarrantyId
string
defaultAvailability
string
defaultPriceGroupId
integer format: int64
priceMultiplier
number format: float
additionalPrice
number format: float
country
string
city
string
postCode
string
voivodeship
string
requireZeroStockOnAllegro
wymagane
boolean
isConnectionValid
wymagane
boolean
usePermanentlyDeletedOffers
wymagane
boolean
additionalMarketplaceSettings
wymagane
Array<object>
object
marketplace
wymagane
string
type
wymagane
string
multiplier
number format: float
vat
number format: float
shippingRates
wymagane
Array<object>
object
id
wymagane
string
name
wymagane
string
marketplaces
wymagane
Array<object>
object
id
wymagane
string
returnPolicies
wymagane
Array<object>
object
id
wymagane
string
name
wymagane
string
userWarranties
wymagane
Array<object>
object
id
wymagane
string
name
wymagane
string
impliedWarranties
wymagane
Array<object>
object
id
wymagane
string
name
wymagane
string
responsibleProducers
wymagane
Array<object>
object
id
string
name
wymagane
string
producerData
wymagane
object
tradeName
wymagane
string
address
wymagane
object
countryCode
wymagane
string
street
wymagane
string
postalCode
wymagane
string
city
wymagane
string
contact
wymagane
object
email
wymagane
string
phoneNumber
wymagane
string
formUrl
wymagane
string
responsiblePersons
wymagane
Array<object>
object
id
string
name
wymagane
string
personalData
wymagane
object
name
wymagane
string
address
wymagane
object
countryCode
wymagane
string
street
wymagane
string
postalCode
wymagane
string
city
wymagane
string
contact
wymagane
object
email
wymagane
string
phoneNumber
wymagane
string
formUrl
wymagane
string
offerAttachments
Array<object>
object
attachmentType
wymagane
Type of attachment
string
complexFieldName
wymagane
Complex field name which should be used to attach the file to offer.
string
wholesalePriceList
Array<object>
object
id
wymagane
string
name
wymagane
string
Example
{ "additionalMarketplaceSettings": [ { "marketplace": "AllegroCz", "type": "ByAllegro" } ], "offerAttachments": [ { "attachmentType": "MANUAL" } ]}object
id
wymagane
integer format: int64
connectionId
wymagane
string
lastSyncTime
string format: date-time
defaultAuctionTemplateId
integer format: int64
defaultShippingRateId
string
defaultReturnsPolicyId
string
defaultCategoryId
string
defaultResponsibleProducerId
string
defaultResponsiblePersonId
string
defaultMarketedBeforeGPSRObligation
string
defaultSafetyInformationType
string
defaultSafetyInformationText
string
defaultSafetyInformationExtraField
string
defaultUserWarrantyId
string
defaultAvailability
string
defaultPriceGroupId
integer format: int64
priceMultiplier
number format: float
additionalPrice
number format: float
country
string
city
string
postCode
string
voivodeship
string
requireZeroStockOnAllegro
wymagane
boolean
isConnectionValid
wymagane
boolean
usePermanentlyDeletedOffers
wymagane
boolean
additionalMarketplaceSettings
wymagane
Array<object>
object
marketplace
wymagane
string
type
wymagane
string
multiplier
number format: float
vat
number format: float
shippingRates
wymagane
Array<object>
object
id
wymagane
string
name
wymagane
string
marketplaces
wymagane
Array<object>
object
id
wymagane
string
returnPolicies
wymagane
Array<object>
object
id
wymagane
string
name
wymagane
string
userWarranties
wymagane
Array<object>
object
id
wymagane
string
name
wymagane
string
impliedWarranties
wymagane
Array<object>
object
id
wymagane
string
name
wymagane
string
responsibleProducers
wymagane
Array<object>
object
id
string
name
wymagane
string
producerData
wymagane
object
tradeName
wymagane
string
address
wymagane
object
countryCode
wymagane
string
street
wymagane
string
postalCode
wymagane
string
city
wymagane
string
contact
wymagane
object
email
wymagane
string
phoneNumber
wymagane
string
formUrl
wymagane
string
responsiblePersons
wymagane
Array<object>
object
id
string
name
wymagane
string
personalData
wymagane
object
name
wymagane
string
address
wymagane
object
countryCode
wymagane
string
street
wymagane
string
postalCode
wymagane
string
city
wymagane
string
contact
wymagane
object
email
wymagane
string
phoneNumber
wymagane
string
formUrl
wymagane
string
offerAttachments
Array<object>
object
attachmentType
wymagane
Type of attachment
string
complexFieldName
wymagane
Complex field name which should be used to attach the file to offer.
string
wholesalePriceList
Array<object>
object
id
wymagane
string
name
wymagane
string
Example
{ "additionalMarketplaceSettings": [ { "marketplace": "AllegroCz", "type": "ByAllegro" } ], "offerAttachments": [ { "attachmentType": "MANUAL" } ]}Not Found
object
type
string
title
string
status
integer format: int32
detail
string
instance
string
key
additional properties
object
type
string
title
string
status
integer format: int32
detail
string
instance
string
key
additional properties
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}object
type
string
title
string
status
integer format: int32
detail
string
instance
string
key
additional properties
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}
