Polecenia wsadowe
Zmiana ceny, liczby sztuk, ustawień i publikacji wielu ofert naraz.
- PUT
/sale/offer-quantity-change-commands/{commandId}— Polecenie zmiany liczby sztuk - GET
/sale/offer-quantity-change-commands/{commandId}— Wynik polecenia zmiany liczby sztuk - GET
/sale/offer-quantity-change-commands/{commandId}/tasks— Zadania polecenia zmiany liczby sztuk - PUT
/sale/offer-price-change-commands/{commandId}— Polecenie zmiany ceny - GET
/sale/offer-price-change-commands/{commandId}— Wynik polecenia zmiany ceny - GET
/sale/offer-price-change-commands/{commandId}/tasks— Zadania polecenia zmiany ceny - PUT
/sale/offer-modification-commands/{commandId}— Polecenie zmiany ustawień ofert - GET
/sale/offer-modification-commands/{commandId}— Wynik polecenia zmiany ustawień ofert - GET
/sale/offer-modification-commands/{commandId}/tasks— Zadania polecenia zmiany ustawień ofert - PUT
/sale/offer-publication-commands/{commandId}— Polecenie publikacji (ACTIVATE / END) - GET
/sale/offer-publication-commands/{commandId}— Wynik polecenia publikacji (ACTIVATE / END) - GET
/sale/offer-publication-commands/{commandId}/tasks— Zadania polecenia publikacji (ACTIVATE / END) - POST
/sale/offer-bulk-modification-commands— Zmiana cen i stanów wielu ofert (kształt Allegro) - GET
/sale/offer-bulk-modification-commands/{commandId}— Podsumowanie polecenia zmiany cen i stanów - GET
/sale/offer-bulk-modification-commands/{commandId}/tasks— Zadania polecenia zmiany cen i stanów
Polecenie zmiany liczby sztuk
PUT /sale/offer-quantity-change-commands/{commandId}
Allegro + rozszerzeniaallegro:api:sale:offers:writelimit: bulk
Do 1000 ofert (offerCriteria typu CONTAINS_OFFERS). allee wykonuje polecenie od razu: odpowiedź 201 ma ostateczne taskCount, a zadania mają statusy SUCCESS/FAIL (bez NEW/RUNNING).
Ten sam commandId w poleceniu innego rodzaju → 409 COMMAND_ID_CONFLICT. Oferta cudza albo nieistniejąca → zadanie FAIL (reszta się wykonuje). Błąd całego polecenia → 422 i nic się nie wykonuje.
Zgodność: zgodna z Allegro REST API, z rozszerzeniami allee (pola allee.*, alleeId) — PUT /sale/offer-quantity-change-commands/{commandId}.
Uprawnienie: zakres allegro:api:sale:offers:write.
Grupa limitu: bulk.
Parametry ścieżki
commandId string · uuid wymaganyTwój identyfikator polecenia (UUID) — powtórzony PUT zwraca zapisany wynik i niczego nie wykonuje drugi raz.
Treść żądania application/vnd.allegro.public.v1+json
modification object wymaganePola obiektu
changeType string wymaganeFIXED = ustaw, GAIN = dodaj (może być ujemne).
FIXED, GAINvalue integer wymaganeofferCriteria OfferCriteria wymaganeWybór ofert polecenia.
Pola obiektu
type string wymaganeCONTAINS_OFFERSoffers array<IdRef> wymaganeNajwyżej 1000 różnych ofert.
Pola obiektu
id string wymaganeOdpowiedzi
201 Wykonano. · CommandResult
id string · uuid zawszecommandId (UUID).
taskCount object zawszePola obiektu
total integer zawszesuccess integer zawszefailed integer zawszecreatedAt string · date-time zawszeBłędy
| HTTP | Kod | Znaczenie |
|---|---|---|
| 401 | invalid_token | Brak, zły, wygasły albo odwołany token lub klucz (format OAuth, nagłówek WWW-Authenticate). |
| 403 | ACCOUNT_INACTIVE | Konto sprzedawcy jest nieaktywne. |
| 403 | AccessDenied | Brak zakresu albo zasób innego sprzedawcy. |
| 403 | KEY_QUARANTINED | Kwarantanna: działa tylko odczyt (wykryto nietypowe użycie). |
| 403 | KEY_SUSPENDED | Klucz albo dostęp aplikacji wstrzymany (przez sprzedawcę albo ochronę). |
| 409 | COMMAND_ID_CONFLICT | Ten commandId użyto w poleceniu innego rodzaju, z inną treścią albo u innego sprzedawcy. |
| 413 | PAYLOAD_TOO_LARGE | Treść żądania za duża (JSON 5 MB, faktura PDF 3 MB). |
| 415 | UNSUPPORTED_MEDIA_TYPE | Zły Content-Type treści. |
| 422 | JsonMappingException | Treść nie jest poprawnym JSON albo ma zły kształt (np. images jako obiekty). |
| 422 | VALIDATION_ERROR | Zła wartość parametru zapytania (400) albo pola treści (422); path wskazuje miejsce. |
| 429 | TOO_MANY_CONCURRENT | Za dużo ciężkich operacji naraz (wsady, raporty, duże polecenia). |
| 429 | TOO_MANY_REQUESTS | Przekroczony limit (minutowy, grupy operacji albo IP). |
| 500 | INTERNAL_ERROR | Błąd serwera allee. |
curl -sS -X PUT "${ALLEE_API_URL:-https://api.allee.pl}/sale/offer-quantity-change-commands/4b222e65-b9cb-445c-9878-1bfde68dcccf" \
-H "Authorization: Bearer $ALLEE_API_KEY" \
-H "Accept: application/vnd.allegro.public.v1+json" \
-H "Content-Type: application/vnd.allegro.public.v1+json" \
--data-binary @- \
-w '\nHTTP %{http_code}\n' <<'JSON'
{
"modification": {
"changeType": "FIXED",
"value": 12
},
"offerCriteria": [
{
"type": "CONTAINS_OFFERS",
"offers": [
{
"id": "900000000000021"
}
]
}
]
}
JSON<?php
// allee API: PUT /sale/offer-quantity-change-commands/4b222e65-b9cb-445c-9878-1bfde68dcccf (PHP 8, rozszerzenie curl)
$base = getenv('ALLEE_API_URL') ?: 'https://api.allee.pl';
$body = [
'modification' => [
'changeType' => 'FIXED',
'value' => 12,
],
'offerCriteria' => [
[
'type' => 'CONTAINS_OFFERS',
'offers' => [
[
'id' => '900000000000021',
],
],
],
],
];
$ch = curl_init($base . '/sale/offer-quantity-change-commands/4b222e65-b9cb-445c-9878-1bfde68dcccf');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'PUT',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('ALLEE_API_KEY'),
'Accept: application/vnd.allegro.public.v1+json',
'Content-Type: application/vnd.allegro.public.v1+json',
],
CURLOPT_POSTFIELDS => json_encode($body, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES),
CURLOPT_RETURNTRANSFER => true,
]);
$odp = curl_exec($ch);
echo 'HTTP ', curl_getinfo($ch, CURLINFO_RESPONSE_CODE), "\n", $odp, "\n";# allee API: PUT /sale/offer-quantity-change-commands/4b222e65-b9cb-445c-9878-1bfde68dcccf (Python 3, biblioteka requests)
import os
import requests
BASE = os.environ.get("ALLEE_API_URL", "https://api.allee.pl")
headers = {
"Authorization": "Bearer " + os.environ["ALLEE_API_KEY"],
"Accept": "application/vnd.allegro.public.v1+json",
"Content-Type": "application/vnd.allegro.public.v1+json",
}
body = {
"modification": {
"changeType": "FIXED",
"value": 12,
},
"offerCriteria": [
{
"type": "CONTAINS_OFFERS",
"offers": [
{
"id": "900000000000021",
},
],
},
],
}
r = requests.request("PUT", BASE + "/sale/offer-quantity-change-commands/4b222e65-b9cb-445c-9878-1bfde68dcccf", headers=headers, json=body, timeout=60, allow_redirects=False)
print("HTTP", r.status_code)
print(r.text)// allee API: PUT /sale/offer-quantity-change-commands/4b222e65-b9cb-445c-9878-1bfde68dcccf (Node.js 18+, wbudowany fetch; plik .mjs)
const BASE = process.env.ALLEE_API_URL ?? "https://api.allee.pl";
const body = {
"modification": {
"changeType": "FIXED",
"value": 12
},
"offerCriteria": [
{
"type": "CONTAINS_OFFERS",
"offers": [
{
"id": "900000000000021"
}
]
}
]
};
const res = await fetch(`${BASE}/sale/offer-quantity-change-commands/4b222e65-b9cb-445c-9878-1bfde68dcccf`, {
method: "PUT",
headers: {
Authorization: `Bearer ${process.env.ALLEE_API_KEY}`,
"Accept": "application/vnd.allegro.public.v1+json",
"Content-Type": "application/vnd.allegro.public.v1+json",
},
body: JSON.stringify(body),
redirect: "manual",
});
console.log("HTTP", res.status);
console.log(await res.text());// allee API: PUT /sale/offer-quantity-change-commands/4b222e65-b9cb-445c-9878-1bfde68dcccf (C#, .NET 8+, HttpClient)
using System.Net.Http.Headers;
using System.Text;
var baseUrl = Environment.GetEnvironmentVariable("ALLEE_API_URL") ?? "https://api.allee.pl";
using var http = new HttpClient(new HttpClientHandler { AllowAutoRedirect = false });
using var req = new HttpRequestMessage(new HttpMethod("PUT"), baseUrl + "/sale/offer-quantity-change-commands/4b222e65-b9cb-445c-9878-1bfde68dcccf");
req.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("ALLEE_API_KEY"));
req.Headers.Accept.ParseAdd("application/vnd.allegro.public.v1+json");
var json = """
{
"modification": {
"changeType": "FIXED",
"value": 12
},
"offerCriteria": [
{
"type": "CONTAINS_OFFERS",
"offers": [
{
"id": "900000000000021"
}
]
}
]
}
""";
req.Content = new StringContent(json, Encoding.UTF8);
req.Content.Headers.ContentType = new MediaTypeHeaderValue("application/vnd.allegro.public.v1+json");
using var res = await http.SendAsync(req);
Console.WriteLine($"HTTP {(int)res.StatusCode}");
Console.WriteLine(await res.Content.ReadAsStringAsync());// allee API: PUT /sale/offer-quantity-change-commands/4b222e65-b9cb-445c-9878-1bfde68dcccf (Java 11+, java.net.http; uruchom: java Main.java)
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Main {
public static void main(String[] args) throws Exception {
String base = System.getenv().getOrDefault("ALLEE_API_URL", "https://api.allee.pl");
String body = """
{
"modification": {
"changeType": "FIXED",
"value": 12
},
"offerCriteria": [
{
"type": "CONTAINS_OFFERS",
"offers": [
{
"id": "900000000000021"
}
]
}
]
}
""";
HttpRequest req = HttpRequest.newBuilder(URI.create(base + "/sale/offer-quantity-change-commands/4b222e65-b9cb-445c-9878-1bfde68dcccf"))
.header("Authorization", "Bearer " + System.getenv("ALLEE_API_KEY"))
.header("Accept", "application/vnd.allegro.public.v1+json")
.header("Content-Type", "application/vnd.allegro.public.v1+json")
.method("PUT", HttpRequest.BodyPublishers.ofString(body))
.build();
HttpClient http = HttpClient.newBuilder().version(HttpClient.Version.HTTP_1_1).build();
HttpResponse<String> res = http.send(req, HttpResponse.BodyHandlers.ofString());
System.out.println("HTTP " + res.statusCode());
System.out.println(res.body());
}
}// allee API: PUT /sale/offer-quantity-change-commands/4b222e65-b9cb-445c-9878-1bfde68dcccf (Go 1.20+, net/http; uruchom: go run main.go)
package main
import (
"fmt"
"io"
"net/http"
"os"
"strings"
)
func main() {
base := os.Getenv("ALLEE_API_URL")
if base == "" {
base = "https://api.allee.pl"
}
body := `{
"modification": {
"changeType": "FIXED",
"value": 12
},
"offerCriteria": [
{
"type": "CONTAINS_OFFERS",
"offers": [
{
"id": "900000000000021"
}
]
}
]
}`
req, err := http.NewRequest("PUT", base+"/sale/offer-quantity-change-commands/4b222e65-b9cb-445c-9878-1bfde68dcccf", strings.NewReader(body))
if err != nil {
panic(err)
}
req.Header.Set("Authorization", "Bearer "+os.Getenv("ALLEE_API_KEY"))
req.Header.Set("Accept", "application/vnd.allegro.public.v1+json")
req.Header.Set("Content-Type", "application/vnd.allegro.public.v1+json")
klient := &http.Client{CheckRedirect: func(*http.Request, []*http.Request) error { return http.ErrUseLastResponse }}
res, err := klient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
dane, err := io.ReadAll(res.Body)
if err != nil {
panic(err)
}
fmt.Println("HTTP", res.StatusCode)
fmt.Println(string(dane))
}application/vnd.allegro.public.v1+json{
"id": "4b222e65-b9cb-445c-9878-1bfde68dcccf",
"taskCount": {
"total": 1,
"success": 1,
"failed": 0
},
"createdAt": "2026-11-20T07:09:38.785Z"
}Wynik polecenia zmiany liczby sztuk
GET /sale/offer-quantity-change-commands/{commandId}
zgodna z Allegroallegro:api:sale:offers:readlimit: read
Podsumowanie polecenia (liczniki zadań).
Zgodność: zgodna z Allegro REST API (ten sam kształt) — GET /sale/offer-quantity-change-commands/{commandId}.
Uprawnienie: zakres allegro:api:sale:offers:read.
Grupa limitu: read.
Parametry ścieżki
commandId string · uuid wymaganyTwój identyfikator polecenia (UUID) — powtórzony PUT zwraca zapisany wynik i niczego nie wykonuje drugi raz.
Odpowiedzi
200 Wynik. · CommandResult
id string · uuid zawszecommandId (UUID).
taskCount object zawszePola obiektu
total integer zawszesuccess integer zawszefailed integer zawszecreatedAt string · date-time zawszeBłędy
| HTTP | Kod | Znaczenie |
|---|---|---|
| 401 | invalid_token | Brak, zły, wygasły albo odwołany token lub klucz (format OAuth, nagłówek WWW-Authenticate). |
| 403 | ACCOUNT_INACTIVE | Konto sprzedawcy jest nieaktywne. |
| 403 | AccessDenied | Brak zakresu albo zasób innego sprzedawcy. |
| 403 | KEY_QUARANTINED | Kwarantanna: działa tylko odczyt (wykryto nietypowe użycie). |
| 403 | KEY_SUSPENDED | Klucz albo dostęp aplikacji wstrzymany (przez sprzedawcę albo ochronę). |
| 404 | NOT_FOUND | Nie ma takiego zasobu (albo należy do innego sprzedawcy — dla wątków, zwrotów i spraw odpowiedź jest ta sama). |
| 429 | TOO_MANY_REQUESTS | Przekroczony limit (minutowy, grupy operacji albo IP). |
| 500 | INTERNAL_ERROR | Błąd serwera allee. |
curl -sS -X GET "${ALLEE_API_URL:-https://api.allee.pl}/sale/offer-quantity-change-commands/4b222e65-b9cb-445c-9878-1bfde68dcccf" \
-H "Authorization: Bearer $ALLEE_API_KEY" \
-H "Accept: application/vnd.allegro.public.v1+json" \
-w '\nHTTP %{http_code}\n'<?php
// allee API: GET /sale/offer-quantity-change-commands/4b222e65-b9cb-445c-9878-1bfde68dcccf (PHP 8, rozszerzenie curl)
$base = getenv('ALLEE_API_URL') ?: 'https://api.allee.pl';
$ch = curl_init($base . '/sale/offer-quantity-change-commands/4b222e65-b9cb-445c-9878-1bfde68dcccf');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('ALLEE_API_KEY'),
'Accept: application/vnd.allegro.public.v1+json',
],
CURLOPT_RETURNTRANSFER => true,
]);
$odp = curl_exec($ch);
echo 'HTTP ', curl_getinfo($ch, CURLINFO_RESPONSE_CODE), "\n", $odp, "\n";# allee API: GET /sale/offer-quantity-change-commands/4b222e65-b9cb-445c-9878-1bfde68dcccf (Python 3, biblioteka requests)
import os
import requests
BASE = os.environ.get("ALLEE_API_URL", "https://api.allee.pl")
headers = {
"Authorization": "Bearer " + os.environ["ALLEE_API_KEY"],
"Accept": "application/vnd.allegro.public.v1+json",
}
r = requests.request("GET", BASE + "/sale/offer-quantity-change-commands/4b222e65-b9cb-445c-9878-1bfde68dcccf", headers=headers, timeout=60, allow_redirects=False)
print("HTTP", r.status_code)
print(r.text)// allee API: GET /sale/offer-quantity-change-commands/4b222e65-b9cb-445c-9878-1bfde68dcccf (Node.js 18+, wbudowany fetch; plik .mjs)
const BASE = process.env.ALLEE_API_URL ?? "https://api.allee.pl";
const res = await fetch(`${BASE}/sale/offer-quantity-change-commands/4b222e65-b9cb-445c-9878-1bfde68dcccf`, {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.ALLEE_API_KEY}`,
"Accept": "application/vnd.allegro.public.v1+json",
},
redirect: "manual",
});
console.log("HTTP", res.status);
console.log(await res.text());// allee API: GET /sale/offer-quantity-change-commands/4b222e65-b9cb-445c-9878-1bfde68dcccf (C#, .NET 8+, HttpClient)
using System.Net.Http.Headers;
using System.Text;
var baseUrl = Environment.GetEnvironmentVariable("ALLEE_API_URL") ?? "https://api.allee.pl";
using var http = new HttpClient(new HttpClientHandler { AllowAutoRedirect = false });
using var req = new HttpRequestMessage(new HttpMethod("GET"), baseUrl + "/sale/offer-quantity-change-commands/4b222e65-b9cb-445c-9878-1bfde68dcccf");
req.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("ALLEE_API_KEY"));
req.Headers.Accept.ParseAdd("application/vnd.allegro.public.v1+json");
using var res = await http.SendAsync(req);
Console.WriteLine($"HTTP {(int)res.StatusCode}");
Console.WriteLine(await res.Content.ReadAsStringAsync());// allee API: GET /sale/offer-quantity-change-commands/4b222e65-b9cb-445c-9878-1bfde68dcccf (Java 11+, java.net.http; uruchom: java Main.java)
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Main {
public static void main(String[] args) throws Exception {
String base = System.getenv().getOrDefault("ALLEE_API_URL", "https://api.allee.pl");
HttpRequest req = HttpRequest.newBuilder(URI.create(base + "/sale/offer-quantity-change-commands/4b222e65-b9cb-445c-9878-1bfde68dcccf"))
.header("Authorization", "Bearer " + System.getenv("ALLEE_API_KEY"))
.header("Accept", "application/vnd.allegro.public.v1+json")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpClient http = HttpClient.newBuilder().version(HttpClient.Version.HTTP_1_1).build();
HttpResponse<String> res = http.send(req, HttpResponse.BodyHandlers.ofString());
System.out.println("HTTP " + res.statusCode());
System.out.println(res.body());
}
}// allee API: GET /sale/offer-quantity-change-commands/4b222e65-b9cb-445c-9878-1bfde68dcccf (Go 1.20+, net/http; uruchom: go run main.go)
package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
base := os.Getenv("ALLEE_API_URL")
if base == "" {
base = "https://api.allee.pl"
}
req, err := http.NewRequest("GET", base+"/sale/offer-quantity-change-commands/4b222e65-b9cb-445c-9878-1bfde68dcccf", nil)
if err != nil {
panic(err)
}
req.Header.Set("Authorization", "Bearer "+os.Getenv("ALLEE_API_KEY"))
req.Header.Set("Accept", "application/vnd.allegro.public.v1+json")
klient := &http.Client{CheckRedirect: func(*http.Request, []*http.Request) error { return http.ErrUseLastResponse }}
res, err := klient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
dane, err := io.ReadAll(res.Body)
if err != nil {
panic(err)
}
fmt.Println("HTTP", res.StatusCode)
fmt.Println(string(dane))
}application/vnd.allegro.public.v1+json{
"id": "4b222e65-b9cb-445c-9878-1bfde68dcccf",
"taskCount": {
"total": 1,
"success": 1,
"failed": 0
},
"createdAt": "2026-11-20T07:09:38.785Z"
}Zadania polecenia zmiany liczby sztuk
GET /sale/offer-quantity-change-commands/{commandId}/tasks
zgodna z Allegroallegro:api:sale:offers:readlimit: read
Wynik dla każdej oferty: SUCCESS albo FAIL z błędami. Gdy w trakcie wykonywania cofnięto dostęp zlecającego (klucz, zgodę aplikacji albo konto), pozostałe oferty dostają FAIL z kodem ACCESS_REVOKED, a polecenie się kończy — zmiany wykonane wcześniej zostają.
Zgodność: zgodna z Allegro REST API (ten sam kształt) — GET /sale/offer-quantity-change-commands/{commandId}/tasks.
Uprawnienie: zakres allegro:api:sale:offers:read.
Grupa limitu: read.
Parametry ścieżki
commandId string · uuid wymaganyTwój identyfikator polecenia (UUID) — powtórzony PUT zwraca zapisany wynik i niczego nie wykonuje drugi raz.
Parametry zapytania
offset integerIle pozycji pominąć.
limit integerIle pozycji zwrócić (1–1000, domyślnie 100).
Odpowiedzi
200 Zadania. · CommandTaskList
tasks array<object> zawszePola obiektu
offer IdRef zawszeOdwołanie po identyfikatorze.
Pola obiektu
id string zawszestatus string zawszeSUCCESS, FAILmessage string zawszeerrors array<Error> zawszePola obiektu
code string zawszeKod maszynowy błędu — na nim opieraj obsługę (lista: przewodnik „Błędy”).
message string zawszeOpis dla programisty (po polsku).
details any zawszeDane dodatkowe albo null — np. id istniejącej oferty przy OfferDuplicate, {"current": "SENT"} przy błędzie statusu, {"retryAfterMs": 1200} przy limicie.
path string · null zawszePole żądania, którego dotyczy błąd, np. productSet[0].product.parameters.
userMessage string zawszeKomunikat, który można pokazać sprzedawcy.
retryable booleantrue = ponów później (429, 5xx, chwilowe blokady); false = ponowienie tego samego żądania nic nie da (od 26.11.2026).
scope stringCzego dotyczy błąd: konta (blokuje wszystkie oferty), jednej oferty, albo tego żądania.
ACCOUNT, OFFER, REQUESTfinishedAt string · date-time zawszeBłędy
| HTTP | Kod | Znaczenie |
|---|---|---|
| 400 | VALIDATION_ERROR | Zła wartość parametru zapytania (400) albo pola treści (422); path wskazuje miejsce. |
| 401 | invalid_token | Brak, zły, wygasły albo odwołany token lub klucz (format OAuth, nagłówek WWW-Authenticate). |
| 403 | ACCOUNT_INACTIVE | Konto sprzedawcy jest nieaktywne. |
| 403 | AccessDenied | Brak zakresu albo zasób innego sprzedawcy. |
| 403 | KEY_QUARANTINED | Kwarantanna: działa tylko odczyt (wykryto nietypowe użycie). |
| 403 | KEY_SUSPENDED | Klucz albo dostęp aplikacji wstrzymany (przez sprzedawcę albo ochronę). |
| 404 | NOT_FOUND | Nie ma takiego zasobu (albo należy do innego sprzedawcy — dla wątków, zwrotów i spraw odpowiedź jest ta sama). |
| 429 | TOO_MANY_REQUESTS | Przekroczony limit (minutowy, grupy operacji albo IP). |
| 500 | INTERNAL_ERROR | Błąd serwera allee. |
curl -sS -X GET "${ALLEE_API_URL:-https://api.allee.pl}/sale/offer-quantity-change-commands/4b222e65-b9cb-445c-9878-1bfde68dcccf/tasks?limit=100&offset=0" \
-H "Authorization: Bearer $ALLEE_API_KEY" \
-H "Accept: application/vnd.allegro.public.v1+json" \
-w '\nHTTP %{http_code}\n'<?php
// allee API: GET /sale/offer-quantity-change-commands/4b222e65-b9cb-445c-9878-1bfde68dcccf/tasks (PHP 8, rozszerzenie curl)
$base = getenv('ALLEE_API_URL') ?: 'https://api.allee.pl';
$ch = curl_init($base . '/sale/offer-quantity-change-commands/4b222e65-b9cb-445c-9878-1bfde68dcccf/tasks?limit=100&offset=0');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('ALLEE_API_KEY'),
'Accept: application/vnd.allegro.public.v1+json',
],
CURLOPT_RETURNTRANSFER => true,
]);
$odp = curl_exec($ch);
echo 'HTTP ', curl_getinfo($ch, CURLINFO_RESPONSE_CODE), "\n", $odp, "\n";# allee API: GET /sale/offer-quantity-change-commands/4b222e65-b9cb-445c-9878-1bfde68dcccf/tasks (Python 3, biblioteka requests)
import os
import requests
BASE = os.environ.get("ALLEE_API_URL", "https://api.allee.pl")
headers = {
"Authorization": "Bearer " + os.environ["ALLEE_API_KEY"],
"Accept": "application/vnd.allegro.public.v1+json",
}
r = requests.request("GET", BASE + "/sale/offer-quantity-change-commands/4b222e65-b9cb-445c-9878-1bfde68dcccf/tasks?limit=100&offset=0", headers=headers, timeout=60, allow_redirects=False)
print("HTTP", r.status_code)
print(r.text)// allee API: GET /sale/offer-quantity-change-commands/4b222e65-b9cb-445c-9878-1bfde68dcccf/tasks (Node.js 18+, wbudowany fetch; plik .mjs)
const BASE = process.env.ALLEE_API_URL ?? "https://api.allee.pl";
const res = await fetch(`${BASE}/sale/offer-quantity-change-commands/4b222e65-b9cb-445c-9878-1bfde68dcccf/tasks?limit=100&offset=0`, {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.ALLEE_API_KEY}`,
"Accept": "application/vnd.allegro.public.v1+json",
},
redirect: "manual",
});
console.log("HTTP", res.status);
console.log(await res.text());// allee API: GET /sale/offer-quantity-change-commands/4b222e65-b9cb-445c-9878-1bfde68dcccf/tasks (C#, .NET 8+, HttpClient)
using System.Net.Http.Headers;
using System.Text;
var baseUrl = Environment.GetEnvironmentVariable("ALLEE_API_URL") ?? "https://api.allee.pl";
using var http = new HttpClient(new HttpClientHandler { AllowAutoRedirect = false });
using var req = new HttpRequestMessage(new HttpMethod("GET"), baseUrl + "/sale/offer-quantity-change-commands/4b222e65-b9cb-445c-9878-1bfde68dcccf/tasks?limit=100&offset=0");
req.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("ALLEE_API_KEY"));
req.Headers.Accept.ParseAdd("application/vnd.allegro.public.v1+json");
using var res = await http.SendAsync(req);
Console.WriteLine($"HTTP {(int)res.StatusCode}");
Console.WriteLine(await res.Content.ReadAsStringAsync());// allee API: GET /sale/offer-quantity-change-commands/4b222e65-b9cb-445c-9878-1bfde68dcccf/tasks (Java 11+, java.net.http; uruchom: java Main.java)
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Main {
public static void main(String[] args) throws Exception {
String base = System.getenv().getOrDefault("ALLEE_API_URL", "https://api.allee.pl");
HttpRequest req = HttpRequest.newBuilder(URI.create(base + "/sale/offer-quantity-change-commands/4b222e65-b9cb-445c-9878-1bfde68dcccf/tasks?limit=100&offset=0"))
.header("Authorization", "Bearer " + System.getenv("ALLEE_API_KEY"))
.header("Accept", "application/vnd.allegro.public.v1+json")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpClient http = HttpClient.newBuilder().version(HttpClient.Version.HTTP_1_1).build();
HttpResponse<String> res = http.send(req, HttpResponse.BodyHandlers.ofString());
System.out.println("HTTP " + res.statusCode());
System.out.println(res.body());
}
}// allee API: GET /sale/offer-quantity-change-commands/4b222e65-b9cb-445c-9878-1bfde68dcccf/tasks (Go 1.20+, net/http; uruchom: go run main.go)
package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
base := os.Getenv("ALLEE_API_URL")
if base == "" {
base = "https://api.allee.pl"
}
req, err := http.NewRequest("GET", base+"/sale/offer-quantity-change-commands/4b222e65-b9cb-445c-9878-1bfde68dcccf/tasks?limit=100&offset=0", nil)
if err != nil {
panic(err)
}
req.Header.Set("Authorization", "Bearer "+os.Getenv("ALLEE_API_KEY"))
req.Header.Set("Accept", "application/vnd.allegro.public.v1+json")
klient := &http.Client{CheckRedirect: func(*http.Request, []*http.Request) error { return http.ErrUseLastResponse }}
res, err := klient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
dane, err := io.ReadAll(res.Body)
if err != nil {
panic(err)
}
fmt.Println("HTTP", res.StatusCode)
fmt.Println(string(dane))
}application/vnd.allegro.public.v1+json{
"tasks": [
{
"offer": {
"id": "900000000000021"
},
"status": "SUCCESS",
"message": "Zmieniono.",
"errors": [],
"finishedAt": "2026-11-20T07:09:38.785Z"
}
]
}Polecenie zmiany ceny
PUT /sale/offer-price-change-commands/{commandId}
Allegro + rozszerzeniaallegro:api:sale:offers:writelimit: bulk
Do 1000 ofert (offerCriteria typu CONTAINS_OFFERS). allee wykonuje polecenie od razu: odpowiedź 201 ma ostateczne taskCount, a zadania mają statusy SUCCESS/FAIL (bez NEW/RUNNING).
Ten sam commandId w poleceniu innego rodzaju → 409 COMMAND_ID_CONFLICT. Oferta cudza albo nieistniejąca → zadanie FAIL (reszta się wykonuje). Błąd całego polecenia → 422 i nic się nie wykonuje.
Zgodność: zgodna z Allegro REST API, z rozszerzeniami allee (pola allee.*, alleeId) — PUT /sale/offer-price-change-commands/{commandId}.
Uprawnienie: zakres allegro:api:sale:offers:write.
Grupa limitu: bulk.
Parametry ścieżki
commandId string · uuid wymaganyTwój identyfikator polecenia (UUID) — powtórzony PUT zwraca zapisany wynik i niczego nie wykonuje drugi raz.
Treść żądania application/vnd.allegro.public.v1+json
modification object wymaganePola obiektu
type string wymaganeFIXED_PRICEprice MoneyInput wymaganeKwota w żądaniu.
Pola obiektu
amount string|number wymaganeKwota jako tekst „123.45” (zalecane) albo liczba.
currency stringWaluta: tylko PLN (domyślnie PLN).
PLNofferCriteria OfferCriteria wymaganeWybór ofert polecenia.
Pola obiektu
type string wymaganeCONTAINS_OFFERSoffers array<IdRef> wymaganeNajwyżej 1000 różnych ofert.
Pola obiektu
id string wymaganeOdpowiedzi
201 Wykonano. · CommandResult
id string · uuid zawszecommandId (UUID).
taskCount object zawszePola obiektu
total integer zawszesuccess integer zawszefailed integer zawszecreatedAt string · date-time zawszeBłędy
| HTTP | Kod | Znaczenie |
|---|---|---|
| 401 | invalid_token | Brak, zły, wygasły albo odwołany token lub klucz (format OAuth, nagłówek WWW-Authenticate). |
| 403 | ACCOUNT_INACTIVE | Konto sprzedawcy jest nieaktywne. |
| 403 | AccessDenied | Brak zakresu albo zasób innego sprzedawcy. |
| 403 | KEY_QUARANTINED | Kwarantanna: działa tylko odczyt (wykryto nietypowe użycie). |
| 403 | KEY_SUSPENDED | Klucz albo dostęp aplikacji wstrzymany (przez sprzedawcę albo ochronę). |
| 409 | COMMAND_ID_CONFLICT | Ten commandId użyto w poleceniu innego rodzaju, z inną treścią albo u innego sprzedawcy. |
| 413 | PAYLOAD_TOO_LARGE | Treść żądania za duża (JSON 5 MB, faktura PDF 3 MB). |
| 415 | UNSUPPORTED_MEDIA_TYPE | Zły Content-Type treści. |
| 422 | JsonMappingException | Treść nie jest poprawnym JSON albo ma zły kształt (np. images jako obiekty). |
| 422 | VALIDATION_ERROR | Zła wartość parametru zapytania (400) albo pola treści (422); path wskazuje miejsce. |
| 429 | TOO_MANY_CONCURRENT | Za dużo ciężkich operacji naraz (wsady, raporty, duże polecenia). |
| 429 | TOO_MANY_REQUESTS | Przekroczony limit (minutowy, grupy operacji albo IP). |
| 500 | INTERNAL_ERROR | Błąd serwera allee. |
curl -sS -X PUT "${ALLEE_API_URL:-https://api.allee.pl}/sale/offer-price-change-commands/2fe63df7-b166-4288-850f-d8344a21f8d1" \
-H "Authorization: Bearer $ALLEE_API_KEY" \
-H "Accept: application/vnd.allegro.public.v1+json" \
-H "Content-Type: application/vnd.allegro.public.v1+json" \
--data-binary @- \
-w '\nHTTP %{http_code}\n' <<'JSON'
{
"modification": {
"type": "FIXED_PRICE",
"price": {
"amount": "42.90",
"currency": "PLN"
}
},
"offerCriteria": [
{
"type": "CONTAINS_OFFERS",
"offers": [
{
"id": "900000000000021"
}
]
}
]
}
JSON<?php
// allee API: PUT /sale/offer-price-change-commands/2fe63df7-b166-4288-850f-d8344a21f8d1 (PHP 8, rozszerzenie curl)
$base = getenv('ALLEE_API_URL') ?: 'https://api.allee.pl';
$body = [
'modification' => [
'type' => 'FIXED_PRICE',
'price' => [
'amount' => '42.90',
'currency' => 'PLN',
],
],
'offerCriteria' => [
[
'type' => 'CONTAINS_OFFERS',
'offers' => [
[
'id' => '900000000000021',
],
],
],
],
];
$ch = curl_init($base . '/sale/offer-price-change-commands/2fe63df7-b166-4288-850f-d8344a21f8d1');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'PUT',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('ALLEE_API_KEY'),
'Accept: application/vnd.allegro.public.v1+json',
'Content-Type: application/vnd.allegro.public.v1+json',
],
CURLOPT_POSTFIELDS => json_encode($body, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES),
CURLOPT_RETURNTRANSFER => true,
]);
$odp = curl_exec($ch);
echo 'HTTP ', curl_getinfo($ch, CURLINFO_RESPONSE_CODE), "\n", $odp, "\n";# allee API: PUT /sale/offer-price-change-commands/2fe63df7-b166-4288-850f-d8344a21f8d1 (Python 3, biblioteka requests)
import os
import requests
BASE = os.environ.get("ALLEE_API_URL", "https://api.allee.pl")
headers = {
"Authorization": "Bearer " + os.environ["ALLEE_API_KEY"],
"Accept": "application/vnd.allegro.public.v1+json",
"Content-Type": "application/vnd.allegro.public.v1+json",
}
body = {
"modification": {
"type": "FIXED_PRICE",
"price": {
"amount": "42.90",
"currency": "PLN",
},
},
"offerCriteria": [
{
"type": "CONTAINS_OFFERS",
"offers": [
{
"id": "900000000000021",
},
],
},
],
}
r = requests.request("PUT", BASE + "/sale/offer-price-change-commands/2fe63df7-b166-4288-850f-d8344a21f8d1", headers=headers, json=body, timeout=60, allow_redirects=False)
print("HTTP", r.status_code)
print(r.text)// allee API: PUT /sale/offer-price-change-commands/2fe63df7-b166-4288-850f-d8344a21f8d1 (Node.js 18+, wbudowany fetch; plik .mjs)
const BASE = process.env.ALLEE_API_URL ?? "https://api.allee.pl";
const body = {
"modification": {
"type": "FIXED_PRICE",
"price": {
"amount": "42.90",
"currency": "PLN"
}
},
"offerCriteria": [
{
"type": "CONTAINS_OFFERS",
"offers": [
{
"id": "900000000000021"
}
]
}
]
};
const res = await fetch(`${BASE}/sale/offer-price-change-commands/2fe63df7-b166-4288-850f-d8344a21f8d1`, {
method: "PUT",
headers: {
Authorization: `Bearer ${process.env.ALLEE_API_KEY}`,
"Accept": "application/vnd.allegro.public.v1+json",
"Content-Type": "application/vnd.allegro.public.v1+json",
},
body: JSON.stringify(body),
redirect: "manual",
});
console.log("HTTP", res.status);
console.log(await res.text());// allee API: PUT /sale/offer-price-change-commands/2fe63df7-b166-4288-850f-d8344a21f8d1 (C#, .NET 8+, HttpClient)
using System.Net.Http.Headers;
using System.Text;
var baseUrl = Environment.GetEnvironmentVariable("ALLEE_API_URL") ?? "https://api.allee.pl";
using var http = new HttpClient(new HttpClientHandler { AllowAutoRedirect = false });
using var req = new HttpRequestMessage(new HttpMethod("PUT"), baseUrl + "/sale/offer-price-change-commands/2fe63df7-b166-4288-850f-d8344a21f8d1");
req.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("ALLEE_API_KEY"));
req.Headers.Accept.ParseAdd("application/vnd.allegro.public.v1+json");
var json = """
{
"modification": {
"type": "FIXED_PRICE",
"price": {
"amount": "42.90",
"currency": "PLN"
}
},
"offerCriteria": [
{
"type": "CONTAINS_OFFERS",
"offers": [
{
"id": "900000000000021"
}
]
}
]
}
""";
req.Content = new StringContent(json, Encoding.UTF8);
req.Content.Headers.ContentType = new MediaTypeHeaderValue("application/vnd.allegro.public.v1+json");
using var res = await http.SendAsync(req);
Console.WriteLine($"HTTP {(int)res.StatusCode}");
Console.WriteLine(await res.Content.ReadAsStringAsync());// allee API: PUT /sale/offer-price-change-commands/2fe63df7-b166-4288-850f-d8344a21f8d1 (Java 11+, java.net.http; uruchom: java Main.java)
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Main {
public static void main(String[] args) throws Exception {
String base = System.getenv().getOrDefault("ALLEE_API_URL", "https://api.allee.pl");
String body = """
{
"modification": {
"type": "FIXED_PRICE",
"price": {
"amount": "42.90",
"currency": "PLN"
}
},
"offerCriteria": [
{
"type": "CONTAINS_OFFERS",
"offers": [
{
"id": "900000000000021"
}
]
}
]
}
""";
HttpRequest req = HttpRequest.newBuilder(URI.create(base + "/sale/offer-price-change-commands/2fe63df7-b166-4288-850f-d8344a21f8d1"))
.header("Authorization", "Bearer " + System.getenv("ALLEE_API_KEY"))
.header("Accept", "application/vnd.allegro.public.v1+json")
.header("Content-Type", "application/vnd.allegro.public.v1+json")
.method("PUT", HttpRequest.BodyPublishers.ofString(body))
.build();
HttpClient http = HttpClient.newBuilder().version(HttpClient.Version.HTTP_1_1).build();
HttpResponse<String> res = http.send(req, HttpResponse.BodyHandlers.ofString());
System.out.println("HTTP " + res.statusCode());
System.out.println(res.body());
}
}// allee API: PUT /sale/offer-price-change-commands/2fe63df7-b166-4288-850f-d8344a21f8d1 (Go 1.20+, net/http; uruchom: go run main.go)
package main
import (
"fmt"
"io"
"net/http"
"os"
"strings"
)
func main() {
base := os.Getenv("ALLEE_API_URL")
if base == "" {
base = "https://api.allee.pl"
}
body := `{
"modification": {
"type": "FIXED_PRICE",
"price": {
"amount": "42.90",
"currency": "PLN"
}
},
"offerCriteria": [
{
"type": "CONTAINS_OFFERS",
"offers": [
{
"id": "900000000000021"
}
]
}
]
}`
req, err := http.NewRequest("PUT", base+"/sale/offer-price-change-commands/2fe63df7-b166-4288-850f-d8344a21f8d1", strings.NewReader(body))
if err != nil {
panic(err)
}
req.Header.Set("Authorization", "Bearer "+os.Getenv("ALLEE_API_KEY"))
req.Header.Set("Accept", "application/vnd.allegro.public.v1+json")
req.Header.Set("Content-Type", "application/vnd.allegro.public.v1+json")
klient := &http.Client{CheckRedirect: func(*http.Request, []*http.Request) error { return http.ErrUseLastResponse }}
res, err := klient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
dane, err := io.ReadAll(res.Body)
if err != nil {
panic(err)
}
fmt.Println("HTTP", res.StatusCode)
fmt.Println(string(dane))
}application/vnd.allegro.public.v1+json{
"id": "2fe63df7-b166-4288-850f-d8344a21f8d1",
"taskCount": {
"total": 1,
"success": 1,
"failed": 0
},
"createdAt": "2026-11-20T07:09:38.797Z"
}Wynik polecenia zmiany ceny
GET /sale/offer-price-change-commands/{commandId}
zgodna z Allegroallegro:api:sale:offers:readlimit: read
Podsumowanie polecenia (liczniki zadań).
Zgodność: zgodna z Allegro REST API (ten sam kształt) — GET /sale/offer-price-change-commands/{commandId}.
Uprawnienie: zakres allegro:api:sale:offers:read.
Grupa limitu: read.
Parametry ścieżki
commandId string · uuid wymaganyTwój identyfikator polecenia (UUID) — powtórzony PUT zwraca zapisany wynik i niczego nie wykonuje drugi raz.
Odpowiedzi
200 Wynik. · CommandResult
id string · uuid zawszecommandId (UUID).
taskCount object zawszePola obiektu
total integer zawszesuccess integer zawszefailed integer zawszecreatedAt string · date-time zawszeBłędy
| HTTP | Kod | Znaczenie |
|---|---|---|
| 401 | invalid_token | Brak, zły, wygasły albo odwołany token lub klucz (format OAuth, nagłówek WWW-Authenticate). |
| 403 | ACCOUNT_INACTIVE | Konto sprzedawcy jest nieaktywne. |
| 403 | AccessDenied | Brak zakresu albo zasób innego sprzedawcy. |
| 403 | KEY_QUARANTINED | Kwarantanna: działa tylko odczyt (wykryto nietypowe użycie). |
| 403 | KEY_SUSPENDED | Klucz albo dostęp aplikacji wstrzymany (przez sprzedawcę albo ochronę). |
| 404 | NOT_FOUND | Nie ma takiego zasobu (albo należy do innego sprzedawcy — dla wątków, zwrotów i spraw odpowiedź jest ta sama). |
| 429 | TOO_MANY_REQUESTS | Przekroczony limit (minutowy, grupy operacji albo IP). |
| 500 | INTERNAL_ERROR | Błąd serwera allee. |
curl -sS -X GET "${ALLEE_API_URL:-https://api.allee.pl}/sale/offer-price-change-commands/2fe63df7-b166-4288-850f-d8344a21f8d1" \
-H "Authorization: Bearer $ALLEE_API_KEY" \
-H "Accept: application/vnd.allegro.public.v1+json" \
-w '\nHTTP %{http_code}\n'<?php
// allee API: GET /sale/offer-price-change-commands/2fe63df7-b166-4288-850f-d8344a21f8d1 (PHP 8, rozszerzenie curl)
$base = getenv('ALLEE_API_URL') ?: 'https://api.allee.pl';
$ch = curl_init($base . '/sale/offer-price-change-commands/2fe63df7-b166-4288-850f-d8344a21f8d1');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('ALLEE_API_KEY'),
'Accept: application/vnd.allegro.public.v1+json',
],
CURLOPT_RETURNTRANSFER => true,
]);
$odp = curl_exec($ch);
echo 'HTTP ', curl_getinfo($ch, CURLINFO_RESPONSE_CODE), "\n", $odp, "\n";# allee API: GET /sale/offer-price-change-commands/2fe63df7-b166-4288-850f-d8344a21f8d1 (Python 3, biblioteka requests)
import os
import requests
BASE = os.environ.get("ALLEE_API_URL", "https://api.allee.pl")
headers = {
"Authorization": "Bearer " + os.environ["ALLEE_API_KEY"],
"Accept": "application/vnd.allegro.public.v1+json",
}
r = requests.request("GET", BASE + "/sale/offer-price-change-commands/2fe63df7-b166-4288-850f-d8344a21f8d1", headers=headers, timeout=60, allow_redirects=False)
print("HTTP", r.status_code)
print(r.text)// allee API: GET /sale/offer-price-change-commands/2fe63df7-b166-4288-850f-d8344a21f8d1 (Node.js 18+, wbudowany fetch; plik .mjs)
const BASE = process.env.ALLEE_API_URL ?? "https://api.allee.pl";
const res = await fetch(`${BASE}/sale/offer-price-change-commands/2fe63df7-b166-4288-850f-d8344a21f8d1`, {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.ALLEE_API_KEY}`,
"Accept": "application/vnd.allegro.public.v1+json",
},
redirect: "manual",
});
console.log("HTTP", res.status);
console.log(await res.text());// allee API: GET /sale/offer-price-change-commands/2fe63df7-b166-4288-850f-d8344a21f8d1 (C#, .NET 8+, HttpClient)
using System.Net.Http.Headers;
using System.Text;
var baseUrl = Environment.GetEnvironmentVariable("ALLEE_API_URL") ?? "https://api.allee.pl";
using var http = new HttpClient(new HttpClientHandler { AllowAutoRedirect = false });
using var req = new HttpRequestMessage(new HttpMethod("GET"), baseUrl + "/sale/offer-price-change-commands/2fe63df7-b166-4288-850f-d8344a21f8d1");
req.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("ALLEE_API_KEY"));
req.Headers.Accept.ParseAdd("application/vnd.allegro.public.v1+json");
using var res = await http.SendAsync(req);
Console.WriteLine($"HTTP {(int)res.StatusCode}");
Console.WriteLine(await res.Content.ReadAsStringAsync());// allee API: GET /sale/offer-price-change-commands/2fe63df7-b166-4288-850f-d8344a21f8d1 (Java 11+, java.net.http; uruchom: java Main.java)
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Main {
public static void main(String[] args) throws Exception {
String base = System.getenv().getOrDefault("ALLEE_API_URL", "https://api.allee.pl");
HttpRequest req = HttpRequest.newBuilder(URI.create(base + "/sale/offer-price-change-commands/2fe63df7-b166-4288-850f-d8344a21f8d1"))
.header("Authorization", "Bearer " + System.getenv("ALLEE_API_KEY"))
.header("Accept", "application/vnd.allegro.public.v1+json")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpClient http = HttpClient.newBuilder().version(HttpClient.Version.HTTP_1_1).build();
HttpResponse<String> res = http.send(req, HttpResponse.BodyHandlers.ofString());
System.out.println("HTTP " + res.statusCode());
System.out.println(res.body());
}
}// allee API: GET /sale/offer-price-change-commands/2fe63df7-b166-4288-850f-d8344a21f8d1 (Go 1.20+, net/http; uruchom: go run main.go)
package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
base := os.Getenv("ALLEE_API_URL")
if base == "" {
base = "https://api.allee.pl"
}
req, err := http.NewRequest("GET", base+"/sale/offer-price-change-commands/2fe63df7-b166-4288-850f-d8344a21f8d1", nil)
if err != nil {
panic(err)
}
req.Header.Set("Authorization", "Bearer "+os.Getenv("ALLEE_API_KEY"))
req.Header.Set("Accept", "application/vnd.allegro.public.v1+json")
klient := &http.Client{CheckRedirect: func(*http.Request, []*http.Request) error { return http.ErrUseLastResponse }}
res, err := klient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
dane, err := io.ReadAll(res.Body)
if err != nil {
panic(err)
}
fmt.Println("HTTP", res.StatusCode)
fmt.Println(string(dane))
}application/vnd.allegro.public.v1+json{
"id": "2fe63df7-b166-4288-850f-d8344a21f8d1",
"taskCount": {
"total": 1,
"success": 1,
"failed": 0
},
"createdAt": "2026-11-20T07:09:38.797Z"
}Zadania polecenia zmiany ceny
GET /sale/offer-price-change-commands/{commandId}/tasks
zgodna z Allegroallegro:api:sale:offers:readlimit: read
Wynik dla każdej oferty: SUCCESS albo FAIL z błędami. Gdy w trakcie wykonywania cofnięto dostęp zlecającego (klucz, zgodę aplikacji albo konto), pozostałe oferty dostają FAIL z kodem ACCESS_REVOKED, a polecenie się kończy — zmiany wykonane wcześniej zostają.
Zgodność: zgodna z Allegro REST API (ten sam kształt) — GET /sale/offer-price-change-commands/{commandId}/tasks.
Uprawnienie: zakres allegro:api:sale:offers:read.
Grupa limitu: read.
Parametry ścieżki
commandId string · uuid wymaganyTwój identyfikator polecenia (UUID) — powtórzony PUT zwraca zapisany wynik i niczego nie wykonuje drugi raz.
Parametry zapytania
offset integerIle pozycji pominąć.
limit integerIle pozycji zwrócić (1–1000, domyślnie 100).
Odpowiedzi
200 Zadania. · CommandTaskList
tasks array<object> zawszePola obiektu
offer IdRef zawszeOdwołanie po identyfikatorze.
Pola obiektu
id string zawszestatus string zawszeSUCCESS, FAILmessage string zawszeerrors array<Error> zawszePola obiektu
code string zawszeKod maszynowy błędu — na nim opieraj obsługę (lista: przewodnik „Błędy”).
message string zawszeOpis dla programisty (po polsku).
details any zawszeDane dodatkowe albo null — np. id istniejącej oferty przy OfferDuplicate, {"current": "SENT"} przy błędzie statusu, {"retryAfterMs": 1200} przy limicie.
path string · null zawszePole żądania, którego dotyczy błąd, np. productSet[0].product.parameters.
userMessage string zawszeKomunikat, który można pokazać sprzedawcy.
retryable booleantrue = ponów później (429, 5xx, chwilowe blokady); false = ponowienie tego samego żądania nic nie da (od 26.11.2026).
scope stringCzego dotyczy błąd: konta (blokuje wszystkie oferty), jednej oferty, albo tego żądania.
ACCOUNT, OFFER, REQUESTfinishedAt string · date-time zawszeBłędy
| HTTP | Kod | Znaczenie |
|---|---|---|
| 400 | VALIDATION_ERROR | Zła wartość parametru zapytania (400) albo pola treści (422); path wskazuje miejsce. |
| 401 | invalid_token | Brak, zły, wygasły albo odwołany token lub klucz (format OAuth, nagłówek WWW-Authenticate). |
| 403 | ACCOUNT_INACTIVE | Konto sprzedawcy jest nieaktywne. |
| 403 | AccessDenied | Brak zakresu albo zasób innego sprzedawcy. |
| 403 | KEY_QUARANTINED | Kwarantanna: działa tylko odczyt (wykryto nietypowe użycie). |
| 403 | KEY_SUSPENDED | Klucz albo dostęp aplikacji wstrzymany (przez sprzedawcę albo ochronę). |
| 404 | NOT_FOUND | Nie ma takiego zasobu (albo należy do innego sprzedawcy — dla wątków, zwrotów i spraw odpowiedź jest ta sama). |
| 429 | TOO_MANY_REQUESTS | Przekroczony limit (minutowy, grupy operacji albo IP). |
| 500 | INTERNAL_ERROR | Błąd serwera allee. |
curl -sS -X GET "${ALLEE_API_URL:-https://api.allee.pl}/sale/offer-price-change-commands/2fe63df7-b166-4288-850f-d8344a21f8d1/tasks" \
-H "Authorization: Bearer $ALLEE_API_KEY" \
-H "Accept: application/vnd.allegro.public.v1+json" \
-w '\nHTTP %{http_code}\n'<?php
// allee API: GET /sale/offer-price-change-commands/2fe63df7-b166-4288-850f-d8344a21f8d1/tasks (PHP 8, rozszerzenie curl)
$base = getenv('ALLEE_API_URL') ?: 'https://api.allee.pl';
$ch = curl_init($base . '/sale/offer-price-change-commands/2fe63df7-b166-4288-850f-d8344a21f8d1/tasks');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('ALLEE_API_KEY'),
'Accept: application/vnd.allegro.public.v1+json',
],
CURLOPT_RETURNTRANSFER => true,
]);
$odp = curl_exec($ch);
echo 'HTTP ', curl_getinfo($ch, CURLINFO_RESPONSE_CODE), "\n", $odp, "\n";# allee API: GET /sale/offer-price-change-commands/2fe63df7-b166-4288-850f-d8344a21f8d1/tasks (Python 3, biblioteka requests)
import os
import requests
BASE = os.environ.get("ALLEE_API_URL", "https://api.allee.pl")
headers = {
"Authorization": "Bearer " + os.environ["ALLEE_API_KEY"],
"Accept": "application/vnd.allegro.public.v1+json",
}
r = requests.request("GET", BASE + "/sale/offer-price-change-commands/2fe63df7-b166-4288-850f-d8344a21f8d1/tasks", headers=headers, timeout=60, allow_redirects=False)
print("HTTP", r.status_code)
print(r.text)// allee API: GET /sale/offer-price-change-commands/2fe63df7-b166-4288-850f-d8344a21f8d1/tasks (Node.js 18+, wbudowany fetch; plik .mjs)
const BASE = process.env.ALLEE_API_URL ?? "https://api.allee.pl";
const res = await fetch(`${BASE}/sale/offer-price-change-commands/2fe63df7-b166-4288-850f-d8344a21f8d1/tasks`, {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.ALLEE_API_KEY}`,
"Accept": "application/vnd.allegro.public.v1+json",
},
redirect: "manual",
});
console.log("HTTP", res.status);
console.log(await res.text());// allee API: GET /sale/offer-price-change-commands/2fe63df7-b166-4288-850f-d8344a21f8d1/tasks (C#, .NET 8+, HttpClient)
using System.Net.Http.Headers;
using System.Text;
var baseUrl = Environment.GetEnvironmentVariable("ALLEE_API_URL") ?? "https://api.allee.pl";
using var http = new HttpClient(new HttpClientHandler { AllowAutoRedirect = false });
using var req = new HttpRequestMessage(new HttpMethod("GET"), baseUrl + "/sale/offer-price-change-commands/2fe63df7-b166-4288-850f-d8344a21f8d1/tasks");
req.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("ALLEE_API_KEY"));
req.Headers.Accept.ParseAdd("application/vnd.allegro.public.v1+json");
using var res = await http.SendAsync(req);
Console.WriteLine($"HTTP {(int)res.StatusCode}");
Console.WriteLine(await res.Content.ReadAsStringAsync());// allee API: GET /sale/offer-price-change-commands/2fe63df7-b166-4288-850f-d8344a21f8d1/tasks (Java 11+, java.net.http; uruchom: java Main.java)
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Main {
public static void main(String[] args) throws Exception {
String base = System.getenv().getOrDefault("ALLEE_API_URL", "https://api.allee.pl");
HttpRequest req = HttpRequest.newBuilder(URI.create(base + "/sale/offer-price-change-commands/2fe63df7-b166-4288-850f-d8344a21f8d1/tasks"))
.header("Authorization", "Bearer " + System.getenv("ALLEE_API_KEY"))
.header("Accept", "application/vnd.allegro.public.v1+json")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpClient http = HttpClient.newBuilder().version(HttpClient.Version.HTTP_1_1).build();
HttpResponse<String> res = http.send(req, HttpResponse.BodyHandlers.ofString());
System.out.println("HTTP " + res.statusCode());
System.out.println(res.body());
}
}// allee API: GET /sale/offer-price-change-commands/2fe63df7-b166-4288-850f-d8344a21f8d1/tasks (Go 1.20+, net/http; uruchom: go run main.go)
package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
base := os.Getenv("ALLEE_API_URL")
if base == "" {
base = "https://api.allee.pl"
}
req, err := http.NewRequest("GET", base+"/sale/offer-price-change-commands/2fe63df7-b166-4288-850f-d8344a21f8d1/tasks", nil)
if err != nil {
panic(err)
}
req.Header.Set("Authorization", "Bearer "+os.Getenv("ALLEE_API_KEY"))
req.Header.Set("Accept", "application/vnd.allegro.public.v1+json")
klient := &http.Client{CheckRedirect: func(*http.Request, []*http.Request) error { return http.ErrUseLastResponse }}
res, err := klient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
dane, err := io.ReadAll(res.Body)
if err != nil {
panic(err)
}
fmt.Println("HTTP", res.StatusCode)
fmt.Println(string(dane))
}application/vnd.allegro.public.v1+json{
"tasks": [
{
"offer": {
"id": "900000000000021"
},
"status": "SUCCESS",
"message": "Zmieniono.",
"errors": [],
"finishedAt": "2026-11-20T07:09:38.797Z"
}
]
}Polecenie zmiany ustawień ofert
PUT /sale/offer-modification-commands/{commandId}
Allegro + rozszerzeniaallegro:api:sale:offers:writelimit: bulk
Do 1000 ofert (offerCriteria typu CONTAINS_OFFERS). allee wykonuje polecenie od razu: odpowiedź 201 ma ostateczne taskCount, a zadania mają statusy SUCCESS/FAIL (bez NEW/RUNNING).
Ten sam commandId w poleceniu innego rodzaju → 409 COMMAND_ID_CONFLICT. Oferta cudza albo nieistniejąca → zadanie FAIL (reszta się wykonuje). Błąd całego polecenia → 422 i nic się nie wykonuje.
Zmieniane pola: tylko delivery (handlingTime, shippingRates) i afterSalesServices.
Zgodność: zgodna z Allegro REST API, z rozszerzeniami allee (pola allee.*, alleeId) — PUT /sale/offer-modification-commands/{commandId}.
Uprawnienie: zakres allegro:api:sale:offers:write.
Grupa limitu: bulk.
Parametry ścieżki
commandId string · uuid wymaganyTwój identyfikator polecenia (UUID) — powtórzony PUT zwraca zapisany wynik i niczego nie wykonuje drugi raz.
Treść żądania application/vnd.allegro.public.v1+json
modification object wymaganeTylko delivery i afterSalesServices (inne pole → zadanie FAIL UnknownJSONProperty).
Pola obiektu
delivery objectPola obiektu
handlingTime stringshippingRates IdRefOdwołanie po identyfikatorze.
Pola obiektu
id string wymaganeafterSalesServices objectPola obiektu
returnPolicy IdRef · nullPola obiektu
id string wymaganewarranty IdRef · nullPola obiektu
id string wymaganeimpliedWarranty IdRef · nullPola obiektu
id string wymaganeofferCriteria OfferCriteria wymaganeWybór ofert polecenia.
Pola obiektu
type string wymaganeCONTAINS_OFFERSoffers array<IdRef> wymaganeNajwyżej 1000 różnych ofert.
Pola obiektu
id string wymaganeOdpowiedzi
201 Wykonano. · CommandResult
id string · uuid zawszecommandId (UUID).
taskCount object zawszePola obiektu
total integer zawszesuccess integer zawszefailed integer zawszecreatedAt string · date-time zawszeBłędy
| HTTP | Kod | Znaczenie |
|---|---|---|
| 401 | invalid_token | Brak, zły, wygasły albo odwołany token lub klucz (format OAuth, nagłówek WWW-Authenticate). |
| 403 | ACCOUNT_INACTIVE | Konto sprzedawcy jest nieaktywne. |
| 403 | AccessDenied | Brak zakresu albo zasób innego sprzedawcy. |
| 403 | KEY_QUARANTINED | Kwarantanna: działa tylko odczyt (wykryto nietypowe użycie). |
| 403 | KEY_SUSPENDED | Klucz albo dostęp aplikacji wstrzymany (przez sprzedawcę albo ochronę). |
| 409 | COMMAND_ID_CONFLICT | Ten commandId użyto w poleceniu innego rodzaju, z inną treścią albo u innego sprzedawcy. |
| 413 | PAYLOAD_TOO_LARGE | Treść żądania za duża (JSON 5 MB, faktura PDF 3 MB). |
| 415 | UNSUPPORTED_MEDIA_TYPE | Zły Content-Type treści. |
| 422 | JsonMappingException | Treść nie jest poprawnym JSON albo ma zły kształt (np. images jako obiekty). |
| 422 | VALIDATION_ERROR | Zła wartość parametru zapytania (400) albo pola treści (422); path wskazuje miejsce. |
| 429 | TOO_MANY_CONCURRENT | Za dużo ciężkich operacji naraz (wsady, raporty, duże polecenia). |
| 429 | TOO_MANY_REQUESTS | Przekroczony limit (minutowy, grupy operacji albo IP). |
| 500 | INTERNAL_ERROR | Błąd serwera allee. |
curl -sS -X PUT "${ALLEE_API_URL:-https://api.allee.pl}/sale/offer-modification-commands/a9b79411-4a0f-4535-87b2-123d1d6c93fd" \
-H "Authorization: Bearer $ALLEE_API_KEY" \
-H "Accept: application/vnd.allegro.public.v1+json" \
-H "Content-Type: application/vnd.allegro.public.v1+json" \
--data-binary @- \
-w '\nHTTP %{http_code}\n' <<'JSON'
{
"modification": {
"delivery": {
"handlingTime": "P2D"
},
"afterSalesServices": {
"warranty": {
"id": "be0843b2-f1d8-4520-9e43-c827ec6b1193"
}
}
},
"offerCriteria": [
{
"type": "CONTAINS_OFFERS",
"offers": [
{
"id": "900000000000021"
}
]
}
]
}
JSON<?php
// allee API: PUT /sale/offer-modification-commands/a9b79411-4a0f-4535-87b2-123d1d6c93fd (PHP 8, rozszerzenie curl)
$base = getenv('ALLEE_API_URL') ?: 'https://api.allee.pl';
$body = [
'modification' => [
'delivery' => [
'handlingTime' => 'P2D',
],
'afterSalesServices' => [
'warranty' => [
'id' => 'be0843b2-f1d8-4520-9e43-c827ec6b1193',
],
],
],
'offerCriteria' => [
[
'type' => 'CONTAINS_OFFERS',
'offers' => [
[
'id' => '900000000000021',
],
],
],
],
];
$ch = curl_init($base . '/sale/offer-modification-commands/a9b79411-4a0f-4535-87b2-123d1d6c93fd');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'PUT',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('ALLEE_API_KEY'),
'Accept: application/vnd.allegro.public.v1+json',
'Content-Type: application/vnd.allegro.public.v1+json',
],
CURLOPT_POSTFIELDS => json_encode($body, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES),
CURLOPT_RETURNTRANSFER => true,
]);
$odp = curl_exec($ch);
echo 'HTTP ', curl_getinfo($ch, CURLINFO_RESPONSE_CODE), "\n", $odp, "\n";# allee API: PUT /sale/offer-modification-commands/a9b79411-4a0f-4535-87b2-123d1d6c93fd (Python 3, biblioteka requests)
import os
import requests
BASE = os.environ.get("ALLEE_API_URL", "https://api.allee.pl")
headers = {
"Authorization": "Bearer " + os.environ["ALLEE_API_KEY"],
"Accept": "application/vnd.allegro.public.v1+json",
"Content-Type": "application/vnd.allegro.public.v1+json",
}
body = {
"modification": {
"delivery": {
"handlingTime": "P2D",
},
"afterSalesServices": {
"warranty": {
"id": "be0843b2-f1d8-4520-9e43-c827ec6b1193",
},
},
},
"offerCriteria": [
{
"type": "CONTAINS_OFFERS",
"offers": [
{
"id": "900000000000021",
},
],
},
],
}
r = requests.request("PUT", BASE + "/sale/offer-modification-commands/a9b79411-4a0f-4535-87b2-123d1d6c93fd", headers=headers, json=body, timeout=60, allow_redirects=False)
print("HTTP", r.status_code)
print(r.text)// allee API: PUT /sale/offer-modification-commands/a9b79411-4a0f-4535-87b2-123d1d6c93fd (Node.js 18+, wbudowany fetch; plik .mjs)
const BASE = process.env.ALLEE_API_URL ?? "https://api.allee.pl";
const body = {
"modification": {
"delivery": {
"handlingTime": "P2D"
},
"afterSalesServices": {
"warranty": {
"id": "be0843b2-f1d8-4520-9e43-c827ec6b1193"
}
}
},
"offerCriteria": [
{
"type": "CONTAINS_OFFERS",
"offers": [
{
"id": "900000000000021"
}
]
}
]
};
const res = await fetch(`${BASE}/sale/offer-modification-commands/a9b79411-4a0f-4535-87b2-123d1d6c93fd`, {
method: "PUT",
headers: {
Authorization: `Bearer ${process.env.ALLEE_API_KEY}`,
"Accept": "application/vnd.allegro.public.v1+json",
"Content-Type": "application/vnd.allegro.public.v1+json",
},
body: JSON.stringify(body),
redirect: "manual",
});
console.log("HTTP", res.status);
console.log(await res.text());// allee API: PUT /sale/offer-modification-commands/a9b79411-4a0f-4535-87b2-123d1d6c93fd (C#, .NET 8+, HttpClient)
using System.Net.Http.Headers;
using System.Text;
var baseUrl = Environment.GetEnvironmentVariable("ALLEE_API_URL") ?? "https://api.allee.pl";
using var http = new HttpClient(new HttpClientHandler { AllowAutoRedirect = false });
using var req = new HttpRequestMessage(new HttpMethod("PUT"), baseUrl + "/sale/offer-modification-commands/a9b79411-4a0f-4535-87b2-123d1d6c93fd");
req.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("ALLEE_API_KEY"));
req.Headers.Accept.ParseAdd("application/vnd.allegro.public.v1+json");
var json = """
{
"modification": {
"delivery": {
"handlingTime": "P2D"
},
"afterSalesServices": {
"warranty": {
"id": "be0843b2-f1d8-4520-9e43-c827ec6b1193"
}
}
},
"offerCriteria": [
{
"type": "CONTAINS_OFFERS",
"offers": [
{
"id": "900000000000021"
}
]
}
]
}
""";
req.Content = new StringContent(json, Encoding.UTF8);
req.Content.Headers.ContentType = new MediaTypeHeaderValue("application/vnd.allegro.public.v1+json");
using var res = await http.SendAsync(req);
Console.WriteLine($"HTTP {(int)res.StatusCode}");
Console.WriteLine(await res.Content.ReadAsStringAsync());// allee API: PUT /sale/offer-modification-commands/a9b79411-4a0f-4535-87b2-123d1d6c93fd (Java 11+, java.net.http; uruchom: java Main.java)
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Main {
public static void main(String[] args) throws Exception {
String base = System.getenv().getOrDefault("ALLEE_API_URL", "https://api.allee.pl");
String body = """
{
"modification": {
"delivery": {
"handlingTime": "P2D"
},
"afterSalesServices": {
"warranty": {
"id": "be0843b2-f1d8-4520-9e43-c827ec6b1193"
}
}
},
"offerCriteria": [
{
"type": "CONTAINS_OFFERS",
"offers": [
{
"id": "900000000000021"
}
]
}
]
}
""";
HttpRequest req = HttpRequest.newBuilder(URI.create(base + "/sale/offer-modification-commands/a9b79411-4a0f-4535-87b2-123d1d6c93fd"))
.header("Authorization", "Bearer " + System.getenv("ALLEE_API_KEY"))
.header("Accept", "application/vnd.allegro.public.v1+json")
.header("Content-Type", "application/vnd.allegro.public.v1+json")
.method("PUT", HttpRequest.BodyPublishers.ofString(body))
.build();
HttpClient http = HttpClient.newBuilder().version(HttpClient.Version.HTTP_1_1).build();
HttpResponse<String> res = http.send(req, HttpResponse.BodyHandlers.ofString());
System.out.println("HTTP " + res.statusCode());
System.out.println(res.body());
}
}// allee API: PUT /sale/offer-modification-commands/a9b79411-4a0f-4535-87b2-123d1d6c93fd (Go 1.20+, net/http; uruchom: go run main.go)
package main
import (
"fmt"
"io"
"net/http"
"os"
"strings"
)
func main() {
base := os.Getenv("ALLEE_API_URL")
if base == "" {
base = "https://api.allee.pl"
}
body := `{
"modification": {
"delivery": {
"handlingTime": "P2D"
},
"afterSalesServices": {
"warranty": {
"id": "be0843b2-f1d8-4520-9e43-c827ec6b1193"
}
}
},
"offerCriteria": [
{
"type": "CONTAINS_OFFERS",
"offers": [
{
"id": "900000000000021"
}
]
}
]
}`
req, err := http.NewRequest("PUT", base+"/sale/offer-modification-commands/a9b79411-4a0f-4535-87b2-123d1d6c93fd", strings.NewReader(body))
if err != nil {
panic(err)
}
req.Header.Set("Authorization", "Bearer "+os.Getenv("ALLEE_API_KEY"))
req.Header.Set("Accept", "application/vnd.allegro.public.v1+json")
req.Header.Set("Content-Type", "application/vnd.allegro.public.v1+json")
klient := &http.Client{CheckRedirect: func(*http.Request, []*http.Request) error { return http.ErrUseLastResponse }}
res, err := klient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
dane, err := io.ReadAll(res.Body)
if err != nil {
panic(err)
}
fmt.Println("HTTP", res.StatusCode)
fmt.Println(string(dane))
}application/vnd.allegro.public.v1+json{
"id": "a9b79411-4a0f-4535-87b2-123d1d6c93fd",
"taskCount": {
"total": 1,
"success": 1,
"failed": 0
},
"createdAt": "2026-11-20T07:09:38.807Z"
}Wynik polecenia zmiany ustawień ofert
GET /sale/offer-modification-commands/{commandId}
zgodna z Allegroallegro:api:sale:offers:readlimit: read
Podsumowanie polecenia (liczniki zadań).
Zgodność: zgodna z Allegro REST API (ten sam kształt) — GET /sale/offer-modification-commands/{commandId}.
Uprawnienie: zakres allegro:api:sale:offers:read.
Grupa limitu: read.
Parametry ścieżki
commandId string · uuid wymaganyTwój identyfikator polecenia (UUID) — powtórzony PUT zwraca zapisany wynik i niczego nie wykonuje drugi raz.
Odpowiedzi
200 Wynik. · CommandResult
id string · uuid zawszecommandId (UUID).
taskCount object zawszePola obiektu
total integer zawszesuccess integer zawszefailed integer zawszecreatedAt string · date-time zawszeBłędy
| HTTP | Kod | Znaczenie |
|---|---|---|
| 401 | invalid_token | Brak, zły, wygasły albo odwołany token lub klucz (format OAuth, nagłówek WWW-Authenticate). |
| 403 | ACCOUNT_INACTIVE | Konto sprzedawcy jest nieaktywne. |
| 403 | AccessDenied | Brak zakresu albo zasób innego sprzedawcy. |
| 403 | KEY_QUARANTINED | Kwarantanna: działa tylko odczyt (wykryto nietypowe użycie). |
| 403 | KEY_SUSPENDED | Klucz albo dostęp aplikacji wstrzymany (przez sprzedawcę albo ochronę). |
| 404 | NOT_FOUND | Nie ma takiego zasobu (albo należy do innego sprzedawcy — dla wątków, zwrotów i spraw odpowiedź jest ta sama). |
| 429 | TOO_MANY_REQUESTS | Przekroczony limit (minutowy, grupy operacji albo IP). |
| 500 | INTERNAL_ERROR | Błąd serwera allee. |
curl -sS -X GET "${ALLEE_API_URL:-https://api.allee.pl}/sale/offer-modification-commands/a9b79411-4a0f-4535-87b2-123d1d6c93fd" \
-H "Authorization: Bearer $ALLEE_API_KEY" \
-H "Accept: application/vnd.allegro.public.v1+json" \
-w '\nHTTP %{http_code}\n'<?php
// allee API: GET /sale/offer-modification-commands/a9b79411-4a0f-4535-87b2-123d1d6c93fd (PHP 8, rozszerzenie curl)
$base = getenv('ALLEE_API_URL') ?: 'https://api.allee.pl';
$ch = curl_init($base . '/sale/offer-modification-commands/a9b79411-4a0f-4535-87b2-123d1d6c93fd');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('ALLEE_API_KEY'),
'Accept: application/vnd.allegro.public.v1+json',
],
CURLOPT_RETURNTRANSFER => true,
]);
$odp = curl_exec($ch);
echo 'HTTP ', curl_getinfo($ch, CURLINFO_RESPONSE_CODE), "\n", $odp, "\n";# allee API: GET /sale/offer-modification-commands/a9b79411-4a0f-4535-87b2-123d1d6c93fd (Python 3, biblioteka requests)
import os
import requests
BASE = os.environ.get("ALLEE_API_URL", "https://api.allee.pl")
headers = {
"Authorization": "Bearer " + os.environ["ALLEE_API_KEY"],
"Accept": "application/vnd.allegro.public.v1+json",
}
r = requests.request("GET", BASE + "/sale/offer-modification-commands/a9b79411-4a0f-4535-87b2-123d1d6c93fd", headers=headers, timeout=60, allow_redirects=False)
print("HTTP", r.status_code)
print(r.text)// allee API: GET /sale/offer-modification-commands/a9b79411-4a0f-4535-87b2-123d1d6c93fd (Node.js 18+, wbudowany fetch; plik .mjs)
const BASE = process.env.ALLEE_API_URL ?? "https://api.allee.pl";
const res = await fetch(`${BASE}/sale/offer-modification-commands/a9b79411-4a0f-4535-87b2-123d1d6c93fd`, {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.ALLEE_API_KEY}`,
"Accept": "application/vnd.allegro.public.v1+json",
},
redirect: "manual",
});
console.log("HTTP", res.status);
console.log(await res.text());// allee API: GET /sale/offer-modification-commands/a9b79411-4a0f-4535-87b2-123d1d6c93fd (C#, .NET 8+, HttpClient)
using System.Net.Http.Headers;
using System.Text;
var baseUrl = Environment.GetEnvironmentVariable("ALLEE_API_URL") ?? "https://api.allee.pl";
using var http = new HttpClient(new HttpClientHandler { AllowAutoRedirect = false });
using var req = new HttpRequestMessage(new HttpMethod("GET"), baseUrl + "/sale/offer-modification-commands/a9b79411-4a0f-4535-87b2-123d1d6c93fd");
req.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("ALLEE_API_KEY"));
req.Headers.Accept.ParseAdd("application/vnd.allegro.public.v1+json");
using var res = await http.SendAsync(req);
Console.WriteLine($"HTTP {(int)res.StatusCode}");
Console.WriteLine(await res.Content.ReadAsStringAsync());// allee API: GET /sale/offer-modification-commands/a9b79411-4a0f-4535-87b2-123d1d6c93fd (Java 11+, java.net.http; uruchom: java Main.java)
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Main {
public static void main(String[] args) throws Exception {
String base = System.getenv().getOrDefault("ALLEE_API_URL", "https://api.allee.pl");
HttpRequest req = HttpRequest.newBuilder(URI.create(base + "/sale/offer-modification-commands/a9b79411-4a0f-4535-87b2-123d1d6c93fd"))
.header("Authorization", "Bearer " + System.getenv("ALLEE_API_KEY"))
.header("Accept", "application/vnd.allegro.public.v1+json")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpClient http = HttpClient.newBuilder().version(HttpClient.Version.HTTP_1_1).build();
HttpResponse<String> res = http.send(req, HttpResponse.BodyHandlers.ofString());
System.out.println("HTTP " + res.statusCode());
System.out.println(res.body());
}
}// allee API: GET /sale/offer-modification-commands/a9b79411-4a0f-4535-87b2-123d1d6c93fd (Go 1.20+, net/http; uruchom: go run main.go)
package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
base := os.Getenv("ALLEE_API_URL")
if base == "" {
base = "https://api.allee.pl"
}
req, err := http.NewRequest("GET", base+"/sale/offer-modification-commands/a9b79411-4a0f-4535-87b2-123d1d6c93fd", nil)
if err != nil {
panic(err)
}
req.Header.Set("Authorization", "Bearer "+os.Getenv("ALLEE_API_KEY"))
req.Header.Set("Accept", "application/vnd.allegro.public.v1+json")
klient := &http.Client{CheckRedirect: func(*http.Request, []*http.Request) error { return http.ErrUseLastResponse }}
res, err := klient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
dane, err := io.ReadAll(res.Body)
if err != nil {
panic(err)
}
fmt.Println("HTTP", res.StatusCode)
fmt.Println(string(dane))
}application/vnd.allegro.public.v1+json{
"id": "a9b79411-4a0f-4535-87b2-123d1d6c93fd",
"taskCount": {
"total": 1,
"success": 1,
"failed": 0
},
"createdAt": "2026-11-20T07:09:38.807Z"
}Zadania polecenia zmiany ustawień ofert
GET /sale/offer-modification-commands/{commandId}/tasks
zgodna z Allegroallegro:api:sale:offers:readlimit: read
Wynik dla każdej oferty: SUCCESS albo FAIL z błędami. Gdy w trakcie wykonywania cofnięto dostęp zlecającego (klucz, zgodę aplikacji albo konto), pozostałe oferty dostają FAIL z kodem ACCESS_REVOKED, a polecenie się kończy — zmiany wykonane wcześniej zostają.
Zgodność: zgodna z Allegro REST API (ten sam kształt) — GET /sale/offer-modification-commands/{commandId}/tasks.
Uprawnienie: zakres allegro:api:sale:offers:read.
Grupa limitu: read.
Parametry ścieżki
commandId string · uuid wymaganyTwój identyfikator polecenia (UUID) — powtórzony PUT zwraca zapisany wynik i niczego nie wykonuje drugi raz.
Parametry zapytania
offset integerIle pozycji pominąć.
limit integerIle pozycji zwrócić (1–1000, domyślnie 100).
Odpowiedzi
200 Zadania. · CommandTaskList
tasks array<object> zawszePola obiektu
offer IdRef zawszeOdwołanie po identyfikatorze.
Pola obiektu
id string zawszestatus string zawszeSUCCESS, FAILmessage string zawszeerrors array<Error> zawszePola obiektu
code string zawszeKod maszynowy błędu — na nim opieraj obsługę (lista: przewodnik „Błędy”).
message string zawszeOpis dla programisty (po polsku).
details any zawszeDane dodatkowe albo null — np. id istniejącej oferty przy OfferDuplicate, {"current": "SENT"} przy błędzie statusu, {"retryAfterMs": 1200} przy limicie.
path string · null zawszePole żądania, którego dotyczy błąd, np. productSet[0].product.parameters.
userMessage string zawszeKomunikat, który można pokazać sprzedawcy.
retryable booleantrue = ponów później (429, 5xx, chwilowe blokady); false = ponowienie tego samego żądania nic nie da (od 26.11.2026).
scope stringCzego dotyczy błąd: konta (blokuje wszystkie oferty), jednej oferty, albo tego żądania.
ACCOUNT, OFFER, REQUESTfinishedAt string · date-time zawszeBłędy
| HTTP | Kod | Znaczenie |
|---|---|---|
| 400 | VALIDATION_ERROR | Zła wartość parametru zapytania (400) albo pola treści (422); path wskazuje miejsce. |
| 401 | invalid_token | Brak, zły, wygasły albo odwołany token lub klucz (format OAuth, nagłówek WWW-Authenticate). |
| 403 | ACCOUNT_INACTIVE | Konto sprzedawcy jest nieaktywne. |
| 403 | AccessDenied | Brak zakresu albo zasób innego sprzedawcy. |
| 403 | KEY_QUARANTINED | Kwarantanna: działa tylko odczyt (wykryto nietypowe użycie). |
| 403 | KEY_SUSPENDED | Klucz albo dostęp aplikacji wstrzymany (przez sprzedawcę albo ochronę). |
| 404 | NOT_FOUND | Nie ma takiego zasobu (albo należy do innego sprzedawcy — dla wątków, zwrotów i spraw odpowiedź jest ta sama). |
| 429 | TOO_MANY_REQUESTS | Przekroczony limit (minutowy, grupy operacji albo IP). |
| 500 | INTERNAL_ERROR | Błąd serwera allee. |
curl -sS -X GET "${ALLEE_API_URL:-https://api.allee.pl}/sale/offer-modification-commands/a9b79411-4a0f-4535-87b2-123d1d6c93fd/tasks" \
-H "Authorization: Bearer $ALLEE_API_KEY" \
-H "Accept: application/vnd.allegro.public.v1+json" \
-w '\nHTTP %{http_code}\n'<?php
// allee API: GET /sale/offer-modification-commands/a9b79411-4a0f-4535-87b2-123d1d6c93fd/tasks (PHP 8, rozszerzenie curl)
$base = getenv('ALLEE_API_URL') ?: 'https://api.allee.pl';
$ch = curl_init($base . '/sale/offer-modification-commands/a9b79411-4a0f-4535-87b2-123d1d6c93fd/tasks');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('ALLEE_API_KEY'),
'Accept: application/vnd.allegro.public.v1+json',
],
CURLOPT_RETURNTRANSFER => true,
]);
$odp = curl_exec($ch);
echo 'HTTP ', curl_getinfo($ch, CURLINFO_RESPONSE_CODE), "\n", $odp, "\n";# allee API: GET /sale/offer-modification-commands/a9b79411-4a0f-4535-87b2-123d1d6c93fd/tasks (Python 3, biblioteka requests)
import os
import requests
BASE = os.environ.get("ALLEE_API_URL", "https://api.allee.pl")
headers = {
"Authorization": "Bearer " + os.environ["ALLEE_API_KEY"],
"Accept": "application/vnd.allegro.public.v1+json",
}
r = requests.request("GET", BASE + "/sale/offer-modification-commands/a9b79411-4a0f-4535-87b2-123d1d6c93fd/tasks", headers=headers, timeout=60, allow_redirects=False)
print("HTTP", r.status_code)
print(r.text)// allee API: GET /sale/offer-modification-commands/a9b79411-4a0f-4535-87b2-123d1d6c93fd/tasks (Node.js 18+, wbudowany fetch; plik .mjs)
const BASE = process.env.ALLEE_API_URL ?? "https://api.allee.pl";
const res = await fetch(`${BASE}/sale/offer-modification-commands/a9b79411-4a0f-4535-87b2-123d1d6c93fd/tasks`, {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.ALLEE_API_KEY}`,
"Accept": "application/vnd.allegro.public.v1+json",
},
redirect: "manual",
});
console.log("HTTP", res.status);
console.log(await res.text());// allee API: GET /sale/offer-modification-commands/a9b79411-4a0f-4535-87b2-123d1d6c93fd/tasks (C#, .NET 8+, HttpClient)
using System.Net.Http.Headers;
using System.Text;
var baseUrl = Environment.GetEnvironmentVariable("ALLEE_API_URL") ?? "https://api.allee.pl";
using var http = new HttpClient(new HttpClientHandler { AllowAutoRedirect = false });
using var req = new HttpRequestMessage(new HttpMethod("GET"), baseUrl + "/sale/offer-modification-commands/a9b79411-4a0f-4535-87b2-123d1d6c93fd/tasks");
req.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("ALLEE_API_KEY"));
req.Headers.Accept.ParseAdd("application/vnd.allegro.public.v1+json");
using var res = await http.SendAsync(req);
Console.WriteLine($"HTTP {(int)res.StatusCode}");
Console.WriteLine(await res.Content.ReadAsStringAsync());// allee API: GET /sale/offer-modification-commands/a9b79411-4a0f-4535-87b2-123d1d6c93fd/tasks (Java 11+, java.net.http; uruchom: java Main.java)
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Main {
public static void main(String[] args) throws Exception {
String base = System.getenv().getOrDefault("ALLEE_API_URL", "https://api.allee.pl");
HttpRequest req = HttpRequest.newBuilder(URI.create(base + "/sale/offer-modification-commands/a9b79411-4a0f-4535-87b2-123d1d6c93fd/tasks"))
.header("Authorization", "Bearer " + System.getenv("ALLEE_API_KEY"))
.header("Accept", "application/vnd.allegro.public.v1+json")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpClient http = HttpClient.newBuilder().version(HttpClient.Version.HTTP_1_1).build();
HttpResponse<String> res = http.send(req, HttpResponse.BodyHandlers.ofString());
System.out.println("HTTP " + res.statusCode());
System.out.println(res.body());
}
}// allee API: GET /sale/offer-modification-commands/a9b79411-4a0f-4535-87b2-123d1d6c93fd/tasks (Go 1.20+, net/http; uruchom: go run main.go)
package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
base := os.Getenv("ALLEE_API_URL")
if base == "" {
base = "https://api.allee.pl"
}
req, err := http.NewRequest("GET", base+"/sale/offer-modification-commands/a9b79411-4a0f-4535-87b2-123d1d6c93fd/tasks", nil)
if err != nil {
panic(err)
}
req.Header.Set("Authorization", "Bearer "+os.Getenv("ALLEE_API_KEY"))
req.Header.Set("Accept", "application/vnd.allegro.public.v1+json")
klient := &http.Client{CheckRedirect: func(*http.Request, []*http.Request) error { return http.ErrUseLastResponse }}
res, err := klient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
dane, err := io.ReadAll(res.Body)
if err != nil {
panic(err)
}
fmt.Println("HTTP", res.StatusCode)
fmt.Println(string(dane))
}application/vnd.allegro.public.v1+json{
"tasks": [
{
"offer": {
"id": "900000000000021"
},
"status": "SUCCESS",
"message": "Zmieniono.",
"errors": [],
"finishedAt": "2026-11-20T07:09:38.807Z"
}
]
}Polecenie publikacji (ACTIVATE / END)
PUT /sale/offer-publication-commands/{commandId}
Allegro + rozszerzeniaallegro:api:sale:offers:writelimit: bulk
Do 1000 ofert (offerCriteria typu CONTAINS_OFFERS). allee wykonuje polecenie od razu: odpowiedź 201 ma ostateczne taskCount, a zadania mają statusy SUCCESS/FAIL (bez NEW/RUNNING).
Ten sam commandId w poleceniu innego rodzaju → 409 COMMAND_ID_CONFLICT. Oferta cudza albo nieistniejąca → zadanie FAIL (reszta się wykonuje). Błąd całego polecenia → 422 i nic się nie wykonuje.
END: aktywna → ENDED (szkicu nie kończymy — zadanie FAIL INVALID_STATUS_TRANSITION). ACTIVATE: wymaga GPSR, zdjęcia i sztuk.
Zgodność: zgodna z Allegro REST API, z rozszerzeniami allee (pola allee.*, alleeId) — PUT /sale/offer-publication-commands/{commandId}.
Uprawnienie: zakres allegro:api:sale:offers:write.
Grupa limitu: bulk.
Parametry ścieżki
commandId string · uuid wymaganyTwój identyfikator polecenia (UUID) — powtórzony PUT zwraca zapisany wynik i niczego nie wykonuje drugi raz.
Treść żądania application/vnd.allegro.public.v1+json
publication object wymaganePola obiektu
action string wymaganeACTIVATE, ENDofferCriteria OfferCriteria wymaganeWybór ofert polecenia.
Pola obiektu
type string wymaganeCONTAINS_OFFERSoffers array<IdRef> wymaganeNajwyżej 1000 różnych ofert.
Pola obiektu
id string wymaganeOdpowiedzi
201 Wykonano. · CommandResult
id string · uuid zawszecommandId (UUID).
taskCount object zawszePola obiektu
total integer zawszesuccess integer zawszefailed integer zawszecreatedAt string · date-time zawszeBłędy
| HTTP | Kod | Znaczenie |
|---|---|---|
| 401 | invalid_token | Brak, zły, wygasły albo odwołany token lub klucz (format OAuth, nagłówek WWW-Authenticate). |
| 403 | ACCOUNT_INACTIVE | Konto sprzedawcy jest nieaktywne. |
| 403 | AccessDenied | Brak zakresu albo zasób innego sprzedawcy. |
| 403 | KEY_QUARANTINED | Kwarantanna: działa tylko odczyt (wykryto nietypowe użycie). |
| 403 | KEY_SUSPENDED | Klucz albo dostęp aplikacji wstrzymany (przez sprzedawcę albo ochronę). |
| 409 | COMMAND_ID_CONFLICT | Ten commandId użyto w poleceniu innego rodzaju, z inną treścią albo u innego sprzedawcy. |
| 413 | PAYLOAD_TOO_LARGE | Treść żądania za duża (JSON 5 MB, faktura PDF 3 MB). |
| 415 | UNSUPPORTED_MEDIA_TYPE | Zły Content-Type treści. |
| 422 | JsonMappingException | Treść nie jest poprawnym JSON albo ma zły kształt (np. images jako obiekty). |
| 422 | VALIDATION_ERROR | Zła wartość parametru zapytania (400) albo pola treści (422); path wskazuje miejsce. |
| 429 | TOO_MANY_CONCURRENT | Za dużo ciężkich operacji naraz (wsady, raporty, duże polecenia). |
| 429 | TOO_MANY_REQUESTS | Przekroczony limit (minutowy, grupy operacji albo IP). |
| 500 | INTERNAL_ERROR | Błąd serwera allee. |
curl -sS -X PUT "${ALLEE_API_URL:-https://api.allee.pl}/sale/offer-publication-commands/d5c87b9c-7814-4e22-a158-ed3362da51ae" \
-H "Authorization: Bearer $ALLEE_API_KEY" \
-H "Accept: application/vnd.allegro.public.v1+json" \
-H "Content-Type: application/vnd.allegro.public.v1+json" \
--data-binary @- \
-w '\nHTTP %{http_code}\n' <<'JSON'
{
"publication": {
"action": "END"
},
"offerCriteria": [
{
"type": "CONTAINS_OFFERS",
"offers": [
{
"id": "900000000000021"
}
]
}
]
}
JSON<?php
// allee API: PUT /sale/offer-publication-commands/d5c87b9c-7814-4e22-a158-ed3362da51ae (PHP 8, rozszerzenie curl)
$base = getenv('ALLEE_API_URL') ?: 'https://api.allee.pl';
$body = [
'publication' => [
'action' => 'END',
],
'offerCriteria' => [
[
'type' => 'CONTAINS_OFFERS',
'offers' => [
[
'id' => '900000000000021',
],
],
],
],
];
$ch = curl_init($base . '/sale/offer-publication-commands/d5c87b9c-7814-4e22-a158-ed3362da51ae');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'PUT',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('ALLEE_API_KEY'),
'Accept: application/vnd.allegro.public.v1+json',
'Content-Type: application/vnd.allegro.public.v1+json',
],
CURLOPT_POSTFIELDS => json_encode($body, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES),
CURLOPT_RETURNTRANSFER => true,
]);
$odp = curl_exec($ch);
echo 'HTTP ', curl_getinfo($ch, CURLINFO_RESPONSE_CODE), "\n", $odp, "\n";# allee API: PUT /sale/offer-publication-commands/d5c87b9c-7814-4e22-a158-ed3362da51ae (Python 3, biblioteka requests)
import os
import requests
BASE = os.environ.get("ALLEE_API_URL", "https://api.allee.pl")
headers = {
"Authorization": "Bearer " + os.environ["ALLEE_API_KEY"],
"Accept": "application/vnd.allegro.public.v1+json",
"Content-Type": "application/vnd.allegro.public.v1+json",
}
body = {
"publication": {
"action": "END",
},
"offerCriteria": [
{
"type": "CONTAINS_OFFERS",
"offers": [
{
"id": "900000000000021",
},
],
},
],
}
r = requests.request("PUT", BASE + "/sale/offer-publication-commands/d5c87b9c-7814-4e22-a158-ed3362da51ae", headers=headers, json=body, timeout=60, allow_redirects=False)
print("HTTP", r.status_code)
print(r.text)// allee API: PUT /sale/offer-publication-commands/d5c87b9c-7814-4e22-a158-ed3362da51ae (Node.js 18+, wbudowany fetch; plik .mjs)
const BASE = process.env.ALLEE_API_URL ?? "https://api.allee.pl";
const body = {
"publication": {
"action": "END"
},
"offerCriteria": [
{
"type": "CONTAINS_OFFERS",
"offers": [
{
"id": "900000000000021"
}
]
}
]
};
const res = await fetch(`${BASE}/sale/offer-publication-commands/d5c87b9c-7814-4e22-a158-ed3362da51ae`, {
method: "PUT",
headers: {
Authorization: `Bearer ${process.env.ALLEE_API_KEY}`,
"Accept": "application/vnd.allegro.public.v1+json",
"Content-Type": "application/vnd.allegro.public.v1+json",
},
body: JSON.stringify(body),
redirect: "manual",
});
console.log("HTTP", res.status);
console.log(await res.text());// allee API: PUT /sale/offer-publication-commands/d5c87b9c-7814-4e22-a158-ed3362da51ae (C#, .NET 8+, HttpClient)
using System.Net.Http.Headers;
using System.Text;
var baseUrl = Environment.GetEnvironmentVariable("ALLEE_API_URL") ?? "https://api.allee.pl";
using var http = new HttpClient(new HttpClientHandler { AllowAutoRedirect = false });
using var req = new HttpRequestMessage(new HttpMethod("PUT"), baseUrl + "/sale/offer-publication-commands/d5c87b9c-7814-4e22-a158-ed3362da51ae");
req.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("ALLEE_API_KEY"));
req.Headers.Accept.ParseAdd("application/vnd.allegro.public.v1+json");
var json = """
{
"publication": {
"action": "END"
},
"offerCriteria": [
{
"type": "CONTAINS_OFFERS",
"offers": [
{
"id": "900000000000021"
}
]
}
]
}
""";
req.Content = new StringContent(json, Encoding.UTF8);
req.Content.Headers.ContentType = new MediaTypeHeaderValue("application/vnd.allegro.public.v1+json");
using var res = await http.SendAsync(req);
Console.WriteLine($"HTTP {(int)res.StatusCode}");
Console.WriteLine(await res.Content.ReadAsStringAsync());// allee API: PUT /sale/offer-publication-commands/d5c87b9c-7814-4e22-a158-ed3362da51ae (Java 11+, java.net.http; uruchom: java Main.java)
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Main {
public static void main(String[] args) throws Exception {
String base = System.getenv().getOrDefault("ALLEE_API_URL", "https://api.allee.pl");
String body = """
{
"publication": {
"action": "END"
},
"offerCriteria": [
{
"type": "CONTAINS_OFFERS",
"offers": [
{
"id": "900000000000021"
}
]
}
]
}
""";
HttpRequest req = HttpRequest.newBuilder(URI.create(base + "/sale/offer-publication-commands/d5c87b9c-7814-4e22-a158-ed3362da51ae"))
.header("Authorization", "Bearer " + System.getenv("ALLEE_API_KEY"))
.header("Accept", "application/vnd.allegro.public.v1+json")
.header("Content-Type", "application/vnd.allegro.public.v1+json")
.method("PUT", HttpRequest.BodyPublishers.ofString(body))
.build();
HttpClient http = HttpClient.newBuilder().version(HttpClient.Version.HTTP_1_1).build();
HttpResponse<String> res = http.send(req, HttpResponse.BodyHandlers.ofString());
System.out.println("HTTP " + res.statusCode());
System.out.println(res.body());
}
}// allee API: PUT /sale/offer-publication-commands/d5c87b9c-7814-4e22-a158-ed3362da51ae (Go 1.20+, net/http; uruchom: go run main.go)
package main
import (
"fmt"
"io"
"net/http"
"os"
"strings"
)
func main() {
base := os.Getenv("ALLEE_API_URL")
if base == "" {
base = "https://api.allee.pl"
}
body := `{
"publication": {
"action": "END"
},
"offerCriteria": [
{
"type": "CONTAINS_OFFERS",
"offers": [
{
"id": "900000000000021"
}
]
}
]
}`
req, err := http.NewRequest("PUT", base+"/sale/offer-publication-commands/d5c87b9c-7814-4e22-a158-ed3362da51ae", strings.NewReader(body))
if err != nil {
panic(err)
}
req.Header.Set("Authorization", "Bearer "+os.Getenv("ALLEE_API_KEY"))
req.Header.Set("Accept", "application/vnd.allegro.public.v1+json")
req.Header.Set("Content-Type", "application/vnd.allegro.public.v1+json")
klient := &http.Client{CheckRedirect: func(*http.Request, []*http.Request) error { return http.ErrUseLastResponse }}
res, err := klient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
dane, err := io.ReadAll(res.Body)
if err != nil {
panic(err)
}
fmt.Println("HTTP", res.StatusCode)
fmt.Println(string(dane))
}application/vnd.allegro.public.v1+json{
"id": "d5c87b9c-7814-4e22-a158-ed3362da51ae",
"taskCount": {
"total": 1,
"success": 1,
"failed": 0
},
"createdAt": "2026-11-20T07:09:38.816Z"
}Przykład: Wznowienie oferty (ACTIVATE)
curl -sS -X PUT "${ALLEE_API_URL:-https://api.allee.pl}/sale/offer-publication-commands/e3b50425-4545-40ea-a4bb-1f84a08066e0" \
-H "Authorization: Bearer $ALLEE_API_KEY" \
-H "Accept: application/vnd.allegro.public.v1+json" \
-H "Content-Type: application/vnd.allegro.public.v1+json" \
--data-binary @- \
-w '\nHTTP %{http_code}\n' <<'JSON'
{
"publication": {
"action": "ACTIVATE"
},
"offerCriteria": [
{
"type": "CONTAINS_OFFERS",
"offers": [
{
"id": "900000000000021"
}
]
}
]
}
JSON<?php
// allee API: PUT /sale/offer-publication-commands/e3b50425-4545-40ea-a4bb-1f84a08066e0 (PHP 8, rozszerzenie curl)
$base = getenv('ALLEE_API_URL') ?: 'https://api.allee.pl';
$body = [
'publication' => [
'action' => 'ACTIVATE',
],
'offerCriteria' => [
[
'type' => 'CONTAINS_OFFERS',
'offers' => [
[
'id' => '900000000000021',
],
],
],
],
];
$ch = curl_init($base . '/sale/offer-publication-commands/e3b50425-4545-40ea-a4bb-1f84a08066e0');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'PUT',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('ALLEE_API_KEY'),
'Accept: application/vnd.allegro.public.v1+json',
'Content-Type: application/vnd.allegro.public.v1+json',
],
CURLOPT_POSTFIELDS => json_encode($body, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES),
CURLOPT_RETURNTRANSFER => true,
]);
$odp = curl_exec($ch);
echo 'HTTP ', curl_getinfo($ch, CURLINFO_RESPONSE_CODE), "\n", $odp, "\n";# allee API: PUT /sale/offer-publication-commands/e3b50425-4545-40ea-a4bb-1f84a08066e0 (Python 3, biblioteka requests)
import os
import requests
BASE = os.environ.get("ALLEE_API_URL", "https://api.allee.pl")
headers = {
"Authorization": "Bearer " + os.environ["ALLEE_API_KEY"],
"Accept": "application/vnd.allegro.public.v1+json",
"Content-Type": "application/vnd.allegro.public.v1+json",
}
body = {
"publication": {
"action": "ACTIVATE",
},
"offerCriteria": [
{
"type": "CONTAINS_OFFERS",
"offers": [
{
"id": "900000000000021",
},
],
},
],
}
r = requests.request("PUT", BASE + "/sale/offer-publication-commands/e3b50425-4545-40ea-a4bb-1f84a08066e0", headers=headers, json=body, timeout=60, allow_redirects=False)
print("HTTP", r.status_code)
print(r.text)// allee API: PUT /sale/offer-publication-commands/e3b50425-4545-40ea-a4bb-1f84a08066e0 (Node.js 18+, wbudowany fetch; plik .mjs)
const BASE = process.env.ALLEE_API_URL ?? "https://api.allee.pl";
const body = {
"publication": {
"action": "ACTIVATE"
},
"offerCriteria": [
{
"type": "CONTAINS_OFFERS",
"offers": [
{
"id": "900000000000021"
}
]
}
]
};
const res = await fetch(`${BASE}/sale/offer-publication-commands/e3b50425-4545-40ea-a4bb-1f84a08066e0`, {
method: "PUT",
headers: {
Authorization: `Bearer ${process.env.ALLEE_API_KEY}`,
"Accept": "application/vnd.allegro.public.v1+json",
"Content-Type": "application/vnd.allegro.public.v1+json",
},
body: JSON.stringify(body),
redirect: "manual",
});
console.log("HTTP", res.status);
console.log(await res.text());// allee API: PUT /sale/offer-publication-commands/e3b50425-4545-40ea-a4bb-1f84a08066e0 (C#, .NET 8+, HttpClient)
using System.Net.Http.Headers;
using System.Text;
var baseUrl = Environment.GetEnvironmentVariable("ALLEE_API_URL") ?? "https://api.allee.pl";
using var http = new HttpClient(new HttpClientHandler { AllowAutoRedirect = false });
using var req = new HttpRequestMessage(new HttpMethod("PUT"), baseUrl + "/sale/offer-publication-commands/e3b50425-4545-40ea-a4bb-1f84a08066e0");
req.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("ALLEE_API_KEY"));
req.Headers.Accept.ParseAdd("application/vnd.allegro.public.v1+json");
var json = """
{
"publication": {
"action": "ACTIVATE"
},
"offerCriteria": [
{
"type": "CONTAINS_OFFERS",
"offers": [
{
"id": "900000000000021"
}
]
}
]
}
""";
req.Content = new StringContent(json, Encoding.UTF8);
req.Content.Headers.ContentType = new MediaTypeHeaderValue("application/vnd.allegro.public.v1+json");
using var res = await http.SendAsync(req);
Console.WriteLine($"HTTP {(int)res.StatusCode}");
Console.WriteLine(await res.Content.ReadAsStringAsync());// allee API: PUT /sale/offer-publication-commands/e3b50425-4545-40ea-a4bb-1f84a08066e0 (Java 11+, java.net.http; uruchom: java Main.java)
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Main {
public static void main(String[] args) throws Exception {
String base = System.getenv().getOrDefault("ALLEE_API_URL", "https://api.allee.pl");
String body = """
{
"publication": {
"action": "ACTIVATE"
},
"offerCriteria": [
{
"type": "CONTAINS_OFFERS",
"offers": [
{
"id": "900000000000021"
}
]
}
]
}
""";
HttpRequest req = HttpRequest.newBuilder(URI.create(base + "/sale/offer-publication-commands/e3b50425-4545-40ea-a4bb-1f84a08066e0"))
.header("Authorization", "Bearer " + System.getenv("ALLEE_API_KEY"))
.header("Accept", "application/vnd.allegro.public.v1+json")
.header("Content-Type", "application/vnd.allegro.public.v1+json")
.method("PUT", HttpRequest.BodyPublishers.ofString(body))
.build();
HttpClient http = HttpClient.newBuilder().version(HttpClient.Version.HTTP_1_1).build();
HttpResponse<String> res = http.send(req, HttpResponse.BodyHandlers.ofString());
System.out.println("HTTP " + res.statusCode());
System.out.println(res.body());
}
}// allee API: PUT /sale/offer-publication-commands/e3b50425-4545-40ea-a4bb-1f84a08066e0 (Go 1.20+, net/http; uruchom: go run main.go)
package main
import (
"fmt"
"io"
"net/http"
"os"
"strings"
)
func main() {
base := os.Getenv("ALLEE_API_URL")
if base == "" {
base = "https://api.allee.pl"
}
body := `{
"publication": {
"action": "ACTIVATE"
},
"offerCriteria": [
{
"type": "CONTAINS_OFFERS",
"offers": [
{
"id": "900000000000021"
}
]
}
]
}`
req, err := http.NewRequest("PUT", base+"/sale/offer-publication-commands/e3b50425-4545-40ea-a4bb-1f84a08066e0", strings.NewReader(body))
if err != nil {
panic(err)
}
req.Header.Set("Authorization", "Bearer "+os.Getenv("ALLEE_API_KEY"))
req.Header.Set("Accept", "application/vnd.allegro.public.v1+json")
req.Header.Set("Content-Type", "application/vnd.allegro.public.v1+json")
klient := &http.Client{CheckRedirect: func(*http.Request, []*http.Request) error { return http.ErrUseLastResponse }}
res, err := klient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
dane, err := io.ReadAll(res.Body)
if err != nil {
panic(err)
}
fmt.Println("HTTP", res.StatusCode)
fmt.Println(string(dane))
}application/vnd.allegro.public.v1+json{
"id": "e3b50425-4545-40ea-a4bb-1f84a08066e0",
"taskCount": {
"total": 1,
"success": 1,
"failed": 0
},
"createdAt": "2026-11-20T07:09:38.825Z"
}Wynik polecenia publikacji (ACTIVATE / END)
GET /sale/offer-publication-commands/{commandId}
zgodna z Allegroallegro:api:sale:offers:readlimit: read
Podsumowanie polecenia (liczniki zadań).
Zgodność: zgodna z Allegro REST API (ten sam kształt) — GET /sale/offer-publication-commands/{commandId}.
Uprawnienie: zakres allegro:api:sale:offers:read.
Grupa limitu: read.
Parametry ścieżki
commandId string · uuid wymaganyTwój identyfikator polecenia (UUID) — powtórzony PUT zwraca zapisany wynik i niczego nie wykonuje drugi raz.
Odpowiedzi
200 Wynik. · CommandResult
id string · uuid zawszecommandId (UUID).
taskCount object zawszePola obiektu
total integer zawszesuccess integer zawszefailed integer zawszecreatedAt string · date-time zawszeBłędy
| HTTP | Kod | Znaczenie |
|---|---|---|
| 401 | invalid_token | Brak, zły, wygasły albo odwołany token lub klucz (format OAuth, nagłówek WWW-Authenticate). |
| 403 | ACCOUNT_INACTIVE | Konto sprzedawcy jest nieaktywne. |
| 403 | AccessDenied | Brak zakresu albo zasób innego sprzedawcy. |
| 403 | KEY_QUARANTINED | Kwarantanna: działa tylko odczyt (wykryto nietypowe użycie). |
| 403 | KEY_SUSPENDED | Klucz albo dostęp aplikacji wstrzymany (przez sprzedawcę albo ochronę). |
| 404 | NOT_FOUND | Nie ma takiego zasobu (albo należy do innego sprzedawcy — dla wątków, zwrotów i spraw odpowiedź jest ta sama). |
| 429 | TOO_MANY_REQUESTS | Przekroczony limit (minutowy, grupy operacji albo IP). |
| 500 | INTERNAL_ERROR | Błąd serwera allee. |
curl -sS -X GET "${ALLEE_API_URL:-https://api.allee.pl}/sale/offer-publication-commands/d5c87b9c-7814-4e22-a158-ed3362da51ae" \
-H "Authorization: Bearer $ALLEE_API_KEY" \
-H "Accept: application/vnd.allegro.public.v1+json" \
-w '\nHTTP %{http_code}\n'<?php
// allee API: GET /sale/offer-publication-commands/d5c87b9c-7814-4e22-a158-ed3362da51ae (PHP 8, rozszerzenie curl)
$base = getenv('ALLEE_API_URL') ?: 'https://api.allee.pl';
$ch = curl_init($base . '/sale/offer-publication-commands/d5c87b9c-7814-4e22-a158-ed3362da51ae');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('ALLEE_API_KEY'),
'Accept: application/vnd.allegro.public.v1+json',
],
CURLOPT_RETURNTRANSFER => true,
]);
$odp = curl_exec($ch);
echo 'HTTP ', curl_getinfo($ch, CURLINFO_RESPONSE_CODE), "\n", $odp, "\n";# allee API: GET /sale/offer-publication-commands/d5c87b9c-7814-4e22-a158-ed3362da51ae (Python 3, biblioteka requests)
import os
import requests
BASE = os.environ.get("ALLEE_API_URL", "https://api.allee.pl")
headers = {
"Authorization": "Bearer " + os.environ["ALLEE_API_KEY"],
"Accept": "application/vnd.allegro.public.v1+json",
}
r = requests.request("GET", BASE + "/sale/offer-publication-commands/d5c87b9c-7814-4e22-a158-ed3362da51ae", headers=headers, timeout=60, allow_redirects=False)
print("HTTP", r.status_code)
print(r.text)// allee API: GET /sale/offer-publication-commands/d5c87b9c-7814-4e22-a158-ed3362da51ae (Node.js 18+, wbudowany fetch; plik .mjs)
const BASE = process.env.ALLEE_API_URL ?? "https://api.allee.pl";
const res = await fetch(`${BASE}/sale/offer-publication-commands/d5c87b9c-7814-4e22-a158-ed3362da51ae`, {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.ALLEE_API_KEY}`,
"Accept": "application/vnd.allegro.public.v1+json",
},
redirect: "manual",
});
console.log("HTTP", res.status);
console.log(await res.text());// allee API: GET /sale/offer-publication-commands/d5c87b9c-7814-4e22-a158-ed3362da51ae (C#, .NET 8+, HttpClient)
using System.Net.Http.Headers;
using System.Text;
var baseUrl = Environment.GetEnvironmentVariable("ALLEE_API_URL") ?? "https://api.allee.pl";
using var http = new HttpClient(new HttpClientHandler { AllowAutoRedirect = false });
using var req = new HttpRequestMessage(new HttpMethod("GET"), baseUrl + "/sale/offer-publication-commands/d5c87b9c-7814-4e22-a158-ed3362da51ae");
req.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("ALLEE_API_KEY"));
req.Headers.Accept.ParseAdd("application/vnd.allegro.public.v1+json");
using var res = await http.SendAsync(req);
Console.WriteLine($"HTTP {(int)res.StatusCode}");
Console.WriteLine(await res.Content.ReadAsStringAsync());// allee API: GET /sale/offer-publication-commands/d5c87b9c-7814-4e22-a158-ed3362da51ae (Java 11+, java.net.http; uruchom: java Main.java)
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Main {
public static void main(String[] args) throws Exception {
String base = System.getenv().getOrDefault("ALLEE_API_URL", "https://api.allee.pl");
HttpRequest req = HttpRequest.newBuilder(URI.create(base + "/sale/offer-publication-commands/d5c87b9c-7814-4e22-a158-ed3362da51ae"))
.header("Authorization", "Bearer " + System.getenv("ALLEE_API_KEY"))
.header("Accept", "application/vnd.allegro.public.v1+json")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpClient http = HttpClient.newBuilder().version(HttpClient.Version.HTTP_1_1).build();
HttpResponse<String> res = http.send(req, HttpResponse.BodyHandlers.ofString());
System.out.println("HTTP " + res.statusCode());
System.out.println(res.body());
}
}// allee API: GET /sale/offer-publication-commands/d5c87b9c-7814-4e22-a158-ed3362da51ae (Go 1.20+, net/http; uruchom: go run main.go)
package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
base := os.Getenv("ALLEE_API_URL")
if base == "" {
base = "https://api.allee.pl"
}
req, err := http.NewRequest("GET", base+"/sale/offer-publication-commands/d5c87b9c-7814-4e22-a158-ed3362da51ae", nil)
if err != nil {
panic(err)
}
req.Header.Set("Authorization", "Bearer "+os.Getenv("ALLEE_API_KEY"))
req.Header.Set("Accept", "application/vnd.allegro.public.v1+json")
klient := &http.Client{CheckRedirect: func(*http.Request, []*http.Request) error { return http.ErrUseLastResponse }}
res, err := klient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
dane, err := io.ReadAll(res.Body)
if err != nil {
panic(err)
}
fmt.Println("HTTP", res.StatusCode)
fmt.Println(string(dane))
}application/vnd.allegro.public.v1+json{
"id": "d5c87b9c-7814-4e22-a158-ed3362da51ae",
"taskCount": {
"total": 1,
"success": 1,
"failed": 0
},
"createdAt": "2026-11-20T07:09:38.816Z"
}Zadania polecenia publikacji (ACTIVATE / END)
GET /sale/offer-publication-commands/{commandId}/tasks
zgodna z Allegroallegro:api:sale:offers:readlimit: read
Wynik dla każdej oferty: SUCCESS albo FAIL z błędami. Gdy w trakcie wykonywania cofnięto dostęp zlecającego (klucz, zgodę aplikacji albo konto), pozostałe oferty dostają FAIL z kodem ACCESS_REVOKED, a polecenie się kończy — zmiany wykonane wcześniej zostają.
Zgodność: zgodna z Allegro REST API (ten sam kształt) — GET /sale/offer-publication-commands/{commandId}/tasks.
Uprawnienie: zakres allegro:api:sale:offers:read.
Grupa limitu: read.
Parametry ścieżki
commandId string · uuid wymaganyTwój identyfikator polecenia (UUID) — powtórzony PUT zwraca zapisany wynik i niczego nie wykonuje drugi raz.
Parametry zapytania
offset integerIle pozycji pominąć.
limit integerIle pozycji zwrócić (1–1000, domyślnie 100).
Odpowiedzi
200 Zadania. · CommandTaskList
tasks array<object> zawszePola obiektu
offer IdRef zawszeOdwołanie po identyfikatorze.
Pola obiektu
id string zawszestatus string zawszeSUCCESS, FAILmessage string zawszeerrors array<Error> zawszePola obiektu
code string zawszeKod maszynowy błędu — na nim opieraj obsługę (lista: przewodnik „Błędy”).
message string zawszeOpis dla programisty (po polsku).
details any zawszeDane dodatkowe albo null — np. id istniejącej oferty przy OfferDuplicate, {"current": "SENT"} przy błędzie statusu, {"retryAfterMs": 1200} przy limicie.
path string · null zawszePole żądania, którego dotyczy błąd, np. productSet[0].product.parameters.
userMessage string zawszeKomunikat, który można pokazać sprzedawcy.
retryable booleantrue = ponów później (429, 5xx, chwilowe blokady); false = ponowienie tego samego żądania nic nie da (od 26.11.2026).
scope stringCzego dotyczy błąd: konta (blokuje wszystkie oferty), jednej oferty, albo tego żądania.
ACCOUNT, OFFER, REQUESTfinishedAt string · date-time zawszeBłędy
| HTTP | Kod | Znaczenie |
|---|---|---|
| 400 | VALIDATION_ERROR | Zła wartość parametru zapytania (400) albo pola treści (422); path wskazuje miejsce. |
| 401 | invalid_token | Brak, zły, wygasły albo odwołany token lub klucz (format OAuth, nagłówek WWW-Authenticate). |
| 403 | ACCOUNT_INACTIVE | Konto sprzedawcy jest nieaktywne. |
| 403 | AccessDenied | Brak zakresu albo zasób innego sprzedawcy. |
| 403 | KEY_QUARANTINED | Kwarantanna: działa tylko odczyt (wykryto nietypowe użycie). |
| 403 | KEY_SUSPENDED | Klucz albo dostęp aplikacji wstrzymany (przez sprzedawcę albo ochronę). |
| 404 | NOT_FOUND | Nie ma takiego zasobu (albo należy do innego sprzedawcy — dla wątków, zwrotów i spraw odpowiedź jest ta sama). |
| 429 | TOO_MANY_REQUESTS | Przekroczony limit (minutowy, grupy operacji albo IP). |
| 500 | INTERNAL_ERROR | Błąd serwera allee. |
curl -sS -X GET "${ALLEE_API_URL:-https://api.allee.pl}/sale/offer-publication-commands/d5c87b9c-7814-4e22-a158-ed3362da51ae/tasks" \
-H "Authorization: Bearer $ALLEE_API_KEY" \
-H "Accept: application/vnd.allegro.public.v1+json" \
-w '\nHTTP %{http_code}\n'<?php
// allee API: GET /sale/offer-publication-commands/d5c87b9c-7814-4e22-a158-ed3362da51ae/tasks (PHP 8, rozszerzenie curl)
$base = getenv('ALLEE_API_URL') ?: 'https://api.allee.pl';
$ch = curl_init($base . '/sale/offer-publication-commands/d5c87b9c-7814-4e22-a158-ed3362da51ae/tasks');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('ALLEE_API_KEY'),
'Accept: application/vnd.allegro.public.v1+json',
],
CURLOPT_RETURNTRANSFER => true,
]);
$odp = curl_exec($ch);
echo 'HTTP ', curl_getinfo($ch, CURLINFO_RESPONSE_CODE), "\n", $odp, "\n";# allee API: GET /sale/offer-publication-commands/d5c87b9c-7814-4e22-a158-ed3362da51ae/tasks (Python 3, biblioteka requests)
import os
import requests
BASE = os.environ.get("ALLEE_API_URL", "https://api.allee.pl")
headers = {
"Authorization": "Bearer " + os.environ["ALLEE_API_KEY"],
"Accept": "application/vnd.allegro.public.v1+json",
}
r = requests.request("GET", BASE + "/sale/offer-publication-commands/d5c87b9c-7814-4e22-a158-ed3362da51ae/tasks", headers=headers, timeout=60, allow_redirects=False)
print("HTTP", r.status_code)
print(r.text)// allee API: GET /sale/offer-publication-commands/d5c87b9c-7814-4e22-a158-ed3362da51ae/tasks (Node.js 18+, wbudowany fetch; plik .mjs)
const BASE = process.env.ALLEE_API_URL ?? "https://api.allee.pl";
const res = await fetch(`${BASE}/sale/offer-publication-commands/d5c87b9c-7814-4e22-a158-ed3362da51ae/tasks`, {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.ALLEE_API_KEY}`,
"Accept": "application/vnd.allegro.public.v1+json",
},
redirect: "manual",
});
console.log("HTTP", res.status);
console.log(await res.text());// allee API: GET /sale/offer-publication-commands/d5c87b9c-7814-4e22-a158-ed3362da51ae/tasks (C#, .NET 8+, HttpClient)
using System.Net.Http.Headers;
using System.Text;
var baseUrl = Environment.GetEnvironmentVariable("ALLEE_API_URL") ?? "https://api.allee.pl";
using var http = new HttpClient(new HttpClientHandler { AllowAutoRedirect = false });
using var req = new HttpRequestMessage(new HttpMethod("GET"), baseUrl + "/sale/offer-publication-commands/d5c87b9c-7814-4e22-a158-ed3362da51ae/tasks");
req.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("ALLEE_API_KEY"));
req.Headers.Accept.ParseAdd("application/vnd.allegro.public.v1+json");
using var res = await http.SendAsync(req);
Console.WriteLine($"HTTP {(int)res.StatusCode}");
Console.WriteLine(await res.Content.ReadAsStringAsync());// allee API: GET /sale/offer-publication-commands/d5c87b9c-7814-4e22-a158-ed3362da51ae/tasks (Java 11+, java.net.http; uruchom: java Main.java)
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Main {
public static void main(String[] args) throws Exception {
String base = System.getenv().getOrDefault("ALLEE_API_URL", "https://api.allee.pl");
HttpRequest req = HttpRequest.newBuilder(URI.create(base + "/sale/offer-publication-commands/d5c87b9c-7814-4e22-a158-ed3362da51ae/tasks"))
.header("Authorization", "Bearer " + System.getenv("ALLEE_API_KEY"))
.header("Accept", "application/vnd.allegro.public.v1+json")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpClient http = HttpClient.newBuilder().version(HttpClient.Version.HTTP_1_1).build();
HttpResponse<String> res = http.send(req, HttpResponse.BodyHandlers.ofString());
System.out.println("HTTP " + res.statusCode());
System.out.println(res.body());
}
}// allee API: GET /sale/offer-publication-commands/d5c87b9c-7814-4e22-a158-ed3362da51ae/tasks (Go 1.20+, net/http; uruchom: go run main.go)
package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
base := os.Getenv("ALLEE_API_URL")
if base == "" {
base = "https://api.allee.pl"
}
req, err := http.NewRequest("GET", base+"/sale/offer-publication-commands/d5c87b9c-7814-4e22-a158-ed3362da51ae/tasks", nil)
if err != nil {
panic(err)
}
req.Header.Set("Authorization", "Bearer "+os.Getenv("ALLEE_API_KEY"))
req.Header.Set("Accept", "application/vnd.allegro.public.v1+json")
klient := &http.Client{CheckRedirect: func(*http.Request, []*http.Request) error { return http.ErrUseLastResponse }}
res, err := klient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
dane, err := io.ReadAll(res.Body)
if err != nil {
panic(err)
}
fmt.Println("HTTP", res.StatusCode)
fmt.Println(string(dane))
}application/vnd.allegro.public.v1+json{
"tasks": [
{
"offer": {
"id": "900000000000021"
},
"status": "SUCCESS",
"message": "Oferta zakończona.",
"errors": [],
"finishedAt": "2026-11-20T07:09:38.816Z"
}
]
}Zmiana cen i stanów wielu ofert (kształt Allegro)
POST /sale/offer-bulk-modification-commands
Allegro + rozszerzeniaallegro:api:sale:offers:writelimit: writeBETA (Allegro)
Jedna trasa, dwa kształty treści — o wyborze decyduje obecność pola commandId albo modifications.
1. Kształt Allegro (commandId + modifications): od 1 do 25 zmian ceny (prices) albo liczby sztuk (stock) wskazanych ofert. allee wykonuje polecenie od razu — odpowiedź 201 z podsumowaniem, taskCount jest już ostateczny. Wynik każdej zmiany: GET /sale/offer-bulk-modification-commands/{commandId}/tasks.
commandIdgeneruje klient (UUID). To samocommandIdz tą samą treścią to bezpieczne ponowienie — dostajesz zapisany raport i nic nie wykonuje się drugi raz; z inną treścią → 409COMMAND_ID_CONFLICT.- Rynek w
prices:allee-pl. Kluczallegro-plprzyjmujemy jako ten sam rynek, więc klient przeniesiony z Allegro nie musi zmieniać treści. Inny rynek → zadanieFAILz kodemMARKETPLACE_NOT_SUPPORTED. - Błąd jednej oferty nie zatrzymuje pozostałych: jej zadanie dostaje
FAILi kod werrors(np.NOT_FOUND,VALIDATION_ERROR).
2. Alias allee (offers, do 10 000 pozycji): ofertę wskazujesz przez id albo external.id (SKU). Pod spodem to wsad PARTIAL_UPDATE przetwarzany w tle — odpowiedź 202 jak POST /allee/feeds, wynik z GET /allee/feeds/{feedId}/result.
Zgodność: zgodna z Allegro REST API, z rozszerzeniami allee (pola allee.*, alleeId) — POST /sale/offer-bulk-modification-commands (BETA).
Uprawnienie: zakres allegro:api:sale:offers:write.
Grupa limitu: write.
Nagłówki
Idempotency-Key stringOchrona przed podwójnym wykonaniem (jak Stripe/Amazon): powtórzony POST z tym samym kluczem i tą samą treścią w ciągu 24 h zwraca zapisaną odpowiedź z nagłówkiem Idempotent-Replayed: true i niczego nie wykonuje drugi raz. Inna treść → 422 IDEMPOTENCY_KEY_REUSED; żądanie jeszcze trwa → 409 IDEMPOTENCY_KEY_IN_USE. 1–100 znaków ASCII (np. UUID).
Treść żądania application/vnd.allegro.beta.v1+json
Wariant 1 · OfferBulkChangeCommand
Polecenie zmiany cen i liczby sztuk (Allegro: OfferBulkChangeCommand, zasób beta).
commandId string · uuid wymaganeTwój identyfikator polecenia (UUID v4). To samo commandId z tą samą treścią = ponowienie (dostajesz zapisany raport); z inną treścią → 409.
modifications array<object> wymaganeOd 1 do 25 modyfikacji.
Pola obiektu
offerId string wymaganeIdentyfikator oferty (cyfry).
prices objectZmiana ceny: klucz = rynek. allee ma jeden rynek allee-pl; klucz allegro-pl przyjmujemy jako ten sam (klient przeniesiony z Allegro) — podaj jeden z nich. Inny rynek → zadanie FAIL MARKETPLACE_NOT_SUPPORTED.
stock objectZmiana liczby sztuk.
Pola obiektu
changeType string wymaganeFIXED = nowa liczba sztuk (od 0); GAIN = zmiana o liczbę (może być ujemna).
FIXED, GAINvalue integer wymaganeWariant 2 · BulkModificationRequest
Wsad cen i stanów — alias allee (oferty po id albo SKU, do 10 000 pozycji); kształt Allegro z commandId i modifications opisuje OfferBulkChangeCommand.
offers array<object> wymaganeDo 10 000 pozycji.
Pola obiektu
id stringId oferty.
external objectPola obiektu
id string wymaganeSKU.
sellingMode objectPola obiektu
price MoneyInput wymaganeKwota w żądaniu.
Pola obiektu
amount string|number wymaganeKwota jako tekst „123.45” (zalecane) albo liczba.
currency stringWaluta: tylko PLN (domyślnie PLN).
PLNstock objectPola obiektu
available integer wymaganeOdpowiedzi
201 Kształt Allegro: polecenie wykonane — podsumowanie. · GeneralReport
id string · uuid zawszecommandId.
createdAt string · date-time zawszecompletedAt string · date-time · null zawszeKoniec wykonania; null, dopóki polecenie trwa.
taskCount object zawszeZadania: jedno na ofertę i pole (cena albo stan).
Pola obiektu
total integer zawszesuccess integer zawszefailed integer zawsze202 Alias allee: wsad przyjęty do przetwarzania. · Feed
feedId string · uuid zawszefeedType string zawszeJSON_LISTINGS_FEED = wsad ofert; ALLEGRO_BULK_MODIFICATION = polecenie zmiany cen i stanów w kształcie Allegro (POST /sale/offer-bulk-modification-commands z commandId) — feedId to wtedy Twoje commandId, a wynik czytasz z GET /sale/offer-bulk-modification-commands/{commandId}/tasks.
JSON_LISTINGS_FEED, ALLEGRO_BULK_MODIFICATIONmarketplaceIds array<string> zawszecreatedTime string · date-time zawszeprocessingStatus string zawszeIN_QUEUE, IN_PROGRESS, DONE, CANCELLED, FATALprocessingStartTime string · date-time · null zawszeprocessingEndTime string · date-time · null zawszeresultFeedDocumentId string · null zawszeGdy DONE: wynik pod GET /allee/feeds/{feedId}/result.
allee object zawszePola obiektu
source string zawszeSkąd wsad: treść żądania, dokument, polecenie wsadowe Allegro.
INLINE, DOKUMENT, POLECENIEmessages object zawszePola obiektu
total integer zawszeprocessed integer zawszeaccepted integer zawszeinvalid integer zawszewithWarnings integer zawszefatalError string · null zawszePowód przerwania całego wsadu (FATAL).
Błędy
| HTTP | Kod | Znaczenie |
|---|---|---|
| 401 | invalid_token | Brak, zły, wygasły albo odwołany token lub klucz (format OAuth, nagłówek WWW-Authenticate). |
| 403 | ACCOUNT_INACTIVE | Konto sprzedawcy jest nieaktywne. |
| 403 | AccessDenied | Brak zakresu albo zasób innego sprzedawcy. |
| 403 | KEY_QUARANTINED | Kwarantanna: działa tylko odczyt (wykryto nietypowe użycie). |
| 403 | KEY_SUSPENDED | Klucz albo dostęp aplikacji wstrzymany (przez sprzedawcę albo ochronę). |
| 409 | COMMAND_ID_CONFLICT | Ten commandId użyto w poleceniu innego rodzaju, z inną treścią albo u innego sprzedawcy. |
| 413 | PAYLOAD_TOO_LARGE | Treść żądania za duża (JSON 5 MB, faktura PDF 3 MB). |
| 415 | UNSUPPORTED_MEDIA_TYPE | Zły Content-Type treści. |
| 422 | JsonMappingException | Treść nie jest poprawnym JSON albo ma zły kształt (np. images jako obiekty). |
| 422 | UnknownJSONProperty | Pole nieznane w tym miejscu (path wskazuje które). |
| 422 | VALIDATION_ERROR | Zła wartość parametru zapytania (400) albo pola treści (422); path wskazuje miejsce. |
| 429 | TOO_MANY_CONCURRENT | Za dużo ciężkich operacji naraz (wsady, raporty, duże polecenia). |
| 429 | TOO_MANY_REQUESTS | Przekroczony limit (minutowy, grupy operacji albo IP). |
| 500 | INTERNAL_ERROR | Błąd serwera allee. |
| 503 | NOT_DEPLOYED | Funkcja jeszcze nie uruchomiona (np. sandbox, wsady). |
| 503 | QUEUE_UNAVAILABLE | Kolejka wsadów chwilowo nie działa. |
curl -sS -X POST "${ALLEE_API_URL:-https://api.allee.pl}/sale/offer-bulk-modification-commands" \
-H "Authorization: Bearer $ALLEE_API_KEY" \
-H "Accept: application/vnd.allegro.beta.v1+json" \
-H "Content-Type: application/vnd.allegro.public.v1+json" \
--data-binary @- \
-w '\nHTTP %{http_code}\n' <<'JSON'
{
"commandId": "d5dd3b31-d322-4b83-8f13-bf5ce1ac3c81",
"modifications": [
{
"offerId": "900000000000021",
"prices": {
"allee-pl": {
"changeType": "FIXED",
"value": {
"amount": "43.90",
"currency": "PLN"
}
}
}
},
{
"offerId": "900000000000021",
"stock": {
"changeType": "GAIN",
"value": 3
}
}
]
}
JSON<?php
// allee API: POST /sale/offer-bulk-modification-commands (PHP 8, rozszerzenie curl)
$base = getenv('ALLEE_API_URL') ?: 'https://api.allee.pl';
$body = [
'commandId' => 'd5dd3b31-d322-4b83-8f13-bf5ce1ac3c81',
'modifications' => [
[
'offerId' => '900000000000021',
'prices' => [
'allee-pl' => [
'changeType' => 'FIXED',
'value' => [
'amount' => '43.90',
'currency' => 'PLN',
],
],
],
],
[
'offerId' => '900000000000021',
'stock' => [
'changeType' => 'GAIN',
'value' => 3,
],
],
],
];
$ch = curl_init($base . '/sale/offer-bulk-modification-commands');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('ALLEE_API_KEY'),
'Accept: application/vnd.allegro.beta.v1+json',
'Content-Type: application/vnd.allegro.public.v1+json',
],
CURLOPT_POSTFIELDS => json_encode($body, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES),
CURLOPT_RETURNTRANSFER => true,
]);
$odp = curl_exec($ch);
echo 'HTTP ', curl_getinfo($ch, CURLINFO_RESPONSE_CODE), "\n", $odp, "\n";# allee API: POST /sale/offer-bulk-modification-commands (Python 3, biblioteka requests)
import os
import requests
BASE = os.environ.get("ALLEE_API_URL", "https://api.allee.pl")
headers = {
"Authorization": "Bearer " + os.environ["ALLEE_API_KEY"],
"Accept": "application/vnd.allegro.beta.v1+json",
"Content-Type": "application/vnd.allegro.public.v1+json",
}
body = {
"commandId": "d5dd3b31-d322-4b83-8f13-bf5ce1ac3c81",
"modifications": [
{
"offerId": "900000000000021",
"prices": {
"allee-pl": {
"changeType": "FIXED",
"value": {
"amount": "43.90",
"currency": "PLN",
},
},
},
},
{
"offerId": "900000000000021",
"stock": {
"changeType": "GAIN",
"value": 3,
},
},
],
}
r = requests.request("POST", BASE + "/sale/offer-bulk-modification-commands", headers=headers, json=body, timeout=60, allow_redirects=False)
print("HTTP", r.status_code)
print(r.text)// allee API: POST /sale/offer-bulk-modification-commands (Node.js 18+, wbudowany fetch; plik .mjs)
const BASE = process.env.ALLEE_API_URL ?? "https://api.allee.pl";
const body = {
"commandId": "d5dd3b31-d322-4b83-8f13-bf5ce1ac3c81",
"modifications": [
{
"offerId": "900000000000021",
"prices": {
"allee-pl": {
"changeType": "FIXED",
"value": {
"amount": "43.90",
"currency": "PLN"
}
}
}
},
{
"offerId": "900000000000021",
"stock": {
"changeType": "GAIN",
"value": 3
}
}
]
};
const res = await fetch(`${BASE}/sale/offer-bulk-modification-commands`, {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.ALLEE_API_KEY}`,
"Accept": "application/vnd.allegro.beta.v1+json",
"Content-Type": "application/vnd.allegro.public.v1+json",
},
body: JSON.stringify(body),
redirect: "manual",
});
console.log("HTTP", res.status);
console.log(await res.text());// allee API: POST /sale/offer-bulk-modification-commands (C#, .NET 8+, HttpClient)
using System.Net.Http.Headers;
using System.Text;
var baseUrl = Environment.GetEnvironmentVariable("ALLEE_API_URL") ?? "https://api.allee.pl";
using var http = new HttpClient(new HttpClientHandler { AllowAutoRedirect = false });
using var req = new HttpRequestMessage(new HttpMethod("POST"), baseUrl + "/sale/offer-bulk-modification-commands");
req.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("ALLEE_API_KEY"));
req.Headers.Accept.ParseAdd("application/vnd.allegro.beta.v1+json");
var json = """
{
"commandId": "d5dd3b31-d322-4b83-8f13-bf5ce1ac3c81",
"modifications": [
{
"offerId": "900000000000021",
"prices": {
"allee-pl": {
"changeType": "FIXED",
"value": {
"amount": "43.90",
"currency": "PLN"
}
}
}
},
{
"offerId": "900000000000021",
"stock": {
"changeType": "GAIN",
"value": 3
}
}
]
}
""";
req.Content = new StringContent(json, Encoding.UTF8);
req.Content.Headers.ContentType = new MediaTypeHeaderValue("application/vnd.allegro.public.v1+json");
using var res = await http.SendAsync(req);
Console.WriteLine($"HTTP {(int)res.StatusCode}");
Console.WriteLine(await res.Content.ReadAsStringAsync());// allee API: POST /sale/offer-bulk-modification-commands (Java 11+, java.net.http; uruchom: java Main.java)
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Main {
public static void main(String[] args) throws Exception {
String base = System.getenv().getOrDefault("ALLEE_API_URL", "https://api.allee.pl");
String body = """
{
"commandId": "d5dd3b31-d322-4b83-8f13-bf5ce1ac3c81",
"modifications": [
{
"offerId": "900000000000021",
"prices": {
"allee-pl": {
"changeType": "FIXED",
"value": {
"amount": "43.90",
"currency": "PLN"
}
}
}
},
{
"offerId": "900000000000021",
"stock": {
"changeType": "GAIN",
"value": 3
}
}
]
}
""";
HttpRequest req = HttpRequest.newBuilder(URI.create(base + "/sale/offer-bulk-modification-commands"))
.header("Authorization", "Bearer " + System.getenv("ALLEE_API_KEY"))
.header("Accept", "application/vnd.allegro.beta.v1+json")
.header("Content-Type", "application/vnd.allegro.public.v1+json")
.method("POST", HttpRequest.BodyPublishers.ofString(body))
.build();
HttpClient http = HttpClient.newBuilder().version(HttpClient.Version.HTTP_1_1).build();
HttpResponse<String> res = http.send(req, HttpResponse.BodyHandlers.ofString());
System.out.println("HTTP " + res.statusCode());
System.out.println(res.body());
}
}// allee API: POST /sale/offer-bulk-modification-commands (Go 1.20+, net/http; uruchom: go run main.go)
package main
import (
"fmt"
"io"
"net/http"
"os"
"strings"
)
func main() {
base := os.Getenv("ALLEE_API_URL")
if base == "" {
base = "https://api.allee.pl"
}
body := `{
"commandId": "d5dd3b31-d322-4b83-8f13-bf5ce1ac3c81",
"modifications": [
{
"offerId": "900000000000021",
"prices": {
"allee-pl": {
"changeType": "FIXED",
"value": {
"amount": "43.90",
"currency": "PLN"
}
}
}
},
{
"offerId": "900000000000021",
"stock": {
"changeType": "GAIN",
"value": 3
}
}
]
}`
req, err := http.NewRequest("POST", base+"/sale/offer-bulk-modification-commands", strings.NewReader(body))
if err != nil {
panic(err)
}
req.Header.Set("Authorization", "Bearer "+os.Getenv("ALLEE_API_KEY"))
req.Header.Set("Accept", "application/vnd.allegro.beta.v1+json")
req.Header.Set("Content-Type", "application/vnd.allegro.public.v1+json")
klient := &http.Client{CheckRedirect: func(*http.Request, []*http.Request) error { return http.ErrUseLastResponse }}
res, err := klient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
dane, err := io.ReadAll(res.Body)
if err != nil {
panic(err)
}
fmt.Println("HTTP", res.StatusCode)
fmt.Println(string(dane))
}application/vnd.allegro.beta.v1+json{
"id": "d5dd3b31-d322-4b83-8f13-bf5ce1ac3c81",
"createdAt": "2026-11-20T07:09:38.774Z",
"completedAt": "2026-11-20T07:09:38.776Z",
"taskCount": {
"total": 2,
"success": 2,
"failed": 0
}
}Przykład: Alias allee: ceny i stany wielu ofert jako wsad (202, przetwarzanie w kolejce)
curl -sS -X POST "${ALLEE_API_URL:-https://api.allee.pl}/sale/offer-bulk-modification-commands" \
-H "Authorization: Bearer $ALLEE_API_KEY" \
-H "Accept: application/vnd.allegro.public.v1+json" \
-H "Content-Type: application/vnd.allegro.public.v1+json" \
--data-binary @- \
-w '\nHTTP %{http_code}\n' <<'JSON'
{
"offers": [
{
"external": {
"id": "FILM-6f667c-5"
},
"sellingMode": {
"price": {
"amount": "39.90",
"currency": "PLN"
}
},
"stock": {
"available": 20
}
},
{
"external": {
"id": "FILM-6f667c-6"
},
"stock": {
"available": 18
}
}
]
}
JSON<?php
// allee API: POST /sale/offer-bulk-modification-commands (PHP 8, rozszerzenie curl)
$base = getenv('ALLEE_API_URL') ?: 'https://api.allee.pl';
$body = [
'offers' => [
[
'external' => [
'id' => 'FILM-6f667c-5',
],
'sellingMode' => [
'price' => [
'amount' => '39.90',
'currency' => 'PLN',
],
],
'stock' => [
'available' => 20,
],
],
[
'external' => [
'id' => 'FILM-6f667c-6',
],
'stock' => [
'available' => 18,
],
],
],
];
$ch = curl_init($base . '/sale/offer-bulk-modification-commands');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('ALLEE_API_KEY'),
'Accept: application/vnd.allegro.public.v1+json',
'Content-Type: application/vnd.allegro.public.v1+json',
],
CURLOPT_POSTFIELDS => json_encode($body, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES),
CURLOPT_RETURNTRANSFER => true,
]);
$odp = curl_exec($ch);
echo 'HTTP ', curl_getinfo($ch, CURLINFO_RESPONSE_CODE), "\n", $odp, "\n";# allee API: POST /sale/offer-bulk-modification-commands (Python 3, biblioteka requests)
import os
import requests
BASE = os.environ.get("ALLEE_API_URL", "https://api.allee.pl")
headers = {
"Authorization": "Bearer " + os.environ["ALLEE_API_KEY"],
"Accept": "application/vnd.allegro.public.v1+json",
"Content-Type": "application/vnd.allegro.public.v1+json",
}
body = {
"offers": [
{
"external": {
"id": "FILM-6f667c-5",
},
"sellingMode": {
"price": {
"amount": "39.90",
"currency": "PLN",
},
},
"stock": {
"available": 20,
},
},
{
"external": {
"id": "FILM-6f667c-6",
},
"stock": {
"available": 18,
},
},
],
}
r = requests.request("POST", BASE + "/sale/offer-bulk-modification-commands", headers=headers, json=body, timeout=60, allow_redirects=False)
print("HTTP", r.status_code)
print(r.text)// allee API: POST /sale/offer-bulk-modification-commands (Node.js 18+, wbudowany fetch; plik .mjs)
const BASE = process.env.ALLEE_API_URL ?? "https://api.allee.pl";
const body = {
"offers": [
{
"external": {
"id": "FILM-6f667c-5"
},
"sellingMode": {
"price": {
"amount": "39.90",
"currency": "PLN"
}
},
"stock": {
"available": 20
}
},
{
"external": {
"id": "FILM-6f667c-6"
},
"stock": {
"available": 18
}
}
]
};
const res = await fetch(`${BASE}/sale/offer-bulk-modification-commands`, {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.ALLEE_API_KEY}`,
"Accept": "application/vnd.allegro.public.v1+json",
"Content-Type": "application/vnd.allegro.public.v1+json",
},
body: JSON.stringify(body),
redirect: "manual",
});
console.log("HTTP", res.status);
console.log(await res.text());// allee API: POST /sale/offer-bulk-modification-commands (C#, .NET 8+, HttpClient)
using System.Net.Http.Headers;
using System.Text;
var baseUrl = Environment.GetEnvironmentVariable("ALLEE_API_URL") ?? "https://api.allee.pl";
using var http = new HttpClient(new HttpClientHandler { AllowAutoRedirect = false });
using var req = new HttpRequestMessage(new HttpMethod("POST"), baseUrl + "/sale/offer-bulk-modification-commands");
req.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("ALLEE_API_KEY"));
req.Headers.Accept.ParseAdd("application/vnd.allegro.public.v1+json");
var json = """
{
"offers": [
{
"external": {
"id": "FILM-6f667c-5"
},
"sellingMode": {
"price": {
"amount": "39.90",
"currency": "PLN"
}
},
"stock": {
"available": 20
}
},
{
"external": {
"id": "FILM-6f667c-6"
},
"stock": {
"available": 18
}
}
]
}
""";
req.Content = new StringContent(json, Encoding.UTF8);
req.Content.Headers.ContentType = new MediaTypeHeaderValue("application/vnd.allegro.public.v1+json");
using var res = await http.SendAsync(req);
Console.WriteLine($"HTTP {(int)res.StatusCode}");
Console.WriteLine(await res.Content.ReadAsStringAsync());// allee API: POST /sale/offer-bulk-modification-commands (Java 11+, java.net.http; uruchom: java Main.java)
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Main {
public static void main(String[] args) throws Exception {
String base = System.getenv().getOrDefault("ALLEE_API_URL", "https://api.allee.pl");
String body = """
{
"offers": [
{
"external": {
"id": "FILM-6f667c-5"
},
"sellingMode": {
"price": {
"amount": "39.90",
"currency": "PLN"
}
},
"stock": {
"available": 20
}
},
{
"external": {
"id": "FILM-6f667c-6"
},
"stock": {
"available": 18
}
}
]
}
""";
HttpRequest req = HttpRequest.newBuilder(URI.create(base + "/sale/offer-bulk-modification-commands"))
.header("Authorization", "Bearer " + System.getenv("ALLEE_API_KEY"))
.header("Accept", "application/vnd.allegro.public.v1+json")
.header("Content-Type", "application/vnd.allegro.public.v1+json")
.method("POST", HttpRequest.BodyPublishers.ofString(body))
.build();
HttpClient http = HttpClient.newBuilder().version(HttpClient.Version.HTTP_1_1).build();
HttpResponse<String> res = http.send(req, HttpResponse.BodyHandlers.ofString());
System.out.println("HTTP " + res.statusCode());
System.out.println(res.body());
}
}// allee API: POST /sale/offer-bulk-modification-commands (Go 1.20+, net/http; uruchom: go run main.go)
package main
import (
"fmt"
"io"
"net/http"
"os"
"strings"
)
func main() {
base := os.Getenv("ALLEE_API_URL")
if base == "" {
base = "https://api.allee.pl"
}
body := `{
"offers": [
{
"external": {
"id": "FILM-6f667c-5"
},
"sellingMode": {
"price": {
"amount": "39.90",
"currency": "PLN"
}
},
"stock": {
"available": 20
}
},
{
"external": {
"id": "FILM-6f667c-6"
},
"stock": {
"available": 18
}
}
]
}`
req, err := http.NewRequest("POST", base+"/sale/offer-bulk-modification-commands", strings.NewReader(body))
if err != nil {
panic(err)
}
req.Header.Set("Authorization", "Bearer "+os.Getenv("ALLEE_API_KEY"))
req.Header.Set("Accept", "application/vnd.allegro.public.v1+json")
req.Header.Set("Content-Type", "application/vnd.allegro.public.v1+json")
klient := &http.Client{CheckRedirect: func(*http.Request, []*http.Request) error { return http.ErrUseLastResponse }}
res, err := klient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
dane, err := io.ReadAll(res.Body)
if err != nil {
panic(err)
}
fmt.Println("HTTP", res.StatusCode)
fmt.Println(string(dane))
}application/vnd.allegro.public.v1+json{
"feedId": "32795be9-47ad-4290-ad13-9f0988360fab",
"feedType": "JSON_LISTINGS_FEED",
"marketplaceIds": [
"allee-pl"
],
"createdTime": "2026-11-20T07:09:39.663Z",
"processingStatus": "DONE",
"processingStartTime": "2026-11-20T07:09:39.663Z",
"processingEndTime": "2026-11-20T07:09:39.670Z",
"resultFeedDocumentId": "32795be9-47ad-4290-ad13-9f0988360fab",
"allee": {
"source": "POLECENIE",
"messages": {
"total": 2,
"processed": 2,
"accepted": 2,
"invalid": 0,
"withWarnings": 0
},
"fatalError": null
}
}Podsumowanie polecenia zmiany cen i stanów
GET /sale/offer-bulk-modification-commands/{commandId}
zgodna z Allegroallegro:api:sale:offers:readlimit: readBETA (Allegro)
Podsumowanie polecenia wysłanego w kształcie Allegro (commandId + modifications): liczba zadań, udanych i nieudanych. Polecenie innego sprzedawcy albo wsad z aliasu allee (offers) → 404 — wsad sprawdzisz przez GET /allee/feeds/{feedId}.
Zgodność: zgodna z Allegro REST API (ten sam kształt) — GET /sale/offer-bulk-modification-commands/{commandId} (BETA).
Uprawnienie: zakres allegro:api:sale:offers:read.
Grupa limitu: read.
Parametry ścieżki
commandId string · uuid wymaganyIdentyfikator polecenia — commandId wysłany w POST.
Odpowiedzi
200 Podsumowanie. · GeneralReport
id string · uuid zawszecommandId.
createdAt string · date-time zawszecompletedAt string · date-time · null zawszeKoniec wykonania; null, dopóki polecenie trwa.
taskCount object zawszeZadania: jedno na ofertę i pole (cena albo stan).
Pola obiektu
total integer zawszesuccess integer zawszefailed integer zawszeBłędy
| HTTP | Kod | Znaczenie |
|---|---|---|
| 401 | invalid_token | Brak, zły, wygasły albo odwołany token lub klucz (format OAuth, nagłówek WWW-Authenticate). |
| 403 | ACCOUNT_INACTIVE | Konto sprzedawcy jest nieaktywne. |
| 403 | AccessDenied | Brak zakresu albo zasób innego sprzedawcy. |
| 403 | KEY_QUARANTINED | Kwarantanna: działa tylko odczyt (wykryto nietypowe użycie). |
| 403 | KEY_SUSPENDED | Klucz albo dostęp aplikacji wstrzymany (przez sprzedawcę albo ochronę). |
| 404 | NOT_FOUND | Nie ma takiego zasobu (albo należy do innego sprzedawcy — dla wątków, zwrotów i spraw odpowiedź jest ta sama). |
| 429 | TOO_MANY_REQUESTS | Przekroczony limit (minutowy, grupy operacji albo IP). |
| 500 | INTERNAL_ERROR | Błąd serwera allee. |
curl -sS -X GET "${ALLEE_API_URL:-https://api.allee.pl}/sale/offer-bulk-modification-commands/d5dd3b31-d322-4b83-8f13-bf5ce1ac3c81" \
-H "Authorization: Bearer $ALLEE_API_KEY" \
-H "Accept: application/vnd.allegro.beta.v1+json" \
-w '\nHTTP %{http_code}\n'<?php
// allee API: GET /sale/offer-bulk-modification-commands/d5dd3b31-d322-4b83-8f13-bf5ce1ac3c81 (PHP 8, rozszerzenie curl)
$base = getenv('ALLEE_API_URL') ?: 'https://api.allee.pl';
$ch = curl_init($base . '/sale/offer-bulk-modification-commands/d5dd3b31-d322-4b83-8f13-bf5ce1ac3c81');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('ALLEE_API_KEY'),
'Accept: application/vnd.allegro.beta.v1+json',
],
CURLOPT_RETURNTRANSFER => true,
]);
$odp = curl_exec($ch);
echo 'HTTP ', curl_getinfo($ch, CURLINFO_RESPONSE_CODE), "\n", $odp, "\n";# allee API: GET /sale/offer-bulk-modification-commands/d5dd3b31-d322-4b83-8f13-bf5ce1ac3c81 (Python 3, biblioteka requests)
import os
import requests
BASE = os.environ.get("ALLEE_API_URL", "https://api.allee.pl")
headers = {
"Authorization": "Bearer " + os.environ["ALLEE_API_KEY"],
"Accept": "application/vnd.allegro.beta.v1+json",
}
r = requests.request("GET", BASE + "/sale/offer-bulk-modification-commands/d5dd3b31-d322-4b83-8f13-bf5ce1ac3c81", headers=headers, timeout=60, allow_redirects=False)
print("HTTP", r.status_code)
print(r.text)// allee API: GET /sale/offer-bulk-modification-commands/d5dd3b31-d322-4b83-8f13-bf5ce1ac3c81 (Node.js 18+, wbudowany fetch; plik .mjs)
const BASE = process.env.ALLEE_API_URL ?? "https://api.allee.pl";
const res = await fetch(`${BASE}/sale/offer-bulk-modification-commands/d5dd3b31-d322-4b83-8f13-bf5ce1ac3c81`, {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.ALLEE_API_KEY}`,
"Accept": "application/vnd.allegro.beta.v1+json",
},
redirect: "manual",
});
console.log("HTTP", res.status);
console.log(await res.text());// allee API: GET /sale/offer-bulk-modification-commands/d5dd3b31-d322-4b83-8f13-bf5ce1ac3c81 (C#, .NET 8+, HttpClient)
using System.Net.Http.Headers;
using System.Text;
var baseUrl = Environment.GetEnvironmentVariable("ALLEE_API_URL") ?? "https://api.allee.pl";
using var http = new HttpClient(new HttpClientHandler { AllowAutoRedirect = false });
using var req = new HttpRequestMessage(new HttpMethod("GET"), baseUrl + "/sale/offer-bulk-modification-commands/d5dd3b31-d322-4b83-8f13-bf5ce1ac3c81");
req.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("ALLEE_API_KEY"));
req.Headers.Accept.ParseAdd("application/vnd.allegro.beta.v1+json");
using var res = await http.SendAsync(req);
Console.WriteLine($"HTTP {(int)res.StatusCode}");
Console.WriteLine(await res.Content.ReadAsStringAsync());// allee API: GET /sale/offer-bulk-modification-commands/d5dd3b31-d322-4b83-8f13-bf5ce1ac3c81 (Java 11+, java.net.http; uruchom: java Main.java)
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Main {
public static void main(String[] args) throws Exception {
String base = System.getenv().getOrDefault("ALLEE_API_URL", "https://api.allee.pl");
HttpRequest req = HttpRequest.newBuilder(URI.create(base + "/sale/offer-bulk-modification-commands/d5dd3b31-d322-4b83-8f13-bf5ce1ac3c81"))
.header("Authorization", "Bearer " + System.getenv("ALLEE_API_KEY"))
.header("Accept", "application/vnd.allegro.beta.v1+json")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpClient http = HttpClient.newBuilder().version(HttpClient.Version.HTTP_1_1).build();
HttpResponse<String> res = http.send(req, HttpResponse.BodyHandlers.ofString());
System.out.println("HTTP " + res.statusCode());
System.out.println(res.body());
}
}// allee API: GET /sale/offer-bulk-modification-commands/d5dd3b31-d322-4b83-8f13-bf5ce1ac3c81 (Go 1.20+, net/http; uruchom: go run main.go)
package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
base := os.Getenv("ALLEE_API_URL")
if base == "" {
base = "https://api.allee.pl"
}
req, err := http.NewRequest("GET", base+"/sale/offer-bulk-modification-commands/d5dd3b31-d322-4b83-8f13-bf5ce1ac3c81", nil)
if err != nil {
panic(err)
}
req.Header.Set("Authorization", "Bearer "+os.Getenv("ALLEE_API_KEY"))
req.Header.Set("Accept", "application/vnd.allegro.beta.v1+json")
klient := &http.Client{CheckRedirect: func(*http.Request, []*http.Request) error { return http.ErrUseLastResponse }}
res, err := klient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
dane, err := io.ReadAll(res.Body)
if err != nil {
panic(err)
}
fmt.Println("HTTP", res.StatusCode)
fmt.Println(string(dane))
}application/vnd.allegro.beta.v1+json{
"id": "d5dd3b31-d322-4b83-8f13-bf5ce1ac3c81",
"createdAt": "2026-11-20T07:09:38.774Z",
"completedAt": "2026-11-20T07:09:38.776Z",
"taskCount": {
"total": 2,
"success": 2,
"failed": 0
}
}Zadania polecenia zmiany cen i stanów
GET /sale/offer-bulk-modification-commands/{commandId}/tasks
zgodna z Allegroallegro:api:sale:offers:readlimit: readBETA (Allegro)
Wynik każdej zmiany: jedno zadanie na ofertę i pole (prices albo stock), w kolejności z polecenia. status = SUCCESS albo FAIL; przy FAIL kod błędu jest w errors, a opis po polsku w message.
Zgodność: zgodna z Allegro REST API (ten sam kształt) — GET /sale/offer-bulk-modification-commands/{commandId}/tasks (BETA).
Uprawnienie: zakres allegro:api:sale:offers:read.
Grupa limitu: read.
Parametry ścieżki
commandId string · uuid wymaganyIdentyfikator polecenia — commandId wysłany w POST.
Parametry zapytania
offset integerIle pozycji pominąć.
limit integerIle pozycji zwrócić (1–1000, domyślnie 100).
Odpowiedzi
200 Zadania. · BulkCommandTasks
tasks array<object> zawszePola obiektu
subject object zawszeKtórej oferty i którego pola dotyczy zadanie.
Pola obiektu
offerId string zawszefield string zawszeprices, stockstatus string zawszeSUCCESS, FAILmessage string zawszeOpis wyniku po polsku, np. „Zmieniono.”, „Cena bez zmian.”.
errors array<Error> zawszeBłędy zadania (pusta lista przy SUCCESS).
Pola obiektu
code string zawszeKod maszynowy błędu — na nim opieraj obsługę (lista: przewodnik „Błędy”).
message string zawszeOpis dla programisty (po polsku).
details any zawszeDane dodatkowe albo null — np. id istniejącej oferty przy OfferDuplicate, {"current": "SENT"} przy błędzie statusu, {"retryAfterMs": 1200} przy limicie.
path string · null zawszePole żądania, którego dotyczy błąd, np. productSet[0].product.parameters.
userMessage string zawszeKomunikat, który można pokazać sprzedawcy.
retryable booleantrue = ponów później (429, 5xx, chwilowe blokady); false = ponowienie tego samego żądania nic nie da (od 26.11.2026).
scope stringCzego dotyczy błąd: konta (blokuje wszystkie oferty), jednej oferty, albo tego żądania.
ACCOUNT, OFFER, REQUESTBłędy
| HTTP | Kod | Znaczenie |
|---|---|---|
| 400 | VALIDATION_ERROR | Zła wartość parametru zapytania (400) albo pola treści (422); path wskazuje miejsce. |
| 401 | invalid_token | Brak, zły, wygasły albo odwołany token lub klucz (format OAuth, nagłówek WWW-Authenticate). |
| 403 | ACCOUNT_INACTIVE | Konto sprzedawcy jest nieaktywne. |
| 403 | AccessDenied | Brak zakresu albo zasób innego sprzedawcy. |
| 403 | KEY_QUARANTINED | Kwarantanna: działa tylko odczyt (wykryto nietypowe użycie). |
| 403 | KEY_SUSPENDED | Klucz albo dostęp aplikacji wstrzymany (przez sprzedawcę albo ochronę). |
| 404 | NOT_FOUND | Nie ma takiego zasobu (albo należy do innego sprzedawcy — dla wątków, zwrotów i spraw odpowiedź jest ta sama). |
| 429 | TOO_MANY_REQUESTS | Przekroczony limit (minutowy, grupy operacji albo IP). |
| 500 | INTERNAL_ERROR | Błąd serwera allee. |
curl -sS -X GET "${ALLEE_API_URL:-https://api.allee.pl}/sale/offer-bulk-modification-commands/d5dd3b31-d322-4b83-8f13-bf5ce1ac3c81/tasks?limit=100" \
-H "Authorization: Bearer $ALLEE_API_KEY" \
-H "Accept: application/vnd.allegro.beta.v1+json" \
-w '\nHTTP %{http_code}\n'<?php
// allee API: GET /sale/offer-bulk-modification-commands/d5dd3b31-d322-4b83-8f13-bf5ce1ac3c81/tasks (PHP 8, rozszerzenie curl)
$base = getenv('ALLEE_API_URL') ?: 'https://api.allee.pl';
$ch = curl_init($base . '/sale/offer-bulk-modification-commands/d5dd3b31-d322-4b83-8f13-bf5ce1ac3c81/tasks?limit=100');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('ALLEE_API_KEY'),
'Accept: application/vnd.allegro.beta.v1+json',
],
CURLOPT_RETURNTRANSFER => true,
]);
$odp = curl_exec($ch);
echo 'HTTP ', curl_getinfo($ch, CURLINFO_RESPONSE_CODE), "\n", $odp, "\n";# allee API: GET /sale/offer-bulk-modification-commands/d5dd3b31-d322-4b83-8f13-bf5ce1ac3c81/tasks (Python 3, biblioteka requests)
import os
import requests
BASE = os.environ.get("ALLEE_API_URL", "https://api.allee.pl")
headers = {
"Authorization": "Bearer " + os.environ["ALLEE_API_KEY"],
"Accept": "application/vnd.allegro.beta.v1+json",
}
r = requests.request("GET", BASE + "/sale/offer-bulk-modification-commands/d5dd3b31-d322-4b83-8f13-bf5ce1ac3c81/tasks?limit=100", headers=headers, timeout=60, allow_redirects=False)
print("HTTP", r.status_code)
print(r.text)// allee API: GET /sale/offer-bulk-modification-commands/d5dd3b31-d322-4b83-8f13-bf5ce1ac3c81/tasks (Node.js 18+, wbudowany fetch; plik .mjs)
const BASE = process.env.ALLEE_API_URL ?? "https://api.allee.pl";
const res = await fetch(`${BASE}/sale/offer-bulk-modification-commands/d5dd3b31-d322-4b83-8f13-bf5ce1ac3c81/tasks?limit=100`, {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.ALLEE_API_KEY}`,
"Accept": "application/vnd.allegro.beta.v1+json",
},
redirect: "manual",
});
console.log("HTTP", res.status);
console.log(await res.text());// allee API: GET /sale/offer-bulk-modification-commands/d5dd3b31-d322-4b83-8f13-bf5ce1ac3c81/tasks (C#, .NET 8+, HttpClient)
using System.Net.Http.Headers;
using System.Text;
var baseUrl = Environment.GetEnvironmentVariable("ALLEE_API_URL") ?? "https://api.allee.pl";
using var http = new HttpClient(new HttpClientHandler { AllowAutoRedirect = false });
using var req = new HttpRequestMessage(new HttpMethod("GET"), baseUrl + "/sale/offer-bulk-modification-commands/d5dd3b31-d322-4b83-8f13-bf5ce1ac3c81/tasks?limit=100");
req.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("ALLEE_API_KEY"));
req.Headers.Accept.ParseAdd("application/vnd.allegro.beta.v1+json");
using var res = await http.SendAsync(req);
Console.WriteLine($"HTTP {(int)res.StatusCode}");
Console.WriteLine(await res.Content.ReadAsStringAsync());// allee API: GET /sale/offer-bulk-modification-commands/d5dd3b31-d322-4b83-8f13-bf5ce1ac3c81/tasks (Java 11+, java.net.http; uruchom: java Main.java)
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Main {
public static void main(String[] args) throws Exception {
String base = System.getenv().getOrDefault("ALLEE_API_URL", "https://api.allee.pl");
HttpRequest req = HttpRequest.newBuilder(URI.create(base + "/sale/offer-bulk-modification-commands/d5dd3b31-d322-4b83-8f13-bf5ce1ac3c81/tasks?limit=100"))
.header("Authorization", "Bearer " + System.getenv("ALLEE_API_KEY"))
.header("Accept", "application/vnd.allegro.beta.v1+json")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpClient http = HttpClient.newBuilder().version(HttpClient.Version.HTTP_1_1).build();
HttpResponse<String> res = http.send(req, HttpResponse.BodyHandlers.ofString());
System.out.println("HTTP " + res.statusCode());
System.out.println(res.body());
}
}// allee API: GET /sale/offer-bulk-modification-commands/d5dd3b31-d322-4b83-8f13-bf5ce1ac3c81/tasks (Go 1.20+, net/http; uruchom: go run main.go)
package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
base := os.Getenv("ALLEE_API_URL")
if base == "" {
base = "https://api.allee.pl"
}
req, err := http.NewRequest("GET", base+"/sale/offer-bulk-modification-commands/d5dd3b31-d322-4b83-8f13-bf5ce1ac3c81/tasks?limit=100", nil)
if err != nil {
panic(err)
}
req.Header.Set("Authorization", "Bearer "+os.Getenv("ALLEE_API_KEY"))
req.Header.Set("Accept", "application/vnd.allegro.beta.v1+json")
klient := &http.Client{CheckRedirect: func(*http.Request, []*http.Request) error { return http.ErrUseLastResponse }}
res, err := klient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
dane, err := io.ReadAll(res.Body)
if err != nil {
panic(err)
}
fmt.Println("HTTP", res.StatusCode)
fmt.Println(string(dane))
}application/vnd.allegro.beta.v1+json{
"tasks": [
{
"subject": {
"offerId": "900000000000021",
"field": "prices"
},
"status": "SUCCESS",
"message": "Zmieniono.",
"errors": []
},
{
"subject": {
"offerId": "900000000000021",
"field": "stock"
},
"status": "SUCCESS",
"message": "Zmieniono.",
"errors": []
}
]
}