Allegro REST API (latest)
https://developer.allegro.pl/about
Documentation is generated from this OpenAPI 3.0 specification file. To start working with our API, you can also check our official Allegro REST API public collection in Postman.
bearer-token-for-user
For more information PL / EN to read about authorization code flow or PL / EN to read about the device code flow.
Security Scheme Type | OAuth2 |
---|---|
authorizationCode OAuth Flow | Authorization URL: https://allegro.pl/auth/oauth/authorize Token URL: https://allegro.pl/auth/oauth/token Scopes: |
x-deviceCode OAuth Flow | Scopes: |
Get all data of the particular product-offer
Authorizations:
allegro:api:sale:offers:read
) path Parameters
offerId required | string Offer identifier. |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
{- "id": "string",
- "productSet": [
- {
- "quantity": {
- "value": 1
}, - "product": {
- "id": "c9e39cae-9cb6-11e9-a2a3-2a2ae2dbcce4",
- "publication": {
- "status": "PROPOSED"
}, - "parameters": [
- {
- "id": "string",
- "name": "string",
- "rangeValue": {
- "from": "string",
- "to": "string"
}, - "values": [
- "string"
], - "valuesIds": [
- "string"
]
}
]
}, - "responsiblePerson": {
- "id": "string"
}, - "responsibleProducer": {
- "id": "string"
}, - "safetyInformation": {
- "type": "NO_SAFETY_INFORMATION"
}
}
], - "category": {
- "id": "257931"
}, - "attachments": [
- {
- "id": "string"
}
], - "fundraisingCampaign": {
- "id": "string"
}, - "additionalServices": {
- "id": "string"
}, - "delivery": {
- "handlingTime": "PT24H",
- "shippingRates": {
- "id": "string"
}, - "additionalInfo": "string",
- "shipmentDate": "2019-08-24T14:15:22Z"
}, - "publication": {
- "duration": "PT24H",
- "startingAt": "2031-01-04T11:01:59Z",
- "status": "INACTIVE",
- "republish": false,
- "endingAt": "2031-01-04T11:01:59Z",
- "endedBy": "USER",
- "marketplaces": {
- "base": {
- "id": "string"
}, - "additional": [
- {
- "id": "string"
}
]
}
}, - "additionalMarketplaces": {
- "allegro-cz": {
- "sellingMode": {
- "price": {
- "amount": "233.51",
- "currency": "CZK"
}
}, - "publication": {
- "state": "REFUSED",
- "refusalReasons": [
- {
- "code": "VQR009_PRICE_IN_ADDITIONAL_MARKETPLACE_MISMATCH",
- "userMessage": "price difference too big",
- "parameters": {
- "maxAllowedPriceDecreasePercent": [
- "20"
]
}
}
]
}
}
}, - "b2b": {
- "buyableOnlyByBusiness": false
}, - "compatibilityList": {
- "type": "MANUAL"
}, - "language": "pl-PL",
- "validation": {
- "errors": [
- {
- "code": "string",
- "details": "string",
- "message": "string",
- "path": "string",
- "userMessage": "string",
- "metadata": {
- "productId": "13232515"
}
}
], - "warnings": [
- {
- "code": "string",
- "details": "string",
- "message": "string",
- "path": "string",
- "userMessage": "string",
- "metadata": {
- "productId": "13232515"
}
}
], - "validatedAt": "2019-08-24T14:15:22Z"
}, - "warnings": [ ],
- "afterSalesServices": {
- "impliedWarranty": {
- "id": "09f0b4cc-7880-11e9-8f9e-2a86e4085a59"
}, - "returnPolicy": {
- "id": "09f0b4cc-7880-11e9-8f9e-2a86e4085a59"
}, - "warranty": {
- "id": "09f0b4cc-7880-11e9-8f9e-2a86e4085a59"
}
}, - "discounts": {
- "wholesalePriceList": {
- "id": "string"
}
}, - "stock": {
- "available": 99,
- "unit": "UNIT"
}, - "parameters": [
- {
- "id": "string",
- "name": "string",
- "rangeValue": {
- "from": "string",
- "to": "string"
}, - "values": [
- "string"
], - "valuesIds": [
- "string"
]
}
], - "contact": {
- "id": "string"
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "name": "string",
- "payments": {
- "invoice": "VAT"
}, - "sellingMode": {
- "format": "BUY_NOW",
- "price": {
- "amount": "123.45",
- "currency": "PLN"
}, - "minimalPrice": {
- "amount": "123.45",
- "currency": "PLN"
}, - "startingPrice": {
- "amount": "123.45",
- "currency": "PLN"
}
}, - "location": {
- "city": "string",
- "countryCode": "PL",
- "postCode": "00-999",
- "province": "string"
}, - "images": [
- "string"
], - "description": {
- "sections": [
- {
- "items": [
- {
- "type": "string"
}
]
}
]
}, - "external": {
- "id": "AH-129834"
}, - "sizeTable": {
- "id": "string"
}, - "taxSettings": {
- "rates": [
- {
- "rate": "23.00",
- "countryCode": "PL"
}
], - "subject": "GOODS",
- "exemption": "MONEY_EQUIVALENT"
}, - "messageToSellerSettings": {
- "mode": "OPTIONAL",
- "hint": "string"
}
}
Get seller's offers
Authorizations:
allegro:api:sale:offers:read
) query Parameters
offer.id | Array of strings Offer ID. |
name | string The text to search in the offer title. |
sellingMode.price.amount.gte | number >= 0 Example: sellingMode.price.amount.gte=9.99 The lower threshold of price. If additionally a |
sellingMode.price.amount.lte | number >= 1 Example: sellingMode.price.amount.lte=125.99 The upper threshold of price. If additionally a |
publication.status | Array of strings Items Enum: "INACTIVE" "ACTIVE" "ACTIVATING" "ENDED" The publication status of the offer. Passing more than one value will search for offers with any of the given statuses. By default all statuses are included. Example: |
publication.marketplace | string (MarketplaceId) Example: publication.marketplace=allegro-pl Either the base marketplace or an additional marketplace of the offer. When passing the parameter In addition to searching, passing the parameter also influences the functionality of other query parameter by searching and sorting by data (e.g. price) on the given marketplace. |
sellingMode.format | Array of strings Items Enum: "BUY_NOW" "ADVERTISEMENT" "AUCTION" The offer's selling format. Passing more than one value will search for offers with any of the given formats. By default all formats are included. Example: |
external.id | Array of strings <= 100 items [ items <= 100 characters ] The ID from the client's external system. Passing more than one value will search for offers with any of the given IDs. By default no ID is included. Example: |
delivery.shippingRates.id | string <uuid> The ID of shipping rates. Returns offers with given shipping rates ID. |
delivery.shippingRates.id.empty | boolean Allows to filter offers by existence of shipping rates ID. |
sort | string Enum: "sellingMode.price.amount" "-sellingMode.price.amount" "stock.sold" "-stock.sold" "stock.available" "-stock.available" The results' sorting order. No prefix in the value means ascending order. If additionally a |
limit | integer <int32> [ 1 .. 1000 ] Default: 20 The maximum number of offers returned in the response. |
offset | integer <int32> [ 0 .. 9999999 ] Index of the first returned offer from all search results. Maximum sum of offset and limit is 10 000 000. |
category.id | string The identifier of the category, where you want to search for offers. |
product.id.empty | boolean Allows to filter offers by existence of product ID. |
productizationRequired | boolean Allows to search for offers from categories where productization is required. |
b2b.buyableOnlyByBusiness | boolean Allows to search for offers buyable only by businesses. |
fundraisingCampaign.id | string <uuid> ID of the charity fundraising campaign that benefits from this offer. |
fundraisingCampaign.id.empty | boolean Allows to search for charity or commercial offers. |
Responses
Response samples
- 200
- 400
- 403
{- "offers": [
- {
- "id": "2865624934",
- "name": "Buty damskie adidas",
- "category": {
- "id": "257931"
}, - "sellingMode": {
- "format": "BUY_NOW",
- "price": {
- "amount": "123.45",
- "currency": "PLN"
}, - "minimalPrice": {
- "amount": "123.45",
- "currency": "PLN"
}, - "startingPrice": {
- "amount": "123.45",
- "currency": "PLN"
}
}, - "saleInfo": {
- "currentPrice": {
- "amount": "123.45",
- "currency": "PLN"
}, - "biddersCount": 4
}, - "stock": {
- "available": 23,
- "sold": 3
}, - "stats": {
- "watchersCount": 99,
- "visitsCount": 0
}, - "publication": {
- "status": "INACTIVE",
- "startingAt": "2019-05-29T12:00:00Z",
- "startedAt": "2019-05-29T12:00:00Z",
- "endingAt": "2019-06-30T12:00:00Z",
- "endedAt": "2019-06-30T12:10:00Z",
- "marketplaces": {
- "base": {
- "id": "allegro-pl"
}, - "additional": [
- {
- "id": "allegro-cz"
}
]
}
}, - "afterSalesServices": {
- "impliedWarranty": {
- "id": "09f0b4cc-7880-11e9-8f9e-2a86e4085a59"
}, - "returnPolicy": {
- "id": "09f0b4cc-7880-11e9-8f9e-2a86e4085a59"
}, - "warranty": {
- "id": "09f0b4cc-7880-11e9-8f9e-2a86e4085a59"
}
}, - "additionalServices": {
- "id": "09f0b4cc-7880-11e9-8f9e-2a86e4085a59"
}, - "external": {
- "id": "AH-129834"
}, - "delivery": {
- "shippingRates": {
- "id": "string"
}
}, - "b2b": {
- "buyableOnlyByBusiness": true
}, - "fundraisingCampaign": {
- "id": "string"
}, - "additionalMarketplaces": {
- "allegro-cz": {
- "publication": {
- "state": "APPROVED"
}, - "sellingMode": {
- "price": {
- "amount": "700",
- "currency": "CZK"
}
}, - "stats": {
- "watchersCount": 3,
- "visitsCount": 5
}, - "stock": {
- "sold": 2
}
}
}
}
], - "count": 1,
- "totalCount": 1234
}
Get Smart! classification report of the particular offer
Use this resource to get a full Smart! offer classification report of one of your offers. Please keep in mind you have to meet Smart! seller conditions first - for more details, use GET /sale/smart. To learn more about Smart! offer requirements, see our knowledge base article: PL / EN. Read more: PL / EN.
Authorizations:
allegro:api:sale:offers:read
) path Parameters
offerId required | string Offer identifier. |
query Parameters
marketplaceId | string Example: marketplaceId=allegro-pl Marketplace for which offer classification report will be returned. If not specified, the result of the offer's base marketplace will be returned. |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 422
{- "classification": {
- "fulfilled": true,
- "lastChanged": "2017-05-17T08:36:57.292+02:00"
}, - "scheduledForReclassification": true,
- "smartDeliveryMethods": [
- {
- "id": "2488f7b7-5d1c-4d65-b85c-4cbcf253fd93"
}, - {
- "id": "c3066682-97a3-42fe-9eb5-3beeccab840c"
}
], - "conditions": [
- {
- "code": "deliveryMethodPrices",
- "name": "Zgodność z cennikiem",
- "description": "Wymagamy aby metody dostawy były zgodne z cennikiem.",
- "fulfilled": true,
- "passedDeliveryMethods": [
- {
- "id": "2488f7b7-5d1c-4d65-b85c-4cbcf253fd93"
}, - {
- "id": "c3066682-97a3-42fe-9eb5-3beeccab840c"
}, - {
- "id": "259b5c7a-9056-4c74-80ec-8bdc50cb0413"
}, - {
- "id": "08e2ef8e-90c8-49db-8970-d6c2773f1530"
}
], - "failedDeliveryMethods": [
- {
- "id": "b20ef9e1-faa2-4f25-9032-adbea23e5cb9"
}, - {
- "id": "9081532b-5ad3-467d-80bc-9252982e9dd8"
}, - {
- "id": "98f86f81-0018-41c5-ac83-073a56fc7021"
}, - {
- "id": "5d9c7838-e05f-4dec-afdd-58e884170ba7"
}
]
}, - {
- "code": "returnPaidBy",
- "name": "Koszty zwrotu",
- "description": "Oferta musi mieć politykę zwrotu. Zagraniczne metody dostawy są zaklasyfikowane tylko jeśli koszt zwrotu jest pokryty przez sprzedającego.",
- "fulfilled": true,
- "passedDeliveryMethods": [
- {
- "id": "2488f7b7-5d1c-4d65-b85c-4cbcf253fd93"
}, - {
- "id": "c3066682-97a3-42fe-9eb5-3beeccab840c"
}
], - "failedDeliveryMethods": [
- {
- "id": "259b5c7a-9056-4c74-80ec-8bdc50cb0413"
}, - {
- "id": "08e2ef8e-90c8-49db-8970-d6c2773f1530"
}
]
}
]
}
Get events about the seller's offers
Use this endpoint to get events concerning changes in the authorized seller's offers. At present we support the following events:
- OFFER_ACTIVATED - offer is visible on site and available for purchase, occurs when offer status changes from ACTIVATING to ACTIVE.
- OFFER_CHANGED - occurs when offer's fields has been changed e.g. description or photos.
- OFFER_ENDED - offer is no longer available for purchase, occurs when offer status changes from ACTIVE to ENDED.
- OFFER_STOCK_CHANGED - stock in an offer was changed either via purchase or by seller.
- OFFER_PRICE_CHANGED - occurs when price in an offer was changed.
- OFFER_ARCHIVED - offer is no longer available on listing and has been archived.
- OFFER_BID_PLACED - bid was placed on the offer.
- OFFER_BID_CANCELED - bid for offer was canceled.
- OFFER_TRANSLATION_UPDATED - translation of offer was updated.
- OFFER_VISIBILITY_CHANGED - visibility of offer was changed on marketplaces.
Returned events may occur by actions made via browser or API. The resource allows you to get events concerning active offers and offers scheduled for activation (status ACTIVE and ACTIVATING). Returned events do not concern offers in INACTIVE and ENDED status (the exception is OFFER_ARCHIVED event). External id is returned for all event types except OFFER_BID_PLACED and OFFER_BID_CANCELED. Please note that one change may result in more than one event. Read more: PL / EN.
Authorizations:
allegro:api:sale:offers:read
) query Parameters
from | string <= 256 characters Example: from=MTEzMjQzODU3NA The ID of the last seen event. Events that occured after the given event will be returned. |
limit | integer [ 1 .. 1000 ] Default: 100 The number of events that will be returned in the response. |
type | Array of strings Items Enum: "OFFER_ACTIVATED" "OFFER_CHANGED" "OFFER_ENDED" "OFFER_STOCK_CHANGED" "OFFER_PRICE_CHANGED" "OFFER_ARCHIVED" "OFFER_BID_PLACED" "OFFER_BID_CANCELED" "OFFER_TRANSLATION_UPDATED" "OFFER_VISIBILITY_CHANGED" The types of events that will be returned in the response. All types of events are returned by default. |
Responses
Response samples
- 200
- 400
- 401
{- "offerEvents": [
- {
- "id": "MTEzMjQzODU3NA",
- "occurredAt": "2019-06-26T15:26:43.891Z",
- "type": "OFFER_ACTIVATED",
- "offer": {
- "id": "2865624934",
- "external": {
- "id": "externalId"
}
}
}
]
}
Create offer based on product
Authorizations:
allegro:api:sale:offers:write
) Request Body schema: application/vnd.allegro.public.v1+json
Array of objects[ items ] | |
object (B2b) Defines offer properties for buyers with company account (Allegro Biznes). | |
Array of objects (ProductOfferAttachment) [ items ] An array of offer attachments. | |
object (ProductOfferFundraisingCampaignRequest) | |
object (ProductOfferAdditionalServicesRequest) Offer additional services. | |
required | object (SaleProductOffersRequestStock) |
object | |
object | |
object (AdditionalMarketplacesRequest) Selected information about the offer in each additional service. This field does not contain information about the base marketplace of the offer. | |
object For the | |
language | string <BCP-47 language code> Declared base language of the offer. |
object Category in which the offer is listed for sale. You can indicate a category from the product's 'similar categories' to set the offer's category. | |
Array of objects (ParameterProductOfferRequest) [ items ] | |
object (AfterSalesServicesProductOfferRequest) The definitions of the different after sales services assigned to the offer. | |
object The size table information. You can enter the size tabe identifier or name. | |
object Identifier of contact data for sales format ADVERTISEMENT (classified ad). You can enter the contact identifier or name. | |
object (DiscountsProductOfferRequest) | |
name | |
object (Payments) | |
object (SellingMode) Information on the offer's selling mode. | |
object (Location) for offer with a delivery method it is a parcel dispatch location. For offers with personal pick-up it is a pick-up location, additionally we recommend to use points of service (https://developer.allegro.pl/documentation/#tag/Points-of-service) | |
images | Array of strings |
object (StandardizedDescription) The description section cannot have more than 40000 bytes in length. | |
object (ExternalId) The information on the offer in an external system. | |
object (OfferTaxSettings) Tax settings for offer. Available settings can be found under "get all tax settings for category" resource. | |
object (MessageToSellerSettings) Defines message to the seller settings options. |
Responses
Request samples
- Payload
{- "productSet": [
- {
- "product": {
- "name": "iPhone 5s",
- "category": {
- "id": "257931"
}, - "id": "c9e39cae-9cb6-11e9-a2a3-2a2ae2dbcce4",
- "idType": "GTIN",
- "parameters": [
- {
- "id": "string",
- "name": "string",
- "rangeValue": {
- "from": "string",
- "to": "string"
}, - "values": [
- "string"
], - "valuesIds": [
- "string"
]
}
], - "images": [
- "string"
]
}, - "quantity": {
- "value": 1
}, - "responsiblePerson": {
- "id": "string",
- "name": "string"
}, - "responsibleProducer": {
- "type": "ID",
- "id": "12345678-9abc-def1-2345-6789abcdef12"
}, - "safetyInformation": {
- "type": "NO_SAFETY_INFORMATION"
}
}
], - "b2b": {
- "buyableOnlyByBusiness": false
}, - "attachments": [
- {
- "id": "string"
}
], - "fundraisingCampaign": {
- "id": "string",
- "name": "string"
}, - "additionalServices": {
- "id": "string",
- "name": "string"
}, - "stock": {
- "available": 99,
- "unit": "UNIT"
}, - "delivery": {
- "handlingTime": "PT24H",
- "shippingRates": null,
- "additionalInfo": "string",
- "shipmentDate": "2019-08-24T14:15:22Z"
}, - "publication": {
- "duration": "PT24H",
- "startingAt": "2031-01-04T11:01:59Z",
- "status": "INACTIVE",
- "republish": false
}, - "additionalMarketplaces": {
- "allegro-cz": {
- "sellingMode": {
- "price": {
- "amount": "233.01",
- "currency": "CZK"
}
}
}
}, - "compatibilityList": {
- "items": [
- {
- "type": "TEXT",
- "text": "CITROËN C6 (TD_) 2005/09-2011/12 2.7 HDi 204KM/150kW"
}
]
}, - "language": "pl-PL",
- "category": {
- "id": "257931"
}, - "parameters": [
- {
- "id": "string",
- "name": "string",
- "rangeValue": {
- "from": "string",
- "to": "string"
}, - "values": [
- "string"
], - "valuesIds": [
- "string"
]
}
], - "afterSalesServices": {
- "impliedWarranty": {
- "id": "09f0b4cc-7880-11e9-8f9e-2a86e4085a59",
- "name": "string"
}, - "returnPolicy": {
- "id": "09f0b4cc-7880-11e9-8f9e-2a86e4085a59",
- "name": "string"
}, - "warranty": {
- "id": "09f0b4cc-7880-11e9-8f9e-2a86e4085a59",
- "name": "string"
}
}, - "sizeTable": {
- "id": "string",
- "name": "string"
}, - "contact": {
- "id": "string",
- "name": "string"
}, - "discounts": {
- "wholesalePriceList": {
- "id": "string",
- "name": "string"
}
}, - "name": "string",
- "payments": {
- "invoice": "VAT"
}, - "sellingMode": {
- "format": "BUY_NOW",
- "price": {
- "amount": "123.45",
- "currency": "PLN"
}, - "minimalPrice": {
- "amount": "123.45",
- "currency": "PLN"
}, - "startingPrice": {
- "amount": "123.45",
- "currency": "PLN"
}
}, - "location": {
- "city": "string",
- "countryCode": "PL",
- "postCode": "00-999",
- "province": "string"
}, - "images": [
- "string"
], - "description": {
- "sections": [
- {
- "items": [
- {
- "type": "string"
}
]
}
]
}, - "external": {
- "id": "AH-129834"
}, - "taxSettings": {
- "rates": [
- {
- "rate": "23.00",
- "countryCode": "PL"
}
], - "subject": "GOODS",
- "exemption": "MONEY_EQUIVALENT"
}, - "messageToSellerSettings": {
- "mode": "OPTIONAL",
- "hint": "string"
}
}
Response samples
- 201
- 202
- 400
- 401
- 403
- 422
{- "id": "string",
- "productSet": [
- {
- "quantity": {
- "value": 1
}, - "product": {
- "id": "c9e39cae-9cb6-11e9-a2a3-2a2ae2dbcce4",
- "publication": {
- "status": "PROPOSED"
}, - "parameters": [
- {
- "id": "string",
- "name": "string",
- "rangeValue": {
- "from": "string",
- "to": "string"
}, - "values": [
- "string"
], - "valuesIds": [
- "string"
]
}
]
}, - "responsiblePerson": {
- "id": "string"
}, - "responsibleProducer": {
- "id": "string"
}, - "safetyInformation": {
- "type": "NO_SAFETY_INFORMATION"
}
}
], - "category": {
- "id": "257931"
}, - "attachments": [
- {
- "id": "string"
}
], - "fundraisingCampaign": {
- "id": "string"
}, - "additionalServices": {
- "id": "string"
}, - "delivery": {
- "handlingTime": "PT24H",
- "shippingRates": {
- "id": "string"
}, - "additionalInfo": "string",
- "shipmentDate": "2019-08-24T14:15:22Z"
}, - "publication": {
- "duration": "PT24H",
- "startingAt": "2031-01-04T11:01:59Z",
- "status": "INACTIVE",
- "republish": false,
- "endingAt": "2031-01-04T11:01:59Z",
- "endedBy": "USER",
- "marketplaces": {
- "base": {
- "id": "string"
}, - "additional": [
- {
- "id": "string"
}
]
}
}, - "additionalMarketplaces": {
- "allegro-cz": {
- "sellingMode": {
- "price": {
- "amount": "233.51",
- "currency": "CZK"
}
}, - "publication": {
- "state": "REFUSED",
- "refusalReasons": [
- {
- "code": "VQR009_PRICE_IN_ADDITIONAL_MARKETPLACE_MISMATCH",
- "userMessage": "price difference too big",
- "parameters": {
- "maxAllowedPriceDecreasePercent": [
- "20"
]
}
}
]
}
}
}, - "b2b": {
- "buyableOnlyByBusiness": false
}, - "compatibilityList": {
- "type": "MANUAL"
}, - "language": "pl-PL",
- "validation": {
- "errors": [
- {
- "code": "string",
- "details": "string",
- "message": "string",
- "path": "string",
- "userMessage": "string",
- "metadata": {
- "productId": "13232515"
}
}
], - "warnings": [
- {
- "code": "string",
- "details": "string",
- "message": "string",
- "path": "string",
- "userMessage": "string",
- "metadata": {
- "productId": "13232515"
}
}
], - "validatedAt": "2019-08-24T14:15:22Z"
}, - "warnings": [ ],
- "afterSalesServices": {
- "impliedWarranty": {
- "id": "09f0b4cc-7880-11e9-8f9e-2a86e4085a59"
}, - "returnPolicy": {
- "id": "09f0b4cc-7880-11e9-8f9e-2a86e4085a59"
}, - "warranty": {
- "id": "09f0b4cc-7880-11e9-8f9e-2a86e4085a59"
}
}, - "discounts": {
- "wholesalePriceList": {
- "id": "string"
}
}, - "stock": {
- "available": 99,
- "unit": "UNIT"
}, - "parameters": [
- {
- "id": "string",
- "name": "string",
- "rangeValue": {
- "from": "string",
- "to": "string"
}, - "values": [
- "string"
], - "valuesIds": [
- "string"
]
}
], - "contact": {
- "id": "string"
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "name": "string",
- "payments": {
- "invoice": "VAT"
}, - "sellingMode": {
- "format": "BUY_NOW",
- "price": {
- "amount": "123.45",
- "currency": "PLN"
}, - "minimalPrice": {
- "amount": "123.45",
- "currency": "PLN"
}, - "startingPrice": {
- "amount": "123.45",
- "currency": "PLN"
}
}, - "location": {
- "city": "string",
- "countryCode": "PL",
- "postCode": "00-999",
- "province": "string"
}, - "images": [
- "string"
], - "description": {
- "sections": [
- {
- "items": [
- {
- "type": "string"
}
]
}
]
}, - "external": {
- "id": "AH-129834"
}, - "sizeTable": {
- "id": "string"
}, - "taxSettings": {
- "rates": [
- {
- "rate": "23.00",
- "countryCode": "PL"
}
], - "subject": "GOODS",
- "exemption": "MONEY_EQUIVALENT"
}, - "messageToSellerSettings": {
- "mode": "OPTIONAL",
- "hint": "string"
}
}
Edit an offer
Authorizations:
path Parameters
offerId required | string The offer identifier. |
Request Body schema: application/vnd.allegro.public.v1+json
Array of objects[ items ] | |
object (B2b) Defines offer properties for buyers with company account (Allegro Biznes). | |
Array of objects (ProductOfferAttachment) [ items ] An array of offer attachments. | |
object (ProductOfferFundraisingCampaignRequest) | |
object (ProductOfferAdditionalServicesRequest) Offer additional services. | |
object For the | |
object | |
object (SaleProductOffersRequestStock) | |
object | |
object (AdditionalMarketplacesRequest) Selected information about the offer in each additional service. This field does not contain information about the base marketplace of the offer. | |
language | string <BCP-47 language code> Declared base language of the offer. |
object Category in which the offer is listed for sale. You can indicate a category from the product's 'similar categories' to set the offer's category. | |
Array of objects (ParameterProductOfferRequest) [ items ] | |
object (AfterSalesServicesProductOfferRequest) The definitions of the different after sales services assigned to the offer. | |
object The size table information. You can enter the size tabe identifier or name. | |
object Identifier of contact data for sales format ADVERTISEMENT (classified ad). You can enter the contact identifier or name. | |
object (DiscountsProductOfferRequest) | |
name | |
object (Payments) | |
object (SellingMode) Information on the offer's selling mode. | |
object (Location) for offer with a delivery method it is a parcel dispatch location. For offers with personal pick-up it is a pick-up location, additionally we recommend to use points of service (https://developer.allegro.pl/documentation/#tag/Points-of-service) | |
images | Array of strings |
object (StandardizedDescription) The description section cannot have more than 40000 bytes in length. | |
object (ExternalId) The information on the offer in an external system. | |
object (OfferTaxSettings) Tax settings for offer. Available settings can be found under "get all tax settings for category" resource. | |
object (MessageToSellerSettings) Defines message to the seller settings options. |
Responses
Request samples
- Payload
{- "productSet": [
- {
- "product": {
- "name": "iPhone 5s",
- "category": {
- "id": "257931"
}, - "id": "c9e39cae-9cb6-11e9-a2a3-2a2ae2dbcce4",
- "idType": "GTIN",
- "parameters": [
- {
- "id": "string",
- "name": "string",
- "rangeValue": {
- "from": "string",
- "to": "string"
}, - "values": [
- "string"
], - "valuesIds": [
- "string"
]
}
], - "images": [
- "string"
]
}, - "quantity": {
- "value": 1
}, - "responsiblePerson": {
- "id": "string",
- "name": "string"
}, - "responsibleProducer": {
- "type": "ID",
- "id": "12345678-9abc-def1-2345-6789abcdef12"
}, - "safetyInformation": {
- "type": "NO_SAFETY_INFORMATION"
}
}
], - "b2b": {
- "buyableOnlyByBusiness": false
}, - "attachments": [
- {
- "id": "string"
}
], - "fundraisingCampaign": {
- "id": "string",
- "name": "string"
}, - "additionalServices": {
- "id": "string",
- "name": "string"
}, - "compatibilityList": {
- "items": [
- {
- "type": "TEXT",
- "text": "CITROËN C6 (TD_) 2005/09-2011/12 2.7 HDi 204KM/150kW"
}
]
}, - "delivery": {
- "handlingTime": "PT24H",
- "shippingRates": null,
- "additionalInfo": "string",
- "shipmentDate": "2019-08-24T14:15:22Z"
}, - "stock": {
- "available": 99,
- "unit": "UNIT"
}, - "publication": {
- "duration": "PT24H",
- "startingAt": "2031-01-04T11:01:59Z",
- "status": "INACTIVE",
- "republish": false
}, - "additionalMarketplaces": {
- "allegro-cz": {
- "sellingMode": {
- "price": {
- "amount": "233.01",
- "currency": "CZK"
}
}
}
}, - "language": "pl-PL",
- "category": {
- "id": "257931"
}, - "parameters": [
- {
- "id": "string",
- "name": "string",
- "rangeValue": {
- "from": "string",
- "to": "string"
}, - "values": [
- "string"
], - "valuesIds": [
- "string"
]
}
], - "afterSalesServices": {
- "impliedWarranty": {
- "id": "09f0b4cc-7880-11e9-8f9e-2a86e4085a59",
- "name": "string"
}, - "returnPolicy": {
- "id": "09f0b4cc-7880-11e9-8f9e-2a86e4085a59",
- "name": "string"
}, - "warranty": {
- "id": "09f0b4cc-7880-11e9-8f9e-2a86e4085a59",
- "name": "string"
}
}, - "sizeTable": {
- "id": "string",
- "name": "string"
}, - "contact": {
- "id": "string",
- "name": "string"
}, - "discounts": {
- "wholesalePriceList": {
- "id": "string",
- "name": "string"
}
}, - "name": "string",
- "payments": {
- "invoice": "VAT"
}, - "sellingMode": {
- "format": "BUY_NOW",
- "price": {
- "amount": "123.45",
- "currency": "PLN"
}, - "minimalPrice": {
- "amount": "123.45",
- "currency": "PLN"
}, - "startingPrice": {
- "amount": "123.45",
- "currency": "PLN"
}
}, - "location": {
- "city": "string",
- "countryCode": "PL",
- "postCode": "00-999",
- "province": "string"
}, - "images": [
- "string"
], - "description": {
- "sections": [
- {
- "items": [
- {
- "type": "string"
}
]
}
]
}, - "external": {
- "id": "AH-129834"
}, - "taxSettings": {
- "rates": [
- {
- "rate": "23.00",
- "countryCode": "PL"
}
], - "subject": "GOODS",
- "exemption": "MONEY_EQUIVALENT"
}, - "messageToSellerSettings": {
- "mode": "OPTIONAL",
- "hint": "string"
}
}
Response samples
- 200
- 202
- 400
- 401
- 403
- 404
- 409
- 422
{- "id": "string",
- "productSet": [
- {
- "quantity": {
- "value": 1
}, - "product": {
- "id": "c9e39cae-9cb6-11e9-a2a3-2a2ae2dbcce4",
- "publication": {
- "status": "PROPOSED"
}, - "parameters": [
- {
- "id": "string",
- "name": "string",
- "rangeValue": {
- "from": "string",
- "to": "string"
}, - "values": [
- "string"
], - "valuesIds": [
- "string"
]
}
]
}, - "responsiblePerson": {
- "id": "string"
}, - "responsibleProducer": {
- "id": "string"
}, - "safetyInformation": {
- "type": "NO_SAFETY_INFORMATION"
}
}
], - "category": {
- "id": "257931"
}, - "attachments": [
- {
- "id": "string"
}
], - "fundraisingCampaign": {
- "id": "string"
}, - "additionalServices": {
- "id": "string"
}, - "delivery": {
- "handlingTime": "PT24H",
- "shippingRates": {
- "id": "string"
}, - "additionalInfo": "string",
- "shipmentDate": "2019-08-24T14:15:22Z"
}, - "publication": {
- "duration": "PT24H",
- "startingAt": "2031-01-04T11:01:59Z",
- "status": "INACTIVE",
- "republish": false,
- "endingAt": "2031-01-04T11:01:59Z",
- "endedBy": "USER",
- "marketplaces": {
- "base": {
- "id": "string"
}, - "additional": [
- {
- "id": "string"
}
]
}
}, - "additionalMarketplaces": {
- "allegro-cz": {
- "sellingMode": {
- "price": {
- "amount": "233.51",
- "currency": "CZK"
}
}, - "publication": {
- "state": "REFUSED",
- "refusalReasons": [
- {
- "code": "VQR009_PRICE_IN_ADDITIONAL_MARKETPLACE_MISMATCH",
- "userMessage": "price difference too big",
- "parameters": {
- "maxAllowedPriceDecreasePercent": [
- "20"
]
}
}
]
}
}
}, - "b2b": {
- "buyableOnlyByBusiness": false
}, - "compatibilityList": {
- "type": "MANUAL"
}, - "language": "pl-PL",
- "validation": {
- "errors": [
- {
- "code": "string",
- "details": "string",
- "message": "string",
- "path": "string",
- "userMessage": "string",
- "metadata": {
- "productId": "13232515"
}
}
], - "warnings": [
- {
- "code": "string",
- "details": "string",
- "message": "string",
- "path": "string",
- "userMessage": "string",
- "metadata": {
- "productId": "13232515"
}
}
], - "validatedAt": "2019-08-24T14:15:22Z"
}, - "warnings": [ ],
- "afterSalesServices": {
- "impliedWarranty": {
- "id": "09f0b4cc-7880-11e9-8f9e-2a86e4085a59"
}, - "returnPolicy": {
- "id": "09f0b4cc-7880-11e9-8f9e-2a86e4085a59"
}, - "warranty": {
- "id": "09f0b4cc-7880-11e9-8f9e-2a86e4085a59"
}
}, - "discounts": {
- "wholesalePriceList": {
- "id": "string"
}
}, - "stock": {
- "available": 99,
- "unit": "UNIT"
}, - "parameters": [
- {
- "id": "string",
- "name": "string",
- "rangeValue": {
- "from": "string",
- "to": "string"
}, - "values": [
- "string"
], - "valuesIds": [
- "string"
]
}
], - "contact": {
- "id": "string"
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "name": "string",
- "payments": {
- "invoice": "VAT"
}, - "sellingMode": {
- "format": "BUY_NOW",
- "price": {
- "amount": "123.45",
- "currency": "PLN"
}, - "minimalPrice": {
- "amount": "123.45",
- "currency": "PLN"
}, - "startingPrice": {
- "amount": "123.45",
- "currency": "PLN"
}
}, - "location": {
- "city": "string",
- "countryCode": "PL",
- "postCode": "00-999",
- "province": "string"
}, - "images": [
- "string"
], - "description": {
- "sections": [
- {
- "items": [
- {
- "type": "string"
}
]
}
]
}, - "external": {
- "id": "AH-129834"
}, - "sizeTable": {
- "id": "string"
}, - "taxSettings": {
- "rates": [
- {
- "rate": "23.00",
- "countryCode": "PL"
}
], - "subject": "GOODS",
- "exemption": "MONEY_EQUIVALENT"
}, - "messageToSellerSettings": {
- "mode": "OPTIONAL",
- "hint": "string"
}
}
Check the processing status of a POST or PATCH request
Authorizations:
allegro:api:sale:offers:read
) path Parameters
offerId required | string Offer identifier. |
operationId required | string Operation identifier provided in location header of POST or PATCH request. |
Responses
Response samples
- 202
{- "offer": {
- "id": "123456789"
}, - "operation": {
- "id": "b572cdd0-7f2c-4800-9165-15795bd95f3c",
- "status": "IN_PROGRESS",
- "startedAt": "2019-05-29T12:00:00Z"
}
}
Delete a draft offer
Authorizations:
allegro:api:sale:offers:write
) path Parameters
offerId required | string Offer identifier. |
Responses
Modify the Buy Now price in an offer
Authorizations:
allegro:api:sale:offers:write
) path Parameters
offerId required | string The offer identifier. |
commandId required | string <uuid> The unique command id generated by you. |
Request Body schema: application/vnd.allegro.public.v1+json
id | string <uuid> The unique command id generated by you. This should be the same UUID as used in the path. |
required | object (ChangePriceInput) The input of the command, i.e. the new Buy Now price for the offer. |
Responses
Request samples
- Payload
{- "id": "6365996a-6cae-11e9-a923-1681be663d3e",
- "input": {
- "buyNowPrice": {
- "amount": "123.45",
- "currency": "PLN"
}
}
}
Response samples
- 200
- default
{- "id": "6365996a-6cae-11e9-a923-1681be663d3e",
- "input": {
- "buyNowPrice": {
- "amount": "123.45",
- "currency": "PLN"
}
}, - "output": {
- "status": "QUEUEING",
- "errors": [
- {
- "code": "NotAcceptableException",
- "details": "",
- "message": "Not acceptable representation requested. Please check 'Accept' request header",
- "path": "",
- "userMessage": "The request contains incorrect data. Contact the author of the application.",
- "metadata": {
- "productId": "13232515"
}
}
]
}
}
Batch offer publish / unpublish
Authorizations:
allegro:api:sale:offers:write
) path Parameters
commandId required | string Command identifier. |
Request Body schema: application/vnd.allegro.public.v1+json
publicationChangeCommandDto
Array of objects (OfferCriterium) [ items ] List of offer criteria | |
object (Publication_modification) Contains publication's fields to change |
Responses
Request samples
- Payload
{- "offerCriteria": [
- {
- "offers": [
- {
- "id": "123456789"
}
], - "type": "CONTAINS_OFFERS"
}
], - "publication": {
- "action": "ACTIVATE",
- "scheduledFor": "2019-08-24T14:15:22Z"
}
}
Response samples
- 201
{- "id": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "completedAt": "2019-08-24T14:15:22Z",
- "taskCount": {
- "failed": 0,
- "success": 0,
- "total": 0
}
}
Publish command summary
Authorizations:
allegro:api:sale:offers:write
) path Parameters
commandId required | string Command identifier. |
Responses
Response samples
- 200
{- "id": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "completedAt": "2019-08-24T14:15:22Z",
- "taskCount": {
- "failed": 0,
- "success": 0,
- "total": 0
}
}
Publish command detailed report
Authorizations:
allegro:api:sale:offers:write
) path Parameters
commandId required | string Command identifier. |
query Parameters
limit | integer <int32> [ 1 .. 1000 ] Default: 100 The limit of elements in the response. |
offset | integer <int32> [ 0 .. 999 ] Default: 0 The offset of elements in the response. |
Responses
Response samples
- 200
{- "tasks": [
- {
- "field": "string",
- "message": "string",
- "offer": {
- "id": "123456789"
}, - "status": "string",
- "errors": [
- {
- "code": "NotAcceptableException",
- "details": "",
- "message": "Not acceptable representation requested. Please check 'Accept' request header",
- "path": "",
- "userMessage": "The request contains incorrect data. Contact the author of the application.",
- "metadata": {
- "productId": "13232515"
}
}
]
}
]
}
Response samples
- 200
- 401
{- "marketplaceId": "allegro-pl",
- "basePackages": [
- {
- "id": "promoPackage",
- "name": "Promo Package",
- "cycleDuration": "PT240H"
}
], - "extraPackages": [
- {
- "id": "promoPackage",
- "name": "Promo Package",
- "cycleDuration": "PT240H"
}
], - "additionalMarketplaces": [
- {
- "marketplaceId": "string",
- "basePackages": [
- {
- "id": "promoPackage",
- "name": "Promo Package",
- "cycleDuration": "PT240H"
}
], - "extraPackages": [
- {
- "id": "promoPackage",
- "name": "Promo Package",
- "cycleDuration": "PT240H"
}
]
}
]
}
Modify offer promotion packages
Authorizations:
allegro:api:sale:offers:write
) path Parameters
offerId required | string Example: 9991337999 Offer identifier. |
Request Body schema: application/vnd.allegro.public.v1+json
request
Array of objects (PromoOptionsModification) [ items ] Promo package modifications to be applied. | |
Array of objects (AdditionalMarketplacePromoOptionsModification) [ items ] Promo package modifications to be applied on additional marketplaces. |
Responses
Request samples
- Payload
{- "modifications": [
- {
- "modificationType": "CHANGE",
- "packageType": "BASE",
- "packageId": "promoPackage"
}
], - "additionalMarketplaces": [
- {
- "marketplaceId": "allegro-pl",
- "modifications": [
- {
- "modificationType": "CHANGE",
- "packageType": "BASE",
- "packageId": "promoPackage"
}
]
}
]
}
Response samples
- 200
- 401
- 403
- 422
{- "offerId": "9991337999",
- "marketplaceId": "allegro-pl",
- "basePackage": {
- "id": "promoPackage",
- "validFrom": "2020-01-01T00:00:00Z",
- "validTo": "2020-01-01T00:00:00Z",
- "nextCycleDate": "2020-01-01T00:00:00Z"
}, - "extraPackages": [
- {
- "id": "promoPackage",
- "validFrom": "2020-01-01T00:00:00Z",
- "validTo": "2020-01-01T00:00:00Z",
- "nextCycleDate": "2020-01-01T00:00:00Z"
}
], - "pendingChanges": {
- "basePackage": {
- "id": "promoPackage",
- "validFrom": "2020-01-01T00:00:00Z",
- "validTo": "2020-01-01T00:00:00Z",
- "nextCycleDate": "2020-01-01T00:00:00Z"
}
}, - "additionalMarketplaces": [
- {
- "marketplaceId": "allegro-pl",
- "basePackage": {
- "id": "promoPackage",
- "validFrom": "2020-01-01T00:00:00Z",
- "validTo": "2020-01-01T00:00:00Z",
- "nextCycleDate": "2020-01-01T00:00:00Z"
}, - "extraPackages": [
- {
- "id": "promoPackage",
- "validFrom": "2020-01-01T00:00:00Z",
- "validTo": "2020-01-01T00:00:00Z",
- "nextCycleDate": "2020-01-01T00:00:00Z"
}
], - "pendingChanges": {
- "basePackage": {
- "id": "promoPackage",
- "validFrom": "2020-01-01T00:00:00Z",
- "validTo": "2020-01-01T00:00:00Z",
- "nextCycleDate": "2020-01-01T00:00:00Z"
}
}
}
]
}
Get offer promotion packages
Authorizations:
allegro:api:sale:offers:read
) path Parameters
offerId required | string Example: 9991337999 Offer identifier. |
Responses
Response samples
- 200
- 401
- 403
{- "offerId": "9991337999",
- "marketplaceId": "allegro-pl",
- "basePackage": {
- "id": "promoPackage",
- "validFrom": "2020-01-01T00:00:00Z",
- "validTo": "2020-01-01T00:00:00Z",
- "nextCycleDate": "2020-01-01T00:00:00Z"
}, - "extraPackages": [
- {
- "id": "promoPackage",
- "validFrom": "2020-01-01T00:00:00Z",
- "validTo": "2020-01-01T00:00:00Z",
- "nextCycleDate": "2020-01-01T00:00:00Z"
}
], - "pendingChanges": {
- "basePackage": {
- "id": "promoPackage",
- "validFrom": "2020-01-01T00:00:00Z",
- "validTo": "2020-01-01T00:00:00Z",
- "nextCycleDate": "2020-01-01T00:00:00Z"
}
}, - "additionalMarketplaces": [
- {
- "marketplaceId": "allegro-pl",
- "basePackage": {
- "id": "promoPackage",
- "validFrom": "2020-01-01T00:00:00Z",
- "validTo": "2020-01-01T00:00:00Z",
- "nextCycleDate": "2020-01-01T00:00:00Z"
}, - "extraPackages": [
- {
- "id": "promoPackage",
- "validFrom": "2020-01-01T00:00:00Z",
- "validTo": "2020-01-01T00:00:00Z",
- "nextCycleDate": "2020-01-01T00:00:00Z"
}
], - "pendingChanges": {
- "basePackage": {
- "id": "promoPackage",
- "validFrom": "2020-01-01T00:00:00Z",
- "validTo": "2020-01-01T00:00:00Z",
- "nextCycleDate": "2020-01-01T00:00:00Z"
}
}
}
]
}
Get promo options for seller's offers
Authorizations:
allegro:api:sale:offers:read
) query Parameters
limit | integer <int32> [ 1 .. 5000 ] Default: 5000 Limit of promo options per page. |
offset | integer <int64> >= 0 Default: 0 Distance between the beginning of the document and the point from which promo options are returned. |
Responses
Response samples
- 200
- 400
- 401
{- "promoOptions": [
- {
- "offerId": "9991337999",
- "marketplaceId": "allegro-pl",
- "basePackage": {
- "id": "promoPackage",
- "validFrom": "2020-01-01T00:00:00Z",
- "validTo": "2020-01-01T00:00:00Z",
- "nextCycleDate": "2020-01-01T00:00:00Z"
}, - "extraPackages": [
- {
- "id": "promoPackage",
- "validFrom": "2020-01-01T00:00:00Z",
- "validTo": "2020-01-01T00:00:00Z",
- "nextCycleDate": "2020-01-01T00:00:00Z"
}
], - "pendingChanges": {
- "basePackage": {
- "id": "promoPackage",
- "validFrom": "2020-01-01T00:00:00Z",
- "validTo": "2020-01-01T00:00:00Z",
- "nextCycleDate": "2020-01-01T00:00:00Z"
}
}, - "additionalMarketplaces": [
- {
- "marketplaceId": "allegro-pl",
- "basePackage": {
- "id": "promoPackage",
- "validFrom": "2020-01-01T00:00:00Z",
- "validTo": "2020-01-01T00:00:00Z",
- "nextCycleDate": "2020-01-01T00:00:00Z"
}, - "extraPackages": [
- {
- "id": "promoPackage",
- "validFrom": "2020-01-01T00:00:00Z",
- "validTo": "2020-01-01T00:00:00Z",
- "nextCycleDate": "2020-01-01T00:00:00Z"
}
], - "pendingChanges": {
- "basePackage": {
- "id": "promoPackage",
- "validFrom": "2020-01-01T00:00:00Z",
- "validTo": "2020-01-01T00:00:00Z",
- "nextCycleDate": "2020-01-01T00:00:00Z"
}
}
}
]
}
], - "count": 3,
- "totalCount": 256
}
Batch offer promotion package modification
Authorizations:
allegro:api:sale:offers:write
) path Parameters
commandId required | string Example: aca8103b-14eb-4855-b9b3-de5bef06bd30 Command identifier. Must be a UUID. |
Request Body schema: application/vnd.allegro.public.v1+json
Promo packages modification command request.
Array of objects (OfferCriterium) [ items ] Offer choice criteria. | |
object (PromoOptionsCommandModification) | |
Array of objects (AdditionalMarketplacePromoOptionsCommandModification) [ items ] |
Responses
Request samples
- Payload
{- "offerCriteria": [
- {
- "offers": [
- {
- "id": "123456789"
}
], - "type": "CONTAINS_OFFERS"
}
], - "modification": {
- "basePackage": {
- "id": "promoPackage"
}, - "extraPackages": [
- {
- "id": "promoPackage"
}
], - "modificationTime": "NOW"
}, - "additionalMarketplaces": [
- {
- "marketplaceId": "allegro-pl",
- "modification": {
- "basePackage": {
- "id": "promoPackage"
}, - "extraPackages": [
- {
- "id": "promoPackage"
}
], - "modificationTime": "NOW"
}
}
]
}
Response samples
- 201
- 401
- 409
- 422
{- "id": "string",
- "taskCount": {
- "failed": 0,
- "success": 0,
- "total": 0
}
}
Modification command summary
Authorizations:
allegro:api:sale:offers:read
) path Parameters
commandId required | string Command identifier. |
Responses
Response samples
- 200
- 401
- 403
- 404
{- "id": "string",
- "taskCount": {
- "failed": 0,
- "success": 0,
- "total": 0
}
}
Modification command detailed result
Authorizations:
allegro:api:sale:offers:read
) path Parameters
commandId required | string Command identifier. |
query Parameters
limit | integer [ 1 .. 1000 ] Default: 100 The limit of returned items. |
offset | integer >= 0 Default: 0 The offset of returned items. |
Responses
Response samples
- 200
- 401
- 403
- 404
{- "tasks": [
- {
- "offer": {
- "id": "123456789"
}, - "marketplaceId": "allegro-pl",
- "scheduledAt": "2020-01-01T00:00:00Z",
- "finishedAt": "2020-01-01T00:00:00Z",
- "status": "DONE",
- "errors": [
- {
- "code": "NotAcceptableException",
- "details": "",
- "message": "Not acceptable representation requested. Please check 'Accept' request header",
- "path": "",
- "userMessage": "The request contains incorrect data. Contact the author of the application.",
- "metadata": {
- "productId": "13232515"
}
}
]
}
], - "modification": {
- "basePackage": {
- "id": "promoPackage"
}, - "extraPackages": [
- {
- "id": "promoPackage"
}
], - "modificationTime": "NOW"
}, - "additionalMarketplaces": [
- {
- "marketplaceId": "allegro-pl",
- "modification": {
- "basePackage": {
- "id": "promoPackage"
}, - "extraPackages": [
- {
- "id": "promoPackage"
}
], - "modificationTime": "NOW"
}
}
]
}
Get offers with missing parameters
Authorizations:
allegro:api:sale:offers:read
) query Parameters
offer.id | Array of strings List of offer ids. If empty all offers with unfilled parameters will be returned. |
parameterType | string Enum: "REQUIRED" "REQUIREMENT_PLANNED" Filter by parameter type. |
offset | integer <int32> >= 0 Default: 0 The offset of elements in the response. |
limit | integer <int32> [ 1 .. 1000 ] Default: 100 The limit of elements in the response. |
Responses
Response samples
- 200
{- "offers": [
- {
- "id": "8888203028",
- "parameters": [
- {
- "id": "14228"
}
], - "category": {
- "id": "257931"
}
}
], - "count": 3,
- "totalCount": 256
}
Get offer translations
Authorizations:
allegro:api:sale:offers:read
) path Parameters
offerId required | string Offer identifier. |
query Parameters
language | string <BCP-47 language code> Example: language=en-US Language for translation to retrieve. If not provided, all translations as well as base content for offer will be returned. |
Responses
Response samples
- 200
- 401
- 403
- 404
{- "translations": [
- {
- "description": {
- "translation": {
- "sections": [
- {
- "items": [
- {
- "type": "string"
}
]
}
]
}, - "type": "AUTO"
}, - "language": "en-US",
- "title": {
- "translation": "string",
- "type": "AUTO"
}
}
]
}
Update offer translation
Authorizations:
allegro:api:sale:offers:write
) path Parameters
language required | string <BCP-47 language code> Example: en-US Language of the provided translation. |
offerId required | string Offer identifier. |
Request Body schema: application/vnd.allegro.public.v1+json
Request with manual translation for offer, must contain at least one translated offer element (title or description).
object (ManualDescriptionTranslation) Manual offer description translation | |
object (ManualTitleTranslation) Manual offer title translation |
Responses
Request samples
- Payload
{- "description": {
- "translation": {
- "sections": [
- {
- "items": [
- {
- "type": "string"
}
]
}
]
}
}, - "title": {
- "translation": "string"
}
}
Response samples
- 401
- 403
- 422
{- "error": "unauthorized",
- "error_description": "Full authentication is required to access this resource"
}
Delete offer translation
Authorizations:
allegro:api:sale:offers:write
) path Parameters
language required | string <BCP-47 language code> Example: en-US Language of the translation to delete. |
offerId required | string Offer identifier. |
query Parameters
element | string Enum: "title" "description" Offer element for which translation should be deleted. If not provided, translations for all elements will be deleted. |
Responses
Response samples
- 401
- 403
{- "error": "unauthorized",
- "error_description": "Full authentication is required to access this resource"
}
Get IDs of Allegro categories
Authorizations:
query Parameters
parent.id | string Default: "954b95b6-43cf-4104-8354-dea4d9b10ddf" The ID of the category which children should be returned. If omitted, the list of main Allegro categories will be returned. |
Responses
Response samples
- 200
- 404
{- "categories": [
- {
- "id": "12",
- "leaf": true,
- "name": "Pozostałe",
- "options": {
- "advertisement": true,
- "advertisementPriceOptional": true,
- "variantsByColorPatternAllowed": true,
- "offersWithProductPublicationEnabled": true,
- "productCreationEnabled": true,
- "customParametersEnabled": true,
- "sellerCanRequirePurchaseComments": true
}, - "parent": {
- "id": "709"
}
}
]
}
Get a category by ID
Authorizations:
path Parameters
categoryId required | string Example: 6061 The category ID. |
Responses
Response samples
- 200
- 404
{- "id": "12",
- "leaf": true,
- "name": "Pozostałe",
- "options": {
- "advertisement": true,
- "advertisementPriceOptional": true,
- "variantsByColorPatternAllowed": true,
- "offersWithProductPublicationEnabled": true,
- "productCreationEnabled": true,
- "customParametersEnabled": true,
- "sellerCanRequirePurchaseComments": true
}, - "parent": {
- "id": "709"
}
}
Get parameters supported by a category
Authorizations:
path Parameters
categoryId required | string Example: 709 The category ID. |
Responses
Response samples
- 200
- 404
{- "parameters": [
- {
- "id": "202877",
- "name": "Liczba rdzeni procesora",
- "type": "integer",
- "required": true,
- "requiredForProduct": false,
- "requiredIf": {
- "parametersWithValue": [
- {
- "id": "202870",
- "oneOfValueIds": [
- "202870_1"
]
}
], - "parametersWithoutValue": [ ]
}, - "displayedIf": {
- "parametersWithValue": [
- {
- "id": "202870",
- "oneOfValueIds": [
- "202870_1",
- "202870_2"
]
}
]
}, - "unit": null,
- "options": {
- "variantsAllowed": true,
- "variantsEqual": false,
- "ambiguousValueId": null,
- "dependsOnParameterId": "202870",
- "describesProduct": false,
- "customValuesEnabled": false
}, - "restrictions": {
- "min": 0,
- "max": 1000000,
- "range": false
}
}
]
}
Get planned changes in category parameters
Use this resource to get information about planned changes in category parameters. Please note that in some cases, the returned events may finally not happen in the future. At present we support the following changes: - REQUIREMENT_CHANGE - the parameter will be required in the category. Read more: PL / EN.
Authorizations:
query Parameters
scheduledFor.gte | string <date-time> Example: scheduledFor.gte=2020-11-13T12:45:20.818Z The minimum date and time from which the change will be effective from in ISO 8601 format. Should be greater than the current date time and less than 3 months from the current date. |
scheduledFor.lte | string <date-time> Example: scheduledFor.lte=2020-11-13T12:45:20.818Z The maximum date and time from which the change will be effective from in ISO 8601 format. Should be greater than the current date time and less than 3 months from the current date. |
scheduledAt.gte | string <date-time> Example: scheduledAt.gte=2020-11-13T12:45:20.818Z The minimum date and time at which the change was scheduled in ISO 8601 format. |
scheduledAt.lte | string <date-time> Example: scheduledAt.lte=2020-11-13T12:45:20.818Z The maximum date and time at which the change was scheduled in ISO 8601 format. |
type | Array of strings Items Value: "REQUIREMENT_CHANGE" The types of changes that will be returned in the response. All types of changes are returned by default. |
offset | integer <int32> >= 0 Default: 0 The offset of elements in the response. |
limit | integer <int32> [ 1 .. 1000 ] Default: 100 The limit of elements in the response. |
Responses
Response samples
- 200
- 400
- 401
{- "scheduledChanges": [
- {
- "scheduledAt": "2019-06-26T15:26:43.891Z",
- "scheduledFor": "2019-07-26T15:26:43.891Z",
- "type": "REQUIREMENT_CHANGE",
- "category": {
- "id": "165"
}, - "parameter": {
- "id": "11323"
}
}
]
}
Get changes in categories
Use this resource to get information about changes in categories. It returns changes that occurred in the last 3 months. At present we support the following changes:
- CATEGORY_CREATED - new category was created.
- CATEGORY_RENAMED - category name has been changed.
- CATEGORY_MOVED - category has been moved to a different place in category tree, category parent id field is changed.
- CATEGORY_DELETED - category is no longer available, category from redirectCategory field should be used instead.
Authorizations:
query Parameters
from | string <= 256 characters Example: from=MTEzMjQzODU3NA The ID of the last seen event. Changes that occurred after the given event will be returned. |
limit | integer [ 1 .. 1000 ] Default: 100 The number of events that will be returned in the response. |
type | Array of strings Items Enum: "CATEGORY_CREATED" "CATEGORY_RENAMED" "CATEGORY_MOVED" "CATEGORY_DELETED" The types of events that will be returned in the response. All types of events are returned by default. |
Responses
Response samples
- 200
- 400
- 401
{- "events": [
- {
- "id": "MTEzMjQzODU3NA",
- "occurredAt": "2019-06-26T15:26:43.891Z",
- "type": "CATEGORY_CREATED",
- "category": {
- "id": "165",
- "name": "Smartphones and Cell Phones",
- "parent": {
- "id": "4"
}, - "leaf": false
}
}
]
}
Get categories suggestions
Authorizations:
query Parameters
name required | string Example: name=bmw x3 Product name for which you want to get suggested categories. |
Responses
Response samples
- 200
- 401
- 403
- 406
- 422
{- "matchingCategories": [
- {
- "id": "2",
- "name": "Samochody Osobowe",
- "parent": {
- "id": "1",
- "name": "Motoryzacja",
- "parent": null
}
}
]
}
Upload an offer image
Upload image to our servers. You can choose from two upload options:
- - provide a link and we will download an image for you
- - send an image as binary data
Important! Remember to use dedicated domain for upload, i.e.
- - https://upload.allegro.pl for Production
- - https://upload.allegro.pl.allegrosandbox.pl for Sandbox
Read more: PL / EN. More information about rules for photos in an offer's gallery and description you will find here.
Authorizations:
allegro:api:sale:offers:write
) Request Body schema: application/vnd.allegro.public.v1+jsonapplication/vnd.allegro.public.v1+jsonimage/jpegimage/pngimage/webp
url required | string URL of the image. It has to contain domain name, not an IP address. Currently we support http and https protocols. When using https the certificate chain needs to be valid. |
Responses
Request samples
- Payload
{- "url": "string"
}
Response samples
- 201
{- "expiresAt": "2019-08-24T14:15:22Z",
- "location": "string"
}
Create an offer attachment
You can attach pdf, jpeg or png files to your offers. We will present them under the offer description in the Additional information section. You can attach up to 9 files to one offer – one per each type from the list:
- Guide (MANUAL). Allowed media types: PDF
- Special offer terms (SPECIAL_OFFER_RULES). Allowed media types: PDF
- Competition terms (COMPETITION_RULES). Allowed media types: PDF
- Book excerpt (BOOK_EXCERPT). Allowed media types: PDF
- Manual (USER_MANUAL). Allowed media types: PDF
- Installation manual (INSTALLATION_INSTRUCTIONS). Allowed media types: PDF
- Game manual (GAME_INSTRUCTIONS). Allowed media types: PDF
- Energy label (ENERGY_LABEL). Allowed media types: JPEG, JPG, PNG
- Product information sheet (PRODUCT_INFORMATION_SHEET). Allowed media types: PDF
- Tire label (TIRE_LABEL). Allowed media types: JPEG, JPG, PNG
You can attach up to 20 files to one product for:
- Safety information manual (SAFETY_INFORMATION_MANUAL). Allowed media types: PDF, JPEG, JPG, PNG
Uploading attachments flow:
- Create an attachment object to receive an upload URL (POST /sale/offer-attachments),
- Use the upload URL to submit the file (PUT /sale/offer-attachments/{attachmentId}),
- Add attachments to the offer (PATCH /sale/product-offers/{offerId}).
Authorizations:
allegro:api:sale:offers:write
) Request Body schema: application/vnd.allegro.public.v1+json
offer attachment
type | string (AttachmentType) Enum: "MANUAL" "SPECIAL_OFFER_RULES" "COMPETITION_RULES" "BOOK_EXCERPT" "USER_MANUAL" "INSTALLATION_INSTRUCTIONS" "GAME_INSTRUCTIONS" "ENERGY_LABEL" "PRODUCT_INFORMATION_SHEET" "TIRE_LABEL" "SAFETY_INFORMATION_MANUAL" offer attachment type |
object (AttachmentFileRequest) |
Responses
Request samples
- Payload
{- "type": "MANUAL",
- "file": {
- "name": "string"
}
}
Response samples
- 201
{- "id": "string",
- "type": "MANUAL",
- "file": {
- "name": "string",
- "url": "string"
}
}
Upload an offer attachment
Upload an offer attachment. This operation should be used after creating an offer attachment with POST /sale/offer-attachments Important! You can find the URL address to upload the file to our server in the Location response header of POST /sale/offer-attachments. The URL is unique and one-time. As its format may change in time, you should always use the address from the header. Do not compose the address on your own. Read more: PL / EN.
Authorizations:
allegro:api:sale:offers:write
) path Parameters
attachmentId required | string <uuid> The ID of the attachment. |
Request Body schema: application/pdfapplication/pdfimage/jpegimage/png
File in a binary format
Responses
Response samples
- 200
{- "id": "string",
- "type": "MANUAL",
- "file": {
- "name": "string",
- "url": "string"
}
}
Get product parameters available in given category
Authorizations:
path Parameters
categoryId required | string Example: 709 The category ID. |
Responses
Response samples
- 200
- 404
{- "parameters": [
- {
- "id": "202877",
- "name": "Liczba rdzeni procesora",
- "type": "integer",
- "required": false,
- "unit": null,
- "restrictions": {
- "min": 0,
- "max": 1000000,
- "range": false
}
}
]
}
Get search products results
Authorizations:
allegro:api:sale:offers:read
) query Parameters
ean | string <= 18 characters Deprecated The EAN values can include EAN, ISBN, and UPC identifier types. Parameter is depracated and will be removed in the future. Please use combination of phrase and mode ( |
phrase | string <= 1024 characters Search phrase. |
mode | string Enum: "GTIN" "MPN" Search mode. If not specified, we are searching by GTIN, MPN, product's name, parameters, etc.
|
language | string <BCP-47 language code> Example: language=en-US Language indicates the language for searching products. Allows to specify the language of the given phrase. At present we support: "pl-PL" and "cs-CZ". |
category.id | string The category identifier to filter results. This can only be used when searching by phrase. |
object You can filter and customize your search results to find exactly what you need by applying filters ids and their dictionary values to query according to the flowing pattern: id=value. When the filter definition looks like:
You can use 'Kolor' filter to query results, i.e.:
| |
page.id | string A "cursor" to the next set of results. |
searchFeatures | string Value: "SIMILAR_CATEGORIES" Enables additional search options: - SIMILAR_CATEGORIES - searching in the indicated category (category.id) and in 'similar categories' (works only if category.id is a leaf category). |
includeDrafts | boolean Include products in draft state. |
Responses
Response samples
- 200
- 401
- 422
{- "products": [
- {
- "id": "string",
- "name": "string",
- "description": {
- "sections": [
- {
- "items": [
- {
- "type": "string"
}
]
}
]
}, - "category": {
- "id": "257931",
- "name": "string",
- "path": [
- {
- "id": "string",
- "name": "string"
}
], - "similar": [
- {
- "id": "257931",
- "name": "string",
- "path": [
- {
- "id": "string",
- "name": "string"
}
]
}
]
}, - "images": [
- {
- "url": "string"
}
], - "parameters": [
- {
- "id": "string",
- "name": "string",
- "rangeValue": {
- "from": "string",
- "to": "string"
}, - "values": [
- "string"
], - "valuesIds": [
- "string"
], - "valuesLabels": [
- "string"
], - "unit": "string",
- "options": {
- "identifiesProduct": true,
- "isGTIN": true
}
}
], - "isDraft": true,
- "aiCoCreatedContent": {
- "paths": [
- "string"
]
}, - "hasProtectedBrand": true,
- "publication": {
- "status": "PROPOSED"
}
}
], - "categories": {
- "subcategories": [
- {
- "id": "string",
- "name": "string",
- "count": 0
}
], - "path": [
- {
- "id": "string",
- "name": "string"
}
]
}, - "filters": [
- {
- "id": "campaign",
- "type": "MULTI",
- "name": "kampania",
- "values": [
- {
- "name": "raty zero",
- "value": "INSTALLMENTS_ZERO",
- "idSuffix": ".to",
- "count": 123,
- "selected": true
}
], - "minValue": 0,
- "maxValue": 1000,
- "unit": "zł"
}
], - "nextPage": {
- "id": "string"
}
}
Get all data of the particular product
Use this resource to retrieve all data of the particular product. Read more: PL / EN. This resource is limited with Leaky Bucket mechanism.
Authorizations:
allegro:api:sale:offers:read
) path Parameters
productId required | string The product identifier. |
query Parameters
category.id | string The similar category identifier. You can choose a category from 'similar categories' to filter the list of parameters available in the category context. |
includeDrafts | boolean Return also if product is in draft state. |
language | string <BCP-47 language code> Example: language=en-US The language version of product. You can indicate the language for the returned product data. At present we support: "pl-PL", "cs-CZ", "en-US" and "uk-UA". |
Responses
Response samples
- 200
- 401
- 404
- 422
{- "id": "c9e39cae-9cb6-11e9-a2a3-2a2ae2dbcce4",
- "name": "iPhone 5s",
- "category": {
- "id": "257931",
- "name": "string",
- "path": [
- {
- "id": "string",
- "name": "string"
}
], - "similar": [
- {
- "id": "257931",
- "name": "string",
- "path": [
- {
- "id": "string",
- "name": "string"
}
]
}
]
}, - "images": [
- {
- "url": "string"
}
], - "parameters": [
- {
- "id": "string",
- "name": "string",
- "rangeValue": {
- "from": "string",
- "to": "string"
}, - "values": [
- "string"
], - "valuesIds": [
- "string"
], - "valuesLabels": [
- "string"
], - "unit": "string",
- "options": {
- "identifiesProduct": true,
- "isGTIN": true
}
}
], - "offerRequirements": {
- "id": "2865624934",
- "parameters": [
- {
- "id": "string",
- "name": "string",
- "rangeValue": {
- "from": "string",
- "to": "string"
}, - "values": [
- "string"
], - "valuesIds": [
- "string"
], - "valuesLabels": [
- "string"
], - "unit": "string",
- "options": {
- "identifiesProduct": true,
- "isGTIN": true
}
}
]
}, - "compatibilityList": {
- "id": "460b2511-b786-47b9-9d7e-1f868728cfd6-f103931434fbf4aa06764f3df74d371df23aa138a9cd46dbe570f51af79db1c4-2",
- "type": "PRODUCT_BASED",
- "items": [
- {
- "text": "AUDI 90 (89, 89Q, 8A, B3) 1988/06-1991/09 2.3 E 20V quattro 170KM/125kW 1501"
}
]
}, - "tecdocSpecification": {
- "id": "470b8513-b786-b7b9-9e7e-2f848729cfd6",
- "items": [
- {
- "name": "Wersja TecDoc",
- "values": [
- "0319"
]
}
]
}, - "description": {
- "sections": [
- {
- "items": [
- {
- "type": "string"
}
]
}
]
}, - "isDraft": true,
- "aiCoCreatedContent": {
- "paths": [
- "string"
]
}, - "hasProtectedBrand": true,
- "publication": {
- "status": "PROPOSED"
}
}
Propose a product
Authorizations:
allegro:api:sale:offers:write
) Request Body schema: application/vnd.allegro.public.v1+json
name required | string <= 75 characters Suggested product name. |
required | object (ProductCategory) Product category |
required | Array of objects (ImageUrl) [ items ] List of product images. At least one image is required. |
required | Array of objects (ProductParameter) [ items ] List of product parameters. |
object (StandardizedDescription) The description section cannot have more than 40000 bytes in length. | |
language required | string <BCP-47 language code> Language of provided product data (name, description, parameters's values). |
Responses
Request samples
- Payload
{- "name": "iPhone 5s",
- "category": {
- "id": "257931"
}, - "images": [
- {
- "url": "string"
}
], - "parameters": [
- {
- "id": "string",
- "rangeValue": {
- "from": "string",
- "to": "string"
}, - "values": [
- "string"
], - "valuesIds": [
- "string"
], - "valuesLabels": [
- "string"
], - "unit": "string",
- "options": {
- "identifiesProduct": true
}
}
], - "description": {
- "sections": [
- {
- "items": [
- {
- "type": "string"
}
]
}
]
}, - "language": "pl-PL"
}
Response samples
- 201
- 400
- 401
- 403
- 409
- 422
{- "id": "c9e39cae-9cb6-11e9-a2a3-2a2ae2dbcce4",
- "name": "iPhone 5s",
- "category": {
- "id": "257931",
- "similar": [
- {
- "id": "257931"
}
]
}, - "images": [
- {
- "url": "string"
}
], - "parameters": [
- {
- "id": "string",
- "rangeValue": {
- "from": "string",
- "to": "string"
}, - "values": [
- "string"
], - "valuesIds": [
- "string"
]
}
], - "description": {
- "sections": [
- {
- "items": [
- {
- "type": "string"
}
]
}
]
}, - "supplier": {
- "id": "string"
}, - "offerId": "string",
- "language": "pl-PL",
- "publication": {
- "status": "PROPOSED"
}
}
Propose changes in product
Authorizations:
allegro:api:sale:offers:write
) path Parameters
productId required | string The product identifier. |
header Parameters
Accept-Language | string <BCP-47 language code> Default: en-US Example: pl-PL Expected language of messages. |
Request Body schema: application/vnd.allegro.public.v1+json
name required | string <= 150 characters Proposed product name. |
note | string <= 500 characters Note about product changes proposal. |
required | object (ProductCategory) Product category |
required | Array of objects (ImageUrl) [ items ] List of product images. At least one image is required. |
required | Array of objects (ProductParameter) [ items ] List of product parameters. |
notifyViaEmailAfterVerification | boolean Receive an email notification after product changes proposal resolution. |
language required | string <BCP-47 language code> Default: "pl-PL" Language of provided proposal data. |
Responses
Request samples
- Payload
{- "name": "iPhone 5s",
- "note": "Some additional note to product changes proposal.",
- "category": {
- "id": "257931"
}, - "images": [
- {
- "url": "string"
}
], - "parameters": [
- {
- "id": "string",
- "rangeValue": {
- "from": "string",
- "to": "string"
}, - "values": [
- "string"
], - "valuesIds": [
- "string"
], - "valuesLabels": [
- "string"
], - "unit": "string",
- "options": {
- "identifiesProduct": true
}
}
], - "notifyViaEmailAfterVerification": true,
- "language": "pl-PL"
}
Response samples
- 201
- 400
- 401
- 404
- 422
{- "id": "string",
- "name": {
- "current": "string",
- "proposal": "string",
- "reason": "string",
- "resolutionType": "UNRESOLVED"
}, - "category": {
- "current": "string",
- "proposal": "string",
- "reason": "string",
- "resolutionType": "UNRESOLVED"
}, - "note": "Some additional note to product changes proposal.",
- "images": [
- {
- "current": "string",
- "proposal": "string",
- "reason": "string",
- "resolutionType": "UNRESOLVED"
}
], - "parameters": [
- {
- "id": "string",
- "values": [
- {
- "current": "string",
- "proposal": "string",
- "reason": "string",
- "resolutionType": "UNRESOLVED"
}
]
}
], - "notifyViaEmailAfterVerification": true,
- "language": "string"
}
Get all data of the particular product changes proposal
Authorizations:
allegro:api:sale:offers:read
) path Parameters
changeProposalId required | string The product changes proposal identifier. |
header Parameters
Accept-Language | string <BCP-47 language code> Default: en-US Example: pl-PL Expected language of messages. |
Responses
Response samples
- 200
- 401
- 403
- 404
{- "id": "string",
- "name": {
- "current": "string",
- "proposal": "string",
- "reason": "string",
- "resolutionType": "UNRESOLVED"
}, - "category": {
- "current": "string",
- "proposal": "string",
- "reason": "string",
- "resolutionType": "UNRESOLVED"
}, - "note": "Some additional note to product changes proposal.",
- "images": [
- {
- "current": "string",
- "proposal": "string",
- "reason": "string",
- "resolutionType": "UNRESOLVED"
}
], - "parameters": [
- {
- "id": "string",
- "values": [
- {
- "current": "string",
- "proposal": "string",
- "reason": "string",
- "resolutionType": "UNRESOLVED"
}
]
}
], - "notifyViaEmailAfterVerification": true,
- "language": "string"
}
Batch offer modification
Authorizations:
allegro:api:sale:offers:write
) path Parameters
commandId required | string Command identifier. |
Request Body schema: application/vnd.allegro.public.v1+json
offerChangeCommandDto
object (Modification) Contains fields to change | |
Array of objects (OfferCriterium) [ items ] List of offer criteria |
Responses
Request samples
- Payload
{- "modification": {
- "additionalServicesGroup": {
- "id": "string"
}, - "delivery": {
- "shippingRates": {
- "id": "string"
}, - "handlingTime": "PT24H"
}, - "discounts": {
- "wholesalePriceList": {
- "id": "string"
}
}, - "location": {
- "city": "string",
- "countryCode": "PL",
- "postCode": "00-999",
- "province": "string"
}, - "payments": {
- "invoice": "VAT",
- "tax": {
- "percentage": "23.00"
}
}, - "sizeTable": {
- "id": "string"
}, - "publication": {
- "duration": "PT72H",
- "durationUnlimited": false
}, - "responsibleProducer": {
- "id": "string"
}
}, - "offerCriteria": [
- {
- "offers": [
- {
- "id": "123456789"
}
], - "type": "CONTAINS_OFFERS"
}
]
}
Response samples
- 201
{- "id": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "completedAt": "2019-08-24T14:15:22Z",
- "taskCount": {
- "failed": 0,
- "success": 0,
- "total": 0
}
}
Modification command summary
Authorizations:
allegro:api:sale:offers:write
) path Parameters
commandId required | string Command identifier. |
Responses
Response samples
- 200
{- "id": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "completedAt": "2019-08-24T14:15:22Z",
- "taskCount": {
- "failed": 0,
- "success": 0,
- "total": 0
}
}
Modification command detailed report
Authorizations:
allegro:api:sale:offers:write
) path Parameters
commandId required | string Command identifier. |
query Parameters
limit | integer <int32> [ 1 .. 1000 ] Default: 100 The limit of elements in the response. |
offset | integer <int32> [ 0 .. 999 ] Default: 0 The offset of elements in the response. |
Responses
Response samples
- 200
{- "tasks": [
- {
- "field": "string",
- "message": "string",
- "offer": {
- "id": "123456789"
}, - "status": "string",
- "errors": [
- {
- "code": "NotAcceptableException",
- "details": "",
- "message": "Not acceptable representation requested. Please check 'Accept' request header",
- "path": "",
- "userMessage": "The request contains incorrect data. Contact the author of the application.",
- "metadata": {
- "productId": "13232515"
}
}
]
}
]
}
Batch offer price modification
Authorizations:
allegro:api:sale:offers:write
) path Parameters
commandId required | string Command identifier. |
Request Body schema: application/vnd.allegro.public.v1+json
offerPriceChangeCommandDto
object (PriceModification) The way the offer price should be changed. One of three ways is possible: new price, increase/decrease price, percentage change and only one can be chosen at once. | |
Array of objects (OfferCriterium) [ items ] List of offer criteria |
Responses
Request samples
- Payload
{- "modification": {
- "type": "string",
- "marketplaceId": "allegro-pl"
}, - "offerCriteria": [
- {
- "offers": [
- {
- "id": "123456789"
}
], - "type": "CONTAINS_OFFERS"
}
]
}
Response samples
- 201
{- "id": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "completedAt": "2019-08-24T14:15:22Z",
- "taskCount": {
- "failed": 0,
- "success": 0,
- "total": 0
}
}
Change price command summary
Authorizations:
allegro:api:sale:offers:write
) path Parameters
commandId required | string Command identifier. |
Responses
Response samples
- 200
{- "id": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "completedAt": "2019-08-24T14:15:22Z",
- "taskCount": {
- "failed": 0,
- "success": 0,
- "total": 0
}
}
Change price command detailed report
Authorizations:
allegro:api:sale:offers:write
) path Parameters
commandId required | string Command identifier. |
query Parameters
limit | integer <int32> [ 1 .. 1000 ] Default: 100 The limit of elements in the response. |
offset | integer <int32> [ 0 .. 999 ] Default: 0 The offset of elements in the response. |
Responses
Response samples
- 200
{- "tasks": [
- {
- "field": "string",
- "message": "string",
- "offer": {
- "id": "123456789"
}, - "status": "string",
- "errors": [
- {
- "code": "NotAcceptableException",
- "details": "",
- "message": "Not acceptable representation requested. Please check 'Accept' request header",
- "path": "",
- "userMessage": "The request contains incorrect data. Contact the author of the application.",
- "metadata": {
- "productId": "13232515"
}
}
]
}
]
}
Batch offer quantity modification
Authorizations:
allegro:api:sale:offers:write
) path Parameters
commandId required | string Command identifier. |
Request Body schema: application/vnd.allegro.public.v1+json
offerQuantityChangeCommandDto
object (QuantityModification) The way the offer quantity should be changed. One of two ways is possible: new quantity, increase/decrease quantity and only one can be chosen at once. | |
Array of objects (OfferCriterium) [ items ] List of offer criteria |
Responses
Request samples
- Payload
{- "modification": {
- "changeType": "FIXED",
- "value": 1
}, - "offerCriteria": [
- {
- "offers": [
- {
- "id": "123456789"
}
], - "type": "CONTAINS_OFFERS"
}
]
}
Response samples
- 201
{- "id": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "completedAt": "2019-08-24T14:15:22Z",
- "taskCount": {
- "failed": 0,
- "success": 0,
- "total": 0
}
}
Change quantity command summary
Authorizations:
allegro:api:sale:offers:write
) path Parameters
commandId required | string Command identifier. |
Responses
Response samples
- 200
{- "id": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "completedAt": "2019-08-24T14:15:22Z",
- "taskCount": {
- "failed": 0,
- "success": 0,
- "total": 0
}
}
Change quantity command detailed report
Authorizations:
allegro:api:sale:offers:write
) path Parameters
commandId required | string Command identifier. |
query Parameters
limit | integer <int32> [ 1 .. 1000 ] Default: 100 The limit of elements in the response. |
offset | integer <int32> [ 0 .. 999 ] Default: 0 The offset of elements in the response. |
Responses
Response samples
- 200
{- "tasks": [
- {
- "field": "string",
- "message": "string",
- "offer": {
- "id": "123456789"
}, - "status": "string",
- "errors": [
- {
- "code": "NotAcceptableException",
- "details": "",
- "message": "Not acceptable representation requested. Please check 'Accept' request header",
- "path": "",
- "userMessage": "The request contains incorrect data. Contact the author of the application.",
- "metadata": {
- "productId": "13232515"
}
}
]
}
]
}
Batch offer automatic pricing rules modification
Authorizations:
allegro:api:sale:offers:write
) Request Body schema: application/vnd.allegro.public.v1+json
OfferAutomaticPricingCommand
id | string <uuid> The Command identifier. This field is optional. If the client does not provide their own command id then the service will generate a command id and return it in the response. |
required | OfferAutomaticPricingModificationSet (object) or OfferAutomaticPricingModificationRemove (object) |
required | Array of objects (OfferCriterium) [ items ] List of offer criteria. |
Responses
Request samples
- Payload
{- "id": "123a08d7-ab9b-460d-b9cb-d6ed64b3a018",
- "modification": {
- "set": [
- {
- "marketplace": {
- "id": "allegro-pl"
}, - "rule": {
- "id": "641c73feaef0a8281a3d11f8"
}, - "configuration": {
- "priceRange": {
- "type": "MARKETPLACE_CURRENCY",
- "minPrice": {
- "amount": "100.45",
- "currency": "PLN"
}, - "maxPrice": {
- "amount": "233.21",
- "currency": "PLN"
}
}
}
}
]
}, - "offerCriteria": [
- {
- "offers": [
- {
- "id": "123456789"
}
], - "type": "CONTAINS_OFFERS"
}
]
}
Response samples
- 201
{- "id": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "completedAt": "2019-08-24T14:15:22Z",
- "taskCount": {
- "failed": 0,
- "success": 0,
- "total": 0
}
}
Automatic pricing command summary
Authorizations:
allegro:api:sale:offers:read
) path Parameters
commandId required | string Command identifier. |
Responses
Response samples
- 200
{- "id": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "completedAt": "2019-08-24T14:15:22Z",
- "taskCount": {
- "failed": 0,
- "success": 0,
- "total": 0
}
}
Automatic pricing command detailed report
Authorizations:
allegro:api:sale:offers:read
) path Parameters
commandId required | string Command identifier. |
query Parameters
limit | integer <int32> [ 1 .. 1000 ] Default: 100 The limit of elements in the response. |
offset | integer <int32> [ 0 .. 999 ] Default: 0 The offset of elements in the response. |
Responses
Response samples
- 200
{- "tasks": [
- {
- "field": "string",
- "message": "string",
- "offer": {
- "id": "123456789"
}, - "status": "string",
- "errors": [
- {
- "code": "NotAcceptableException",
- "details": "",
- "message": "Not acceptable representation requested. Please check 'Accept' request header",
- "path": "",
- "userMessage": "The request contains incorrect data. Contact the author of the application.",
- "metadata": {
- "productId": "13232515"
}
}
]
}
]
}
Get automatic pricing rules
Use this resource to get automatic pricing rules. Rules with property default set to true are default rules created by Allegro for each merchant. This resource is rate limited to 5 requests per second.
Authorizations:
allegro:api:sale:offers:read
) Responses
Response samples
- 200
{- "rules": [
- {
- "id": "641c73feaef0a8281a3d11f8",
- "type": "FOLLOW_BY_ALLEGRO_MIN_PRICE",
- "name": "Lowest price on Allegro plus 10%",
- "default": false,
- "configuration": {
- "changeByPercentage": {
- "operation": "ADD",
- "value": "10"
}
}, - "updatedAt": "2023-03-23T15:45:02Z"
}
]
}
Post automatic pricing rule
Use this resource to create automatic pricing rule. This resource is rate limited to 5 requests per second.
Authorizations:
allegro:api:sale:offers:write
) Request Body schema: application/vnd.allegro.public.v1+json
The automatic pricing rule.
name required | string (AutomaticPricingRuleName) <= 33 characters The rule name. Default rule names are automatically translated based on the value provided in the the "Accept-Language" header. |
type required | string (AutomaticPricingRuleType) Enum: "EXCHANGE_RATE" "FOLLOW_BY_ALLEGRO_MIN_PRICE" "FOLLOW_BY_MARKET_MIN_PRICE" The rule type.
|
required | object (AutomaticPricingRuleConfiguration) Rule configuration. This field is optional. |
Responses
Request samples
- Payload
{- "name": "Lowest price on Allegro plus 10%",
- "type": "FOLLOW_BY_ALLEGRO_MIN_PRICE",
- "configuration": {
- "changeByPercentage": {
- "operation": "ADD",
- "value": "10"
}
}
}
Response samples
- 201
{- "id": "641c73feaef0a8281a3d11f8",
- "type": "FOLLOW_BY_ALLEGRO_MIN_PRICE",
- "name": "Lowest price on Allegro plus 10%",
- "default": false,
- "configuration": {
- "changeByPercentage": {
- "operation": "ADD",
- "value": "10"
}
}, - "updatedAt": "2023-03-23T15:45:02Z"
}
Get automatic pricing rule by id
Use this resource to get automatic pricing rule by id. Rules with property default set to true are default rules created by Allegro for each merchant and cannot be modified. This resource is rate limited to 5 requests per second.
Authorizations:
allegro:api:sale:offers:read
) path Parameters
ruleId required | string Example: 66466e2b07ba0029b829f08d The rule identifier. |
Responses
Response samples
- 200
{- "id": "641c73feaef0a8281a3d11f8",
- "type": "FOLLOW_BY_ALLEGRO_MIN_PRICE",
- "name": "Lowest price on Allegro plus 10%",
- "default": false,
- "configuration": {
- "changeByPercentage": {
- "operation": "ADD",
- "value": "10"
}
}, - "updatedAt": "2023-03-23T15:45:02Z"
}
Edit automatic pricing rule
Use this resource to update automatic pricing rule. This resource is rate limited to 5 requests per second.
Authorizations:
allegro:api:sale:offers:write
) path Parameters
ruleId required | string Example: 66466e2b07ba0029b829f08d The rule identifier. |
Request Body schema: application/vnd.allegro.public.v1+json
The automatic pricing rule.
name required | string (AutomaticPricingRuleName) <= 33 characters The rule name. Default rule names are automatically translated based on the value provided in the the "Accept-Language" header. |
required | object (AutomaticPricingRuleConfiguration) Rule configuration. This field is optional. |
Responses
Request samples
- Payload
{- "name": "Lowest price on Allegro plus 10%",
- "configuration": {
- "changeByPercentage": {
- "operation": "ADD",
- "value": "10"
}
}
}
Response samples
- 200
{- "id": "641c73feaef0a8281a3d11f8",
- "type": "FOLLOW_BY_ALLEGRO_MIN_PRICE",
- "name": "Lowest price on Allegro plus 10%",
- "default": false,
- "configuration": {
- "changeByPercentage": {
- "operation": "ADD",
- "value": "10"
}
}, - "updatedAt": "2023-03-23T15:45:02Z"
}
Delete automatic pricing rule
Use this resource to delete automatic pricing rule. This resource is rate limited to 5 requests per second.
Authorizations:
allegro:api:sale:offers:write
) path Parameters
ruleId required | string Example: 66466e2b07ba0029b829f08d The rule identifier. |
Responses
Get automatic pricing rules assigned to the offer
Use this resource to get automatic pricing rules for offer. This resource is rate limited to 5 requests per second.
Authorizations:
allegro:api:sale:offers:read
) path Parameters
offerId required | string Example: 15521818197 The offer identifier. |
Responses
Response samples
- 200
{- "rules": [
- {
- "marketplace": {
- "id": "allegro-pl"
}, - "rule": {
- "id": "641c73feaef0a8281a3d11f8",
- "type": "FOLLOW_BY_ALLEGRO_MIN_PRICE"
}, - "configuration": {
- "priceRange": {
- "type": "MARKETPLACE_CURRENCY",
- "minPrice": {
- "amount": "100.45",
- "currency": "PLN"
}, - "maxPrice": {
- "amount": "233.21",
- "currency": "PLN"
}
}
}, - "updatedAt": "2023-03-23T15:45:02Z"
}
], - "updatedAt": "2023-03-23T15:45:02Z"
}
Create variant set
Use this resource to create variant set.
A valid variant set must consist of three required elements:
- name:
- it can't be blank and must not be longer than 75 characters
- parameters:
- it should contain parameter identifiers used for offer grouping
- parameter identifiers from the offers and special
color/pattern
value (for grouping via image) are permitted - it must contain at least one element (up to 2)
- offers:
- it must contain at least 2 offers (500 at most)
colorPattern
value must be set for every offer ifcolor/pattern
parameter is usedcolorPattern
value can't be blank and must not be longer than 50 characterscolorPattern
can take arbitrary string value likered
,b323592c-522f-4ec1-b9ea-3764538e0ac4
(UUID), etc.- offers having the same image should have identical
colorPattern
value - offers must have
publication.marketplaces.base
equal toallegro-pl
Let's assume we have 4 offers:
- offer with id 2 having an image of a red t-shirt and S as a value of parameter with id 21
- offer with id 3 having an image of a red t-shirt and M as a value of parameter with id 21
- offer with id 4 having an image of a blue t-shirt and S as a value of parameter with id 21
- offer with id 5 having an image of a blue t-shirt and M as a value of parameter with id 21
You can build a variant set by grouping offers using combination of available parameters - examples are available in Request samples.
More general information about variant sets can be found here. Read more: PL / EN.
Authorizations:
allegro:api:sale:offers:write
) Request Body schema: application/vnd.allegro.public.v1+json
required | Array of objects (VariantSet_Offer) [ items ] |
name required | string <= 75 characters |
required | Array of objects (VariantSet_Parameter) [ items ] |
Responses
Request samples
- Payload
{- "name": "t-shirt",
- "offers": [
- {
- "id": "2"
}, - {
- "id": "3"
}
], - "parameters": [
- {
- "id": "21"
}
]
}
Response samples
- 201
{- "id": "string",
- "offers": [
- {
- "id": "string",
- "colorPattern": "string"
}
], - "name": "string",
- "parameters": [
- {
- "id": "string"
}
]
}
Get the user's variant sets
Authorizations:
allegro:api:sale:offers:read
) query Parameters
offset | integer [ 0 .. 9950 ] Default: 0 Index of first returned variant set. |
limit | integer [ 1 .. 50 ] Default: 10 Maximum number of returned variant sets. |
query | string <= 50 characters Filter variant sets by name or offer id. |
Responses
Response samples
- 200
{- "count": 10,
- "offerVariants": [
- {
- "id": "459fd49f-461f-4230-b22a-daff449b8548",
- "name": "t-shirts"
}, - {
- "id": "70e6effe-7ae6-45f6-8566-80867f466d0a",
- "name": "shoes"
}
]
}
Update variant set
Use this resource to edit variant set.
A valid variant set must consist of three required elements:
- name:
- it can't be blank and must not be longer than 75 characters
- parameters:
- it should contain parameter identifiers used for offer grouping
- parameter identifiers from the offers and special
color/pattern
value (for grouping via image) are permitted - it must contain at least one element (up to 2)
- offers:
- it must contain at least 2 offers (500 at most)
colorPattern
value must be set for every offer ifcolor/pattern
parameter is usedcolorPattern
value can't be blank and must not be longer than 50 characterscolorPattern
can take arbitrary string value likered
,b323592c-522f-4ec1-b9ea-3764538e0ac4
(UUID), etc.- offers having the same image should have identical
colorPattern
value - offers must have
publication.marketplaces.base
equal toallegro-pl
Let's assume we have 4 offers:
- offer with id 2 having an image of a red t-shirt and S as a value of parameter with id 21
- offer with id 3 having an image of a red t-shirt and M as a value of parameter with id 21
- offer with id 4 having an image of a blue t-shirt and S as a value of parameter with id 21
- offer with id 5 having an image of a blue t-shirt and M as a value of parameter with id 21
You can build a variant set by grouping offers using combination of available parameters - examples are available in Request samples.
More general information about variant sets can be found here. Read more: PL / EN.
Authorizations:
allegro:api:sale:offers:write
) path Parameters
setId required | string Variant set identifier. |
Request Body schema: application/vnd.allegro.public.v1+json
required | Array of objects (VariantSet_Offer) [ items ] |
name required | string <= 75 characters |
required | Array of objects (VariantSet_Parameter) [ items ] |
Responses
Request samples
- Payload
{- "name": "t-shirt",
- "offers": [
- {
- "id": "2"
}, - {
- "id": "3"
}
], - "parameters": [
- {
- "id": "21"
}
]
}
Response samples
- 200
{- "id": "string",
- "offers": [
- {
- "id": "string",
- "colorPattern": "string"
}
], - "name": "string",
- "parameters": [
- {
- "id": "string"
}
]
}
Get a variant set
Authorizations:
allegro:api:sale:offers:read
) path Parameters
setId required | string Variant set identifier. |
Responses
Response samples
- 200
{- "id": "string",
- "offers": [
- {
- "id": "string",
- "colorPattern": "string"
}
], - "name": "string",
- "parameters": [
- {
- "id": "string"
}
]
}
Delete a variant set
Authorizations:
allegro:api:sale:offers:write
) path Parameters
setId required | string Variant set identifier. |
Responses
Create a tag
Authorizations:
allegro:api:sale:settings:write
) Request Body schema: application/vnd.allegro.public.v1+json
request
name required | string [ 1 .. 25 ] characters |
hidden | boolean |
Responses
Request samples
- Payload
{- "name": "string",
- "hidden": true
}
Response samples
- 200
- 400
- 401
- 403
- 422
{- "id": "string"
}
Get the user's tags
Authorizations:
allegro:api:sale:settings:read
) query Parameters
limit | integer <int32> [ 1 .. 1000 ] Default: 1000 The limit of elements in the response. |
offset | integer <int32> >= 0 Default: 0 The offset of elements in the response. |
Responses
Response samples
- 200
- 401
- 403
{- "tags": [
- {
- "id": "string",
- "name": "string",
- "hidden": true
}
]
}
Delete a tag
Authorizations:
allegro:api:sale:settings:write
) path Parameters
tagId required | string Tag identifier. |
Responses
Response samples
- 401
- 403
{- "error": "unauthorized",
- "error_description": "Full authentication is required to access this resource"
}
Modify a tag
Authorizations:
allegro:api:sale:settings:write
) path Parameters
tagId required | string Tag identifier. |
Request Body schema: application/vnd.allegro.public.v1+json
request
name required | string [ 1 .. 25 ] characters |
hidden | boolean |
Responses
Request samples
- Payload
{- "name": "string",
- "hidden": true
}
Response samples
- 401
- 403
- 404
- 422
{- "error": "unauthorized",
- "error_description": "Full authentication is required to access this resource"
}
Assign tags to an offer
Authorizations:
allegro:api:sale:offers:write
) path Parameters
offerId required | string Offer identifier. |
Request Body schema: application/vnd.allegro.public.v1+json
request
required | Array of objects (TagId) [ items ] |
Responses
Request samples
- Payload
{- "tags": [
- {
- "id": "string"
}
]
}
Response samples
- 400
- 401
- 403
- 404
- 422
{- "errors": [
- {
- "code": "NotAcceptableException",
- "details": "",
- "message": "Not acceptable representation requested. Please check 'Accept' request header",
- "path": "",
- "userMessage": "The request contains incorrect data. Contact the author of the application.",
- "metadata": {
- "productId": "13232515"
}
}
]
}
Get tags assigned to an offer
Authorizations:
allegro:api:sale:offers:read
) path Parameters
offerId required | string Offer identifier. |
Responses
Response samples
- 200
- 401
- 403
- 404
{- "tags": [
- {
- "id": "string",
- "name": "string",
- "hidden": true
}
]
}
Get all tax settings for category
Authorizations:
query Parameters
category.id required | string Example: category.id=316194 An identifier of a category for which all available tax settings will be returned. |
countryCode | Array of strings Items Enum: "PL" "CZ" "SK" "HU" Example: countryCode=PL Country code for which tax settings will be returned. If not provided settings for all countries will be returned. |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 406
{- "subjects": [
- {
- "label": "Goods",
- "value": "GOODS"
}
], - "rates": [
- {
- "countryCode": "PL",
- "values": [
- {
- "label": "Poza VAT / NP",
- "value": "23.00",
- "exemptionRequired": true
}
]
}
], - "exemptions": [
- {
- "label": "Procedura marży",
- "value": "MARGIN_SCHEME"
}
]
}
Get list of categories where compatibility list is supported
Authorizations:
allegro:api:sale:offers:read
) Responses
Response samples
- 200
{- "supportedCategories": [
- {
- "categoryId": "620",
- "name": "Części samochodowe",
- "itemsType": "CAR",
- "inputType": "ID",
- "validationRules": {
- "maxRows": 2000
}
}, - {
- "categoryId": "257358",
- "name": "Pióra wycieraczek",
- "itemsType": "CAR",
- "inputType": "ID",
- "validationRules": {
- "maxRows": 2000
}
}, - {
- "categoryId": "158",
- "name": "Części motocyklowe",
- "itemsType": "MOTORCYCLE_EXPLODED",
- "inputType": "ID",
- "validationRules": {
- "maxRows": 2000
}
}, - {
- "categoryId": "9108",
- "name": "Tusze",
- "itemsType": "PRINTER",
- "inputType": "TEXT",
- "validationRules": {
- "maxRows": 200,
- "maxCharactersPerLine": 100
}
}
]
}
Get suggested compatibility list.
Authorizations:
query Parameters
offer.id | string Offer id on the basis of which we will return the suggested compatibility list. |
product.id | string Product id on the basis of which we will return the suggested compatibility list. |
language | string Example: language=pl-PL Locale on the basis of which we will return the suggested compatibility list. For product-based suggestions if missing pl-PL will be used. For offer-based suggestions if missing offer language will be used. |
Responses
Response samples
- 200
- 400
- 401
- 404
{- "type": "MANUAL",
- "items": [
- {
- "type": "TEXT",
- "text": "CITROËN C6 (TD_) 2005/09-2011/12 2.7 HDi 204KM/150kW"
}
]
}
Get list of compatible product groups
Authorizations:
allegro:api:sale:offers:read
) query Parameters
type required | string Example: type=CAR Type of compatible products. You can find available types in the response for the GET supported-categories resource. You can use value provided in |
limit | integer [ 1 .. 200 ] Default: 200 The limit of returned items. |
offset | integer >= 0 Default: 0 The offset of returned items. |
header Parameters
If-Modified-Since | string <<day-name>, <day> <month> <year> <hour>:<minute>:<second> GMT> Example: Sat, 01 Dec 2018 10:00:00 GMT Date of last data modification. If data has been modified after specified date, full set of data is returned. If header is not specified, full set of data is returned. Date has to be provided in HTTP-date format. |
Responses
Response samples
- 200
- 400
- 422
{- "groups": [
- {
- "id": "b0dfe6de8fb2f2b1309ad94c6cc4e09d",
- "text": "ABARTH"
}, - {
- "id": "4144e097d2fa7a491cec2a7a4322f2bc",
- "text": "AC"
}, - {
- "id": "de3e2253f276cd1c757f58860d77b9bb",
- "text": "ACURA"
}
], - "count": 3,
- "totalCount": 256
}
Get list of compatible products
Authorizations:
allegro:api:sale:offers:read
) query Parameters
type required | string Example: type=CAR Type of compatible products. You can find available types in the response for the GET supported-categories resource. You can use value provided in |
group.id | string Group identifier from |
tecdoc.kTypNr | string Identifier of passenger vehicle (kTypNr) from TecDoc database. When used, |
tecdoc.nTypNr | string Identifier of commercial vehicle (nTypNr) from TecDoc database. When used, |
phrase | string Query for compatible products. When used, parameters: |
limit | integer [ 1 .. 200 ] Default: 200 The limit of returned items. If |
offset | integer >= 0 Default: 0 The offset of returned items. If |
header Parameters
If-Modified-Since | string <<day-name>, <day> <month> <year> <hour>:<minute>:<second> GMT> Example: Sat, 01 Dec 2018 10:00:00 GMT Date of last data modification. If data has been modified after specified date, full set of data is returned. If header is not specified, full set of data is returned. Date has to be provided in HTTP-date format. Header is ignored if |
Responses
Response samples
- 200
- 400
- 422
{- "compatibleProducts": [
- {
- "id": "fc1058e6-a901-4b58-be4d-3d7e1368f63e",
- "text": "AUDI A6 (4G2, 4GC, C7) 2014/09-2018/09 3.0 TDI quattro 326KM/240kW",
- "group": {
- "id": "19d71c872aa6c78663876a7e7bc7776d"
}, - "attributes": [
- {
- "id": "POWER_KW",
- "values": [
- "240"
]
}, - {
- "id": "MODEL_FROM",
- "values": [
- "2010/11"
]
}, - {
- "id": "BRAND",
- "values": [
- "AUDI"
]
}, - {
- "id": "POWER_HP",
- "values": [
- "326"
]
}, - {
- "id": "MODEL_TO",
- "values": [
- "2018/09"
]
}, - {
- "id": "ENGINE_CODE",
- "values": [
- "CVUB"
]
}, - {
- "id": "K_TYP_NR",
- "values": [
- "108441"
]
}, - {
- "id": "VERSION_FROM",
- "values": [
- "2014/09"
]
}, - {
- "id": "VERSION_TO",
- "values": [
- "2018/09"
]
}, - {
- "id": "MODEL",
- "values": [
- "A6 (4G2, 4GC, C7)"
]
}, - {
- "id": "BODY",
- "values": [
- "sedan"
]
}, - {
- "id": "TYPE",
- "values": [
- "3.0 TDI quattro"
]
}
]
}
], - "count": 1,
- "totalCount": 1448
}
Create a new promotion
This endpoint creates a new promotion. You can create promotions only if your base marketplace is allegro-pl
. Created promotions are visible only on the allegro-pl
marketplace. You can define the following types of promotions:
Large order discount
Only company users will see and be eligible for this type of promotion. In order to create a large order discount, you also have to be a company user. Furthermore, you are allowed to have only one active order discount at a time. Define a promotion with a single benefit of type LARGE_ORDER_DISCOUNT and a single criterion of type ALL_OFFERS. The benefit specification should contain a list of order value based discount thresholds. Threshold's order value defines the minimum total value of an order for which the threshold is applicable (lowerBound
). Threshold's discount defines the discount percentage applied when the threshold is applied. The percentage's fractional part must be equal to 0. Only the highest applicable threshold (if any) will be applied to the total value of the order. A threshold with a higher order value than another threshold in the order discount must also have a higher discount. Large order discount is assigned automatically to all seller's offers. Moreover, it will be assigned to all newly added seller's offers once activated. Please note that it may take some time to propagate this type of promotion to all of your offers. Read more: PL / EN.Wholesale price list
Only company users will see and be eligible for this type of promotion. In order to create a wholesale price list, you also have to be a company user. Define a promotion with a single benefit of type WHOLESALE_PRICE_LIST and a single criterion of type OFFERS_ASSIGNED_EXTERNALLY. The benefit specification should contain a name (it will be visible to you only) and a list of quantity based discount thresholds. Threshold's quantity defines the minimum number of units of an offer for which the threshold is applicable (lowerBound
). Threshold's discount defines the discount percentage applied when the threshold is applied. The percentage's fractional part must be equal to 0. Only the highest applicable threshold (if any) will be applied to the total price of units of the offer bought. A threshold with a higher quantity than another threshold in the price list must also have a higher discount. In order to assign offers to a wholesale price list, usediscounts
field in batch offer modification. Read more: PL / EN.Bundle
Creating offer bundles via this endpoint is deprecated. Please migrate to
/sale/bundles
endpoint which is dedicated for bundles.
In order to create a new bundle, you have to define a promotion with a single benefit of type ORDER_FIXED_DISCOUNT and a single criterion of type CONTAINS_OFFERS. In the benefit specification you have to declare the discount amount that you want to be deducted from the sum of bundled offers prices. In the offer criterion you need to pass a list of offers that are to be grouped as a bundle. For each offer you have to define a fixed quantity (that many pieces of your offer will be part of the bundle) and you also have to set a promotionEntryPoint flag (offers with this flag set to true will have a section that allows the users to purchase your bundle). Read more: PL / ENMultipack
In order to create a new multipack, you have to define a promotion with a single benefit of type UNIT_PERCENTAGE_DISCOUNT and a single criterion of type CONTAINS_OFFERS. The benefit specification should contain a configuration section with a percentage which indicates the specific discount for the discounted offer. This percentage should be an integer value greater than 15 for quantity 2, greater than 30 for quantity 3, greater than 40 for quantity 4, greater than 50 for quantity 5 and lower than or equal to 100. The specification should also contain a trigger section with a field forEachQuantity that defines the amount of items in the multipack which is necessary to trigger the benefit. Additionally, the discountedNumber field must be set to 1 by default as you can only discount one unit in a multipack. Finally, the offer criterion specifies the offer for which the multipack promotion will take effect. Read more: PL / ENCross-offer multipack
A cross-offer multipack is created in the same fashion as a standard multipack. The only difference is that you need to pass more than 1 offer in the offer criterion section. This group of offers is then considered as a pool from which users can pick and choose forEachQuantity offers and the cheapest of them gets a discount.
Authorizations:
allegro:api:sale:offers:write
) Request Body schema: application/vnd.allegro.public.v1+json
required | Array of objects (Benefit) [ items ] What kind of rebate will be given |
required | Array of objects (SellerRebateOfferCriterion) [ items ] What offers will be included |
Responses
Request samples
- Payload
{- "benefits": [
- {
- "specification": {
- "type": "LARGE_ORDER_DISCOUNT",
- "thresholds": [
- {
- "orderValue": {
- "lowerBound": {
- "amount": "1000.00",
- "currency": "PLN"
}
}, - "discount": {
- "percentage": "5.00"
}
}, - {
- "orderValue": {
- "lowerBound": {
- "amount": "1500.00",
- "currency": "PLN"
}
}, - "discount": {
- "percentage": "8.00"
}
}
]
}
}
], - "offerCriteria": [
- {
- "type": "ALL_OFFERS"
}
]
}
Response samples
- 201
- 400
- 401
- 403
- 404
- 412
- 422
{- "status": "ACTIVE",
- "createdAt": "2019-05-12T10:02:31.123Z",
- "id": "72c40ffb-6127-4719-a473-867bf5775601",
- "benefits": [
- {
- "specification": {
- "type": "LARGE_ORDER_DISCOUNT",
- "thresholds": [
- {
- "orderValue": {
- "lowerBound": {
- "amount": "1000.00",
- "currency": "PLN"
}
}, - "discount": {
- "percentage": "5"
}
}, - {
- "orderValue": {
- "lowerBound": {
- "amount": "1500.00",
- "currency": "PLN"
}
}, - "discount": {
- "percentage": "8"
}
}
]
}
}
], - "offerCriteria": [
- {
- "type": "ALL_OFFERS"
}
]
}
Get the user's list of promotions
Get a list of promotions defined by the authorized user and filtered by promotion type.
Listing offer bundles via this endpoint is deprecated. Please migrate to /sale/bundles
endpoint which is dedicated for bundles.
Restrictions:
Filtering by promotion type is required.
Sum of limit and offset must be equal to or lower than 50000. Limit must be equal to or lower than 5000.
Example:
offset = 49950 and limit = 50 will return promotions
offset = 49950 and limit = 51 will return 422 http error
offset = 0 and limit = 5000 will return promotions
offset = 0 and limit = 5001 will return 422 http error
Read more about: Large order discount PL / EN, Wholesale price list PL / EN, Bundles and Multipack PL / EN.
Authorizations:
allegro:api:sale:offers:read
) query Parameters
limit | integer <int32> [ 1 .. 5000 ] Default: 50 Limit of promotions per page. |
offset | integer <int32> [ 0 .. 49999 ] Default: 0 Distance between the beginning of the document and the point from which promotions are returned. |
offer.id | string Example: offer.id=8226673525 Filter by offer id. No promotions with |
promotionType required | string Enum: "BUNDLE" "MULTIPACK" "CROSS_MULTIPACK" "LARGE_ORDER_DISCOUNT" "WHOLESALE_PRICE_LIST" Filter by promotion type. |
Responses
Response samples
- 200
- 401
- 422
{- "promotions": [
- {
- "benefits": [
- {
- "specification": {
- "type": "string"
}
}
], - "createdAt": "2019-05-01T10:12:32.321Z",
- "id": "7c9a76d3-9fd0-4d13-a4ce-5d49bec12c79",
- "offerCriteria": [
- {
- "offers": [
- {
- "id": "1233432",
- "quantity": 5,
- "promotionEntryPoint": false
}
], - "type": "CONTAINS_OFFERS"
}
], - "status": "ACTIVE"
}
], - "totalCount": 0
}
Get a promotion data by id
Use this resource to return the requested promotion. You need to use its unique id.
Getting offer bundle via this endpoint is deprecated. Please migrate to /sale/bundles/{bundleId}
endpoint which is dedicated for bundles.
Read more about: Large order discount PL / EN, Wholesale price list PL / EN, Bundles PL / EN, Multipack PL / EN.
Authorizations:
allegro:api:sale:offers:read
) path Parameters
promotionId required | string Promotion identifier. |
Responses
Response samples
- 200
- 401
- 404
{- "benefits": [
- {
- "specification": {
- "type": "string"
}
}
], - "createdAt": "2019-05-01T10:12:32.321Z",
- "id": "7c9a76d3-9fd0-4d13-a4ce-5d49bec12c79",
- "offerCriteria": [
- {
- "offers": [
- {
- "id": "1233432",
- "quantity": 5,
- "promotionEntryPoint": false
}
], - "type": "CONTAINS_OFFERS"
}
], - "status": "ACTIVE"
}
Modify a promotion
Use this resource to update a promotion by its unique id.
Updating offer bundle via this endpoint is deprecated. Please migrate to /sale/bundles/{bundleId}/discount
endpoint which is dedicated for bundles.
It supports editing bundle's discount, wholesale price lists and large order discounts. Amount of the discount in a bundle can be edited, but cannot change the offers a bundle consists of. Read more about: Bundles PL / EN, Large order discount PL / EN, Wholesale price list PL / EN.
Authorizations:
allegro:api:sale:offers:write
) path Parameters
promotionId required | string Promotion identifier. |
Request Body schema: application/vnd.allegro.public.v1+json
required | Array of objects (Benefit) [ items ] What kind of rebate will be given |
required | Array of objects (SellerRebateOfferCriterion) [ items ] What offers will be included |
Responses
Request samples
- Payload
{- "benefits": [
- {
- "specification": {
- "type": "ORDER_FIXED_DISCOUNT",
- "value": {
- "amount": "10.00",
- "currency": "PLN"
}
}
}
], - "offerCriteria": [
- {
- "type": "CONTAINS_OFFERS",
- "offers": [
- {
- "id": "1122334455",
- "quantity": 2,
- "promotionEntryPoint": true
}, - {
- "id": "2233445566",
- "quantity": 1,
- "promotionEntryPoint": false
}
]
}
]
}
Response samples
- 200
- 400
- 401
- 403
- 404
- 422
{- "status": "ACTIVE",
- "createdAt": "2019-05-12T10:02:31.123Z",
- "id": "72c40ffb-6127-4719-a473-867bf5775601",
- "benefits": [
- {
- "specification": {
- "type": "ORDER_FIXED_DISCOUNT",
- "value": {
- "amount": "10.00",
- "currency": "PLN"
}
}
}
], - "offerCriteria": [
- {
- "type": "CONTAINS_OFFERS",
- "offers": [
- {
- "id": "1122334455",
- "quantity": 2,
- "promotionEntryPoint": true
}, - {
- "id": "2233445566",
- "quantity": 1,
- "promotionEntryPoint": false
}
]
}
]
}
Deactivate a promotion by id
Use this resource to deactivate the requested promotion. You need to use its unique id.
Deleting offer bundle via this endpoint is deprecated. Please migrate to /sale/bundles/{bundleId}
endpoint which is dedicated for bundles.
Read more about: Large order discount PL / EN, Wholesale price list PL / EN, Bundles PL / EN, Multipack PL / EN.
Authorizations:
allegro:api:sale:offers:write
) path Parameters
promotionId required | string Promotion identifier. |
Responses
Response samples
- 401
{- "error": "unauthorized",
- "error_description": "Full authentication is required to access this resource"
}
Create a new offer bundle
You can create offer bundle using this endpoint. Bundle has to contain at least two offers and at least one of them has to be set as an entry point. Bundle will be shown on offers' pages which are marked as entry points. You can also specify how many units of each offer will be in bundle using requiredQuantity
property.
Additionally, discount can be specified for each marketplace separately. If you do not want to set discount, set discounts
property to null
or empty array. Also, you do not have to specify discount on all marketplaces. Fill marketplaces in 'discounts' array accordingly to your needs.
For now the only supported marketplace is allegro-pl
.
Authorizations:
allegro:api:sale:offers:write
) Request Body schema: application/vnd.allegro.public.v1+json
required | Array of objects (BundledOfferDTO) [ items ] Offers that will make up the bundle. |
Array of objects or null (BundleDiscountDTO) Discounts on marketplaces. Can be null or empty if bundle shouldn't have discount on any marketplace. |
Responses
Request samples
- Payload
{- "offers": [
- {
- "id": "123456789",
- "requiredQuantity": 1,
- "entryPoint": true
}, - {
- "id": "987654321",
- "requiredQuantity": 2,
- "entryPoint": false
}
], - "discounts": [
- {
- "marketplace": {
- "id": "allegro-pl"
}, - "amount": "10.15",
- "currency": "PLN"
}
]
}
Response samples
- 201
- 400
- 401
- 403
- 422
{- "id": "a42d09c2-2669-4e7c-989b-7c341e84f787",
- "offers": [
- {
- "id": "123456789",
- "requiredQuantity": 1,
- "entryPoint": true
}, - {
- "id": "987654321",
- "requiredQuantity": 2,
- "entryPoint": false
}
], - "publication": [
- {
- "marketplace": {
- "id": "allegro-pl"
}, - "status": "ACTIVE"
}
], - "discounts": [
- {
- "marketplace": {
- "id": "allegro-pl"
}, - "amount": "10.15",
- "currency": "PLN"
}
], - "createdAt": "2023-09-21T10:22:02.999Z",
- "createdBy": "USER"
}
List seller's bundles
You can fetch page of seller's offer bundles using this endpoint.
Paging:
To move to next page, specify page.id
parameter with value obtained in response from previous request. Number of offer bundles on single page can be specified using limit
parameter.
Filtering:
Offer bundles can be filtered to bundles which contain offer specified in offer.id
parameter.
Authorizations:
allegro:api:sale:offers:read
) query Parameters
limit | integer <int32> [ 1 .. 5000 ] Default: 50 Limit of bundles per page. |
offer.id | string Example: offer.id=123456789 Filter bundles which contains offer. |
page.id | string Example: page.id=MjAyNC0wOS0xMFQwNjo0OTowMi40NTBa ID of page which will be retrieved. |
Responses
Response samples
- 200
- 400
- 401
- 403
- 422
{- "bundles": [
- {
- "id": "a42d09c2-2669-4e7c-989b-7c341e84f787",
- "offers": [
- {
- "id": "123456789",
- "requiredQuantity": 1,
- "entryPoint": true
}, - {
- "id": "987654321",
- "requiredQuantity": 2,
- "entryPoint": false
}
], - "publication": [
- {
- "marketplace": {
- "id": "allegro-pl"
}, - "status": "ACTIVE"
}
], - "discounts": [
- {
- "marketplace": {
- "id": "allegro-pl"
}, - "amount": "10.15",
- "currency": "PLN"
}
], - "createdAt": "2023-09-21T10:22:02.999Z",
- "createdBy": "USER"
}
], - "nextPage": {
- "id": "MjAyNC0wOS0xMFQwNjo0OTowMi40NTBa"
}
}
Get bundle by ID
Use this resource to retrieve offer bundle by its unique identifier.
Authorizations:
allegro:api:sale:offers:read
) path Parameters
bundleId required | string Bundle ID. |
Responses
Response samples
- 200
- 401
- 404
{- "id": "a42d09c2-2669-4e7c-989b-7c341e84f787",
- "offers": [
- {
- "id": "123456789",
- "requiredQuantity": 1,
- "entryPoint": true
}, - {
- "id": "987654321",
- "requiredQuantity": 2,
- "entryPoint": false
}
], - "publication": [
- {
- "marketplace": {
- "id": "allegro-pl"
}, - "status": "ACTIVE"
}
], - "discounts": [
- {
- "marketplace": {
- "id": "allegro-pl"
}, - "amount": "10.15",
- "currency": "PLN"
}
], - "createdAt": "2023-09-21T10:22:02.999Z",
- "createdBy": "USER"
}
Delete bundle by ID
Use this resource to delete offer bundle by its unique identifier.
Authorizations:
allegro:api:sale:offers:write
) path Parameters
bundleId required | string Bundle ID. |
Responses
Response samples
- 401
- 404
{- "error": "unauthorized",
- "error_description": "Full authentication is required to access this resource"
}
Update discount associated with bundle
Use this resource to update discount per marketplaces associated with bundle specified by its unique identifier. This will override currently set discounts for all marketplaces, so the unchanged discounts also must be specified in request. In case discount for marketplace is not specified in request it will be deleted.
Authorizations:
allegro:api:sale:offers:write
) path Parameters
bundleId required | string Bundle ID. |
Request Body schema: application/vnd.allegro.public.v1+json
Array of objects or null (BundleDiscountDTO) Discounts on marketplaces. Can be null or empty if bundle shouldn't have discount on any marketplace. |
Responses
Request samples
- Payload
{- "discounts": [
- {
- "marketplace": {
- "id": "allegro-pl"
}, - "amount": "10.15",
- "currency": "PLN"
}
]
}
Response samples
- 200
- 400
- 401
- 403
- 422
{- "id": "a42d09c2-2669-4e7c-989b-7c341e84f787",
- "offers": [
- {
- "id": "123456789",
- "requiredQuantity": 1,
- "entryPoint": true
}, - {
- "id": "987654321",
- "requiredQuantity": 2,
- "entryPoint": false
}
], - "publication": [
- {
- "marketplace": {
- "id": "allegro-pl"
}, - "status": "ACTIVE"
}
], - "discounts": [
- {
- "marketplace": {
- "id": "allegro-pl"
}, - "amount": "10.15",
- "currency": "PLN"
}
], - "createdAt": "2023-09-21T10:22:02.999Z",
- "createdBy": "USER"
}
Get a list of available badge campaigns
Badge campaigns are another way to promote your offers. You can apply for a badge, which - depending on a type - will be displayed on your offer page of on the list of offers. First - use this resource to get a list of all available badge campaigns at the moment, then use POST /sale/badges to apply for badge. Read more: PL / EN.
Authorizations:
allegro:api:campaigns
) Responses
Response samples
- 200
- 401
- 403
{- "badgeCampaigns": [
- {
- "id": "BARGAIN",
- "name": "Strefa okazji",
- "marketplace": {
- "id": "allegro-pl"
}, - "type": "DISCOUNT",
- "eligibility": {
- "eligible": true,
- "refusalReasons": [ ]
}, - "application": {
- "type": "ALWAYS"
}, - "visibility": {
- "type": "WITHIN",
- "from": "2018-01-01T23:00:00Z",
- "to": "2020-10-04T23:00:00Z"
}, - "publication": {
- "type": "UNTIL",
- "to"": "2020-10-03T23:00:00Z"
},
}, - {
- "id": "HIT",
- "name": "Hit",
- "marketplace": {
- "id": "allegro-pl"
}, - "type": "STANDARD",
- "eligibility": {
- "eligible": false,
- "refusalReasons": [
- {
- "code": "BB1",
- "messages": [
- {
- "text": "The account does not meet the quality criteria",
- "link": null
}
]
}
]
}, - "application": {
- "type": "NEVER"
}, - "visibility": {
- "type": "ALWAYS"
}, - "publication": {
- "type": "SINCE",
- "from": "2018-11-04T23:00:00Z"
},
}
]
}
Apply for badge in selected offer
This resource allows you to apply for a badge. Most badges involve additional fee charged. Your badge application will be verified and you will be notified about the verification status via e-mail. You can use Location provided in header of the response to track your application status. Application will be removed after 30 days when status of the application was changed form PROCESSED or DECLINED. Fees will be charged in accordance with Annex No. 1 to the Daily deals zone terms and conditions.
By using this resource you agree to the Daily deals zone terms and conditions or Commission discount terms and conditions. Read more: PL / EN.
Authorizations:
allegro:api:campaigns
) Request Body schema: application/vnd.allegro.public.v1+json
required | object (BadgeApplicationCampaign) |
required | object (BadgeOffer) |
object or null (BadgeApplicationPrices) Required by DISCOUNT and SOURCING campaign. | |
object (BadgeApplicationPurchaseConstraints) Constraints of purchase of this offer while it participates in the campaign. Optional for all campaigns types. |
Responses
Request samples
- Payload
{- "campaign": {
- "id": "BARGAIN"
}, - "offer": {
- "id": "12345678"
}, - "prices": {
- "bargain": {
- "amount": "9.99",
- "currency": "PLN"
}
}
}
Response samples
- 202
- 400
- 401
- 403
- 422
{- "id": "01234567-89ab-0123-456789ab",
- "createdAt": "2011-12-03T10:15:30Z",
- "updatedAt": "2011-12-03T10:15:30Z",
- "campaign": {
- "id": "BARGAIN"
}, - "offer": {
- "id": "987654321"
}, - "prices": {
- "market": {
- "amount": "11.23",
- "currency": "PLN"
}, - "bargain": {
- "amount": "10.00",
- "currency": "PLN"
}
}, - "process": {
- "status": "REQUESTED",
- "rejectionReasons": [ ]
}
}
Get a list of badges
Authorizations:
allegro:api:campaigns
) query Parameters
offer.id | string Offer ID. |
offset | integer >= 0 Offset. |
limit | integer [ 1 .. 1000 ] Default: 50 The maximum number of badges returned in the response. |
Responses
Response samples
- 200
- 400
- 401
- 403
{- "badges": [
- {
- "offer": {
- "id": "4814482399"
}, - "campaign": {
- "id": "BARGAIN",
- "name": "Strefa okazji"
}, - "publication": null,
- "prices": {
- "market": {
- "amount": "20.00",
- "currency": "PLN"
}
}, - "process": {
- "status": "IN_VERIFICATION",
- "rejectionReasons": [ ]
}
}, - {
- "offer": {
- "id": "2091846836"
}, - "campaign": {
- "id": "SUBSIDY",
- "name": "Allegro Cena"
}, - "publication": {
- "type": "SINCE",
- "from": "2019-05-08T05:54:46.966Z",
- "to": null
}, - "prices": {
- "subsidy": {
- "targetPrice": {
- "amount": "10.00",
- "currency": "PLN"
}, - "sellerPrice": {
- "amount": "15.00",
- "currency": "PLN"
}
}
}, - "process": {
- "status": "WAITING_FOR_PUBLICATION",
- "rejectionReasons": [ ]
}
}, - {
- "offer": {
- "id": "7386670824"
}, - "campaign": {
- "id": "HIT",
- "name": "Hit"
}, - "publication": {
- "type": "WITHIN",
- "from": "2019-05-08T05:54:46.966Z",
- "to": "2025-05-01T10:00:00Z"
}, - "prices": null,
- "process": {
- "status": "FINISHED",
- "rejectionReasons": [ ]
}
}, - {
- "offer": {
- "id": "5303917450"
}, - "campaign": {
- "id": "NOVELTY",
- "name": "Nowość"
}, - "publication": null,
- "prices": null,
- "process": {
- "status": "DECLINED",
- "rejectionReasons": [
- {
- "code": "BA26",
- "messages": [
- {
- "text": "This offer does not meet the badge criteria.",
- "link": null
}, - {
- "text": "See requirements",
}
]
}
]
}
}
]
}
Get a badge application details
Authorizations:
allegro:api:campaigns
) path Parameters
applicationId required | string Badge application ID. |
Responses
Response samples
- 200
- 401
- 403
- 404
{- "id": "81ff5e67-d00b-4141-a79a-68636755df95",
- "createdAt": "2019-05-16T12:49:17.347Z",
- "updatedAt": "2019-05-16T12:49:17.530Z",
- "campaign": {
- "id": "BARGAIN"
}, - "offer": {
- "id": "12345678"
}, - "prices": {
- "bargain": {
- "amount": "14.00",
- "currency": "PLN"
}
}, - "process": {
- "status": "PROCESSED",
- "rejectionReasons": [ ]
}
}
Get a list of badge applications
Authorizations:
allegro:api:campaigns
) query Parameters
campaign.id | string Campaign ID. |
offer.id | string Offer ID. |
offset | integer >= 0 Offset. |
limit | integer [ 1 .. 1000 ] Default: 50 The maximum number of applications returned in the response. |
Responses
Response samples
- 200
- 400
- 401
- 403
{- "badgeApplications": [
- {
- "id": "81ff5e67-d00b-4141-a79a-68636755df95",
- "createdAt": "2019-05-16T12:49:17.347Z",
- "updatedAt": "2019-05-16T12:49:17.530Z",
- "campaign": {
- "id": "BARGAIN"
}, - "offer": {
- "id": "12345678"
}, - "prices": {
- "bargain": {
- "amount": "14.00",
- "currency": "PLN"
}
}, - "process": {
- "status": "PROCESSED",
- "rejectionReasons": [ ]
}
}, - {
- "id": "34ff2a86-6d1a-4607-ae22-3a81de4c8dd1",
- "createdAt": "2019-05-16T12:49:17.347Z",
- "updatedAt": "2019-05-16T12:49:17.530Z",
- "campaign": {
- "id": "HIT"
}, - "offer": {
- "id": "12345678"
}, - "prices": null,
- "process": {
- "status": "REQUESTED",
- "rejectionReasons": [ ]
}
}, - {
- "id": "893d055c-ba0c-4996-94a0-93d593fdd483",
- "createdAt": "2019-05-16T12:49:17.347Z",
- "updatedAt": "2019-05-16T12:49:17.530Z",
- "campaign": {
- "id": "BARGAIN"
}, - "offer": {
- "id": "12345678"
}, - "prices": {
- "bargain": null
}, - "process": {
- "status": "DECLINED",
- "rejectionReasons": [
- {
- "code": "BA2",
- "messages": [
- {
- "text": "The discount price or suggested market price is not defined.",
- "link": null
}
]
}
]
}
}
]
}
Get badge operation details
Authorizations:
allegro:api:campaigns
) path Parameters
operationId required | string Badge operation ID. |
Responses
Response samples
- 200
- 401
- 403
- 404
{- "id": "81ff5e67-d00b-4141-a79a-68636755df95",
- "type": "FINISH",
- "createdAt": "2019-05-16T12:49:17.347Z",
- "updatedAt": "2019-05-16T12:49:17.530Z",
- "campaign": {
- "id": "BARGAIN"
}, - "offer": {
- "id": "12345678"
}, - "process": {
- "status": "PROCESSED",
- "rejectionReasons": [ ]
}
}
Update campaign badge for the given offer
Authorizations:
allegro:api:campaigns
) path Parameters
offerId required | string Offer ID. |
campaignId required | string Campaign ID. |
Request Body schema: application/vnd.allegro.public.v1+json
object |
Responses
Request samples
- Payload
{- "prices": {
- "bargain": {
- "value": {
- "amount": "9.99",
- "currency": "PLN"
}
}
}
}
Response samples
- 202
- 400
- 401
- 403
- 404
- 409
- 422
{- "id": "154179f0-ed4c-4b84-9260-302d2dec3801"
}
Get the current consents' state for an offer
Authorizations:
path Parameters
offerId required | string The offer ID. |
Responses
Response samples
- 200
- 401
- 403
- 404
{- "status": "ALLOWED",
- "additionalMarketplaces": {
- "allegro-cz": {
- "status": "ALLOWED"
}, - "allegro-xy": {
- "status": "ALLOWED"
}
}
}
Update consents for an offer
Authorizations:
path Parameters
offerId required | string The offer ID. |
Request Body schema: application/vnd.allegro.public.v1+json
status | string Enum: "ALLOWED" "DENIED" Use it to update the consent on the base marketplace of the offer. |
object Use it to update the consent on marketplaces other than the base marketplace of the offer. |
Responses
Request samples
- Payload
{- "status": "DENIED",
- "additionalMarketplaces": {
- "allegro-cz": {
- "status": "DENIED"
}
}
}
Response samples
- 200
- 400
- 401
- 403
- 404
- 422
{- "status": "DENIED",
- "additionalMarketplaces": {
- "allegro-cz": {
- "status": "DENIED"
}, - "allegro-xy": {
- "status": "ALLOWED"
}
}
}
Response samples
- 200
- 401
{- "consent": "ALLOWED",
- "qualification": {
- "status": "QUALIFIED"
}, - "additionalMarketplaces": {
- "allegro-cz": {
- "consent": "ALLOWED",
- "qualification": {
- "status": "QUALIFIED"
}
}, - "allegro-xy": {
- "consent": "ALLOWED",
- "qualification": {
- "status": "QUALIFIED"
}
}
}
}
Update consents for the account
Authorizations:
Request Body schema: application/json
status | string Enum: "ALLOWED" "DENIED" |
object Consent statuses on marketplaces other than the base marketplace of the account. |
Responses
Request samples
- Payload
{- "status": "ALLOWED",
- "additionalMarketplaces": {
- "allegro-cz": {
- "status": "DENIED"
}
}
}
Response samples
- 200
- 400
- 401
- 422
{- "status": "ALLOWED",
- "additionalMarketplaces": {
- "allegro-cz": {
- "status": "DENIED"
}, - "allegro-xy": {
- "status": "ALLOWED"
}
}
}
Create submit offer command
Authorizations:
allegro:api:campaigns
) Request Body schema: application/vnd.allegro.public.v1+json
commandId | string or null The command UUID. If empty, system generates new one. |
object Command input. |
Responses
Request samples
- Payload
{- "commandId": "c1b3f63d-d293-4333-911d-a0c1053e2c81",
- "input": {
- "offer": {
- "id": "10394822344"
}, - "campaign": {
- "id": "ALLEOBNIZKA_20230209"
}, - "proposedPrice": {
- "amount": "100.00",
- "currency": "PLN"
}
}
}
Response samples
- 201
- 400
{- "id": "c1b3f63d-d293-4333-911d-a0c1053e2c81",
- "input": {
- "offer": {
- "id": "10394822344"
}, - "campaign": {
- "id": "ALLEOBNIZKA_2030209"
}, - "proposedPrice": {
- "amount": "100.00",
- "currency": "PLN"
}
}, - "output": {
- "status": "NEW",
- "createdAt": "2023-02-09T10:15:30.000Z",
- "updatedAt": "2023-02-09T10:15:30.000Z",
- "errors": [ ]
}
}
Get the offer submission command status
Authorizations:
allegro:api:campaigns
) path Parameters
commandId required | string Command id in UUID format, must be unique. |
Responses
Response samples
- 200
{- "id": "c1b3f63d-d293-4333-911d-a0c1053e2c81",
- "input": {
- "offer": {
- "id": "10394822344"
}, - "campaign": {
- "id": "ALLEOBNIZKA_20230209"
}, - "proposedPrice": {
- "amount": "100.00",
- "currency": "PLN"
}
}, - "output": {
- "status": "SUCCESSFUL",
- "createdAt": "2023-02-09T10:15:30.000Z",
- "updatedAt": "2023-02-09T12:15:30.000Z",
- "newOfferParticipation": {
- "participationId": "f9a4a70c-6db9-4473-976c-90f8df9f74e8"
}, - "errors": [ ]
}
}
Create withdraw offer command
Authorizations:
allegro:api:campaigns
) Request Body schema: application/vnd.allegro.public.v1+json
commandId | string or null The Command UUID. If empty, system generates new one. |
object Command input. |
Responses
Request samples
- Payload
{- "commandId": "c1b3f63d-d293-4333-911d-a0c1053e2c81",
- "input": {
- "participationId": "f9a4a70c-6db9-4473-976c-90f8df9f74e8"
}
}
Response samples
- 201
- 400
{- "id": "c1b3f63d-d293-4333-911d-a0c1053e2c81",
- "input": {
- "participationId": "f9a4a70c-6db9-4473-976c-90f8df9f74e8"
}, - "output": {
- "status": "NEW",
- "createdAt": "2023-02-09T10:15:30.000Z",
- "updatedAt": "2023-02-09T12:15:30.000Z"
}
}
Get the offer withdrawal command status
Authorizations:
allegro:api:campaigns
) path Parameters
commandId required | string Command id in UUID format, must be unique. |
Responses
Response samples
- 200
{- "id": "c1b3f63d-d293-4333-911d-a0c1053e2c81",
- "input": {
- "participationId": "f9a4a70c-6db9-4473-976c-90f8df9f74e8"
}, - "output": {
- "status": "SUCCESSFUL",
- "createdAt": "2024-02-09T10:15:30.000Z",
- "updatedAt": "2024-02-09T12:15:30.000Z",
- "withdrawnOfferParticipation": {
- "participationId": "f9a4a70c-6db9-4473-976c-90f8df9f74e8"
}, - "errors": [ ]
}
}
List eligible offers
Authorizations:
allegro:api:campaigns
) path Parameters
campaignId required | string Campaign id to list offers from. |
query Parameters
limit | integer Maximum number of offers returned in the eligibleOffers list; max value is 200. |
offset | integer The number of offers to skip while listing the results. |
meetsConditions | boolean If true, filters offers that only meet conditions of the campaign. |
offerId | string ID of an offer; if the offer with the given ID exists, returns at most one element in the eligibleOffers list. |
Responses
Response samples
- 200
- 400
{- "eligibleOffers": [
- {
- "id": "2865624934",
- "product": {
- "id": "6e1727b4-2d2c-44f4-b1d2-be5c3540984f"
}, - "basePrice": {
- "amount": "100.00",
- "currency": "PLN"
}, - "alleDiscount": {
- "campaignConditions": {
- "meetsConditions": true,
- "violations": [ ]
}, - "requiredMerchantPrice": {
- "amount": "100.00",
- "currency": "PLN"
}, - "minimumGuaranteedDiscount": {
- "percentage": "6.00"
}
}
}
], - "count": 1,
- "totalCount": 1
}
List offer participations
Authorizations:
allegro:api:campaigns
) path Parameters
campaignId required | string Campaign id to list offers from. |
query Parameters
limit | integer Maximum number of offers returned in the eligibleOffers list; max value is 200. |
offset | integer The number of offers to skip while listing the results. |
offerId | string ID of an offer; if the offer with the given ID exists, returns at most one element in the submittedOffers list. |
participationId | string Id of the participation, returns at most one element in the submittedOffers list. |
Responses
Response samples
- 200
- 400
{- "submittedOffers": [
- {
- "participationId": "5cb574c1-ea74-4362-828f-308e740c200e",
- "offer": {
- "id": "10000000243"
}, - "campaign": {
- "id": "ALLEOBNIZKA_20230209"
}, - "prices": {
- "proposedPrice": {
- "amount": "81.00",
- "currency": "PLN"
}, - "minimalPriceReduction": {
- "amount": "8.10",
- "currency": "PLN"
}, - "maximumSellingPrice": {
- "amount": "72.90",
- "currency": "PLN"
}
}, - "process": {
- "status": "ACCEPTED",
- "errors": [ ]
}, - "purchaseLimit": 20
}
], - "count": 1,
- "totalCount": 1
}
List AlleDiscount campaigns
Authorizations:
allegro:api:campaigns
) query Parameters
campaignId | string Id of the searched campaign. If present, returns at most one entry. |
Responses
Response samples
- 200
- 400
- 404
{- "alleDiscountCampaigns": [
- {
- "id": "ALLEOBNIZKA_20230209",
- "name": "Alleobniżka 02.09.2023",
- "visibility": {
- "type": "WITHIN",
- "from": "2023-08-20T11:00:00.000Z",
- "to": "2023-11-20T11:00:00.000Z"
}, - "application": {
- "type": "WITHIN",
- "from": "2023-08-25T11:00:00.000Z",
- "to": "2023-09-16T11:00:00.000Z"
}, - "publication": {
- "type": "WITHIN",
- "from": "2023-09-02T11:00:00.000Z",
- "to": "2022-09-16T11:00:00.000Z"
}, - "marketplace": {
- "id": "allegro-pl"
}
}
]
}
Get offer rating
Authorizations:
allegro:api:sale:offers:read
) path Parameters
offerId required | string Example: 9991337999 Offer identifier. |
Responses
Response samples
- 200
- 401
{- "averageScore": "4.0",
- "scoreDistribution": [
- {
- "name": "5",
- "count": 1
}, - {
- "name": "4",
- "count": 3
}, - {
- "name": "3",
- "count": 1
}, - {
- "name": "2",
- "count": 0
}, - {
- "name": "1",
- "count": 0
}
], - "totalResponses": 5,
- "sizeFeedback": [
- {
- "name": "BIGGER",
- "count": 0
}, - {
- "name": "FIT",
- "count": 2
}, - {
- "name": "SMALLER",
- "count": 0
}
]
}
Get the seller's advertisements daily statistics
Authorizations:
allegro:api:sale:offers:read
) query Parameters
date.gte | string <date-time> Example: date.gte=2020-11-13T12:45:20.818Z The maximum date and time from which the events will be fetched in ISO 8601 format. The value should be less than the current date time. The difference between date.gte and date.lte should be less than 3 months. |
date.lte | string <date-time> Example: date.lte=2020-11-13T12:45:20.818Z The minimum date and time from which the events will be fetched in ISO 8601 format. The value should be less than the current date time and greater than date.lte. The difference between date.gte and date.lte should be less than 3 months. |
Responses
Response samples
- 200
{- "eventStatsTotal": [
- {
- "count": 0,
- "eventType": "SHOWED_PHONE_NUMBER"
}
], - "eventsPerDay": [
- {
- "date": "2019-05-01",
- "eventStats": [
- {
- "count": 0,
- "eventType": "SHOWED_PHONE_NUMBER"
}
]
}
]
}
Get the advertisements daily statistics
Authorizations:
allegro:api:sale:offers:read
) query Parameters
offer.id required | Array of strings List of offer Ids, maximum 50 values. |
date.gte | string <date-time> Example: date.gte=2020-11-13T12:45:20.818Z The maximum date and time from which the events will be fetched in ISO 8601 format. The value should be less than the current date time. The difference between date.gte and date.lte should be less than 3 months. |
date.lte | string <date-time> Example: date.lte=2020-11-13T12:45:20.818Z The minimum date and time from which the events will be fetched in ISO 8601 format. The value should be less than the current date time and greater than date.lte. The difference between date.gte and date.lte should be less than 3 months. |
Responses
Response samples
- 200
{- "offerStats": [
- {
- "offer": {
- "id": "string"
}, - "eventStatsTotal": [
- {
- "count": 0,
- "eventType": "SHOWED_PHONE_NUMBER"
}
], - "eventsPerDay": [
- {
- "date": "2019-05-01",
- "eventStats": [
- {
- "count": 0,
- "eventType": "SHOWED_PHONE_NUMBER"
}
]
}
]
}
]
}
Get classified packages assigned to an offer
Authorizations:
allegro:api:sale:offers:read
) path Parameters
offerId required | string Offer ID. |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
{- "basePackage": {
- "id": "e76d443b-c088-4da5-95f7-cc9aaf73bf7b"
}, - "extraPackages": [
- {
- "id": "bff60277-b92e-46b6-98a4-439f830ac0a1",
- "republish": false
}
]
}
Assign packages to a classified
Authorizations:
allegro:api:sale:offers:write
) path Parameters
offerId required | string The offer ID. |
Request Body schema: application/vnd.allegro.public.v1+json
Packages that should be assigned to the classified.
required | object (ClassifiedPackage) |
Array of objects (ClassifiedPackage) [ items ] |
Responses
Request samples
- Payload
{- "basePackage": {
- "id": "e76d443b-c088-4da5-95f7-cc9aaf73bf7b"
}, - "extraPackages": [
- {
- "id": "e76d443b-c088-4da5-95f7-cc9aaf73bf7b"
}
]
}
Response samples
- 400
- 401
- 403
- 404
- 422
{- "errors": [
- {
- "code": "NotAcceptableException",
- "details": "",
- "message": "Not acceptable representation requested. Please check 'Accept' request header",
- "path": "",
- "userMessage": "The request contains incorrect data. Contact the author of the application.",
- "metadata": {
- "productId": "13232515"
}
}
]
}
Get configurations of packages
Authorizations:
allegro:api:sale:offers:read
) query Parameters
category.id required | string The category ID. |
Responses
Response samples
- 200
- 400
- 401
{- "packages": [
- {
- "extensions": [
- {
- "description": "Autocentrum.pl",
- "name": "autocentrumExport"
}
], - "id": "6174be19-56f9-484b-b72c-43b0b00785e8",
- "name": "Power",
- "promotions": [
- {
- "duration": "PT240H",
- "name": "emphasized"
}
], - "publication": {
- "duration": "PT240H"
}, - "type": "BASE"
}
]
}
Get the configuration of a package
Authorizations:
allegro:api:sale:offers:read
) path Parameters
packageId required | string The classifieds package ID. |
Responses
Response samples
- 200
- 400
- 401
- 404
{- "extensions": [
- {
- "description": "Autocentrum.pl",
- "name": "autocentrumExport"
}
], - "id": "6174be19-56f9-484b-b72c-43b0b00785e8",
- "name": "Power",
- "promotions": [
- {
- "duration": "PT240H",
- "name": "emphasized"
}
], - "publication": {
- "duration": "PT240H"
}, - "type": "BASE"
}
Calculate fee and commission for an offer
Authorizations:
allegro:api:sale:offers:read
) Request Body schema: application/vnd.allegro.public.v1+json
object (PricingOffer) Single offer data. | |
object (ClassifiedsPackages) | |
marketplaceId | string or null The marketplace on which the offer should be previewed. If omitted, it will default to the base marketplace. |
Responses
Request samples
- Payload
{- "offer": {
- "fundraisingCampaign": {
- "id": "string"
}, - "id": "string",
- "category": {
- "id": "257931"
}, - "parameters": [
- {
- "id": "string",
- "rangeValue": {
- "from": "string",
- "to": "string"
}, - "values": [
- "string"
], - "valuesIds": [
- "string"
]
}
], - "promotion": {
- "emphasized1d": true,
- "emphasized10d": true,
- "promoPackage": true,
- "departmentPage": true
}, - "publication": {
- "duration": "PT24H"
}, - "sellingMode": {
- "format": "BUY_NOW",
- "price": {
- "amount": "123.45",
- "currency": "PLN"
}, - "minimalPrice": {
- "amount": "123.45",
- "currency": "PLN"
}, - "startingPrice": {
- "amount": "123.45",
- "currency": "PLN"
}, - "netPrice": {
- "amount": "123.45",
- "currency": "PLN"
}
}
}, - "classifiedsPackages": {
- "basePackage": {
- "id": "e76d443b-c088-4da5-95f7-cc9aaf73bf7b"
}, - "extraPackages": [
- {
- "id": "bff60277-b92e-46b6-98a4-439f830ac0a1",
- "republish": false
}
]
}, - "marketplaceId": "allegro-pl"
}
Response samples
- 200
- 400
- 401
- 422
{- "commissions": [
- {
- "name": "Prowizja od sprzedaży",
- "type": "commissionFee",
- "fee": {
- "amount": "123.45",
- "currency": "PLN"
}
}
], - "quotes": [
- {
- "name": "Opłata za wystawienie",
- "type": "listingFee",
- "fee": {
- "amount": "123.45",
- "currency": "PLN"
}, - "cycleDuration": "PT240H",
- "classifiedsPackage": {
- "id": "e76d443b-c088-4da5-95f7-cc9aaf73bf7b"
}
}
]
}
Get the user's current offer quotes
Authorizations:
allegro:api:billing:read
) query Parameters
offer.id required | Array of strings List of offer Ids, maximum 20 values. |
Responses
Response samples
- 200
- 400
- 503
{- "count": 0,
- "quotes": [
- {
- "enabled": true,
- "fee": {
- "amount": "string",
- "currency": "string"
}, - "name": "string",
- "nextDate": "2019-08-24T14:15:22Z",
- "offer": {
- "id": "123456789"
}, - "type": "string"
}
]
}
Get order events
Authorizations:
allegro:api:orders:read
) query Parameters
from | string You can use the event ID to retrieve subsequent chunks of events. |
type | Array of strings Specify array of event types for filtering. Allowed values are:
|
limit | integer <int32> [ 1 .. 1000 ] Default: 100 The maximum number of events returned in the response. |
Responses
Response samples
- 200
{- "events": [
- {
- "id": "string",
- "order": {
- "seller": {
- "id": "437848322"
}, - "buyer": {
- "id": "23123123",
- "email": "user-email@allegro.pl",
- "login": "User_Login",
- "guest": false,
- "preferences": {
- "language": "pl-PL"
}
}, - "lineItems": [
- {
- "id": "62ae358b-8f65-4fc4-9c77-bedf604a2e2b",
- "offer": {
- "id": "3213213",
- "name": "Name of purchased offer",
- "external": {
- "id": "AH-129834"
}
}, - "quantity": 1,
- "originalPrice": {
- "amount": "123.45",
- "currency": "PLN"
}, - "price": {
- "amount": "123.45",
- "currency": "PLN"
}, - "boughtAt": "2018-01-01T10:23:43.123Z"
}
], - "checkoutForm": {
- "id": "88ae369b-8f65-4fc4-9c77-bedf604a2e2b",
- "revision": "819b5836"
}, - "marketplace": {
- "id": "allegro-pl"
}
}, - "type": "READY_FOR_PROCESSING",
- "occurredAt": "2018-10-12T10:12:32.321Z"
}
]
}
Get order events statistics
Authorizations:
allegro:api:orders:read
) Responses
Response samples
- 200
{- "latestEvent": {
- "id": "string",
- "occurredAt": "2018-10-12T10:12:32.321Z"
}
}
Get the user's orders
Authorizations:
allegro:api:orders:read
) query Parameters
offset | integer >= 0 Default: 0 Index of first returned checkout-form from all search results. |
limit | integer [ 1 .. 100 ] Default: 100 Maximum number of checkout-forms in response. |
status | string Specify status value that checkout-forms must have to be included in the output. Allowed values are:
|
fulfillment.status | string Specify seller status value that checkout-forms must have to be included in the output. Allowed values are:
|
fulfillment.shipmentSummary.lineItemsSent | string Specify filter for line items sending status. Allowed values are:
|
lineItems.boughtAt.lte | string <date-time> Latest line item bought date. The upper bound of date time range from which checkout forms will be taken. |
lineItems.boughtAt.gte | string <date-time> Latest line item bought date. The lower bound of date time range from which checkout forms will be taken. |
payment.id | string Find checkout-forms having specified payment id. |
surcharges.id | string Find checkout-forms having specified surcharge id. |
delivery.method.id | string Find checkout-forms having specified delivery method id. |
buyer.login | string Find checkout-forms having specified buyer login. |
marketplace.id | string Find checkout-forms of orders purchased on specified marketplace. |
updatedAt.lte | string <date-time> Checkout form last modification date. The upper bound of date time range from which checkout forms will be taken. |
updatedAt.gte | string <date-time> Checkout form last modification date. The lower bound of date time range from which checkout forms will be taken. |
sort | string Enum: "lineItems.boughtAt" "-lineItems.boughtAt" "updatedAt" "-updatedAt" The results' sorting order. No prefix in the value means ascending order. |
Responses
Response samples
- 200
{- "checkoutForms": [
- {
- "id": "29738e61-7f6a-11e8-ac45-09db60ede9d6",
- "messageToSeller": "Please send me an item in red color",
- "buyer": {
- "id": "23123123",
- "email": "user-email@allegro.pl",
- "login": "User_Login",
- "firstName": "Jan",
- "lastName": "Kowalski",
- "companyName": "Kowalex",
- "guest": false,
- "personalIdentity": "67062589524",
- "phoneNumber": "123123123",
- "preferences": {
- "language": "pl-PL"
}, - "address": {
- "street": "Solna",
- "city": "Poznań",
- "postCode": "60-166",
- "countryCode": "PL"
}
}, - "payment": {
- "id": "0f8f1d13-7e9e-11e8-9b00-c5b0dfb78ea6",
- "type": "CASH_ON_DELIVERY",
- "provider": "P24",
- "finishedAt": "2018-10-12T10:12:32.321Z",
- "paidAmount": {
- "amount": "123.45",
- "currency": "PLN"
}, - "reconciliation": {
- "amount": "123.45",
- "currency": "PLN"
}, - "features": [
- "ALLEGRO_PAY"
]
}, - "status": "READY_FOR_PROCESSING",
- "fulfillment": {
- "status": "SENT",
- "shipmentSummary": {
- "lineItemsSent": "SOME"
}
}, - "delivery": {
- "address": {
- "firstName": "Jan",
- "lastName": "Kowalski",
- "street": "Grunwaldzka 182",
- "city": "Poznań",
- "zipCode": "60-166",
- "countryCode": "PL",
- "companyName": "Kowalex",
- "phoneNumber": "123123123",
- "modifiedAt": "2018-01-05T10:23:43.123Z"
}, - "method": {
- "id": "1fa56f79-4b6a-4821-a6f2-ca9c16d5c925",
- "name": "Allegro Paczkomaty InPost"
}, - "pickupPoint": {
- "id": "POZ08A",
- "name": "Paczkomat POZ08A",
- "description": "Stacja paliw BP",
- "address": {
- "street": "Grunwaldzka 108",
- "zipCode": "60-166",
- "city": "Poznań",
- "countryCode": "PL"
}
}, - "cost": {
- "amount": "123.45",
- "currency": "PLN"
}, - "time": {
- "from": "2018-01-01T10:23:43.123Z",
- "to": "2018-01-05T10:23:43.123Z",
- "guaranteed": {
- "from": "2018-01-07T16:00:00Z",
- "to": "2018-01-08T18:00:00Z"
}, - "dispatch": {
- "from": "2018-01-01T16:00:00Z",
- "to": "2018-01-03T18:00:00Z"
}
}, - "smart": true,
- "calculatedNumberOfPackages": 1
}, - "invoice": {
- "required": true,
- "address": {
- "street": "Grunwaldzka 182",
- "city": "Poznań",
- "zipCode": "60-166",
- "countryCode": "PL",
- "company": {
- "name": "Udix Sp. z o.o.",
- "ids": [
- {
- "type": "PL_NIP",
- "value": "111-11-11-111"
}
], - "vatPayerStatus": "NOT_APPLICABLE",
- "taxId": "111-11-11-111"
}, - "naturalPerson": {
- "firstName": "Jan",
- "lastName": "Kowalski"
}
}, - "dueDate": "2021-12-01",
- "features": [
- "VAT_EU_VERIFIED"
]
}, - "lineItems": [
- {
- "id": "62ae358b-8f65-4fc4-9c77-bedf604a2e2b",
- "offer": {
- "id": "3213213",
- "name": "Name of purchased offer",
- "external": {
- "id": "AH-129834"
}, - "productSet": {
- "products": [
- {
- "id": "9d689aa5-f2ad-4bdc-bb97-6b196854e6c7",
- "quantity": 1
}, - {
- "id": "5924a344-1620-45fe-b214-186d4902c30b",
- "quantity": 2
}
]
}
}, - "quantity": 1,
- "originalPrice": {
- "amount": "123.45",
- "currency": "PLN"
}, - "price": {
- "amount": "123.45",
- "currency": "PLN"
}, - "reconciliation": {
- "value": {
- "amount": "123.45",
- "currency": "PLN"
}, - "type": "BILLING",
- "quantity": 1
}, - "selectedAdditionalServices": [
- {
- "definitionId": "CARRY_IN",
- "name": "Wniesienie",
- "price": {
- "amount": "123.45",
- "currency": "PLN"
}, - "quantity": 1
}
], - "vouchers": [
- {
- "code": "Code12345",
- "type": "NOTEBOOKS_FOR_TEACHERS",
- "status": "ACTIVE",
- "externalTransactionId": "sampleExternalTransactionId",
- "value": {
- "amount": "123.45",
- "currency": "PLN"
}
}
], - "tax": {
- "rate": "23.00",
- "subject": "GOODS",
- "exemption": "MONEY_EQUIVALENT"
}, - "boughtAt": "2018-01-01T10:23:43.123Z"
}
], - "surcharges": [
- {
- "id": "0f8f1d13-7e9e-11e8-9b00-c5b0dfb78ea6",
- "type": "CASH_ON_DELIVERY",
- "provider": "P24",
- "finishedAt": "2018-10-12T10:12:32.321Z",
- "paidAmount": {
- "amount": "123.45",
- "currency": "PLN"
}, - "reconciliation": {
- "amount": "123.45",
- "currency": "PLN"
}, - "features": [
- "ALLEGRO_PAY"
]
}
], - "discounts": [
- {
- "type": "COUPON"
}
], - "note": {
- "text": "Sample note"
}, - "marketplace": {
- "id": "allegro-pl"
}, - "summary": {
- "totalToPay": {
- "amount": "123.45",
- "currency": "PLN"
}
}, - "updatedAt": "2011-12-03T10:15:30.133Z",
- "revision": "819b5836"
}
], - "count": 1,
- "totalCount": 1
}
Get an order's details
Authorizations:
allegro:api:orders:read
) path Parameters
id required | string <uuid> Example: 29738e61-7f6a-11e8-ac45-09db60ede9d6 Checkout form identifier. |
Responses
Response samples
- 200
{- "id": "29738e61-7f6a-11e8-ac45-09db60ede9d6",
- "messageToSeller": "Please send me an item in red color",
- "buyer": {
- "id": "23123123",
- "email": "user-email@allegro.pl",
- "login": "User_Login",
- "firstName": "Jan",
- "lastName": "Kowalski",
- "companyName": "Kowalex",
- "guest": false,
- "personalIdentity": "67062589524",
- "phoneNumber": "123123123",
- "preferences": {
- "language": "pl-PL"
}, - "address": {
- "street": "Solna",
- "city": "Poznań",
- "postCode": "60-166",
- "countryCode": "PL"
}
}, - "payment": {
- "id": "0f8f1d13-7e9e-11e8-9b00-c5b0dfb78ea6",
- "type": "CASH_ON_DELIVERY",
- "provider": "P24",
- "finishedAt": "2018-10-12T10:12:32.321Z",
- "paidAmount": {
- "amount": "123.45",
- "currency": "PLN"
}, - "reconciliation": {
- "amount": "123.45",
- "currency": "PLN"
}, - "features": [
- "ALLEGRO_PAY"
]
}, - "status": "READY_FOR_PROCESSING",
- "fulfillment": {
- "status": "SENT",
- "shipmentSummary": {
- "lineItemsSent": "SOME"
}
}, - "delivery": {
- "address": {
- "firstName": "Jan",
- "lastName": "Kowalski",
- "street": "Grunwaldzka 182",
- "city": "Poznań",
- "zipCode": "60-166",
- "countryCode": "PL",
- "companyName": "Kowalex",
- "phoneNumber": "123123123",
- "modifiedAt": "2018-01-05T10:23:43.123Z"
}, - "method": {
- "id": "1fa56f79-4b6a-4821-a6f2-ca9c16d5c925",
- "name": "Allegro Paczkomaty InPost"
}, - "pickupPoint": {
- "id": "POZ08A",
- "name": "Paczkomat POZ08A",
- "description": "Stacja paliw BP",
- "address": {
- "street": "Grunwaldzka 108",
- "zipCode": "60-166",
- "city": "Poznań",
- "countryCode": "PL"
}
}, - "cost": {
- "amount": "123.45",
- "currency": "PLN"
}, - "time": {
- "from": "2018-01-01T10:23:43.123Z",
- "to": "2018-01-05T10:23:43.123Z",
- "guaranteed": {
- "from": "2018-01-07T16:00:00Z",
- "to": "2018-01-08T18:00:00Z"
}, - "dispatch": {
- "from": "2018-01-01T16:00:00Z",
- "to": "2018-01-03T18:00:00Z"
}
}, - "smart": true,
- "calculatedNumberOfPackages": 1
}, - "invoice": {
- "required": true,
- "address": {
- "street": "Grunwaldzka 182",
- "city": "Poznań",
- "zipCode": "60-166",
- "countryCode": "PL",
- "company": {
- "name": "Udix Sp. z o.o.",
- "ids": [
- {
- "type": "PL_NIP",
- "value": "111-11-11-111"
}
], - "vatPayerStatus": "NOT_APPLICABLE",
- "taxId": "111-11-11-111"
}, - "naturalPerson": {
- "firstName": "Jan",
- "lastName": "Kowalski"
}
}, - "dueDate": "2021-12-01",
- "features": [
- "VAT_EU_VERIFIED"
]
}, - "lineItems": [
- {
- "id": "62ae358b-8f65-4fc4-9c77-bedf604a2e2b",
- "offer": {
- "id": "3213213",
- "name": "Name of purchased offer",
- "external": {
- "id": "AH-129834"
}, - "productSet": {
- "products": [
- {
- "id": "9d689aa5-f2ad-4bdc-bb97-6b196854e6c7",
- "quantity": 1
}, - {
- "id": "5924a344-1620-45fe-b214-186d4902c30b",
- "quantity": 2
}
]
}
}, - "quantity": 1,
- "originalPrice": {
- "amount": "123.45",
- "currency": "PLN"
}, - "price": {
- "amount": "123.45",
- "currency": "PLN"
}, - "reconciliation": {
- "value": {
- "amount": "123.45",
- "currency": "PLN"
}, - "type": "BILLING",
- "quantity": 1
}, - "selectedAdditionalServices": [
- {
- "definitionId": "CARRY_IN",
- "name": "Wniesienie",
- "price": {
- "amount": "123.45",
- "currency": "PLN"
}, - "quantity": 1
}
], - "vouchers": [
- {
- "code": "Code12345",
- "type": "NOTEBOOKS_FOR_TEACHERS",
- "status": "ACTIVE",
- "externalTransactionId": "sampleExternalTransactionId",
- "value": {
- "amount": "123.45",
- "currency": "PLN"
}
}
], - "tax": {
- "rate": "23.00",
- "subject": "GOODS",
- "exemption": "MONEY_EQUIVALENT"
}, - "boughtAt": "2018-01-01T10:23:43.123Z"
}
], - "surcharges": [
- {
- "id": "0f8f1d13-7e9e-11e8-9b00-c5b0dfb78ea6",
- "type": "CASH_ON_DELIVERY",
- "provider": "P24",
- "finishedAt": "2018-10-12T10:12:32.321Z",
- "paidAmount": {
- "amount": "123.45",
- "currency": "PLN"
}, - "reconciliation": {
- "amount": "123.45",
- "currency": "PLN"
}, - "features": [
- "ALLEGRO_PAY"
]
}
], - "discounts": [
- {
- "type": "COUPON"
}
], - "note": {
- "text": "Sample note"
}, - "marketplace": {
- "id": "allegro-pl"
}, - "summary": {
- "totalToPay": {
- "amount": "123.45",
- "currency": "PLN"
}
}, - "updatedAt": "2011-12-03T10:15:30.133Z",
- "revision": "819b5836"
}
Get a list of parcel tracking numbers
Get a list of parcel tracking numbers currently assigned to the order. Orders can be retrieved using REST API resource GET /order/checkout-forms. Please note that the shipment list may contain parcel tracking numbers added through other channels such as Moje Allegro or by the carrier that delivers the parcel. Read more: PL / EN.
Authorizations:
allegro:api:orders:read
) path Parameters
id required | string Order identifier. |
Responses
Response samples
- 200
- 401
- 404
{- "shipments": [
- {
- "id": "string",
- "waybill": "string",
- "carrierId": "string",
- "carrierName": "string",
- "lineItems": [
- {
- "id": "string"
}
], - "createdAt": "string"
}
]
}
Add a parcel tracking number
Authorizations:
allegro:api:orders:write
) path Parameters
id required | string Order identifier. |
Request Body schema: application/vnd.allegro.public.v1+json
request
carrierId required | string Supported carriers are available via shipping carriers resource. |
waybill required | string <= 64 characters Waybill number (parcel tracking number). Cannot be empty and must be no longer than 64 characters. |
carrierName | string <= 30 characters Carrier name to be provided only if carrierId is OTHER, otherwise it’s ignored. Must be no longer than 30 characters. |
Array of objects[ items ] List of order line items. They must be from the order specified in the path parameter. When list is not provided or it is empty it means that every item from an order is included in shipment. |
Responses
Request samples
- Payload
{- "carrierId": "string",
- "waybill": "string",
- "carrierName": "string",
- "lineItems": [
- {
- "id": "string"
}
]
}
Response samples
- 201
- 400
- 401
- 404
- 409
- 422
{- "id": "string",
- "waybill": "string",
- "carrierId": "string",
- "carrierName": "string",
- "lineItems": [
- {
- "id": "string"
}
], - "createdAt": "string"
}
Set seller order status
Authorizations:
allegro:api:orders:write
) path Parameters
id required | string Order identifier. |
query Parameters
checkoutForm.revision | string Example: checkoutForm.revision=819b5836 Checkout form revision. |
Request Body schema: application/vnd.allegro.public.v1+json
request
status | any (CheckoutFormFulfillmentStatus) Enum: "NEW" "PROCESSING" "READY_FOR_SHIPMENT" "READY_FOR_PICKUP" "SENT" "PICKED_UP" "CANCELLED" "SUSPENDED" Order seller status. |
object (CheckoutFormFulfillmentShipmentSummary) |
Responses
Request samples
- Payload
{- "status": "SENT",
- "shipmentSummary": {
- "lineItemsSent": "SOME"
}
}
Response samples
- 409
- 422
{- "errors": [
- {
- "code": "NotAcceptableException",
- "details": "",
- "message": "Not acceptable representation requested. Please check 'Accept' request header",
- "path": "",
- "userMessage": "The request contains incorrect data. Contact the author of the application.",
- "metadata": {
- "productId": "13232515"
}
}
]
}
Get order invoices details
Authorizations:
path Parameters
id required | string Order identifier. |
Responses
Response samples
- 200
- 403
- 404
{- "invoices": [
- {
- "id": "string",
- "invoiceNumber": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "file": {
- "name": "string",
- "uploadedAt": "2019-08-24T14:15:22Z",
- "securityVerification": {
- "status": "ACCEPTED",
- "verifiedAt": "2019-08-24T14:15:22Z"
}
}
}
], - "hasExternalInvoices": true
}
Post new invoice
Authorizations:
path Parameters
id required | string Order identifier. |
Request Body schema: application/vnd.allegro.public.v1+json
request
required | object (CheckFormsNewOrderInvoiceFile) |
invoiceNumber | string |
Responses
Request samples
- Payload
{- "file": {
- "name": "string"
}, - "invoiceNumber": "string"
}
Response samples
- 201
- 403
- 404
- 409
- 422
- 429
{- "id": "string"
}
Upload invoice file
Authorizations:
path Parameters
id required | string Order identifier. |
invoiceId required | string Invoice identifier. |
Request Body schema: application/pdf
File in a binary format
Responses
Response samples
- 403
- 404
- 409
- 413
- 422
{- "errors": [
- {
- "code": "NotAcceptableException",
- "details": "",
- "message": "Not acceptable representation requested. Please check 'Accept' request header",
- "path": "",
- "userMessage": "The request contains incorrect data. Contact the author of the application.",
- "metadata": {
- "productId": "13232515"
}
}
]
}
Get Allegro pickup drop off points
Authorizations:
query Parameters
carriers | Array of strings (AllegroCarrier) Items Enum: "UPS" "ALLEGRO_ONE_KURIER" "DPD" List of carrier ids to filter the drop off/pick up points to only the ones where any of the listed carriers operate. In case of an empty list, all points are returned. |
header Parameters
If-Modified-Since | string <<day-name>, <day> <month> <year> <hour>:<minute>:<second> GMT> Example: Sat, 01 Dec 2018 10:00:00 GMT Date of last data modification. If data has been modified after specified date, full set of data is returned. If header is not specified, full set of data is returned. Date has to be provided in HTTP-date format. Information about date (the same HTTP-date format) of last modified data is available in response - |
Responses
Response samples
- 200
{- "points": [
- {
- "id": "1234567890",
- "name": "Kiosk Kolporter 001",
- "type": "PUDO",
- "services": [
- {
- "type": "PICKUP"
}
], - "restrictions": [
- {
- "type": "OVERLOADED"
}
], - "description": "Sklep z książkami dla dzieci",
- "payments": [
- {
- "method": "CARD"
}
], - "address": {
- "postCode": "60-166",
- "city": "Poznań",
- "street": "Solna",
- "countryCode": "PL",
- "coordinates": {
- "lat": -90,
- "lon": -180
}
}, - "opening": [
- {
- "dayOfWeek": "MONDAY",
- "from": "08:00",
- "to": "15:00"
}
], - "carriers": [
- "UPS"
]
}
]
}
Get carrier parcel tracking history
Authorizations:
path Parameters
carrierId required | string Carrier identifier. |
query Parameters
waybill required | Array of strings <= 20 items Waybill number (parcel tracking number). Example: |
Responses
Response samples
- 200
{- "carrierId": "string",
- "waybills": [
- {
- "waybill": "string",
- "trackingDetails": {
- "statuses": [
- {
- "occurredAt": "2021-04-14T15:21:36.317Z",
- "code": "DELIVERED",
- "description": "string"
}
], - "createdAt": "2021-04-14T11:30:22.163Z",
- "updatedAt": "2021-04-14T15:21:36.317Z"
}
}
]
}
Payment operations history
Authorizations:
allegro:api:payments:read
) query Parameters
wallet.type | string Default: "AVAILABLE" Enum: "AVAILABLE" "WAITING" Type of the wallet: * AVAILABLE - operations available for payout. * WAITING - operations temporarily suspended for payout. |
wallet.paymentOperator | string Enum: "PAYU" "P24" "AF" Payment operator: * PAYU - operations processed by PAYU operator. * P24 - operations processed by PRZELEWY24 operator. * AF - operations processed by Allegro Finance operator. |
payment.id | string <uuid> The payment ID. |
participant.login | string Login of the participant. In case of REFUND_INCREASE operation this is the login of the seller, in other cases, of the buyer. |
occurredAt.gte | string <date-time> Example: occurredAt.gte=2019-05-08T09:45:20.818Z The minimum date and time of operation occurrence in ISO 8601 format. |
occurredAt.lte | string <date-time> Example: occurredAt.lte=2019-05-08T09:45:20.818Z The maximum date and time of operation occurrence in ISO 8601 format. |
group | Array of strings Items Enum: "INCOME" "OUTCOME" "REFUND" "BLOCKADES" Group of operation types: * INCOME - CONTRIBUTION, SURCHARGE, CORRECTION, DEDUCTION_INCREASE, COMPENSATION. * OUTCOME - PAYOUT, PAYOUT_CANCEL, DEDUCTION_CHARGE. * REFUND - REFUND_CHARGE, REFUND_CANCEL, REFUND_INCREASE, CORRECTION. * BLOCKADES - BLOCKADE, BLOCKADE_RELEASE. |
marketplaceId | string Enum: "allegro-pl" "allegro-cz" Example: marketplaceId=allegro-pl The marketplace ID where operation was made. When the parameter is omitted, searches for operations with all marketplaces. Note, that there are operations not assigned to any marketplace. |
currency | string Example: currency=PLN Currency of the operations. |
limit | integer <int32> [ 1 .. 50 ] Default: 50 Number of returned operations. |
offset | integer <int32> [ 0 .. 10000 ] Default: 0 Index of the first returned payment operation from all search results. |
Responses
Response samples
- 200
- 422
{- "paymentOperations": [
- {
- "type": "string",
- "group": "INCOME",
- "wallet": {
- "paymentOperator": "PAYU",
- "type": "AVAILABLE",
- "balance": {
- "amount": "123.45",
- "currency": "PLN"
}
}, - "value": {
- "amount": "123.45",
- "currency": "PLN"
}, - "occurredAt": "2019-05-08T09:45:00.818Z",
- "marketplaceId": "string"
}
], - "count": 50,
- "totalCount": 123
}
Initiate a refund of a payment
Authorizations:
allegro:api:payments:write
) Request Body schema: application/vnd.allegro.public.v1+json
required | object (RefundPayment) Payment affected by refund operation. |
reason required | string Enum: "REFUND" "COMPLAINT" "PRODUCT_NOT_AVAILABLE" "PAID_VALUE_TOO_LOW" "OVERPAID" "CANCELLED_BY_BUYER" "NOT_COLLECTED" Reason for a payment refund. |
Array of objects (RefundLineItem) [ items ] List of order's line items which can be refunded. | |
object Payment refund for delivery. | |
object Payment refund for overpaid. | |
Array of objects (PaymentsSurcharge) [ items ] List of surcharges for payment which can be refunded. | |
object Payment refund for additional services. | |
sellerComment | string <= 250 characters Sellers optional justification for refund. |
Responses
Request samples
- Payload
{- "payment": {
- "id": "a6bee8b2-8b4e-11e9-8918-07b31163120a"
}, - "reason": "REFUND",
- "lineItems": [
- {
- "id": "09f0b4cc-7880-11e9-8f9e-2a86e4085a59",
- "type": "QUANTITY",
- "quantity": 5,
- "value": null
}
], - "delivery": {
- "value": {
- "amount": "123.45",
- "currency": "PLN"
}
}, - "overpaid": {
- "value": {
- "amount": "123.45",
- "currency": "PLN"
}
}, - "surcharges": [
- {
- "id": "09f0b4cc-7880-11e9-8f9e-2a86e4085a59",
- "value": {
- "amount": "123.45",
- "currency": "PLN"
}
}
], - "additionalServices": {
- "value": {
- "amount": "123.45",
- "currency": "PLN"
}
}, - "sellerComment": "Example seller comment."
}
Response samples
- 200
- 400
- 401
- 403
- 404
- 422
{- "id": "09f0b4cc-7880-11e9-8f9e-2a86e4085a59",
- "payment": {
- "id": "a6bee8b2-8b4e-11e9-8918-07b31163120a"
}, - "reason": "REFUND",
- "status": "SUCCESS",
- "createdAt": "2017-05-17T08:36:57.292+02:00",
- "totalValue": {
- "amount": "123.45",
- "currency": "PLN"
}, - "lineItems": [
- {
- "id": "09f0b4cc-7880-11e9-8f9e-2a86e4085a59",
- "type": "QUANTITY",
- "quantity": 5,
- "value": null
}
], - "delivery": {
- "value": {
- "amount": "123.45",
- "currency": "PLN"
}
}, - "overpaid": {
- "value": {
- "amount": "123.45",
- "currency": "PLN"
}
}, - "surcharges": [
- {
- "id": "09f0b4cc-7880-11e9-8f9e-2a86e4085a59",
- "value": {
- "amount": "123.45",
- "currency": "PLN"
}
}
], - "additionalServices": {
- "value": {
- "amount": "123.45",
- "currency": "PLN"
}
}, - "sellerComment": "Example seller comment."
}
Get a list of refunded payments
Authorizations:
allegro:api:payments:read
) query Parameters
limit | integer <int32> [ 1 .. 100 ] Default: 50 Number of returned operations. |
offset | integer <int32> >= 0 Default: 0 Index of the first returned payment operation from all search results. |
id | string <uuid> ID of the refund. |
payment.id | string <uuid> ID of the payment. |
occurredAt.gte | string <date-time> Example: occurredAt.gte=2019-05-08T09:45:43.818Z Minimum date and time when the refund occurred provided in ISO 8601 format. |
occurredAt.lte | string <date-time> Example: occurredAt.lte=2019-05-08T09:45:32.818Z Maximum date and time when the refund occurred provided in ISO 8601 format. |
status | Array of strings Items Enum: "WAITING" "IN_PROGRESS" "SUCCESS" "CANCELED" "PARTIAL" Current status of payment refund. |
Responses
Response samples
- 200
- 401
- 403
- 422
{- "refunds": [
- {
- "id": "09f0b4cc-7880-11e9-8f9e-2a86e4085a59",
- "payment": {
- "id": "a6bee8b2-8b4e-11e9-8918-07b31163120a"
}, - "reason": "REFUND",
- "status": "SUCCESS",
- "createdAt": "2017-05-17T08:36:57.292+02:00",
- "totalValue": {
- "amount": "123.45",
- "currency": "PLN"
}, - "lineItems": [
- {
- "id": "09f0b4cc-7880-11e9-8f9e-2a86e4085a59",
- "type": "QUANTITY",
- "quantity": 5,
- "value": null
}
], - "delivery": {
- "value": {
- "amount": "123.45",
- "currency": "PLN"
}
}, - "overpaid": {
- "value": {
- "amount": "123.45",
- "currency": "PLN"
}
}, - "surcharges": [
- {
- "id": "09f0b4cc-7880-11e9-8f9e-2a86e4085a59",
- "value": {
- "amount": "123.45",
- "currency": "PLN"
}
}
], - "additionalServices": {
- "value": {
- "amount": "123.45",
- "currency": "PLN"
}
}, - "sellerComment": "Example seller comment."
}
], - "count": 50,
- "totalCount": 123
}
Get the user's disputes
Authorizations:
allegro:api:disputes
) query Parameters
checkoutForm.id | string <uuid> Example: checkoutForm.id=29738e61-7f6a-11e8-ac45-09db60ede9d6 Checkout form identifier. |
limit | integer <int32> [ 1 .. 100 ] Default: 10 The maximum number of disputes in a response. |
offset | integer <int32> >= 0 Default: 0 Index of first returned dispute. |
status | Array of strings Items Enum: "CLOSED" "ONGOING" "UNRESOLVED" Filter disputes with given set of statuses. |
Responses
Response samples
- 200
{- "disputes": [
- {
- "id": "string",
- "subject": {
- "name": "nie otrzymałem towaru po wpłacie"
}, - "status": "CLOSED",
- "messagesStatus": "NEW",
- "buyer": {
- "id": "string",
- "login": "string"
}, - "checkoutForm": {
- "id": "string",
- "createdAt": "2018-02-10T12:12:12Z"
}, - "message": {
- "id": "string",
- "text": "string",
- "attachment": {
- "fileName": "string",
}, - "author": {
- "login": "string",
- "role": "BUYER"
}, - "createdAt": "2018-02-10T12:12:12Z"
}, - "messagesCount": 0,
- "openedDate": "2018-02-10T12:12:12.000Z",
- "lastMessageCreationDate": "2018-02-10T12:12:12.000Z",
- "claim": {
- "name": "częściowy zwrot pieniędzy",
- "description": "Zwrot 27 zł"
}
}
]
}
Get a single dispute
Authorizations:
allegro:api:disputes
) path Parameters
disputeId required | string <uuid> Dispute identifier. |
Responses
Response samples
- 200
{- "id": "string",
- "subject": {
- "name": "nie otrzymałem towaru po wpłacie"
}, - "status": "CLOSED",
- "messagesStatus": "NEW",
- "buyer": {
- "id": "string",
- "login": "string"
}, - "checkoutForm": {
- "id": "string",
- "createdAt": "2018-02-10T12:12:12Z"
}, - "message": {
- "id": "string",
- "text": "string",
- "attachment": {
- "fileName": "string",
}, - "author": {
- "login": "string",
- "role": "BUYER"
}, - "createdAt": "2018-02-10T12:12:12Z"
}, - "messagesCount": 0,
- "openedDate": "2018-02-10T12:12:12.000Z",
- "lastMessageCreationDate": "2018-02-10T12:12:12.000Z",
- "claim": {
- "name": "częściowy zwrot pieniędzy",
- "description": "Zwrot 27 zł"
}
}
Get the messages within a dispute
Authorizations:
allegro:api:disputes
) path Parameters
disputeId required | string <uuid> Dispute identifier. |
query Parameters
limit | integer <int32> [ 1 .. 100 ] Default: 10 The maximum number of messages within dispute returned in a response. |
offset | integer <int32> >= 0 Default: 0 Index of first returned message within dispute. |
Responses
Response samples
- 200
{- "messages": [
- {
- "id": "string",
- "text": "string",
- "attachment": {
- "fileName": "string",
}, - "author": {
- "login": "string",
- "role": "BUYER"
}, - "createdAt": "2018-02-10T12:12:12Z"
}
]
}
Add a message to a dispute
Authorizations:
allegro:api:disputes
) path Parameters
disputeId required | string <uuid> Dispute identifier. |
Request Body schema: application/vnd.allegro.public.v1+json
Message request
text required | string <= 20000 characters |
required | object (DisputeAttachmentId) |
type required | string Enum: "REGULAR" "END_REQUEST" |
Responses
Request samples
- Payload
{- "text": "string",
- "attachment": {
- "id": "string"
}, - "type": "REGULAR"
}
Response samples
- 201
{- "id": "string",
- "text": "string",
- "attachment": {
- "fileName": "string",
}, - "author": {
- "login": "string",
- "role": "BUYER"
}, - "createdAt": "2018-02-10T12:12:12Z"
}
Create an attachment declaration
Authorizations:
allegro:api:disputes
) Request Body schema: application/vnd.allegro.public.v1+json
A detailed declaration of a file to be uploaded
fileName required | string |
size required | integer >= 1 |
Responses
Request samples
- Payload
{- "fileName": "string",
- "size": 128
}
Response samples
- 201
{- "id": "string"
}
Upload a dispute message attachment
Upload a dispute message attachment. This operation should be used after creating an attachment declaration with POST /sale/dispute-attachments Important! You can find the URL address to upload the file to our server in the Location response header of POST /sale/dispute-attachments. The URL is unique and one-time. As its format may change in time, you should always use the address from the header. Do not compose the address on your own. Read more: PL / EN.
Authorizations:
allegro:api:disputes
) path Parameters
attachmentId required | string <uuid> Attachment identifier. |
Request Body schema: image/pngimage/pngimage/gifimage/bmpimage/tiffimage/jpegapplication/pdf
File in a binary format
Responses
Get an attachment
Authorizations:
allegro:api:disputes
) path Parameters
attachmentId required | string <uuid> Attachment identifier. |
Responses
Get available delivery services Deprecated
Authorizations:
allegro:api:orders:read
allegro:api:shipments:read
) Responses
Response samples
- 200
- 401
- 403
- 504
{- "deliveryServices": [
- {
- "id": "6179d6a9-c007-4122-aed9-9b32993b1b05#937160ed-7c44-4ea6-af78-1e233779e681",
- "service": "INPOST_KURIER",
- "name": "InPost",
- "carrierId": "INPOST",
- "additionalServices": {
- "cashOnDelivery": {
- "available": true,
- "expressAvailable": true
}, - "options": [
- {
- "name": "guarantee0930",
- "description": "The order is guaranteed to be delivered before 09:30 am."
}
]
}, - "owner": "ALLEGRO"
}
]
}
Create a new parcel Deprecated
Authorizations:
allegro:api:orders:write
allegro:api:shipments:write
) path Parameters
commandId required | string Command UUID. |
Request Body schema: application/vnd.allegro.public.v1+json
serviceId required | string Delivery service id. |
required | object (Receiver) Parcel's receiver data. |
required | object (Pickup) Parcel's pickup data. |
required | Array of objects (ParcelItemDetails) [ items ] Parcel items details. |
type | string Enum: "PACKAGE" "DOX" "PALLET" Value will be applied to type for all items. If item will have type value assigned - validation will check if all types have the same value. |
object | |
object (ParcelAdditionalServices) Additional services. |
Responses
Request samples
- Payload
{- "serviceId": "6179d6a9-c007-4122-aed9-9b32993b1b05#937160ed-7c44-4ea6-af78-1e233779e681",
- "receiver": {
- "address": {
- "street": "Główna",
- "postCode": "10-200",
- "city": "Warszawa",
- "countryCode": "PL",
- "county": "AL"
}, - "email": "hamu7udk3p+17454c1b6@allegromail.pl",
- "name": "Jan Kowalski",
- "company": "Allegro.pl sp. z o.o.",
- "phone": "500600700",
- "pointId": "1234567"
}, - "pickup": {
- "address": {
- "street": "Główna",
- "postCode": "10-200",
- "city": "Warszawa",
- "countryCode": "PL",
- "county": "AL"
}, - "email": "email@mail.com",
- "name": "Jan Kowalski",
- "company": "Allegro.pl sp. z o.o.",
- "phone": "500600700",
- "pointId": "1234567"
}, - "items": [
- {
- "dimensions": {
- "height": {
- "value": "12",
- "unit": "CENTIMETER"
}, - "width": {
- "value": "12",
- "unit": "CENTIMETER"
}, - "depth": {
- "value": "12",
- "unit": "CENTIMETER"
}
}, - "weight": {
- "value": "12.45",
- "unit": "KILOGRAM"
}, - "description": "Car wheels.",
- "value": {
- "amount": "2.50",
- "currency": "PLN"
}, - "type": "PACKAGE"
}
], - "type": "PACKAGE",
- "label": {
- "sender": {
- "address": {
- "street": "Główna",
- "postCode": "10-200",
- "city": "Warszawa",
- "countryCode": "PL",
- "county": "AL"
}, - "email": "email@mail.com",
- "name": "Jan Kowalski",
- "company": "Allegro.pl sp. z o.o.",
- "phone": "500600700"
}, - "fileFormat": "PDF",
- "referenceNumber": "abcd1234"
}, - "additionalServices": {
- "cashOnDelivery": {
- "value": {
- "amount": "2.50",
- "currency": "PLN"
}, - "accountNumber": "12345678901234567890123456",
- "name": "Jan Kowalski",
- "express": false
}, - "options": [
- "string"
]
}
}
Response samples
- 201
- 400
- 401
- 403
{- "id": "b572cdd0-7f2c-4800-9165-15795bd95f3c",
- "input": {
- "serviceId": "6179d6a9-c007-4122-aed9-9b32993b1b05#937160ed-7c44-4ea6-af78-1e233779e681",
- "receiver": {
- "address": {
- "street": "Główna",
- "postCode": "10-200",
- "city": "Warszawa",
- "countryCode": "PL",
- "county": "AL"
}, - "email": "hamu7udk3p+17454c1b6@allegromail.pl",
- "name": "Jan Kowalski",
- "company": "Allegro.pl sp. z o.o.",
- "phone": "500600700",
- "pointId": "1234567"
}, - "pickup": {
- "address": {
- "street": "Główna",
- "postCode": "10-200",
- "city": "Warszawa",
- "countryCode": "PL",
- "county": "AL"
}, - "email": "email@mail.com",
- "name": "Jan Kowalski",
- "company": "Allegro.pl sp. z o.o.",
- "phone": "500600700",
- "pointId": "1234567"
}, - "items": [
- {
- "dimensions": {
- "height": {
- "value": "12",
- "unit": "CENTIMETER"
}, - "width": {
- "value": "12",
- "unit": "CENTIMETER"
}, - "depth": {
- "value": "12",
- "unit": "CENTIMETER"
}
}, - "weight": {
- "value": "12.45",
- "unit": "KILOGRAM"
}, - "description": "Car wheels.",
- "value": {
- "amount": "2.50",
- "currency": "PLN"
}, - "type": "PACKAGE"
}
], - "type": "PACKAGE",
- "label": {
- "sender": {
- "address": {
- "street": "Główna",
- "postCode": "10-200",
- "city": "Warszawa",
- "countryCode": "PL",
- "county": "AL"
}, - "email": "email@mail.com",
- "name": "Jan Kowalski",
- "company": "Allegro.pl sp. z o.o.",
- "phone": "500600700"
}, - "fileFormat": "PDF",
- "referenceNumber": "abcd1234"
}, - "additionalServices": {
- "cashOnDelivery": {
- "value": {
- "amount": "2.50",
- "currency": "PLN"
}, - "accountNumber": "12345678901234567890123456",
- "name": "Jan Kowalski",
- "express": false
}, - "options": [
- "string"
]
}
}
}
Get parcel creation status Deprecated
Authorizations:
allegro:api:orders:write
allegro:api:shipments:write
) path Parameters
commandId required | string Command UUID. |
Responses
Response samples
- 200
- 400
- 401
- 403
- 504
{- "id": "b572cdd0-7f2c-4800-9165-15795bd95f3c",
- "parcelId": "259b5c7a-9056-4c74-80ec-9bb2978cf293",
- "status": "ERROR",
- "errors": [
- {
- "code": "string",
- "details": "string",
- "message": "string",
- "path": "string",
- "userMessage": "string"
}
]
}
Get parcel details Deprecated
Authorizations:
allegro:api:orders:read
allegro:api:shipments:read
) path Parameters
parcelId required | string Id of parcel. |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 504
{- "parcelId": "66032969-eb5b-47a2-b7e8-72e5a09f9a73",
- "serviceId": "045cda68-a744-4d1f-a9c5-eb3a64d080f3#634c72a0-95f0-4480-b0fa-93b77e4cffb4",
- "receiver": {
- "address": {
- "street": "Główna",
- "postCode": "10-200",
- "city": "Warszawa",
- "countryCode": "PL",
- "county": "AL"
}, - "email": "hamu7udk3p+17454c1b6@allegromail.pl",
- "name": "Jan Kowalski",
- "company": "Allegro.pl sp. z o.o.",
- "phone": "500600700",
- "pointId": "1234567"
}, - "pickup": {
- "address": {
- "street": "Główna",
- "postCode": "10-200",
- "city": "Warszawa",
- "countryCode": "PL",
- "county": "AL"
}, - "email": "email@mail.com",
- "name": "Jan Kowalski",
- "company": "Allegro.pl sp. z o.o.",
- "phone": "500600700",
- "pointId": "1234567"
}, - "items": [
- {
- "waybill": "123",
- "dimensions": {
- "height": {
- "value": "12",
- "unit": "CENTIMETER"
}, - "width": {
- "value": "12",
- "unit": "CENTIMETER"
}, - "depth": {
- "value": "12",
- "unit": "CENTIMETER"
}
}, - "weight": {
- "value": "12.45",
- "unit": "KILOGRAM"
}, - "description": "Car wheels.",
- "value": {
- "amount": "2.50",
- "currency": "PLN"
}, - "type": "PACKAGE"
}
], - "type": "PACKAGE",
- "label": {
- "sender": {
- "address": {
- "street": "Główna",
- "postCode": "10-200",
- "city": "Warszawa",
- "countryCode": "PL",
- "county": "AL"
}, - "email": "email@mail.com",
- "name": "Jan Kowalski",
- "company": "Allegro.pl sp. z o.o.",
- "phone": "500600700"
}, - "fileFormat": "PDF",
- "referenceNumber": "abcd1234"
}, - "additionalServices": {
- "cashOnDelivery": {
- "value": {
- "amount": "2.50",
- "currency": "PLN"
}, - "accountNumber": "12345678901234567890123456",
- "name": "Jan Kowalski",
- "express": false
}, - "options": [
- "string"
]
}, - "state": "DRAFT"
}
Get parcels pickup date proposals Deprecated
Authorizations:
allegro:api:orders:read
allegro:api:shipments:read
) query Parameters
parcelId required | Array of strings <= 100 items [ items <= 100 characters ] Ids of parcels. Passing more than one value will search pickup dates for all of them separately. Example: |
readyDate | string <date> Example: readyDate=2020-01-01 Date when parcels will be ready. |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 504
{- "pickupDateProposals": [
- {
- "parcelId": "ff522a50-72dd-447d-a081-058a47f2a138",
- "proposals": [
- {
- "date": "2020-05-01",
- "minTime": "10:00",
- "maxTime": "14:00"
}
]
}
]
}
Request parcel pickup Deprecated
Authorizations:
allegro:api:orders:write
allegro:api:shipments:write
) path Parameters
commandId required | string Command UUID. |
Request Body schema: application/vnd.allegro.public.v1+json
parcelIds | Array of strings Ids of parcels. |
object (PickupDateProposal) Parcel pickup date. In pickup request you have to use exactly the same values as you get from |
Responses
Request samples
- Payload
{- "parcelIds": [
- "025b773f-3f14-4410-a119-b7cf66673d87"
], - "pickupDate": {
- "date": "2020-05-01",
- "minTime": "10:00",
- "maxTime": "14:00"
}
}
Response samples
- 201
- 400
- 401
- 403
{- "id": "b572cdd0-7f2c-4800-9165-15795bd95f3c",
- "input": {
- "parcelIds": [
- "025b773f-3f14-4410-a119-b7cf66673d87"
], - "pickupDate": {
- "date": "2020-05-01",
- "minTime": "10:00",
- "maxTime": "14:00"
}
}
}
Get parcel pickup status Deprecated
Authorizations:
allegro:api:orders:write
allegro:api:shipments:write
) path Parameters
commandId required | string Command UUID. |
Responses
Response samples
- 200
- 400
- 401
- 403
- 504
{- "id": "b572cdd0-7f2c-4800-9165-15795bd95f3c",
- "status": "ERROR",
- "errors": [
- {
- "code": "string",
- "details": "string",
- "message": "string",
- "path": "string",
- "userMessage": "string"
}
]
}
Get parcel label Deprecated
Authorizations:
allegro:api:orders:read
allegro:api:shipments:read
) query Parameters
parcelId required | string Id of parcel. |
pageFormat | string Enum: "A4" "A6" Label page format. Only for PDF file. |
Responses
Response samples
- 400
- 401
- 403
- 404
- 504
{- "errors": [
- {
- "code": "VALIDATION_ERROR",
- "details": "Invalid value: null",
- "message": "May not be null",
- "path": "serviceId",
- "userMessage": "May not be null"
}
]
}
Get parcels protocol Deprecated
Authorizations:
allegro:api:orders:read
allegro:api:shipments:read
) query Parameters
parcelId required | Array of strings <= 100 items [ items <= 100 characters ] Ids of parcels. Passing more than one value will generate protocol for all of them. Example: |
Responses
Response samples
- 400
- 401
- 403
- 404
- 504
{- "errors": [
- {
- "code": "VALIDATION_ERROR",
- "details": "Invalid value: null",
- "message": "May not be null",
- "path": "serviceId",
- "userMessage": "May not be null"
}
]
}
Cancel parcel Deprecated
Authorizations:
allegro:api:orders:write
allegro:api:shipments:write
) path Parameters
commandId required | string Command UUID. |
Request Body schema: application/vnd.allegro.public.v1+json
parcelId | string Id of parcel. |
Responses
Request samples
- Payload
{- "parcelId": "ff5bdf59-8c89-4dd5-bf6a-a54805be85ad"
}
Response samples
- 201
- 400
- 401
- 403
{- "id": "b572cdd0-7f2c-4800-9165-15795bd95f3c",
- "input": {
- "parcelId": "ff5bdf59-8c89-4dd5-bf6a-a54805be85ad"
}
}
Get parcel cancellation status Deprecated
Authorizations:
allegro:api:orders:write
allegro:api:shipments:write
) path Parameters
commandId required | string Command UUID. |
Responses
Response samples
- 200
- 400
- 401
- 403
- 504
{- "id": "b572cdd0-7f2c-4800-9165-15795bd95f3c",
- "status": "ERROR",
- "errors": [
- {
- "code": "string",
- "details": "string",
- "message": "string",
- "path": "string",
- "userMessage": "string"
}
]
}
Get available delivery services
Authorizations:
allegro:api:shipments:write
) Responses
Response samples
- 200
- 401
- 403
- 504
{- "services": [
- {
- "id": {
- "deliveryMethodId": "c3066682-97a3-42fe-9eb5-3beeccab840c",
- "credentialsId": "c9e6f40a-3d25-48fc-838c-055ceb1c5bc0"
}, - "name": "Allegro Courier DPD",
- "carrierId": "DPD",
- "additionalServices": [
- {
- "id": "ADDITIONAL_HANDLING",
- "name": "Non-standard parcel",
- "description": "string"
}
], - "additionalProperties": [
- {
- "id": "SENDING_CODE",
- "name": "Sending code",
- "description": "Code required to send the shipment",
- "required": false,
- "readOnly": true
}
], - "owner": "ALLEGRO",
- "marketplaces": [
- "allegro-pl"
], - "packageTypes": [
- "DOX"
], - "cashOnDelivery": {
- "limit": 50000,
- "currency": "PLN",
- "paymentType": "MONEY_TRANSFER",
- "forceRequireIban": true
}, - "insurance": {
- "limit": 50000,
- "currency": "PLN"
}, - "features": {
- "property1": "string",
- "property2": "string"
}
}
]
}
Create new shipment
Authorizations:
allegro:api:shipments:write
) Request Body schema: application/vnd.allegro.public.v1+json
commandId | string Command UUID. If empty, then system generate new one. |
required | object (ShipmentCreateRequestDto) |
Responses
Request samples
- Payload
{- "commandId": "14e142cf-e8e0-48cc-bcf6-399b5fd90b32",
- "input": {
- "deliveryMethodId": "c3066682-97a3-42fe-9eb5-3beeccab840c",
- "credentialsId": "c9e6f40a-3d25-48fc-838c-055ceb1c5bc0",
- "sender": {
- "name": "Jan Kowalski",
- "company": "Allegro.pl sp. z o.o.",
- "street": "Główna 30",
- "streetNumber": "30",
- "postalCode": "10-200",
- "city": "Warszawa",
- "state": "AL",
- "countryCode": "PL",
- "email": "email@mail.com",
- "phone": "500600700",
- "point": "A1234567"
}, - "receiver": {
- "name": "Jan Kowalski",
- "company": "Allegro.pl sp. z o.o.",
- "street": "Główna 30",
- "streetNumber": "30",
- "postalCode": "10-200",
- "city": "Warszawa",
- "state": "AL",
- "countryCode": "PL",
- "email": "email@mail.com",
- "phone": "500600700",
- "point": "A1234567"
}, - "pickup": {
- "name": "Jan Kowalski",
- "company": "Allegro.pl sp. z o.o.",
- "street": "Główna 30",
- "streetNumber": "30",
- "postalCode": "10-200",
- "city": "Warszawa",
- "state": "AL",
- "countryCode": "PL",
- "email": "email@mail.com",
- "phone": "500600700",
- "point": "A1234567"
}, - "referenceNumber": "abcd1234",
- "description": "Car wheels",
- "packages": [
- {
- "type": "string",
- "length": {
- "value": 12,
- "unit": "CENTIMETER"
}, - "width": {
- "value": 12,
- "unit": "CENTIMETER"
}, - "height": {
- "value": 12,
- "unit": "CENTIMETER"
}, - "weight": {
- "value": 12.45,
- "unit": "KILOGRAMS"
}, - "textOnLabel": "string"
}
], - "insurance": {
- "amount": "23.47",
- "currency": "PLN"
}, - "cashOnDelivery": {
- "amount": "2.50",
- "currency": "PLN",
- "ownerName": "Jan Kowalski",
- "iban": "PL48109024022441789739167589"
}, - "labelFormat": "PDF",
- "additionalServices": [
- "ADDITIONAL_HANDLING"
], - "additionalProperties": {
- "property1": "string",
- "property2": "string"
}
}
}
Response samples
- 200
- 400
- 401
- 403
- 504
{- "commandId": "14e142cf-e8e0-48cc-bcf6-399b5fd90b32",
- "input": {
- "deliveryMethodId": "c3066682-97a3-42fe-9eb5-3beeccab840c",
- "credentialsId": "c9e6f40a-3d25-48fc-838c-055ceb1c5bc0",
- "sender": {
- "name": "Jan Kowalski",
- "company": "Allegro.pl sp. z o.o.",
- "street": "Główna 30",
- "streetNumber": "30",
- "postalCode": "10-200",
- "city": "Warszawa",
- "state": "AL",
- "countryCode": "PL",
- "email": "email@mail.com",
- "phone": "500600700",
- "point": "A1234567"
}, - "receiver": {
- "name": "Jan Kowalski",
- "company": "Allegro.pl sp. z o.o.",
- "street": "Główna 30",
- "streetNumber": "30",
- "postalCode": "10-200",
- "city": "Warszawa",
- "state": "AL",
- "countryCode": "PL",
- "email": "email@mail.com",
- "phone": "500600700",
- "point": "A1234567"
}, - "pickup": {
- "name": "Jan Kowalski",
- "company": "Allegro.pl sp. z o.o.",
- "street": "Główna 30",
- "streetNumber": "30",
- "postalCode": "10-200",
- "city": "Warszawa",
- "state": "AL",
- "countryCode": "PL",
- "email": "email@mail.com",
- "phone": "500600700",
- "point": "A1234567"
}, - "referenceNumber": "abcd1234",
- "description": "Car wheels",
- "packages": [
- {
- "type": "string",
- "length": {
- "value": 12,
- "unit": "CENTIMETER"
}, - "width": {
- "value": 12,
- "unit": "CENTIMETER"
}, - "height": {
- "value": 12,
- "unit": "CENTIMETER"
}, - "weight": {
- "value": 12.45,
- "unit": "KILOGRAMS"
}, - "textOnLabel": "string"
}
], - "insurance": {
- "amount": "23.47",
- "currency": "PLN"
}, - "cashOnDelivery": {
- "amount": "2.50",
- "currency": "PLN",
- "ownerName": "Jan Kowalski",
- "iban": "PL48109024022441789739167589"
}, - "labelFormat": "PDF",
- "additionalServices": [
- "ADDITIONAL_HANDLING"
], - "additionalProperties": {
- "property1": "string",
- "property2": "string"
}
}
}
Get shipment creation command status
Authorizations:
allegro:api:shipments:write
) path Parameters
commandId required | string Example: 14e142cf-e8e0-48cc-bcf6-399b5fd90b32 Command UUID. |
Responses
Response samples
- 200
- 400
- 401
- 403
- 504
{- "commandId": "14e142cf-e8e0-48cc-bcf6-399b5fd90b32",
- "status": "IN_PROGRESS",
- "errors": [
- {
- "code": "VALIDATION_ERROR",
- "details": "Invalid value: null",
- "message": "May not be null",
- "path": "serviceId",
- "userMessage": "May not be null"
}
], - "shipmentId": "ba88f0fb-acf3-438a-877e-580da50c0874"
}
Cancel shipment
Authorizations:
allegro:api:shipments:write
) Request Body schema: application/vnd.allegro.public.v1+json
commandId | string Command UUID. If empty, then system generate new one. |
required | object (ShipmentCancelRequestDto) |
Responses
Request samples
- Payload
{- "commandId": "14e142cf-e8e0-48cc-bcf6-399b5fd90b32",
- "input": {
- "shipmentId": "ba88f0fb-acf3-438a-877e-580da50c0874"
}
}
Response samples
- 200
- 400
- 401
- 403
{- "commandId": "14e142cf-e8e0-48cc-bcf6-399b5fd90b32",
- "input": {
- "shipmentId": "ba88f0fb-acf3-438a-877e-580da50c0874"
}
}
Get shipment cancellation status
Authorizations:
allegro:api:shipments:write
) path Parameters
commandId required | string Example: 14e142cf-e8e0-48cc-bcf6-399b5fd90b32 Command UUID. |
Responses
Response samples
- 200
- 400
- 401
- 403
- 504
{- "commandId": "14e142cf-e8e0-48cc-bcf6-399b5fd90b32",
- "status": "IN_PROGRESS",
- "errors": [
- {
- "code": "VALIDATION_ERROR",
- "details": "Invalid value: null",
- "message": "May not be null",
- "path": "serviceId",
- "userMessage": "May not be null"
}
], - "shipmentId": "ba88f0fb-acf3-438a-877e-580da50c0874"
}
Get shipment details
Authorizations:
allegro:api:shipments:read
) path Parameters
shipmentId required | string Shipment id. |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 504
{- "id": "ba88f0fb-acf3-438a-877e-580da50c0874",
- "deliveryMethodId": "c3066682-97a3-42fe-9eb5-3beeccab840c",
- "credentialsId": "c9e6f40a-3d25-48fc-838c-055ceb1c5bc0",
- "sender": {
- "name": "Jan Kowalski",
- "company": "Allegro.pl sp. z o.o.",
- "street": "Główna 30",
- "streetNumber": "30",
- "postalCode": "10-200",
- "city": "Warszawa",
- "state": "AL",
- "countryCode": "PL",
- "email": "email@mail.com",
- "phone": "500600700",
- "point": "A1234567"
}, - "receiver": {
- "name": "Jan Kowalski",
- "company": "Allegro.pl sp. z o.o.",
- "street": "Główna 30",
- "streetNumber": "30",
- "postalCode": "10-200",
- "city": "Warszawa",
- "state": "AL",
- "countryCode": "PL",
- "email": "email@mail.com",
- "phone": "500600700",
- "point": "A1234567"
}, - "pickup": {
- "name": "Jan Kowalski",
- "company": "Allegro.pl sp. z o.o.",
- "street": "Główna 30",
- "streetNumber": "30",
- "postalCode": "10-200",
- "city": "Warszawa",
- "state": "AL",
- "countryCode": "PL",
- "email": "email@mail.com",
- "phone": "500600700",
- "point": "A1234567"
}, - "referenceNumber": "abcd1234",
- "description": "Car wheels",
- "packages": [
- {
- "waybill": "string",
- "type": "DOX",
- "length": {
- "value": 12,
- "unit": "CENTIMETER"
}, - "width": {
- "value": 12,
- "unit": "CENTIMETER"
}, - "height": {
- "value": 12,
- "unit": "CENTIMETER"
}, - "weight": {
- "value": 12.45,
- "unit": "KILOGRAMS"
}, - "textOnLabel": "string"
}
], - "insurance": {
- "amount": "23.47",
- "currency": "PLN"
}, - "cashOnDelivery": {
- "amount": "2.50",
- "currency": "PLN",
- "ownerName": "Jan Kowalski",
- "iban": "PL48109024022441789739167589"
}, - "createdDate": "string",
- "canceledDate": "string",
- "carrier": "string",
- "labelFormat": "PDF",
- "additionalServices": [
- "ADDITIONAL_HANDLING"
], - "additionalProperties": {
- "property1": "string",
- "property2": "string"
}
}
Get shipments labels
Authorizations:
allegro:api:shipments:read
) Request Body schema: application/vnd.allegro.public.v1+json
shipmentIds required | Array of strings [ 1 .. 2147483647 ] items |
pageSize | string Enum: "A4" "A6" Label page format. Only for PDF file. |
cutLine | boolean Put additional cut lines. Only for PDF file with A4 size. |
Responses
Request samples
- Payload
{- "shipmentIds": [
- "ba88f0fb-acf3-438a-877e-580da50c0874"
], - "pageSize": "A4",
- "cutLine": true
}
Response samples
- 400
- 401
- 403
- 404
- 504
{- "errors": [
- {
- "code": "VALIDATION_ERROR",
- "details": "Invalid value: null",
- "message": "May not be null",
- "path": "serviceId",
- "userMessage": "May not be null"
}
]
}
Get shipments protocol
Authorizations:
allegro:api:shipments:read
) Request Body schema: application/vnd.allegro.public.v1+json
shipmentIds required | Array of strings [ 1 .. 2147483647 ] items |
Responses
Request samples
- Payload
{- "shipmentIds": [
- "ba88f0fb-acf3-438a-877e-580da50c0874"
]
}
Response samples
- 400
- 401
- 403
- 404
- 504
{- "errors": [
- {
- "code": "VALIDATION_ERROR",
- "details": "Invalid value: null",
- "message": "May not be null",
- "path": "serviceId",
- "userMessage": "May not be null"
}
]
}
Get shipments pickup proposals
Authorizations:
allegro:api:shipments:write
) Request Body schema: application/vnd.allegro.public.v1+json
shipmentIds required | Array of strings [ 1 .. 2147483647 ] items |
readyDate | string Date when shipments will be ready. |
Responses
Request samples
- Payload
{- "shipmentIds": [
- "ba88f0fb-acf3-438a-877e-580da50c0874"
], - "readyDate": "2020-01-01"
}
Response samples
- 200
- 400
- 401
- 403
- 504
[- {
- "proposals": [
- {
- "shipmentId": "ba88f0fb-acf3-438a-877e-580da50c0874",
- "proposalItems": [
- {
- "id": "2023071210001300",
- "name": "2023-07-12 10:00-13:00",
- "description": "Odbiór A"
}
]
}
]
}
]
Request shipments pickup
Authorizations:
allegro:api:shipments:write
) Request Body schema: application/vnd.allegro.public.v1+json
commandId | string Command UUID. If empty, then system generate new one. |
required | object (PickupCreateRequestDto) |
Responses
Request samples
- Payload
{- "commandId": "14e142cf-e8e0-48cc-bcf6-399b5fd90b32",
- "input": {
- "shipmentIds": [
- "ba88f0fb-acf3-438a-877e-580da50c0874"
], - "pickupDateProposalId": "2023071210001300"
}
}
Response samples
- 200
- 400
- 401
- 403
{- "commandId": "14e142cf-e8e0-48cc-bcf6-399b5fd90b32",
- "input": {
- "shipmentIds": [
- "ba88f0fb-acf3-438a-877e-580da50c0874"
], - "pickupDateProposalId": "2023071210001300"
}
}
Create pickup command status
Authorizations:
allegro:api:shipments:write
) path Parameters
commandId required | string Example: 14e142cf-e8e0-48cc-bcf6-399b5fd90b32 Command UUID. |
Responses
Response samples
- 200
- 400
- 401
- 403
- 504
{- "commandId": "14e142cf-e8e0-48cc-bcf6-399b5fd90b32",
- "status": "IN_PROGRESS",
- "errors": [
- {
- "code": "VALIDATION_ERROR",
- "details": "Invalid value: null",
- "message": "May not be null",
- "path": "serviceId",
- "userMessage": "May not be null"
}
], - "pickupId": "14e142cf-e8e0-48cc-bcf6-399b5fd90b32",
- "carrierPickupId": "A10234234523"
}
[BETA] Get customer returns by provided query parameters
Authorizations:
allegro:api:orders:read
) query Parameters
customerReturnId | string One or more customer return id's. |
orderId | string One or more order id's. |
buyer.email | string One or more buyer emails. |
buyer.login | string One or more buyer logins. |
items.offerId | string One or more returned item offer id's. |
items.name | string One or more item names. |
parcels.waybill | string One or more waybill id's. |
parcels.carrierId | string One or more carrier id's. |
parcels.sender.phoneNumber | string One or more phone numbers. |
referenceNumber | string One or more reference numbers. |
from | string The ID of the last seen customer return. Customer returns created after the given customer return will be returned. |
createdAt.gte | string Date of the return in ISO 8601 format to search by greater or equal. |
createdAt.lte | string Date of the return in ISO 8601 format to search by lower or equal. |
marketplaceId | string The marketplace ID where operation was made. When the parameter is omitted, searches for operations with all marketplaces. |
status | string Current return timeline statuses. The allowed values are:
|
limit | integer <int32> [ 1 .. 1000 ] Default: 100 Limit of customer returns per page. |
offset | integer <int32> >= 0 Default: 0 The offset of elements in the response. |
Responses
Response samples
- 200
- 400
- 401
- 403
- 406
{- "count": 1,
- "customerReturns": [
- {
- "id": "a3405c27-b01c-4357-9bea-e13925708b46",
- "createdAt": "2020-01-11T09:36:57.00Z",
- "referenceNumber": "1234/Z04A",
- "orderId": "a3405c27-b01c-4357-9bea-e13925708b46",
- "buyer": {
- "email": "user-email@allegro.pl",
- "login": "User_Login"
}, - "items": [
- {
- "offerId": "3e895572-9297-4d80-b151-353deb95bff6",
- "quantity": 1,
- "name": "Product name",
- "price": {
- "amount": "123.45",
- "currency": "PLN"
}, - "reason": {
- "type": "MISTAKE",
- "userComment": "Purchased by mistake"
}
}
], - "refund": {
- "bankAccount": {
- "owner": "0000001abc",
- "accountNumber": "40114000003382916456018050",
- "iban": "PL40114000003382916456018050",
- "swift": "ALBPPLPW",
- "address": {
- "street": "Jasna",
- "city": "Warsaw",
- "postCode": "24-200",
- "countryCode": "PL"
}
}
}, - "parcels": [
- {
- "createdAt": "2020-01-11T09:36:57.663+01:00",
- "waybill": "627350807040020111873644",
- "carrierId": "INPOST",
- "sender": {
- "phoneNumber": "333444555"
}
}
], - "rejection": {
- "code": "REFUND_REJECTED",
- "reason": "Returned item is damaged.",
- "createdAt": "2020-01-11T09:36:57.663+01:00"
}, - "marketplaceId": "allegro-pl",
- "status": "DELIVERED"
}
]
}
[BETA] Get customer return by id
Authorizations:
allegro:api:orders:read
) path Parameters
customerReturnId required | string Id of the customer return. |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 406
{- "id": "a3405c27-b01c-4357-9bea-e13925708b46",
- "createdAt": "2020-01-11T09:36:57.00Z",
- "referenceNumber": "1234/Z04A",
- "orderId": "a3405c27-b01c-4357-9bea-e13925708b46",
- "buyer": {
- "email": "user-email@allegro.pl",
- "login": "User_Login"
}, - "items": [
- {
- "offerId": "3e895572-9297-4d80-b151-353deb95bff6",
- "quantity": 1,
- "name": "Product name",
- "price": {
- "amount": "123.45",
- "currency": "PLN"
}, - "reason": {
- "type": "MISTAKE",
- "userComment": "Purchased by mistake"
}
}
], - "refund": {
- "bankAccount": {
- "owner": "0000001abc",
- "accountNumber": "40114000003382916456018050",
- "iban": "PL40114000003382916456018050",
- "swift": "ALBPPLPW",
- "address": {
- "street": "Jasna",
- "city": "Warsaw",
- "postCode": "24-200",
- "countryCode": "PL"
}
}
}, - "parcels": [
- {
- "createdAt": "2020-01-11T09:36:57.663+01:00",
- "waybill": "627350807040020111873644",
- "carrierId": "INPOST",
- "sender": {
- "phoneNumber": "333444555"
}
}
], - "rejection": {
- "code": "REFUND_REJECTED",
- "reason": "Returned item is damaged.",
- "createdAt": "2020-01-11T09:36:57.663+01:00"
}, - "marketplaceId": "allegro-pl",
- "status": "DELIVERED"
}
[BETA] Reject customer return refund
Authorizations:
allegro:api:orders:write
) path Parameters
customerReturnId required | string Id of the customer return. |
Request Body schema: application/vnd.allegro.beta.v1+json
required | object Refund rejection |
Responses
Request samples
- Payload
{- "rejection": {
- "code": "REFUND_REJECTED",
- "reason": "Returned item is damaged."
}
}
Response samples
- 200
- 400
- 401
- 403
- 406
- 422
{- "id": "a3405c27-b01c-4357-9bea-e13925708b46",
- "createdAt": "2020-01-11T09:36:57.00Z",
- "referenceNumber": "1234/Z04A",
- "orderId": "a3405c27-b01c-4357-9bea-e13925708b46",
- "buyer": {
- "email": "user-email@allegro.pl",
- "login": "User_Login"
}, - "items": [
- {
- "offerId": "3e895572-9297-4d80-b151-353deb95bff6",
- "quantity": 1,
- "name": "Product name",
- "price": {
- "amount": "123.45",
- "currency": "PLN"
}, - "reason": {
- "type": "MISTAKE",
- "userComment": "Purchased by mistake"
}
}
], - "refund": {
- "bankAccount": {
- "owner": "0000001abc",
- "accountNumber": "40114000003382916456018050",
- "iban": "PL40114000003382916456018050",
- "swift": "ALBPPLPW",
- "address": {
- "street": "Jasna",
- "city": "Warsaw",
- "postCode": "24-200",
- "countryCode": "PL"
}
}
}, - "parcels": [
- {
- "createdAt": "2020-01-11T09:36:57.663+01:00",
- "waybill": "627350807040020111873644",
- "carrierId": "INPOST",
- "sender": {
- "phoneNumber": "333444555"
}
}
], - "rejection": {
- "code": "REFUND_REJECTED",
- "reason": "Returned item is damaged.",
- "createdAt": "2020-01-11T09:36:57.663+01:00"
}, - "marketplaceId": "allegro-pl",
- "status": "DELIVERED"
}
Get a refund application details
Authorizations:
allegro:api:orders:read
) path Parameters
claimId required | string Refund application ID. |
Responses
Response samples
- 200
{- "id": "09f0b4cc-7880-11e9-8f9e-2a86e4085a59",
- "status": "IN_PROGRESS",
- "quantity": 1,
- "commission": {
- "amount": 100,
- "currency": "PLN"
}, - "buyer": {
- "id": "12345678",
- "login": "JanKowalski"
}, - "createdAt": "2019-08-24T14:15:22Z",
- "lineItem": {
- "id": "09f0b4cc-7880-11e9-8f9e-2a86e4085a59",
- "quantity": 1,
- "boughtAt": "2019-08-24T14:15:22Z",
- "offer": {
- "id": "12345678",
- "name": "string"
}
}, - "type": "MANUAL"
}
Cancel a refund application
Authorizations:
allegro:api:orders:write
) path Parameters
claimId required | string Refund application ID. |
Responses
Get a list of refund applications
Authorizations:
allegro:api:orders:read
) query Parameters
lineItem.offer.id | string ID of the offer associated with the refund application. |
buyer.login | string Login of the buyer that made the purchase associated with the refund application. |
status | string Enum: "IN_PROGRESS" "WAITING_FOR_PAYMENT_REFUND" "GRANTED" "REJECTED" "REJECTED_AFTER_APPEAL" "CANCELLED" "APPEALED" Status of the refund application. |
limit | integer <int32> [ 1 .. 100 ] Default: 25 Maximum number of returned refund applications in response. |
offset | integer <int32> >= 0 Default: 0 Index of the first returned refund application from all search results. |
Responses
Response samples
- 200
{- "refundClaims": [
- {
- "id": "09f0b4cc-7880-11e9-8f9e-2a86e4085a59",
- "status": "IN_PROGRESS",
- "quantity": 1,
- "commission": {
- "amount": 100,
- "currency": "PLN"
}, - "buyer": {
- "id": "12345678",
- "login": "JanKowalski"
}, - "createdAt": "2019-08-24T14:15:22Z",
- "lineItem": {
- "id": "09f0b4cc-7880-11e9-8f9e-2a86e4085a59",
- "quantity": 1,
- "boughtAt": "2019-08-24T14:15:22Z",
- "offer": {
- "id": "12345678",
- "name": "string"
}
}, - "type": "MANUAL"
}
], - "count": 0
}
Create a refund application
Authorizations:
allegro:api:orders:write
) Request Body schema: application/vnd.allegro.public.v1+json
object Purchase for which a refund application will be created. | |
quantity | integer <int32> >= 1 Quantity of product for which the refund application will be created. Must be greater than zero. |
Responses
Request samples
- Payload
{- "lineItem": {
- "id": "string"
}, - "quantity": 1
}
Response samples
- 201
{- "id": "string"
}
Get the user's return policies
Authorizations:
allegro:api:sale:settings:read
) query Parameters
limit | integer <int32> [ 1 .. 60 ] Default: 60 The limit of elements in the response. |
offset | integer <int32> [ 0 .. 59 ] Default: 0 The offset of elements in the response. |
Responses
Response samples
- 200
{- "count": 0,
- "returnPolicies": [
- {
- "id": "string",
- "name": "string"
}
]
}
Create new user's return policy
Authorizations:
allegro:api:sale:settings:write
) Request Body schema: application/vnd.allegro.public.v1+json
Return Policy
name required | string <= 200 characters Return policy name. |
required | object (ReturnPolicyAvailability) |
withdrawalPeriod | string Period in ISO 8601 format. Only periods in full days are accepted. |
required | object (ReturnPolicyReturnCost) |
required | object (ReturnPolicyAddress) |
object (ReturnPolicyContact) | |
required | object (ReturnPolicyOptions) |
Responses
Request samples
- Payload
{- "name": "string",
- "availability": {
- "range": "RESTRICTED",
- "restrictionCause": {
- "name": "SEALED_MEDIA",
- "description": "string"
}
}, - "withdrawalPeriod": "P14D",
- "returnCost": {
- "coveredBy": "SELLER"
}, - "address": {
- "name": "Allegro.pl sp. z o.o.",
- "street": "Grunwaldzka 182",
- "postCode": "11-232",
- "city": "Poznań",
- "countryCode": "PL"
}, - "contact": {
- "phoneNumber": "123 123 123",
- "email": "useridentifier@domain.com"
}, - "options": {
- "cashOnDeliveryNotAllowed": true,
- "freeAccessoriesReturnRequired": true,
- "refundLoweredByReceivedDiscount": true,
- "businessReturnAllowed": false,
- "collectBySellerOnly": false
}
}
Response samples
- 201
{- "id": "09f0b4cc-7880-11e9-8f9e-2a86e4085a59",
- "seller": {
- "id": "string"
}, - "name": "string",
- "availability": {
- "range": "RESTRICTED",
- "restrictionCause": {
- "name": "SEALED_MEDIA",
- "description": "string"
}
}, - "withdrawalPeriod": "P14D",
- "returnCost": {
- "coveredBy": "SELLER"
}, - "address": {
- "name": "Allegro.pl sp. z o.o.",
- "street": "Grunwaldzka 182",
- "postCode": "11-232",
- "city": "Poznań",
- "countryCode": "PL"
}, - "description": "string",
- "contact": {
- "phoneNumber": "123 123 123",
- "email": "useridentifier@domain.com"
}, - "options": {
- "cashOnDeliveryNotAllowed": true,
- "freeAccessoriesReturnRequired": true,
- "refundLoweredByReceivedDiscount": true,
- "businessReturnAllowed": false,
- "collectBySellerOnly": false
}
}
Get the user's return policy
Authorizations:
allegro:api:sale:settings:read
) path Parameters
returnPolicyId required | string The ID of the return policy. |
Responses
Response samples
- 200
{- "id": "09f0b4cc-7880-11e9-8f9e-2a86e4085a59",
- "seller": {
- "id": "string"
}, - "name": "string",
- "availability": {
- "range": "RESTRICTED",
- "restrictionCause": {
- "name": "SEALED_MEDIA",
- "description": "string"
}
}, - "withdrawalPeriod": "P14D",
- "returnCost": {
- "coveredBy": "SELLER"
}, - "address": {
- "name": "Allegro.pl sp. z o.o.",
- "street": "Grunwaldzka 182",
- "postCode": "11-232",
- "city": "Poznań",
- "countryCode": "PL"
}, - "description": "string",
- "contact": {
- "phoneNumber": "123 123 123",
- "email": "useridentifier@domain.com"
}, - "options": {
- "cashOnDeliveryNotAllowed": true,
- "freeAccessoriesReturnRequired": true,
- "refundLoweredByReceivedDiscount": true,
- "businessReturnAllowed": false,
- "collectBySellerOnly": false
}
}
Change the user's return policy
Authorizations:
allegro:api:sale:settings:write
) path Parameters
returnPolicyId required | string The ID of the return policy. |
Request Body schema: application/vnd.allegro.public.v1+json
Return Policy
name required | string <= 200 characters Return policy name. |
required | object (ReturnPolicyAvailability) |
withdrawalPeriod | string Period in ISO 8601 format. Only periods in full days are accepted. |
required | object (ReturnPolicyReturnCost) |
required | object (ReturnPolicyAddress) |
object (ReturnPolicyContact) | |
required | object (ReturnPolicyOptions) |
Responses
Request samples
- Payload
{- "name": "string",
- "availability": {
- "range": "RESTRICTED",
- "restrictionCause": {
- "name": "SEALED_MEDIA",
- "description": "string"
}
}, - "withdrawalPeriod": "P14D",
- "returnCost": {
- "coveredBy": "SELLER"
}, - "address": {
- "name": "Allegro.pl sp. z o.o.",
- "street": "Grunwaldzka 182",
- "postCode": "11-232",
- "city": "Poznań",
- "countryCode": "PL"
}, - "contact": {
- "phoneNumber": "123 123 123",
- "email": "useridentifier@domain.com"
}, - "options": {
- "cashOnDeliveryNotAllowed": true,
- "freeAccessoriesReturnRequired": true,
- "refundLoweredByReceivedDiscount": true,
- "businessReturnAllowed": false,
- "collectBySellerOnly": false
}
}
Response samples
- 200
{- "id": "09f0b4cc-7880-11e9-8f9e-2a86e4085a59",
- "seller": {
- "id": "string"
}, - "name": "string",
- "availability": {
- "range": "RESTRICTED",
- "restrictionCause": {
- "name": "SEALED_MEDIA",
- "description": "string"
}
}, - "withdrawalPeriod": "P14D",
- "returnCost": {
- "coveredBy": "SELLER"
}, - "address": {
- "name": "Allegro.pl sp. z o.o.",
- "street": "Grunwaldzka 182",
- "postCode": "11-232",
- "city": "Poznań",
- "countryCode": "PL"
}, - "description": "string",
- "contact": {
- "phoneNumber": "123 123 123",
- "email": "useridentifier@domain.com"
}, - "options": {
- "cashOnDeliveryNotAllowed": true,
- "freeAccessoriesReturnRequired": true,
- "refundLoweredByReceivedDiscount": true,
- "businessReturnAllowed": false,
- "collectBySellerOnly": false
}
}
Get the user's implied warranties
Authorizations:
allegro:api:sale:settings:read
) query Parameters
limit | integer <int32> [ 1 .. 60 ] Default: 60 The limit of elements in the response. |
offset | integer <int32> [ 0 .. 59 ] Default: 0 The offset of elements in the response. |
Responses
Response samples
- 200
{- "count": 0,
- "impliedWarranties": [
- {
- "id": "string",
- "name": "string"
}
]
}
Create new user's implied warranty
Authorizations:
allegro:api:sale:settings:write
) Request Body schema: application/vnd.allegro.public.v1+json
Implied warranty
name | string <= 200 characters Warranty name. |
object (ImpliedWarrantyPeriod) | |
object (ImpliedWarrantyPeriod) | |
object (AfterSalesServicesAddress) | |
description | string <= 10240 characters Implied warranty description. |
Responses
Request samples
- Payload
{- "name": "string",
- "individual": {
- "period": "P2Y"
}, - "corporate": {
- "period": "P2Y"
}, - "address": {
- "name": "Allegro.pl sp. z o.o.",
- "street": "Grunwaldzka 182",
- "postCode": "11-232",
- "city": "Poznań",
- "countryCode": "PL"
}, - "description": "string"
}
Response samples
- 201
{- "id": "09f0b4cc-7880-11e9-8f9e-2a86e4085a59",
- "seller": {
- "id": "string"
}, - "name": "string",
- "individual": {
- "period": "P2Y"
}, - "corporate": {
- "period": "P2Y"
}, - "address": {
- "name": "Allegro.pl sp. z o.o.",
- "street": "Grunwaldzka 182",
- "postCode": "11-232",
- "city": "Poznań",
- "countryCode": "PL"
}, - "description": "string"
}
Get the user's implied warranty
Authorizations:
allegro:api:sale:settings:read
) path Parameters
impliedWarrantyId required | string The ID of the implied warranty. |
Responses
Response samples
- 200
{- "id": "09f0b4cc-7880-11e9-8f9e-2a86e4085a59",
- "seller": {
- "id": "string"
}, - "name": "string",
- "individual": {
- "period": "P2Y"
}, - "corporate": {
- "period": "P2Y"
}, - "address": {
- "name": "Allegro.pl sp. z o.o.",
- "street": "Grunwaldzka 182",
- "postCode": "11-232",
- "city": "Poznań",
- "countryCode": "PL"
}, - "description": "string"
}
Change the user's implied warranty
Authorizations:
allegro:api:sale:settings:write
) path Parameters
impliedWarrantyId required | string The ID of the implied warranty. |
Request Body schema: application/vnd.allegro.public.v1+json
Implied warranty
name | string <= 200 characters Warranty name. |
object (ImpliedWarrantyPeriod) | |
object (ImpliedWarrantyPeriod) | |
object (AfterSalesServicesAddress) | |
description | string <= 10240 characters Implied warranty description. |
Responses
Request samples
- Payload
{- "name": "string",
- "individual": {
- "period": "P2Y"
}, - "corporate": {
- "period": "P2Y"
}, - "address": {
- "name": "Allegro.pl sp. z o.o.",
- "street": "Grunwaldzka 182",
- "postCode": "11-232",
- "city": "Poznań",
- "countryCode": "PL"
}, - "description": "string"
}
Response samples
- 200
{- "id": "09f0b4cc-7880-11e9-8f9e-2a86e4085a59",
- "seller": {
- "id": "string"
}, - "name": "string",
- "individual": {
- "period": "P2Y"
}, - "corporate": {
- "period": "P2Y"
}, - "address": {
- "name": "Allegro.pl sp. z o.o.",
- "street": "Grunwaldzka 182",
- "postCode": "11-232",
- "city": "Poznań",
- "countryCode": "PL"
}, - "description": "string"
}
Get the user's warranties
Authorizations:
allegro:api:sale:settings:read
) query Parameters
limit | integer <int32> [ 1 .. 60 ] Default: 60 The limit of elements in the response. |
offset | integer <int32> [ 0 .. 59 ] Default: 0 The offset of elements in the response. |
Responses
Response samples
- 200
{- "count": 0,
- "warranties": [
- {
- "id": "string",
- "name": "string"
}
]
}
Create new user's warranty
Authorizations:
allegro:api:sale:settings:write
) Request Body schema: application/vnd.allegro.public.v1+json
Warranty
name | string <= 200 characters Warranty name. |
type | string (WarrantyType) Enum: "MANUFACTURER" "SELLER" Defines who is warrantor. |
object (WarrantyPeriod) | |
object (WarrantyPeriod) | |
object (WarrantyAttachment) | |
description | string <= 10240 characters Warranty description. |
Responses
Request samples
- Payload
{- "name": "string",
- "type": "MANUFACTURER",
- "individual": {
- "period": "P12M",
- "lifetime": false
}, - "corporate": {
- "period": "P12M",
- "lifetime": false
}, - "attachment": {
- "id": "54702c96-4ccd-4c0e-b4c7-382a71e810b5",
- "name": "warranty.pdf"
}, - "description": "string"
}
Response samples
- 201
{- "id": "09f0b4cc-7880-11e9-8f9e-2a86e4085a59",
- "seller": {
- "id": "string"
}, - "name": "string",
- "type": "MANUFACTURER",
- "individual": {
- "period": "P12M",
- "lifetime": false
}, - "corporate": {
- "period": "P12M",
- "lifetime": false
}, - "attachment": {
- "id": "54702c96-4ccd-4c0e-b4c7-382a71e810b5",
- "name": "string",
- "url": "string"
}, - "description": "string"
}
Get the user's warranty
Authorizations:
allegro:api:sale:settings:read
) path Parameters
warrantyId required | string The ID of the warranty. |
Responses
Response samples
- 200
{- "id": "09f0b4cc-7880-11e9-8f9e-2a86e4085a59",
- "seller": {
- "id": "string"
}, - "name": "string",
- "type": "MANUFACTURER",
- "individual": {
- "period": "P12M",
- "lifetime": false
}, - "corporate": {
- "period": "P12M",
- "lifetime": false
}, - "attachment": {
- "id": "54702c96-4ccd-4c0e-b4c7-382a71e810b5",
- "name": "string",
- "url": "string"
}, - "description": "string"
}
Change the user's warranty
Authorizations:
allegro:api:sale:settings:write
) path Parameters
warrantyId required | string The ID of the warranty. |
Request Body schema: application/vnd.allegro.public.v1+json
Warranty
name | string <= 200 characters Warranty name. |
type | string (WarrantyType) Enum: "MANUFACTURER" "SELLER" Defines who is warrantor. |
object (WarrantyPeriod) | |
object (WarrantyPeriod) | |
object (WarrantyAttachment) | |
description | string <= 10240 characters Warranty description. |
Responses
Request samples
- Payload
{- "name": "string",
- "type": "MANUFACTURER",
- "individual": {
- "period": "P12M",
- "lifetime": false
}, - "corporate": {
- "period": "P12M",
- "lifetime": false
}, - "attachment": {
- "id": "54702c96-4ccd-4c0e-b4c7-382a71e810b5",
- "name": "warranty.pdf"
}, - "description": "string"
}
Response samples
- 200
{- "id": "09f0b4cc-7880-11e9-8f9e-2a86e4085a59",
- "seller": {
- "id": "string"
}, - "name": "string",
- "type": "MANUFACTURER",
- "individual": {
- "period": "P12M",
- "lifetime": false
}, - "corporate": {
- "period": "P12M",
- "lifetime": false
}, - "attachment": {
- "id": "54702c96-4ccd-4c0e-b4c7-382a71e810b5",
- "name": "string",
- "url": "string"
}, - "description": "string"
}
Create a warranty attachment metadata
You can attach PDF files to warranties. Uploading attachments flow:
- Create an attachment object to receive an upload URL (POST /after-sales-service-conditions/attachments),
- Use the upload URL to submit the PDF file (PUT /after-sales-service-conditions/attachments/{attachmentId}),
- Create (or update) warranty with attachment (POST /after-sales-service-conditions/warranties).
Authorizations:
allegro:api:sale:settings:write
) Request Body schema: application/vnd.allegro.public.v1+json
After sale services attachment
name | string |
Responses
Request samples
- Payload
{- "name": "uploaded_file.pdf"
}
Response samples
- 201
{- "id": "54702c96-4ccd-4c0e-b4c7-382a71e810b5",
- "name": "string",
- "url": "string"
}
Upload an warranty attachment
Upload an after sale services attachment. This operation should be used after creating an offer attachment with POST /sale/offer-attachments Important! You can find the URL address to upload the file to our server in the Location response header of POST /after-sales-service-conditions/attachments. The URL is unique and one-time. As its format may change in time, you should always use the address from the header. Do not compose the address on your own. Read more: PL / EN.
Authorizations:
allegro:api:sale:settings:write
) path Parameters
attachmentId required | string The ID of the attachment. |
Request Body schema: application/pdf
File in a binary format
Responses
Response samples
- 200
{- "id": "54702c96-4ccd-4c0e-b4c7-382a71e810b5",
- "name": "string",
- "url": "string"
}
Get the user's shipping rates
Authorizations:
allegro:api:sale:settings:read
) query Parameters
marketplace | string Example: marketplace=allegro-cz Allows to filter shipping rates by marketplace that they are qualified for. |
Responses
Response samples
- 200
- 401
- 403
{- "shippingRates": [
- {
- "id": "758fcd59-fbfa-4453-ae07-4800d72c2ca0",
- "name": "Cennik z wysyłką do Czech",
- "marketplaces": [
- {
- "id": "allegro-pl"
}, - {
- "id": "allegro-cz"
}
]
}
]
}
Create a new shipping rates set
Authorizations:
allegro:api:sale:settings:write
) Request Body schema: application/vnd.allegro.public.v1+json
Shipping rates set
id | string Shipping rates set ID (UUID) When creating a shipping rates set (Post) the field is ignored. It is required when updating (Put) a shipping rates. |
name | string [ 1 .. 64 ] characters User defined name of the shipping rates set. It may only contain: letters, numbers, hyphens, dots, commas and spaces. |
required | Array of objects (ShippingRate) [ items ] |
lastModified | string Date and time of the last modification of the set in UTC ISO 8601 format. When creating (Post) or updating (Put) a shipping rates set the field is ignored. |
Responses
Request samples
- Payload
{- "id": "string",
- "name": "string",
- "rates": [
- {
- "deliveryMethod": {
- "id": "string"
}, - "maxQuantityPerPackage": 1,
- "maxPackageWeight": {
- "value": "string",
- "unit": "string"
}, - "firstItemRate": {
- "amount": "string",
- "currency": "string"
}, - "nextItemRate": {
- "amount": "string",
- "currency": "string"
}, - "shippingTime": {
- "from": "string",
- "to": "string"
}
}
], - "lastModified": "string"
}
Response samples
- 201
- 400
- 401
- 422
{- "id": "string",
- "name": "string",
- "rates": [
- {
- "deliveryMethod": {
- "id": "string"
}, - "maxQuantityPerPackage": 1,
- "maxPackageWeight": {
- "value": "string",
- "unit": "string"
}, - "firstItemRate": {
- "amount": "string",
- "currency": "string"
}, - "nextItemRate": {
- "amount": "string",
- "currency": "string"
}, - "shippingTime": {
- "from": "string",
- "to": "string"
}
}
], - "lastModified": "string"
}
Get the details of a shipping rates set
Authorizations:
allegro:api:sale:settings:read
) path Parameters
id required | string Shipping rates set identifier. |
Responses
Response samples
- 200
- 401
- 403
- 404
{- "id": "758fcd59-fbfa-4453-ae07-4800d72c2ca6",
- "name": "Mój cennik",
- "rates": [
- {
- "deliveryMethod": {
- "id": "758fcd59-fbfa-4453-ae07-4800d72c2ca5"
}, - "maxQuantityPerPackage": 6,
- "maxPackageWeight": {
- "value": "19.000",
- "unit": "KILOGRAM"
}, - "firstItemRate": {
- "amount": "12.00",
- "currency": "PLN"
}, - "nextItemRate": {
- "amount": "2.50",
- "currency": "PLN"
}, - "shippingTime": {
- "from": "P1D",
- "to": "P20D"
}
}
], - "lastModified": "2018-04-05T12:20:23.974Z"
}
Edit a user's shipping rates set
Authorizations:
allegro:api:sale:settings:write
) path Parameters
id required | string Shipping rates set identifier. |
Request Body schema: application/vnd.allegro.public.v1+json
Shipping rates set
id | string Shipping rates set ID (UUID) When creating a shipping rates set (Post) the field is ignored. It is required when updating (Put) a shipping rates. |
name | string [ 1 .. 64 ] characters User defined name of the shipping rates set. It may only contain: letters, numbers, hyphens, dots, commas and spaces. |
required | Array of objects (ShippingRate) [ items ] |
lastModified | string Date and time of the last modification of the set in UTC ISO 8601 format. When creating (Post) or updating (Put) a shipping rates set the field is ignored. |
Responses
Request samples
- Payload
{- "id": "string",
- "name": "string",
- "rates": [
- {
- "deliveryMethod": {
- "id": "string"
}, - "maxQuantityPerPackage": 1,
- "maxPackageWeight": {
- "value": "string",
- "unit": "string"
}, - "firstItemRate": {
- "amount": "string",
- "currency": "string"
}, - "nextItemRate": {
- "amount": "string",
- "currency": "string"
}, - "shippingTime": {
- "from": "string",
- "to": "string"
}
}
], - "lastModified": "string"
}
Response samples
- 200
- 400
- 401
- 403
- 404
- 422
{- "id": "string",
- "name": "string",
- "rates": [
- {
- "deliveryMethod": {
- "id": "string"
}, - "maxQuantityPerPackage": 1,
- "maxPackageWeight": {
- "value": "string",
- "unit": "string"
}, - "firstItemRate": {
- "amount": "string",
- "currency": "string"
}, - "nextItemRate": {
- "amount": "string",
- "currency": "string"
}, - "shippingTime": {
- "from": "string",
- "to": "string"
}
}
], - "lastModified": "string"
}
Get the user's delivery settings
Authorizations:
allegro:api:sale:settings:read
) query Parameters
marketplace.id | string Marketplace for which delivery settings will be returned. By default (if the marketplace parameter is not set) the marketplace on which the seller has registered is used. However, we recommend that the marketplace.id query parameter should always be explicitly set. |
Responses
Response samples
- 200
- 401
- 403
- 422
{- "marketplace": {
- "id": "allegro-pl"
}, - "freeDelivery": {
- "amount": "123.45",
- "currency": "PLN"
}, - "abroadFreeDelivery": {
- "amount": "900.12",
- "currency": "PLN"
}, - "joinPolicy": {
- "strategy": "MIN"
}, - "customCost": {
- "allowed": false
}, - "updatedAt": "string"
}
Modify the user's delivery settings
Authorizations:
allegro:api:sale:settings:write
) Request Body schema: application/vnd.allegro.public.v1+json
Delivery settings set
object The marketplace for which delivery settings will be modified. By default (if the marketplace parameter is not set) the marketplace on which the seller has registered is used. However, we recommend that the marketplace parameter should always be explicitly set. | |
object A minimum total order amount required to qualify for free domestic delivery (for example for allegro-cz marketplace, only Czechia is treated as domestic). If you do not want to set free domestic delivery threshold, do not set this value. | |
object A minimum total order amount required to qualify for free foreign delivery (for example for allegro-cz marketplace, all delivery countries other than Czechia are treated as foreign). If you do not want to set free foreign delivery threshold, do not set this value. | |
required | object Policy of calculating delivery costs. |
required | object Policy of custom delivery cost. |
Responses
Request samples
- Payload
{- "marketplace": {
- "id": "allegro-pl"
}, - "freeDelivery": {
- "amount": "123.45",
- "currency": "PLN"
}, - "abroadFreeDelivery": {
- "amount": "900.12",
- "currency": "PLN"
}, - "joinPolicy": {
- "strategy": "MIN"
}, - "customCost": {
- "allowed": false
}
}
Response samples
- 200
- 401
- 403
- 422
{- "marketplace": {
- "id": "allegro-pl"
}, - "freeDelivery": {
- "amount": "123.45",
- "currency": "PLN"
}, - "abroadFreeDelivery": {
- "amount": "900.12",
- "currency": "PLN"
}, - "joinPolicy": {
- "strategy": "MIN"
}, - "customCost": {
- "allowed": false
}, - "updatedAt": "string"
}
Get the list of delivery methods
Authorizations:
query Parameters
marketplace | string Example: marketplace=allegro-pl Allows to filter delivery methods by marketplace id. |
Responses
Response samples
- 200
- 401
{- "deliveryMethods": [
- {
- "id": "758fcd59-fbfa-4453-ae07-4800d72c2ca5",
- "name": "List polecony priorytetowy",
- "marketplaces": [
- "allegro-pl"
], - "paymentPolicy": "IN_ADVANCE",
- "allegroEndorsed": false,
- "shippingRatesConstraints": {
- "allowed": true,
- "maxQuantityPerPackage": {
- "max": 999999
}, - "maxPackageWeight": {
- "supported": true,
- "min": "1.000",
- "max": "30.000",
- "unit": "KILOGRAM"
}, - "firstItemRate": {
- "min": "0.00",
- "max": "100000000.00",
- "currency": "PLN"
}, - "nextItemRate": {
- "min": "0.00",
- "max": "100000000.00",
- "currency": "PLN"
}, - "shippingTime": {
- "default": {
- "from": "PT24H",
- "to": "PT48H"
}, - "customizable": true
}
}
}
]
}
Create additional services group
Authorizations:
allegro:api:sale:settings:write
) Request Body schema: application/vnd.allegro.public.v1+json
Additional service group body
name required | string [ 1 .. 100 ] characters Name of the group provided by merchant, invisible for buyers. |
language required | string 5 characters IETF language tag. Must be equal to main language for given marketplace: 'pl-PL' on allegro.pl and 'cs-CZ' on allegro.cz while creating new group. |
required | Array of objects (AdditionalServiceRequest) [ items ] |
Responses
Request samples
- Payload
{- "name": "Gift wrap only",
- "language": "pl-PL",
- "additionalServices": [
- {
- "definition": {
- "id": "GIFT_WRAP"
}, - "description": "string",
- "configurations": [
- {
- "constraintCriteria": {
- "country": "string",
- "type": "COUNTRY_SAME_QUANTITY",
- "deliveryMethods": [
- {
- "id": "string"
}
]
}, - "price": {
- "amount": "123.45",
- "currency": "PLN"
}
}
]
}
]
}
Response samples
- 201
{- "additionalServices": [
- {
- "configurations": [
- {
- "constraintCriteria": {
- "country": "string",
- "type": "COUNTRY_SAME_QUANTITY",
- "deliveryMethods": [
- {
- "id": "string"
}
]
}, - "price": {
- "amount": "123.45",
- "currency": "PLN"
}
}
], - "definition": {
- "id": "GIFT_WRAP"
}, - "description": "Wrap as a gift in pretty colours paper"
}
], - "createdAt": "2019-08-24T14:15:22Z",
- "id": "string",
- "updatedAt": "2019-08-24T14:15:22Z",
- "name": "Gift wrap only",
- "seller": {
- "id": "string"
}, - "language": "pl-PL"
}
Get the user's additional services groups
Authorizations:
allegro:api:sale:settings:read
) query Parameters
offset | integer <int32> >= 0 Default: 0 The offset of elements in the response. |
limit | integer <int32> [ 1 .. 1000 ] Default: 100 The limit of elements in the response. |
Responses
Response samples
- 200
{- "additionalServicesGroups": [
- {
- "additionalServices": [
- {
- "configurations": [
- {
- "constraintCriteria": {
- "country": "string",
- "type": "COUNTRY_SAME_QUANTITY",
- "deliveryMethods": [
- {
- "id": null
}
]
}, - "price": {
- "amount": "123.45",
- "currency": "PLN"
}
}
], - "definition": {
- "id": "GIFT_WRAP"
}, - "description": "Wrap as a gift in pretty colours paper"
}
], - "createdAt": "2019-08-24T14:15:22Z",
- "id": "string",
- "updatedAt": "2019-08-24T14:15:22Z",
- "name": "Gift wrap only",
- "seller": {
- "id": "string"
}, - "language": "pl-PL"
}
]
}
Get the additional services definitions by categories
Authorizations:
allegro:api:sale:settings:read
) Responses
Response samples
- 200
{- "categories": [
- {
- "name": "Installation/assembly services",
- "definitions": [
- {
- "id": "CARRY_IN",
- "name": "Home delivery",
- "description": {
- "hint": "Describe how you gonna pack product as a gift, what paper you use etc.",
- "editable": true,
- "default": "Home delivery and installation/assembly of refrigerator, changing door opening direction, disassembly of used equipment, collection of used equipment."
}, - "maxPrice": {
- "amount": "123.45",
- "currency": "PLN"
}, - "availableConstraints": [
- {
- "type": "string",
- "availableDeliveryMethods": [
- "string"
]
}
], - "updatedAt": "2019-08-24T14:15:22Z"
}
]
}
]
}
Get the details of an additional services group
Authorizations:
allegro:api:sale:settings:read
) path Parameters
groupId required | string Additional Service Group ID. |
Responses
Response samples
- 200
{- "additionalServices": [
- {
- "configurations": [
- {
- "constraintCriteria": {
- "country": "string",
- "type": "COUNTRY_SAME_QUANTITY",
- "deliveryMethods": [
- {
- "id": "string"
}
]
}, - "price": {
- "amount": "123.45",
- "currency": "PLN"
}
}
], - "definition": {
- "id": "GIFT_WRAP"
}, - "description": "Wrap as a gift in pretty colours paper"
}
], - "createdAt": "2019-08-24T14:15:22Z",
- "id": "string",
- "updatedAt": "2019-08-24T14:15:22Z",
- "name": "Gift wrap only",
- "seller": {
- "id": "string"
}, - "language": "pl-PL"
}
Modify an additional services group
Authorizations:
allegro:api:sale:settings:write
) path Parameters
groupId required | string Additional service group ID. |
Request Body schema: application/vnd.allegro.public.v1+json
Additional service group body
name required | string [ 1 .. 100 ] characters Name of the group provided by merchant, invisible for buyers. |
language required | string 5 characters IETF language tag. Must be equal to main language for given marketplace: 'pl-PL' on allegro.pl and 'cs-CZ' on allegro.cz while creating new group. |
required | Array of objects (AdditionalServiceRequest) [ items ] |
Responses
Request samples
- Payload
{- "name": "Gift wrap only",
- "language": "pl-PL",
- "additionalServices": [
- {
- "definition": {
- "id": "GIFT_WRAP"
}, - "description": "string",
- "configurations": [
- {
- "constraintCriteria": {
- "country": "string",
- "type": "COUNTRY_SAME_QUANTITY",
- "deliveryMethods": [
- {
- "id": "string"
}
]
}, - "price": {
- "amount": "123.45",
- "currency": "PLN"
}
}
]
}
]
}
Response samples
- 200
{- "additionalServices": [
- {
- "configurations": [
- {
- "constraintCriteria": {
- "country": "string",
- "type": "COUNTRY_SAME_QUANTITY",
- "deliveryMethods": [
- {
- "id": "string"
}
]
}, - "price": {
- "amount": "123.45",
- "currency": "PLN"
}
}
], - "definition": {
- "id": "GIFT_WRAP"
}, - "description": "Wrap as a gift in pretty colours paper"
}
], - "createdAt": "2019-08-24T14:15:22Z",
- "id": "string",
- "updatedAt": "2019-08-24T14:15:22Z",
- "name": "Gift wrap only",
- "seller": {
- "id": "string"
}, - "language": "pl-PL"
}
Get translations for specified group
Authorizations:
allegro:api:sale:settings:read
) path Parameters
groupId required | string Additional Service Group ID. |
query Parameters
language | string 5 characters Example: language=en-US IETF language tag. When provided, the response will contain translations in only that language (if exists). |
Responses
Response samples
- 200
{- "translations": [
- {
- "language": "pl-PL",
- "additionalServices": {
- "translation": [
- {
- "definition": {
- "id": "GIFT_WRAP"
}, - "description": "Wrap product in a nice colours paper."
}
], - "type": "MANUAL"
}
}
]
}
Create/Update translations for specified group and language
Authorizations:
allegro:api:sale:settings:write
) path Parameters
groupId required | string Additional Service Group ID. |
language required | string 5 characters Example: pl-PL IETF Language tag. |
Request Body schema: application/vnd.allegro.public.v1+json
Additonal service group translation.
object (AdditionalServicesGroupTranslationWrapper) |
Responses
Request samples
- Payload
{- "additionalServices": {
- "translation": [
- {
- "definition": {
- "id": "GIFT_WRAP"
}, - "description": "Wrap product in a nice colours paper."
}
]
}
}
Response samples
- 200
{- "language": "pl-PL",
- "additionalServices": {
- "translation": [
- {
- "definition": {
- "id": "GIFT_WRAP"
}, - "description": "Wrap product in a nice colours paper."
}
], - "type": "MANUAL"
}
}
Delete a translation for a specified group and language
Authorizations:
allegro:api:sale:offers:write
) path Parameters
groupId required | string Additional service group ID. |
language required | string 5 characters Example: pl-PL IETF Language tag. |
Responses
Get a size table
Authorizations:
allegro:api:sale:settings:read
) path Parameters
tableId required | string Table identifier. |
Responses
Response samples
- 200
{- "headers": [
- {
- "name": "string"
}
], - "id": "string",
- "name": "string",
- "template": {
- "id": "string"
}, - "values": [
- {
- "cells": [
- "string"
]
}
]
}
Update a size table
Authorizations:
allegro:api:sale:settings:write
) path Parameters
tableId required | string Table identifier. |
Request Body schema: application/vnd.allegro.public.v1+json
Size table details
name required | string size table name |
required | Array of objects (Header) [ items ] size table headers |
required | Array of objects (Cells) [ items ] size table cells |
Responses
Request samples
- Payload
{- "name": "string",
- "headers": [
- {
- "name": "string"
}
], - "values": [
- {
- "cells": [
- "string"
]
}
]
}
Response samples
- 200
{- "headers": [
- {
- "name": "string"
}
], - "id": "string",
- "name": "string",
- "template": {
- "id": "string"
}, - "values": [
- {
- "cells": [
- "string"
]
}
]
}
Get the user's size tables
Authorizations:
allegro:api:sale:settings:read
) Responses
Response samples
- 200
{- "tables": [
- {
- "headers": [
- {
- "name": "string"
}
], - "id": "string",
- "name": "string",
- "template": {
- "id": "string"
}, - "values": [
- {
- "cells": [
- "string"
]
}
]
}
]
}
Create a size table
Authorizations:
allegro:api:sale:settings:write
) Request Body schema: application/vnd.allegro.public.v1+json
Size table details
name required | string size table name |
required | object (JustId) |
required | Array of objects (Header) [ items ] size table headers |
required | Array of objects (Cells) [ items ] size table cells |
Responses
Request samples
- Payload
{- "name": "string",
- "template": {
- "id": "string"
}, - "headers": [
- {
- "name": "string"
}
], - "values": [
- {
- "cells": [
- "string"
]
}
]
}
Response samples
- 201
{- "headers": [
- {
- "name": "string"
}
], - "id": "string",
- "name": "string",
- "template": {
- "id": "string"
}, - "values": [
- {
- "cells": [
- "string"
]
}
]
}
Get the size tables templates
Authorizations:
allegro:api:sale:settings:read
) Responses
Response samples
- 200
{- "templates": [
- {
- "id": "string",
- "name": "string",
- "image": {
- "captions": [
- {
- "index": "string",
- "value": "string"
}
], - "url": "string"
}, - "headers": [
- {
- "name": "string"
}
], - "values": [
- {
- "cells": [
- "string"
]
}
]
}
]
}
Create a point of service
Authorizations:
allegro:api:sale:settings:write
) Request Body schema: application/vnd.allegro.public.v1+json
Point of service
id | string UUID. When creating a point of service (Post) the field is ignored. It is required when updating (Put) a point of service. |
externalId | string <= 80 characters ID from external client system. |
name required | string <= 80 characters |
object (Seller) | |
type required | string Indicates point type. The only valid value so far is PICKUP_POINT. |
required | object (Address) |
phoneNumber | string <= 16 characters |
string <= 64 characters | |
Array of objects (PosLocation) [ items ] IDs for a location. When creating (Post) or updating (Put) a point of service the field is ignored. | |
required | Array of objects (OpenHour) [ items ] Possible empty list of opening hours. |
serviceTime | string Delivery time / Time period for receipt. Date format ISO 8601 e.g. 'PT24H' |
Array of objects (Payment) [ items ] An empty list of payment types is available. | |
confirmationType required | string Confirmation method: AWAIT_CONTACT - We will inform you about the time of receipt, CALL_US - Please make an appointment, CONTACT_NOT_REQUIRED - Contact is not required. |
status required | string Point of service status: ACTIVE - active, TEMPORARILY_CLOSED - temporarily closed, CLOSED_DOWN - closed down, DELETED - deleted. |
createdAt | string Creation date. Date format (ISO 8601) - yyyy-MM-dd'T'HH:mm:ss.SSSZ When creating (Post) or updating (Put) a point of service the field is ignored. |
updatedAt | string Modification date. Date format (ISO 8601) - yyyy-MM-dd'T'HH:mm:ss.SSSZ When creating (Post) or updating (Put) a point of service the field is ignored. |
Responses
Request samples
- Payload
{- "id": "string",
- "externalId": "string",
- "name": "string",
- "seller": {
- "id": "string"
}, - "type": "string",
- "address": {
- "street": "string",
- "city": "string",
- "zipCode": "string",
- "state": "string",
- "countryCode": "PL",
- "coordinates": {
- "lat": -90,
- "lon": -180
}
}, - "phoneNumber": "string",
- "email": "string",
- "locations": [
- {
- "id": "string"
}
], - "openHours": [
- {
- "dayOfWeek": "string",
- "from": "string",
- "to": "string"
}
], - "serviceTime": "string",
- "payments": [
- {
- "method": "string"
}
], - "confirmationType": "string",
- "status": "string",
- "createdAt": "string",
- "updatedAt": "string"
}
Response samples
- 201
- 400
- 404
- 409
- 422
{- "id": "string",
- "externalId": "string",
- "name": "string",
- "seller": {
- "id": "string"
}, - "type": "string",
- "address": {
- "street": "string",
- "city": "string",
- "zipCode": "string",
- "state": "string",
- "countryCode": "PL",
- "coordinates": {
- "lat": -90,
- "lon": -180
}
}, - "phoneNumber": "string",
- "email": "string",
- "locations": [
- {
- "id": "string"
}
], - "openHours": [
- {
- "dayOfWeek": "string",
- "from": "string",
- "to": "string"
}
], - "serviceTime": "string",
- "payments": [
- {
- "method": "string"
}
], - "confirmationType": "string",
- "status": "string",
- "createdAt": "string",
- "updatedAt": "string"
}
Get the user's points of service
Authorizations:
allegro:api:sale:settings:read
) query Parameters
seller.id required | string User identifier. |
countryCode | string Example: countryCode=PL Country code identifier in ISO format. In case of incorrect or unsupported country code, empty list is returned. If missing, list of all defined points is returned. If present, correct and supported, list of all points with given country code for the user is returned. |
Responses
Response samples
- 200
- 404
{- "posList": [
- {
- "id": "string",
- "externalId": "string",
- "name": "string",
- "seller": {
- "id": "string"
}, - "type": "string",
- "address": {
- "street": "string",
- "city": "string",
- "zipCode": "string",
- "state": "string",
- "countryCode": "PL",
- "coordinates": {
- "lat": -90,
- "lon": -180
}
}, - "phoneNumber": "string",
- "email": "string",
- "locations": [
- {
- "id": "string"
}
], - "openHours": [
- {
- "dayOfWeek": "string",
- "from": "string",
- "to": "string"
}
], - "serviceTime": "string",
- "payments": [
- {
- "method": "string"
}
], - "confirmationType": "string",
- "status": "string",
- "createdAt": "string",
- "updatedAt": "string"
}
]
}
Get the details of a point of service
Authorizations:
allegro:api:sale:settings:read
) path Parameters
id required | string Point of service ID. |
Responses
Response samples
- 200
- 404
{- "id": "string",
- "externalId": "string",
- "name": "string",
- "seller": {
- "id": "string"
}, - "type": "string",
- "address": {
- "street": "string",
- "city": "string",
- "zipCode": "string",
- "state": "string",
- "countryCode": "PL",
- "coordinates": {
- "lat": -90,
- "lon": -180
}
}, - "phoneNumber": "string",
- "email": "string",
- "locations": [
- {
- "id": "string"
}
], - "openHours": [
- {
- "dayOfWeek": "string",
- "from": "string",
- "to": "string"
}
], - "serviceTime": "string",
- "payments": [
- {
- "method": "string"
}
], - "confirmationType": "string",
- "status": "string",
- "createdAt": "string",
- "updatedAt": "string"
}
Modify a point of service
Authorizations:
allegro:api:sale:settings:write
) path Parameters
id required | string Point of service ID. Must match values with 'id' property from the body. |
Request Body schema: application/vnd.allegro.public.v1+json
Point of service
id | string UUID. When creating a point of service (Post) the field is ignored. It is required when updating (Put) a point of service. |
externalId | string <= 80 characters ID from external client system. |
name required | string <= 80 characters |
object (Seller) | |
type required | string Indicates point type. The only valid value so far is PICKUP_POINT. |
required | object (Address) |
phoneNumber | string <= 16 characters |
string <= 64 characters | |
Array of objects (PosLocation) [ items ] IDs for a location. When creating (Post) or updating (Put) a point of service the field is ignored. | |
required | Array of objects (OpenHour) [ items ] Possible empty list of opening hours. |
serviceTime | string Delivery time / Time period for receipt. Date format ISO 8601 e.g. 'PT24H' |
Array of objects (Payment) [ items ] An empty list of payment types is available. | |
confirmationType required | string Confirmation method: AWAIT_CONTACT - We will inform you about the time of receipt, CALL_US - Please make an appointment, CONTACT_NOT_REQUIRED - Contact is not required. |
status required | string Point of service status: ACTIVE - active, TEMPORARILY_CLOSED - temporarily closed, CLOSED_DOWN - closed down, DELETED - deleted. |
createdAt | string Creation date. Date format (ISO 8601) - yyyy-MM-dd'T'HH:mm:ss.SSSZ When creating (Post) or updating (Put) a point of service the field is ignored. |
updatedAt | string Modification date. Date format (ISO 8601) - yyyy-MM-dd'T'HH:mm:ss.SSSZ When creating (Post) or updating (Put) a point of service the field is ignored. |
Responses
Request samples
- Payload
{- "id": "string",
- "externalId": "string",
- "name": "string",
- "seller": {
- "id": "string"
}, - "type": "string",
- "address": {
- "street": "string",
- "city": "string",
- "zipCode": "string",
- "state": "string",
- "countryCode": "PL",
- "coordinates": {
- "lat": -90,
- "lon": -180
}
}, - "phoneNumber": "string",
- "email": "string",
- "locations": [
- {
- "id": "string"
}
], - "openHours": [
- {
- "dayOfWeek": "string",
- "from": "string",
- "to": "string"
}
], - "serviceTime": "string",
- "payments": [
- {
- "method": "string"
}
], - "confirmationType": "string",
- "status": "string",
- "createdAt": "string",
- "updatedAt": "string"
}
Response samples
- 200
- 400
- 404
- 409
- 422
{- "id": "string",
- "externalId": "string",
- "name": "string",
- "seller": {
- "id": "string"
}, - "type": "string",
- "address": {
- "street": "string",
- "city": "string",
- "zipCode": "string",
- "state": "string",
- "countryCode": "PL",
- "coordinates": {
- "lat": -90,
- "lon": -180
}
}, - "phoneNumber": "string",
- "email": "string",
- "locations": [
- {
- "id": "string"
}
], - "openHours": [
- {
- "dayOfWeek": "string",
- "from": "string",
- "to": "string"
}
], - "serviceTime": "string",
- "payments": [
- {
- "method": "string"
}
], - "confirmationType": "string",
- "status": "string",
- "createdAt": "string",
- "updatedAt": "string"
}
Delete a point of service
Authorizations:
allegro:api:sale:settings:write
) path Parameters
id required | string Point of service ID. |
Responses
Response samples
- 404
{- "errors": [
- {
- "code": "NotAcceptableException",
- "details": "",
- "message": "Not acceptable representation requested. Please check 'Accept' request header",
- "path": "",
- "userMessage": "The request contains incorrect data. Contact the author of the application.",
- "metadata": {
- "productId": "13232515"
}
}
]
}
Create a new contact
Authorizations:
allegro:api:sale:settings:write
) Request Body schema: application/vnd.allegro.public.v1+json
New contact
name | string <= 250 characters |
Array of objects (EmailRequest) <= 1 items [ items ] | |
Array of objects (PhonesRequest) <= 2 items [ items ] |
Responses
Request samples
- Payload
{- "name": "string",
- "emails": [
- {
- "address": "string"
}
], - "phones": [
- {
- "number": "string"
}
]
}
Response samples
- 201
{- "id": "string",
- "name": "string",
- "emails": [
- {
- "address": "string"
}
], - "phones": [
- {
- "number": "string"
}
]
}
Get the user's contacts
Authorizations:
allegro:api:sale:settings:read
) Responses
Response samples
- 200
{- "contacts": [
- {
- "id": "string",
- "name": "string",
- "emails": [
- {
- "address": "string"
}
], - "phones": [
- {
- "number": "string"
}
]
}
]
}
Get contact details
Authorizations:
allegro:api:sale:settings:read
) path Parameters
id required | string Contact identifier. |
Responses
Response samples
- 200
{- "id": "string",
- "name": "string",
- "emails": [
- {
- "address": "string"
}
], - "phones": [
- {
- "number": "string"
}
]
}
Modify contact details
Authorizations:
allegro:api:sale:settings:write
) path Parameters
id required | string Contact identifier. |
Request Body schema: application/vnd.allegro.public.v1+json
Contact
name | string <= 250 characters |
Array of objects (EmailRequest) <= 1 items [ items ] | |
Array of objects (PhonesRequest) <= 2 items [ items ] |
Responses
Request samples
- Payload
{- "name": "string",
- "emails": [
- {
- "address": "string"
}
], - "phones": [
- {
- "number": "string"
}
]
}
Response samples
- 200
{- "id": "string",
- "name": "string",
- "emails": [
- {
- "address": "string"
}
], - "phones": [
- {
- "number": "string"
}
]
}
Get the list of responsible persons
Authorizations:
allegro:api:sale:settings:read
) Responses
Response samples
- 200
{- "responsiblePersons": [
- {
- "id": "fee43309-8761-43f9-9cfd-a43e539a0fc5",
- "name": "Person responsible for batteries",
- "personalData": {
- "name": "Responsible person company name",
- "address": {
- "countryCode": "PL",
- "street": "Wiśniowa 1",
- "postalCode": "00-000",
- "city": "Warszawa"
}, - "contact": {
- "email": "some@email.com",
- "phoneNumber": "123123123"
}
}
}
]
}
Create responsible person
Authorizations:
allegro:api:sale:settings:write
) Request Body schema: application/vnd.allegro.public.v1+json
name | string <= 50 characters Internal name of responsible person in dictionary. |
object Responsible person personal data. |
Responses
Request samples
- Payload
{- "name": "Person responsible for batteries",
- "personalData": {
- "name": "Responsible person company name",
- "address": {
- "countryCode": "PL",
- "street": "Wiśniowa 1",
- "postalCode": "00-000",
- "city": "Warszawa"
}, - "contact": {
- "email": "some@email.com",
- "phoneNumber": "123123123"
}
}
}
Response samples
- 200
{- "id": "fee43309-8761-43f9-9cfd-a43e539a0fc5",
- "name": "Person responsible for batteries",
- "personalData": {
- "name": "Responsible person company name",
- "address": {
- "countryCode": "PL",
- "street": "Wiśniowa 1",
- "postalCode": "00-000",
- "city": "Warszawa"
}, - "contact": {
- "email": "some@email.com",
- "phoneNumber": "123123123"
}
}
}
Update responsible person
Authorizations:
allegro:api:sale:settings:write
) path Parameters
id required | string Responsible person ID. |
Request Body schema: application/vnd.allegro.public.v1+json
id | string Responsible person ID. |
name | string <= 50 characters Internal name of responsible person in dictionary. |
object Responsible person personal data. |
Responses
Request samples
- Payload
{- "id": "fee43309-8761-43f9-9cfd-a43e539a0fc5",
- "name": "Person responsible for batteries",
- "personalData": {
- "name": "Responsible person company name",
- "address": {
- "countryCode": "PL",
- "street": "Wiśniowa 1",
- "postalCode": "00-000",
- "city": "Warszawa"
}, - "contact": {
- "email": "some@email.com",
- "phoneNumber": "123123123"
}
}
}
Response samples
- 200
{- "id": "fee43309-8761-43f9-9cfd-a43e539a0fc5",
- "name": "Person responsible for batteries",
- "personalData": {
- "name": "Responsible person company name",
- "address": {
- "countryCode": "PL",
- "street": "Wiśniowa 1",
- "postalCode": "00-000",
- "city": "Warszawa"
}, - "contact": {
- "email": "some@email.com",
- "phoneNumber": "123123123"
}
}
}
Get the list of responsible producers
Authorizations:
allegro:api:sale:settings:read
) query Parameters
offset | integer [ 0 .. 50000 ] Default: 0 Index of first returned responsible producers data from all search results. |
limit | integer [ 1 .. 1000 ] Default: 1000 Number of returned responsible producers data. |
header Parameters
Accept required | string Example: application/vnd.allegro.public.v1+json Acceptable representation of the response. |
Responses
Response samples
- 200
- 400
- 401
- 403
- 422
{- "responsibleProducers": [
- {
- "id": "fee43309-8761-43f9-9cfd-a43e539a0fc5",
- "name": "Company responsible for producing product.",
- "producerData": {
- "tradeName": "Trade name of responsible producer",
- "address": {
- "countryCode": "PL",
- "street": "Wiśniowa 1",
- "postalCode": "00-000",
- "city": "Warszawa"
}, - "contact": {
- "email": "some@email.com",
- "phoneNumber": "123123123"
}
}
}
], - "count": 1,
- "totalCount": 1
}
Create responsible producer
Authorizations:
allegro:api:sale:settings:write
) header Parameters
Accept required | string Example: application/vnd.allegro.public.v1+json Acceptable representation of the response. |
Content-Type required | string Example: application/vnd.allegro.public.v1+json Content type of the request body. |
Request Body schema: application/vnd.allegro.public.v1+json
name | string <= 50 characters Internal name of responsible producer in dictionary (visible only to you). Can't start or end with whitespace. Can't contain whitespaces other than space. Can't contain multiple spaces in a row. |
object Responsible producer data. |
Responses
Request samples
- Payload
{- "name": "Company responsible for producing product.",
- "producerData": {
- "tradeName": "Trade name of responsible producer",
- "address": {
- "countryCode": "PL",
- "street": "Wiśniowa 1",
- "postalCode": "00-000",
- "city": "Warszawa"
}, - "contact": {
- "email": "some@email.com",
- "phoneNumber": "123123123"
}
}
}
Response samples
- 201
- 400
- 401
- 403
- 422
{- "id": "fee43309-8761-43f9-9cfd-a43e539a0fc5",
- "name": "Company responsible for producing product.",
- "producerData": {
- "tradeName": "Trade name of responsible producer",
- "address": {
- "countryCode": "PL",
- "street": "Wiśniowa 1",
- "postalCode": "00-000",
- "city": "Warszawa"
}, - "contact": {
- "email": "some@email.com",
- "phoneNumber": "123123123"
}
}
}
Get responsible producer
Authorizations:
allegro:api:sale:settings:read
) path Parameters
id required | string <uuid> Responsible producer ID. |
header Parameters
Accept required | string Example: application/vnd.allegro.public.v1+json Acceptable representation of the response. |
Responses
Response samples
- 200
- 401
- 403
- 404
- 422
{- "id": "fee43309-8761-43f9-9cfd-a43e539a0fc5",
- "name": "Company responsible for producing product.",
- "producerData": {
- "tradeName": "Trade name of responsible producer",
- "address": {
- "countryCode": "PL",
- "street": "Wiśniowa 1",
- "postalCode": "00-000",
- "city": "Warszawa"
}, - "contact": {
- "email": "some@email.com",
- "phoneNumber": "123123123"
}
}
}
Update responsible producer
Authorizations:
allegro:api:sale:settings:write
) path Parameters
id required | string <uuid> Responsible producer ID. |
header Parameters
Accept required | string Example: application/vnd.allegro.public.v1+json Acceptable representation of the response. |
Content-Type required | string Example: application/vnd.allegro.public.v1+json Content type of the request body. |
Request Body schema: application/vnd.allegro.public.v1+json
id | string <uuid> Responsible producer ID. |
name | string <= 50 characters Internal name of responsible producer in dictionary (visible only to you). Can't start or end with whitespace. Can't contain whitespaces other than space. Can't contain multiple spaces in a row. |
object Responsible producer data. |
Responses
Request samples
- Payload
{- "id": "fee43309-8761-43f9-9cfd-a43e539a0fc5",
- "name": "Company responsible for producing product.",
- "producerData": {
- "tradeName": "Trade name of responsible producer",
- "address": {
- "countryCode": "PL",
- "street": "Wiśniowa 1",
- "postalCode": "00-000",
- "city": "Warszawa"
}, - "contact": {
- "email": "some@email.com",
- "phoneNumber": "123123123"
}
}
}
Response samples
- 200
- 400
- 401
- 403
- 422
{- "id": "fee43309-8761-43f9-9cfd-a43e539a0fc5",
- "name": "Company responsible for producing product.",
- "producerData": {
- "tradeName": "Trade name of responsible producer",
- "address": {
- "countryCode": "PL",
- "street": "Wiśniowa 1",
- "postalCode": "00-000",
- "city": "Warszawa"
}, - "contact": {
- "email": "some@email.com",
- "phoneNumber": "123123123"
}
}
}
Get list of Advance Ship Notices
Use this resource to get a list of Advance Ship Notices. The list is ordered by createdAt property. Default offset is 0, default limit is 50. A list can be filtered by statuses. Multiple status query parameters are allowed. In such cases, filters are joined with OR logical operator. Read more: PL / EN.
Authorizations:
allegro:api:fulfillment:read
) query Parameters
offset | integer >= 0 Default: 0 The offset of elements in the response. |
limit | integer [ 1 .. 200 ] Default: 50 Maximum number of elements in response. |
status | Array of strings (AdvanceShipNoticeStatus) Items Enum: "DRAFT" "IN_TRANSIT" "UNPACKING" "COMPLETED" "CANCELLED" Example: status=DRAFT A status of the Advance Ship Notices in the response. |
Responses
Response samples
- 200
- 422
{- "advanceShipNotices": [
- {
- "id": "71529ad2-2265-4e15-b76b-c17025d848f7",
- "displayNumber": "A-210310-0000002",
- "status": "DRAFT",
- "createdAt": "2020-08-26T12:50:04Z",
- "updatedAt": "2020-08-26T12:52:04Z",
- "items": [
- {
- "product": {
- "id": "a1520fab-7801-4832-9ccd-fb068c707a74"
}, - "quantity": 1
}
], - "handlingUnit": {
- "unitType": "BOX",
- "amount": 1,
- "labelsType": "ONE_FULFILMENT"
}, - "shipping": {
- "method": "COURIER_BY_SELLER"
}, - "submittedAt": "2019-08-24T14:15:22Z"
}
], - "count": 1,
- "totalCount": 1
}
Create an Advance Ship Notice
Authorizations:
allegro:api:fulfillment:write
) Request Body schema: application/vnd.allegro.public.v1+json
required | Array of objects (ProductItem) [ items ] A list of product items. |
object (HandlingUnit) Represents information about handling unit. | |
object (Shipping) Represents information about package shipment. Constraints:
|
Responses
Request samples
- Payload
{- "items": [
- {
- "product": {
- "id": "a1520fab-7801-4832-9ccd-fb068c707a74"
}, - "quantity": 1
}
], - "handlingUnit": {
- "unitType": "BOX",
- "amount": 1,
- "labelsType": "ONE_FULFILMENT"
}, - "shipping": {
- "method": "COURIER_BY_SELLER"
}
}
Response samples
- 201
- 400
- 422
{- "id": "71529ad2-2265-4e15-b76b-c17025d848f7",
- "displayNumber": "A-210310-0000002",
- "status": "DRAFT",
- "createdAt": "2020-08-26T12:50:04Z",
- "updatedAt": "2020-08-26T12:50:04Z",
- "items": [
- {
- "product": {
- "id": "a1520fab-7801-4832-9ccd-fb068c707a74"
}, - "quantity": 1
}
], - "handlingUnit": {
- "unitType": "BOX",
- "amount": 1,
- "labelsType": "ONE_FULFILMENT"
}, - "shipping": {
- "method": "COURIER_BY_SELLER"
}
}
Get single Advance Ship Notice
Authorizations:
allegro:api:fulfillment:read
) path Parameters
id required | string <uuid> Example: 84529ad2-2265-4e15-b76b-c17025d848f6 The identifier of returned Advance Ship Notice. |
Responses
Response samples
- 200
{- "id": "71529ad2-2265-4e15-b76b-c17025d848f7",
- "displayNumber": "A-210310-0000002",
- "status": "DRAFT",
- "createdAt": "2020-08-26T12:50:04Z",
- "updatedAt": "2020-08-26T12:52:04Z",
- "items": [
- {
- "product": {
- "id": "a1520fab-7801-4832-9ccd-fb068c707a74"
}, - "quantity": 1
}
], - "handlingUnit": {
- "unitType": "BOX",
- "amount": 1,
- "labelsType": "ONE_FULFILMENT"
}, - "shipping": {
- "method": "COURIER_BY_SELLER"
}, - "submittedAt": "2019-08-24T14:15:22Z"
}
Update Advance Ship Notice
Use this resource to update an Advance Ship Notice. Any content property update will clear labels property. Use Create labels command to create new labels for provided content. If a client wants to update read-only property, an error is returned (only in cases when sent value will be different than actual on the server). Read more: PL / EN.
Authorizations:
allegro:api:fulfillment:write
) path Parameters
id required | string <uuid> Example: 84529ad2-2265-4e15-b76b-c17025d848f6 An identifier of Advance Ship Notice. |
header Parameters
if-match required | string Example: 123456 A current version of Advance Ship Notice (e.g. from etag header obtained via get). |
Request Body schema: application/vnd.allegro.public.v1+json
required | Array of objects (ProductItem) [ items ] A list of product items. |
object (HandlingUnit) Represents information about handling unit. | |
object (Shipping) Represents information about package shipment. Constraints:
|
Responses
Request samples
- Payload
{- "items": [
- {
- "product": {
- "id": "a1520fab-7801-4832-9ccd-fb068c707a74"
}, - "quantity": 1
}
], - "handlingUnit": {
- "unitType": "BOX",
- "amount": 1,
- "labelsType": "ONE_FULFILMENT"
}, - "shipping": {
- "method": "COURIER_BY_SELLER"
}
}
Response samples
- 200
- 422
{- "id": "71529ad2-2265-4e15-b76b-c17025d848f7",
- "displayNumber": "A-210310-0000002",
- "status": "DRAFT",
- "createdAt": "2020-08-26T12:50:04Z",
- "updatedAt": "2020-08-26T12:52:04Z",
- "items": [
- {
- "product": {
- "id": "a1520fab-7801-4832-9ccd-fb068c707a74"
}, - "quantity": 1
}
], - "handlingUnit": {
- "unitType": "BOX",
- "amount": 1,
- "labelsType": "ONE_FULFILMENT"
}, - "shipping": {
- "method": "COURIER_BY_SELLER"
}, - "submittedAt": "2019-08-24T14:15:22Z"
}
Delete Advance Ship Notice
Authorizations:
allegro:api:fulfillment:write
) path Parameters
id required | string <uuid> Default: "0b488a23-bc99-470d-8842-0c585adf2479" An identifier of the Advance Ship Notice to delete. |
Responses
Cancel Advance Ship Notice
Authorizations:
allegro:api:fulfillment:write
) path Parameters
id required | string <uuid> Default: "0b488a23-bc99-470d-8842-0c585adf2479" An identifier of the Advance Ship Notice to cancel. |
Responses
Get labels for Advance Ship Notice
Authorizations:
allegro:api:fulfillment:read
) path Parameters
id required | string <uuid> Example: 84529ad2-2265-4e15-b76b-c17025d848f6 An identifier of the Advance Ship Notice. |
header Parameters
accept required | string Enum: "application/pdf" "x-application/zpl" Content-type of generated labels. |
Responses
Submit the Advance Ship Notice
Use this resource to submit the Advance Ship Notice. After this operation, updates of the Advance Ship Notice are limited to selected properties only. See PUT /fulfillment/advance-ship-notices/{id}/submitted. Read more: PL / EN.
Authorizations:
allegro:api:fulfillment:write
) path Parameters
command-id required | string <uuid> Default: "725432a9-ae9e-43de-b8c5-7430606a81a4" The identifier of the command. |
Request Body schema: application/vnd.allegro.public.v1+json
id | string <uuid> The identifier of command. |
required | object (SubmitCommandInput) Represents input of the Advance Ship Notice submit command. |
object (SubmitCommandOutput) Represents output of the Advance Ship Notice submit command. |
Responses
Request samples
- Payload
{- "id": "71529ad2-2265-4e15-b76b-c17025d848f7",
- "input": {
- "advanceShipNoticeId": "123a08d7-ab9b-460d-b9cb-d6ed64b3a018"
}, - "output": {
- "status": "RUNNING"
}
}
Response samples
- 201
- 422
{- "id": "71529ad2-2265-4e15-b76b-c17025d848f7",
- "input": {
- "advanceShipNoticeId": "123a08d7-ab9b-460d-b9cb-d6ed64b3a018"
}, - "output": {
- "status": "RUNNING"
}
}
Get submit status
Authorizations:
allegro:api:fulfillment:read
) path Parameters
command-id required | string <uuid> Default: "882202c8-15ab-4a83-aeef-29ea505bf0d0" An identifier of the command. |
Responses
Response samples
- 200
- 422
{- "id": "71529ad2-2265-4e15-b76b-c17025d848f7",
- "input": {
- "advanceShipNoticeId": "123a08d7-ab9b-460d-b9cb-d6ed64b3a018"
}, - "output": {
- "status": "RUNNING"
}
}
Update submitted Advance Ship Notice
Use this resource to update already submitted Advance Ship Notice. Update is allowed only when Advance Ship Notice is in "IN_TRANSIT" status. Modifications are limited to:
- changing items quantity
- removing items
- changing handling unit amount
- changing shipping courier id, name, tracking numbers or vehicle licence plate or third party delivery details (depending on the selected shipping method in the submitted advance ship notice) Handling unit's amount property update clears labels property. Use Create labels command to create new labels for provided content. Read more: PL / EN.
Authorizations:
allegro:api:fulfillment:write
) path Parameters
id required | string <uuid> Example: 84529ad2-2265-4e15-b76b-c17025d848f6 An identifier of Advance Ship Notice. |
header Parameters
if-match required | string Example: 123456 A current version of Advance Ship Notice (e.g. from etag header obtained via get). |
Request Body schema: application/vnd.allegro.public.v1+json
Array of objects (ProductItem) [ items ] A list of product items. | |
object (UpdateSubmittedHandlingUnitInput) Represents information about handling unit. | |
object (UpdateSubmittedShippingInput) Represents information about package shipment. |
Responses
Request samples
- Payload
{- "items": [
- {
- "product": {
- "id": "a1520fab-7801-4832-9ccd-fb068c707a74"
}, - "quantity": 1
}
], - "handlingUnit": {
- "amount": 1
}, - "shipping": {
- "estimatedTimeOfArrival": "2019-08-24T14:15:22Z",
- "truckLicencePlate": "FZ12453",
- "trackingNumber": "00340433982034779798",
- "courier": {
- "id": "DPD",
- "name": "Some Courier",
- "trackingNumbers": [
- "00340433982034779798",
- "12340433982034779888"
]
}, - "thirdParty": {
- "name": "Company ABC",
- "orderNumber": "Order.2022.10.12.Allegro.1F"
}
}
}
Response samples
- 200
- 422
{- "id": "71529ad2-2265-4e15-b76b-c17025d848f7",
- "displayNumber": "A-210310-0000002",
- "status": "DRAFT",
- "createdAt": "2020-08-26T12:50:04Z",
- "updatedAt": "2020-08-26T12:52:04Z",
- "items": [
- {
- "product": {
- "id": "a1520fab-7801-4832-9ccd-fb068c707a74"
}, - "quantity": 1
}
], - "handlingUnit": {
- "unitType": "BOX",
- "amount": 1,
- "labelsType": "ONE_FULFILMENT"
}, - "shipping": {
- "method": "COURIER_BY_SELLER"
}, - "submittedAt": "2019-08-24T14:15:22Z"
}
Check current state and details of Advance Ship Notice receiving
Use this resource to check the state of Advance Ship Notice receiving in Fulfillment Center in real time. The response contains a receiving progress and information about particular items - their quantities and conditions. While the Advance Ship Notice is in UNPACKING state, report is updated dynamically, which might result in different responses even at short time intervals. Read more: PL / EN.
Authorizations:
allegro:api:fulfillment:read
) path Parameters
id required | string <uuid> Default: "712fa46c-7d4a-4ba0-b094-b5d1d4f6155d" An identifier of advance ship notice. |
Responses
Response samples
- 200
{- "updatedAt": "2020-08-26T12:50:04Z",
- "stage": "COMPLETED",
- "displayNumber": "A-210310-0000002",
- "content": [
- {
- "expected": 10,
- "product": {
- "id": "a1520fab-7801-4832-9ccd-fb068c707a74"
}, - "received": [
- {
- "quantity": 10,
- "receivedType": "SELLABLE",
- "reasonCode": "SELLABLE"
}
]
}
]
}
Get available stock
Authorizations:
allegro:api:fulfillment:read
) query Parameters
offset | integer >= 0 Default: 0 The offset of elements in the response. Ignored for text/csv content type. |
limit | integer [ 1 .. 1000 ] Default: 50 Maximum number of elements in response. Ignored for text/csv content type. |
phrase | string >= 3 characters Filtering search results by product name. |
sort | string Default: "name" Enum: "available" "-available" "unfulfillable" "-unfulfillable" "name" "-name" "lastWeekSalesAverage" "-lastWeekSalesAverage" "reserve" "-reserve" "lastThirtyDaysSalesSum" "-lastThirtyDaysSalesSum" "storageFee" "-storageFee" Defines how elements are sorted in response. Minus sign can be added to imply descending sort order. Ignored for text/csv content type. Possible values for the "sort" parameter:
|
productId | string <uuid> Filtering search results by fulfillment product identifier. Ignored for text/csv content type. |
productAvailability | Array of strings Items Enum: "SUFFICIENT" "UNAVAILABLE" "LOW" Filtering search results by availability. |
productStatus | string Value: "UNFULFILLABLE" Filtering search results by status. |
storageFee | string Enum: "FREE" "PAID" "TO_BE_PAID_SOON" Filtering search results storage fee. Two values are possible: FREE - products storage fee is included in basic fee or merchant is in grace period PAID - products for which an extra storage fee is calculated TO_BE_PAID_SOON - products for which storage will soon be payable. |
asnStatus | string Enum: "SUBMITTED" "NOT_FOUND" Filtering search results by ASN status. Following values are allowed: SUBMITTED - Advanced Ship Notice document has been submitted and it contains a particular product. Only the products that have ASN with products on it are returned. NOT_FOUND - Advanced Ship Notice that contains a particular product was not found. It has not been submitted, may be expired, or products have already been delivered to the warehouse. Only the products that don't have related ASN with products on it are returned. |
outOfStockInFrom | integer Filter by products with outOfStockIn greater than or equal. |
outOfStockInTo | integer Filter by products with outOfStockIn less than or equal. |
header Parameters
Accept-Language | string <BCP-47 language code> Default: en-US Enum: "en-US" "pl-PL" "uk-UA" Example: en-US Expected language of product name translation. |
Responses
Response samples
- 200
- 422
{- "stock": [
- {
- "product": {
- "id": "712fa46c-7d4a-4ba0-b094-b5d1d4f6155d",
- "name": "iPhone 5s",
- "gtins": [
- "2746650558857",
- "1859832948337"
],
}, - "quantity": {
- "onOffer": 4,
- "available": 4,
- "onOrder": 4,
- "onHold": 4
}, - "sellingStats": {
- "lastWeekAverage": 4,
- "lastThirtyDaysSum": 200
}, - "reserve": {
- "outOfStockIn": 14,
- "status": "NOT_ENOUGH_DATA"
}, - "storageFee": {
- "status": "NOT_APPLICABLE",
- "feeStatusAt": "2023-02-17",
- "details": {
- "feePayableAt": "string",
- "chargedItemsQuantity": 3,
- "amountGross": 123.45,
- "currency": "PLN"
}
}, - "offerId": "10000000015"
}
], - "count": 1,
- "totalCount": 10
}
Get list of shipped parcels
Authorizations:
allegro:api:fulfillment:read
) path Parameters
orderId required | string <uuid> The Allegro's platform order identifier. |
Responses
Response samples
- 200
{- "orderId": "dd4bbba0-d692-11ec-9eac-2d3687b9fed8",
- "parcels": [
- {
- "waybill": "1Z8332YF6895912532",
- "items": [
- {
- "productId": "0e810d4a-bbee-495c-8979-866bb06d3904",
- "quantity": 1,
- "serialNumbers": [
- "4CE0460D0G"
], - "expirationDate": "2020-05-01",
- "offerId": "10000000003"
}
]
}
]
}
Get list of available products
Authorizations:
allegro:api:fulfillment:read
) query Parameters
offset | integer >= 0 Default: 0 The offset of elements in the response. |
limit | integer [ 1 .. 100 ] Default: 50 Maximum number of elements in response. |
header Parameters
Accept-Language | string <BCP-47 language code> Default: en-US Enum: "en-US" "pl-PL" "uk-UA" Example: pl-PL Expected language of product name translation. |
Responses
Response samples
- 200
- 422
{- "products": [
- {
- "id": "712fa46c-7d4a-4ba0-b094-b5d1d4f6155d",
- "name": "iPhone 5s",
- "gtins": [
- "2746650558857",
- "1859832948337"
],
}
], - "count": 1,
- "totalCount": 1
}
Get the user's ratings
Authorizations:
allegro:api:ratings
) query Parameters
recommended | string Enum: "true" "false" Filter by recommended. |
lastChangedAt.gte | string <date-time> Example: lastChangedAt.gte=2020-11-13T12:45:20.818Z Last change (creation or latest edition) date time in ISO 8601 format. The lower bound of date time range from which ratings will be fetched. |
lastChangedAt.lte | string <date-time> Example: lastChangedAt.lte=2020-11-13T12:45:20.818Z Last change (creation or latest edition) date time in ISO 8601 format. The upper bound of date time range from which ratings will be fetched. |
offset | integer <int32> [ 0 .. 20000 ] Default: 0 The offset of elements in the response. |
limit | integer <int32> [ 1 .. 100 ] Default: 20 The limit of elements in the response. |
Responses
Response samples
- 200
{- "ratings": [
- {
- "answer": {
- "createdAt": "2017-05-17T08:36:57.292Z",
- "message": "string"
}, - "buyer": {
- "id": "string",
- "login": "string"
}, - "comment": "string",
- "createdAt": "2017-05-17T08:36:57.292Z",
- "editedAt": "2017-05-19T08:36:57.292Z",
- "excludedFromAverageRates": false,
- "excludedFromAverageRatesReason": "Rating not unique",
- "id": "string",
- "lastChangedAt": "2017-05-19T08:36:57.292Z",
- "order": {
- "id": "string",
- "offers": [
- {
- "id": "string",
- "title": "string",
- "snapshot": "string"
}
]
}, - "rates": {
- "delivery": 5,
- "deliveryCost": 5,
- "description": 5,
- "service": 5
}, - "recommended": false,
- "removal": {
- "possibleTo": "2017-05-17T08:36:57.292Z",
- "request": {
- "createdAt": "2017-05-17T08:36:57.292Z",
- "message": "string",
- "source": "SELLER"
}
}
}
]
}
Get the user's rating by given rating id
Authorizations:
allegro:api:ratings
) path Parameters
ratingId required | string Example: 41846511 The ID of the rating. |
Responses
Response samples
- 200
{- "answer": {
- "createdAt": "2017-05-17T08:36:57.292Z",
- "message": "string"
}, - "buyer": {
- "id": "string",
- "login": "string"
}, - "comment": "string",
- "createdAt": "2017-05-17T08:36:57.292Z",
- "editedAt": "2017-05-19T08:36:57.292Z",
- "excludedFromAverageRates": false,
- "excludedFromAverageRatesReason": "Rating not unique",
- "id": "string",
- "lastChangedAt": "2017-05-19T08:36:57.292Z",
- "order": {
- "id": "string",
- "offers": [
- {
- "id": "string",
- "title": "string",
- "snapshot": "string"
}
]
}, - "rates": {
- "delivery": 5,
- "deliveryCost": 5,
- "description": 5,
- "service": 5
}, - "recommended": false,
- "removal": {
- "possibleTo": "2017-05-17T08:36:57.292Z",
- "request": {
- "createdAt": "2017-05-17T08:36:57.292Z",
- "message": "string",
- "source": "SELLER"
}
}
}
Answer for user's rating
Authorizations:
allegro:api:ratings
) path Parameters
ratingId required | string Example: 5df0a6d1ef437e00255572a1 ID of the rating. |
Request Body schema: application/vnd.allegro.public.v1+json
User rating answer request.
message required | string <= 500 characters Answer message. |
Responses
Request samples
- Payload
{- "message": "string"
}
Response samples
- 201
- 400
{- "createdAt": "2017-05-17T08:36:57.292Z",
- "message": "string"
}
Request removal of user's rating
Authorizations:
allegro:api:ratings
) path Parameters
ratingId required | string Example: 5df0a6d1ef437e00255572a1 ID of the rating. |
Request Body schema: application/vnd.allegro.public.v1+json
User rating removal request.
required | object |
Responses
Request samples
- Payload
{- "request": {
- "message": "string"
}
}
Response samples
- 201
- 400
{- "possibleTo": "2017-05-17T08:36:57.292Z",
- "request": {
- "createdAt": "2017-05-17T08:36:57.292Z",
- "message": "string",
- "source": "SELLER"
}
}
Get sales quality
Use this resource to get current sales quality with at most 30 days history.
Authorizations:
allegro:api:profile:read
) Responses
Response samples
- 200
{- "quality": [
- {
- "resultFor": "2019-08-24",
- "score": 0,
- "grade": "string",
- "maxScore": 0,
- "metrics": [
- {
- "code": "string",
- "name": "string",
- "score": 0,
- "maxScore": 0
}
]
}
]
}
Get basic information about user
Authorizations:
allegro:api:profile:read
) Responses
Response samples
- 200
- 401
- 403
{- "id": "46968690",
- "login": "Client:46968690",
- "firstName": "Amadeusz",
- "lastName": "Iksiński",
- "email": "user-email@allegro.pl",
- "baseMarketplace": {
- "id": "allegro-pl"
}, - "company": {
- "name": "Allegro.pl sp. z o.o.",
- "taxId": "5252674798"
}, - "features": [
- "SUPER_SELLER",
- "ONE_FULFILLMENT"
]
}
Get user's additional emails
Authorizations:
allegro:api:profile:read
) Responses
Response samples
- 200
{- "additional-emails": [
- {
- "id": "string",
- "email": "string",
- "createdAt": "string"
}
]
}
Add a new additional email address to user's account
Authorizations:
allegro:api:profile:write
) Request Body schema: application/vnd.allegro.public.v1+json
request
email required | string A valid email address you want to add to your account. Maximum length of the part before the |
Responses
Request samples
- Payload
{- "email": "string"
}
Response samples
- 201
{- "id": "string",
- "email": "string",
- "createdAt": "string"
}
Get information about a particular additional email
Authorizations:
allegro:api:profile:read
) path Parameters
emailId required | string Id of the additional email. |
Responses
Response samples
- 200
- 401
{- "id": "string",
- "email": "string",
- "createdAt": "string"
}
Delete an additional email address
Authorizations:
allegro:api:profile:write
) path Parameters
emailId required | string Id of the additional email to be deleted. |
Responses
Response samples
- 401
{- "error": "unauthorized",
- "error_description": "Full authentication is required to access this resource"
}
Get Smart! seller classification report
Authorizations:
allegro:api:profile:read
) query Parameters
marketplaceId | string Example: marketplaceId=allegro-pl Marketplace for which seller classification report will be returned. If not specified, the classification result for the seller's registration marketplace will be returned. |
Responses
Response samples
- 200
- 401
- 404
- 422
{- "classification": {
- "fulfilled": true,
- "lastChanged": "2017-05-17T08:36:57.292+02:00"
}, - "conditions": [
- {
- "code": "ratingPercentage",
- "name": "Wskaźnik poleceń",
- "description": "W przypadku braku oznaczenia Super Sprzedawca wymagamy aby sprzedawca posiadał wskaźnik poleceń powyżej określonego progu.",
- "value": 0.783,
- "threshold": 0.98,
- "fulfilled": false,
- "required": false
}, - {
- "code": "ratesCount",
- "name": "Liczba unikalnych ocen",
- "description": "W przypadku braku oznaczenia Super Sprzedawca wymagamy aby sprzedawca posiadał określoną liczbę unikalnych ocen \\Polecam\\ w okresie ostatnich 12 miesięcy.",
- "value": 23,
- "threshold": 5,
- "fulfilled": true,
- "required": false
}, - {
- "code": "superSeller",
- "name": "Super Sprzedawca",
- "description": "Posiadanie oznaczenia Super Sprzedawca pozwala wziąć udział w programie Smart! przy zwolnieniu z kryteriów \\Wskaźnik poleceń\\ oraz \\Liczba unikalnych ocen\\.",
- "value": 1,
- "fulfilled": true,
- "required": false
}
], - "excludedDeliveryMethods": [
- {
- "id": "2488f7b7-5d1c-4d65-b85c-4cbcf253fd93"
}
]
}
Response samples
- 200
{- "marketplaces": [
- {
- "id": "allegro-pl",
- "languages": {
- "offerCreation": [
- {
- "code": "pl-PL"
}
], - "offerDisplay": [
- {
- "code": "pl-PL"
}
]
}, - "currencies": {
- "base": {
- "code": "PLN"
}, - "additional": [
- {
- "code": "PLN"
}
]
}, - "shippingCountries": [
- {
- "code": "PL"
}
]
}
]
}
List user threads
Authorizations:
allegro:api:messaging
) query Parameters
limit | integer <int32> [ 1 .. 20 ] Default: 20 The maximum number of threads returned in the response. |
offset | integer <int64> [ 0 .. 15000000 ] Default: 0 Index of the first returned thread from all results. |
Responses
Response samples
- 200
{- "threads": [
- {
- "id": "string",
- "read": true,
- "lastMessageDateTime": "2019-08-24T14:15:22Z",
- "interlocutor": {
- "login": "string",
- "avatarUrl": "string"
}
}
], - "offset": 0,
- "limit": 0
}
Get user thread
Authorizations:
allegro:api:messaging
) path Parameters
threadId required | string Identifier of thread to get. |
Responses
Response samples
- 200
{- "id": "string",
- "read": true,
- "lastMessageDateTime": "2019-08-24T14:15:22Z",
- "interlocutor": {
- "login": "string",
- "avatarUrl": "string"
}
}
Mark a particular thread as read
Authorizations:
allegro:api:messaging
) path Parameters
threadId required | string Identifier of thread to be marked. |
Request Body schema: application/vnd.allegro.public.v1+json
Updated read flag
read required | boolean |
Responses
Request samples
- Payload
{- "read": true
}
Response samples
- 200
{- "id": "string",
- "read": true,
- "lastMessageDateTime": "2019-08-24T14:15:22Z",
- "interlocutor": {
- "login": "string",
- "avatarUrl": "string"
}
}
Write a new message
Authorizations:
allegro:api:messaging
) Request Body schema: application/vnd.allegro.public.v1+json
Object representing new message.
required | object (Recipient) |
text required | string <= 2000 characters |
Array of objects or null (MessageAttachmentId) |
Responses
Request samples
- Payload
{- "recipient": {
- "login": "string"
}, - "text": "string",
- "attachments": [
- {
- "id": "string"
}
]
}
Response samples
- 201
{- "id": "string",
- "status": "VERIFYING",
- "type": "MESSAGE_CENTER",
- "createdAt": "2019-08-24T14:15:22Z",
- "thread": {
- "id": "string"
}, - "author": {
- "login": "string",
- "isInterlocutor": true
}, - "text": "string",
- "subject": "string",
- "relatesTo": {
- "offer": {
- "id": "string"
}, - "order": {
- "id": "string"
}
}, - "hasAdditionalAttachments": false,
- "attachments": [
- {
- "fileName": "string",
- "mimeType": "string",
- "url": "string",
- "status": "NEW"
}
], - "additionalInformation": {
- "vin": "JT2SV12E6F0308977"
}
}
List messages in thread
Authorizations:
allegro:api:messaging
) path Parameters
threadId required | string Identifier of thread to get messages from. |
query Parameters
limit | integer <int32> [ 1 .. 20 ] Default: 20 The maximum number of messages returned in the response. |
offset | integer <int64> [ 0 .. 15000 ] Default: 0 Index of the first returned message from all results. |
before | string <date-time> Example: before=2020-11-13T12:45:20.818Z Message creation date before filter parameter (exclusive) - cannot be used with offset. |
after | string <date-time> Example: after=2020-11-13T12:45:20.818Z Message creation date after filter parameter (exclusive). |
Responses
Response samples
- 200
{- "messages": [
- {
- "id": "string",
- "status": "VERIFYING",
- "type": "MESSAGE_CENTER",
- "createdAt": "2019-08-24T14:15:22Z",
- "thread": {
- "id": "string"
}, - "author": {
- "login": "string",
- "isInterlocutor": true
}, - "text": "string",
- "subject": "string",
- "relatesTo": {
- "offer": {
- "id": "string"
}, - "order": {
- "id": "string"
}
}, - "hasAdditionalAttachments": false,
- "attachments": [
- {
- "fileName": "string",
- "mimeType": "string",
- "url": "string",
- "status": "NEW"
}
], - "additionalInformation": {
- "vin": "JT2SV12E6F0308977"
}
}
], - "offset": 0,
- "limit": 0
}
Write a new message in thread
Authorizations:
allegro:api:messaging
) path Parameters
threadId required | string Identifier of thread to write message to. |
Request Body schema: application/vnd.allegro.public.v1+json
text required | string <= 2000 characters |
Array of objects or null (MessageAttachmentId) |
Responses
Request samples
- Payload
{- "text": "string",
- "attachments": [
- {
- "id": "string"
}
]
}
Response samples
- 201
{- "id": "string",
- "status": "VERIFYING",
- "type": "MESSAGE_CENTER",
- "createdAt": "2019-08-24T14:15:22Z",
- "thread": {
- "id": "string"
}, - "author": {
- "login": "string",
- "isInterlocutor": true
}, - "text": "string",
- "subject": "string",
- "relatesTo": {
- "offer": {
- "id": "string"
}, - "order": {
- "id": "string"
}
}, - "hasAdditionalAttachments": false,
- "attachments": [
- {
- "fileName": "string",
- "mimeType": "string",
- "url": "string",
- "status": "NEW"
}
], - "additionalInformation": {
- "vin": "JT2SV12E6F0308977"
}
}
Get single message
Authorizations:
allegro:api:messaging
) path Parameters
messageId required | string Identifier of message to be returned. |
Responses
Response samples
- 200
{- "id": "string",
- "status": "VERIFYING",
- "type": "MESSAGE_CENTER",
- "createdAt": "2019-08-24T14:15:22Z",
- "thread": {
- "id": "string"
}, - "author": {
- "login": "string",
- "isInterlocutor": true
}, - "text": "string",
- "subject": "string",
- "relatesTo": {
- "offer": {
- "id": "string"
}, - "order": {
- "id": "string"
}
}, - "hasAdditionalAttachments": false,
- "attachments": [
- {
- "fileName": "string",
- "mimeType": "string",
- "url": "string",
- "status": "NEW"
}
], - "additionalInformation": {
- "vin": "JT2SV12E6F0308977"
}
}
Delete single message
Authorizations:
allegro:api:messaging
) path Parameters
messageId required | string Identifier of the message to delete. |
Responses
Add attachment declaration
Authorizations:
allegro:api:messaging
) Request Body schema: application/vnd.allegro.public.v1+json
filename required | string |
size required | integer <int64> [ 0 .. 5242880 ] |
Responses
Request samples
- Payload
{- "filename": "string",
- "size": 5242880
}
Response samples
- 201
{- "id": "string"
}
Upload attachment binary data
Authorizations:
allegro:api:messaging
) path Parameters
attachmentId required | string The identifier of attachment that will be uploaded. |
Request Body schema: image/pngimage/pngimage/gifimage/bmpimage/tiffimage/jpegapplication/pdf
File in a binary format
Responses
Response samples
- 200
{- "id": "string"
}
Download attachment
Authorizations:
allegro:api:messaging
) path Parameters
attachmentId required | string Identifier of the attachment that will be downloaded. |
Responses
Get a list of billing entries
Authorizations:
allegro:api:billing:read
) query Parameters
marketplaceId | string Example: marketplaceId=allegro-pl The marketplace ID where operation was made. By default the marketplace ID where the user is registered. |
occurredAt.gte | string <date-time> Example: occurredAt.gte=2019-05-08T09:45:32.818Z Date from which billing entries are filtered. If occurredAt.lte is also set, occurredAt.gte cannot be later. |
occurredAt.lte | string <date-time> Example: occurredAt.lte=2019-05-08T09:45:32.818Z Date to which billing entries are filtered. If occurredAt.gte is also set, occurredAt.lte cannot be earlier. |
type.id | Array of strings Example: type.id=LIS&type.id=SUC List of billing types by which billing entries are filtered. |
offer.id | string Example: offer.id=12345 Offer ID by which billing entries are filtered. |
order.id | string <uuid> Example: order.id=29738e61-7f6a-11e8-ac45-09db60ede9d6 Order UUID by which billing entries are filtered. |
limit | integer <int32> [ 1 .. 100 ] Default: 100 Example: limit=10 Number of returned operations. |
offset | integer <int32> [ 0 .. 10000 ] Default: 0 Example: offset=10 Index of the first returned payment operation from all search results. |
Responses
Response samples
- 200
- 401
- 406
- 422
{- "billingEntries": [
- {
- "id": "09f0b4cc-7880-11e9-8f9e-2a86e4085a59",
- "occurredAt": "2019-05-08T09:45:32.818Z",
- "type": {
- "id": "LIS",
- "name": "Listing fee"
}, - "offer": {
- "id": "12345678",
- "name": "offer name"
}, - "value": {
- "amount": "100.00",
- "currency": "PLN"
}, - "tax": {
- "percentage": "0",
- "annotation": "OUT_OF_SCOPE"
}, - "balance": {
- "amount": "100.00",
- "currency": "PLN"
}, - "order": {
- "id": "09f0b4cc-7880-11e9-8f9e-2a86e4085a59"
}
}
]
}
Place a bid in an auction
Authorizations:
allegro:api:bids
) path Parameters
offerId required | string The offer ID. |
Request Body schema: application/vnd.allegro.public.v1+json
required | object (MaxPrice) Maximum amount that user is willing to pay for the auction. |
Responses
Request samples
- Payload
{- "maxAmount": {
- "amount": "123.45",
- "currency": "PLN"
}
}
Response samples
- 200
- 400
- 401
- 404
- 422
{- "maxAmount": {
- "amount": "123.45",
- "currency": "PLN"
}, - "minimalPriceMet": true,
- "highBidder": true,
- "auction": {
- "currentPrice": {
- "amount": "123.45",
- "currency": "PLN"
}
}
}
Get current user's bid information
Authorizations:
allegro:api:bids
) path Parameters
offerId required | string The offer ID. |
Responses
Response samples
- 200
- 404
{- "maxAmount": {
- "amount": "123.45",
- "currency": "PLN"
}, - "minimalPriceMet": true,
- "highBidder": true,
- "auction": {
- "currentPrice": {
- "amount": "123.45",
- "currency": "PLN"
}
}
}
Search fundraising campaigns
Authorizations:
query Parameters
limit required | integer <int32> [ 1 .. 100 ] Maximum number of returned results. |
phrase required | string Fundraising campaign name or it's Organization name prefix to search for. |
Responses
Response samples
- 200
{- "campaigns": [
- {
- "id": "string",
- "name": "string",
- "organization": {
- "name": "string"
}
}
]
}
Get any user's ratings summary
Authorizations:
allegro:api:profile:read
) path Parameters
userId required | string Example: 41846511 The ID of the user. |
Responses
Response samples
- 200
- 401
- 403
{- "averageRates": {
- "delivery": 4.7,
- "deliveryCost": 5,
- "description": 4.5,
- "service": 4.8
}, - "notRecommended": {
- "total": 100,
- "unique": 80
}, - "recommended": {
- "total": 100,
- "unique": 75
}, - "recommendedPercentage": "99,8"
}
Search offers
Access for verified applications only. Use this resource to get a list of offers based on the provided query parameters. At least one of: phrase, seller.id or category.id is required. Additional available parameters vary depending on category.id. The parameters are defined in the filters entity. Changing the marketplace, country of delivery, currency or language may impact the availability of offers and filters. Note that requests for closed offers and searching by descriptions may be limited.
Authorizations:
query Parameters
category.id | string The identifier of the category, where you want to search for offers. |
phrase | string The search phrase. The phrase is searched in different fields of the offers depending on the value of the |
seller.id | string The identifier of a seller, to limit the results to offers from this seller. May be provided more than once. Should not be provided when seller.login is given. |
seller.login | string The login of a seller, to limit the results to offers from this seller. May be provided more than once. Should not be provided when seller.id is given. |
marketplaceId | string Default: "allegro-pl" Id of a marketplace where offers are visible.
Acceptable values : |
shipping.country | string Example: shipping.country=PL Limits the result to offers with specified delivery country.
Default value : depends on marketplace, for allegro-pl: |
currency | string <ISO 4217 currency code> Example: currency=PLN Currency of the offer prices.
Default value : depends on marketplace, for allegro-pl: |
searchMode | string Default: "REGULAR" Enum: "REGULAR" "DESCRIPTIONS" "CLOSED" Defines where the given phrase should be searched in. Allowed values:
|
offset | integer [ 0 .. 599 ] Default: 0 Index of the first returned offer from all search results. Max offset is |
limit | integer [ 1 .. 60 ] Default: 60 The maximum number of offers in a response. |
sort | string Default: "relevance" Enum: "relevance" "+price" "-price" "+withDeliveryPrice" "-withDeliveryPrice" "+endTime" "-startTime" Search results sorting order. |
include | string Specify parts of the response that should be included in the output. Allowed values are the names of top level entities and all as an alias to all entities. By default, all top level entities are included. Use |
fallback | boolean Default: true Defines the behaviour of the search engine when no results with exact phrase match are found:
|
object You can filter and customize your search results to find exactly what you need by applying filters ids and their dictionary values to query according to the flowing pattern: id=value. When the filter definition looks like:
You can use 'Stan' filter to query results, i.e.:
|
header Parameters
Accept-Language | string <BCP-47 language code> Example: pl-PL Limits offers to the only translated to specified language. Also expected language of messages.
Default value : depends on marketplace, for allegro-pl: |
Responses
Response samples
- 200
- 400
- 403
- 404
- 422
- 429
- 500
- 502
{- "items": {
- "promoted": [
- {
- "id": "2865624934",
- "name": "Buty damskie adidas",
- "seller": {
- "id": "41846511",
- "login": "myLogin",
- "company": true,
- "superSeller": true
}, - "promotion": {
- "emphasized": true,
- "bold": true,
- "highlight": true
}, - "delivery": {
- "availableForFree": true,
- "lowestPrice": {
- "amount": "123.45",
- "currency": "PLN"
}
}, - "images": [
], - "sellingMode": {
- "format": "BUY_NOW",
- "price": {
- "amount": "123.45",
- "currency": "PLN"
}, - "fixedPrice": {
- "amount": "123.45",
- "currency": "PLN"
}, - "popularity": 51,
- "popularityRange": "[51-100]",
- "bidCount": 12
}, - "stock": {
- "unit": "UNIT",
- "available": 23
}, - "vendor": {
- "id": "CHARYTATYWNI_ALLEGRO",
}, - "category": {
- "id": "257931"
}, - "publication": {
- "endingAt": "2019-05-15T18:09:41.000Z"
}
}
], - "regular": [
- {
- "id": "2865624934",
- "name": "Buty damskie adidas",
- "seller": {
- "id": "41846511",
- "login": "myLogin",
- "company": true,
- "superSeller": true
}, - "promotion": {
- "emphasized": true,
- "bold": true,
- "highlight": true
}, - "delivery": {
- "availableForFree": true,
- "lowestPrice": {
- "amount": "123.45",
- "currency": "PLN"
}
}, - "images": [
], - "sellingMode": {
- "format": "BUY_NOW",
- "price": {
- "amount": "123.45",
- "currency": "PLN"
}, - "fixedPrice": {
- "amount": "123.45",
- "currency": "PLN"
}, - "popularity": 51,
- "popularityRange": "[51-100]",
- "bidCount": 12
}, - "stock": {
- "unit": "UNIT",
- "available": 23
}, - "vendor": {
- "id": "CHARYTATYWNI_ALLEGRO",
}, - "category": {
- "id": "257931"
}, - "publication": {
- "endingAt": "2019-05-15T18:09:41.000Z"
}
}
]
}, - "categories": {
- "subcategories": [
- {
- "id": "257929",
- "name": "Sportowe",
- "count": 123
}
], - "path": [
- {
- "id": "257929",
- "name": "Sportowe"
}
]
}, - "filters": [
- {
- "id": "campaign",
- "type": "MULTI",
- "name": "kampania",
- "values": [
- {
- "name": "raty zero",
- "value": "INSTALLMENTS_ZERO",
- "idSuffix": ".to",
- "count": 123,
- "selected": true
}
], - "minValue": 0,
- "maxValue": 1000,
- "unit": "zł"
}
], - "searchMeta": {
- "availableCount": 6000,
- "totalCount": 319203,
- "fallback": true
}, - "sort": [
- {
- "value": "-relevance",
- "name": "trafność",
- "order": "największa",
- "selected": true
}
]
}