Wystaw wiele ofert na Allegro
const url = 'https://twoja-instancja-sales-offers-allegro-api.enterprise.sellrocket.pl/api/Offers/SubmitOffers';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"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"}'};
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/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.
Autoryzacja
Dział zatytułowany „Autoryzacja”Treść żądania
Dział zatytułowany „Treść żądania”object
object
SMERP ID of the Allegro marketplace connection
SMERP ID of the product
SMERP ID of the parent product
SMERP ID of the template
Id of the category in Allegro
Id of the shipping rates option from Allegro
Delivery.HandlingTime value for offer creation
Name of the offer being created
Gross price of the offer
Currency of the offer - defaults to PLN
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
Location.City value for offer creation
Location.PostCode value for offer creation
Location.CountryCode value for offer creation as defined in ISO 3166
Stock of the offer
Unit by which it is being offered
Duration of the offer being available
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’
Used for External Id value
Payment type for the offer - possible values: “VAT” “VAT_MARGIN” “WITHOUT_VAT” “NO_INVOICE”
ID of the Allegro ImpliedWarranty object
ID of the Allegro ReturnPolicy object
ID of the Allegro Warranty object
Id of the responsible producers option from Allegro
Id of the responsible persons option from Allegro
Product placed on the EU market before 13.12.2024
Contains information about product’s safety
object
object
Tax rates settings
object
object
Should we include images from productization catalog in the offer
Product to be linked to or created and linked to the offer
object
Id of the product used when ‘Link’ mode specified
Name of the product
Set of parameters for the product
object
object
object
Images for the product. Accepts either string URLs or { url, aiCreated } objects.
object
Set of parameters for the offer
object
object
object
Offer description
object
object
object
List of offer’s attachments
object
Type of attachment
Complex field name which should be used to attach the file to offer.
object
object
SMERP ID of the Allegro marketplace connection
SMERP ID of the product
SMERP ID of the parent product
SMERP ID of the template
Id of the category in Allegro
Id of the shipping rates option from Allegro
Delivery.HandlingTime value for offer creation
Name of the offer being created
Gross price of the offer
Currency of the offer - defaults to PLN
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
Location.City value for offer creation
Location.PostCode value for offer creation
Location.CountryCode value for offer creation as defined in ISO 3166
Stock of the offer
Unit by which it is being offered
Duration of the offer being available
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’
Used for External Id value
Payment type for the offer - possible values: “VAT” “VAT_MARGIN” “WITHOUT_VAT” “NO_INVOICE”
ID of the Allegro ImpliedWarranty object
ID of the Allegro ReturnPolicy object
ID of the Allegro Warranty object
Id of the responsible producers option from Allegro
Id of the responsible persons option from Allegro
Product placed on the EU market before 13.12.2024
Contains information about product’s safety
object
object
Tax rates settings
object
object
Should we include images from productization catalog in the offer
Product to be linked to or created and linked to the offer
object
Id of the product used when ‘Link’ mode specified
Name of the product
Set of parameters for the product
object
object
object
Images for the product. Accepts either string URLs or { url, aiCreated } objects.
object
Set of parameters for the offer
object
object
object
Offer description
object
object
object
List of offer’s attachments
object
Type of attachment
Complex field name which should be used to attach the file to offer.
object
object
SMERP ID of the Allegro marketplace connection
SMERP ID of the product
SMERP ID of the parent product
SMERP ID of the template
Id of the category in Allegro
Id of the shipping rates option from Allegro
Delivery.HandlingTime value for offer creation
Name of the offer being created
Gross price of the offer
Currency of the offer - defaults to PLN
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
Location.City value for offer creation
Location.PostCode value for offer creation
Location.CountryCode value for offer creation as defined in ISO 3166
Stock of the offer
Unit by which it is being offered
Duration of the offer being available
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’
Used for External Id value
Payment type for the offer - possible values: “VAT” “VAT_MARGIN” “WITHOUT_VAT” “NO_INVOICE”
ID of the Allegro ImpliedWarranty object
ID of the Allegro ReturnPolicy object
ID of the Allegro Warranty object
Id of the responsible producers option from Allegro
Id of the responsible persons option from Allegro
Product placed on the EU market before 13.12.2024
Contains information about product’s safety
object
object
Tax rates settings
object
object
Should we include images from productization catalog in the offer
Product to be linked to or created and linked to the offer
object
Id of the product used when ‘Link’ mode specified
Name of the product
Set of parameters for the product
object
object
object
Images for the product. Accepts either string URLs or { url, aiCreated } objects.
object
Set of parameters for the offer
object
object
object
Offer description
object
object
object
List of offer’s attachments
object
Type of attachment
Complex field name which should be used to attach the file to offer.
Odpowiedzi
Dział zatytułowany „Odpowiedzi”OK
object
object
Examplegenerated
[ { "offerId": "example", "url": "example", "error": "example", "warning": "example" }]object
Examplegenerated
[ { "offerId": "example", "url": "example", "error": "example", "warning": "example" }]Bad Request
object
object
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}object
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}Not Found
object
object
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}object
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}Unprocessable Content
object
object
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}object
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}
