Wystaw oferty na innym koncie Allegro
POST
/api/Offers/ListOnAnotherAccount
const url = 'https://twoja-instancja-sales-offers-allegro-api.enterprise.sellrocket.pl/api/Offers/ListOnAnotherAccount';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"parentConnectionId":"example","connectionId":"example","shippingRateId":"example","responsiblePersonId":"example","responsibleProducerId":"example","templateId":1,"useOfferStock":true,"complaint":"example","return":"example","warranty":"example","safetyInformationType":"example","safetyInformationText":"example","safetyInformationSource":"Connection","offerIds":["example"],"offerAttachments":[{"attachmentType":"MANUAL","complexFieldName":"example"}],"createAsDraft":true}'};
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/Offers/ListOnAnotherAccount \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "parentConnectionId": "example", "connectionId": "example", "shippingRateId": "example", "responsiblePersonId": "example", "responsibleProducerId": "example", "templateId": 1, "useOfferStock": true, "complaint": "example", "return": "example", "warranty": "example", "safetyInformationType": "example", "safetyInformationText": "example", "safetyInformationSource": "Connection", "offerIds": [ "example" ], "offerAttachments": [ { "attachmentType": "MANUAL", "complexFieldName": "example" } ], "createAsDraft": true }'Kopiuje wybrane oferty na inne połączone konto Allegro; zwraca operację asynchroniczną.
Autoryzacja
Dział zatytułowany „Autoryzacja”Treść żądania
Dział zatytułowany „Treść żądania”object
parentConnectionId
wymagane
string
connectionId
wymagane
string
shippingRateId
wymagane
string
responsiblePersonId
wymagane
string
responsibleProducerId
wymagane
string
templateId
wymagane
integer format: int32
useOfferStock
wymagane
boolean
complaint
wymagane
string
return
wymagane
string
warranty
wymagane
string
safetyInformationType
string
safetyInformationText
string
safetyInformationSource
wymagane
string
offerIds
Array<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
createAsDraft
boolean
object
parentConnectionId
wymagane
string
connectionId
wymagane
string
shippingRateId
wymagane
string
responsiblePersonId
wymagane
string
responsibleProducerId
wymagane
string
templateId
wymagane
integer format: int32
useOfferStock
wymagane
boolean
complaint
wymagane
string
return
wymagane
string
warranty
wymagane
string
safetyInformationType
string
safetyInformationText
string
safetyInformationSource
wymagane
string
offerIds
Array<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
createAsDraft
boolean
object
parentConnectionId
wymagane
string
connectionId
wymagane
string
shippingRateId
wymagane
string
responsiblePersonId
wymagane
string
responsibleProducerId
wymagane
string
templateId
wymagane
integer format: int32
useOfferStock
wymagane
boolean
complaint
wymagane
string
return
wymagane
string
warranty
wymagane
string
safetyInformationType
string
safetyInformationText
string
safetyInformationSource
wymagane
string
offerIds
Array<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
createAsDraft
boolean
Odpowiedzi
Dział zatytułowany „Odpowiedzi”OK
object
id
wymagane
integer format: int64
object
id
wymagane
integer format: int64
Examplegenerated
{ "id": 1}object
id
wymagane
integer format: int64
Examplegenerated
{ "id": 1}Bad Request
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"}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"}Unprocessable Content
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"}
