Ich glaube, hier https://developers.gambio.de/docs/4...eference/special-offers/update-special-offer/ fehlt etwas zu "beginsAt", richtig? Und ev. auch zu "id" ? Ich hab ein Log von Vario: Wenn ich das richtig lese, wird erst nach Specials für products_id=7 gesucht, als Antwort kommt specialsID=2... Dann wird ein special aktualisiert mit PUT https://wwwodenn/api.php/v2/special_offers/7 laut URL wäre das Special 7, laut CONTENT und Antwort-Content aber ID=2? Wird die ID in der URL ignoriert wenn sie im CONTENT übergeben wird? Die Dokumentation erwähnt kein ID Feld... Code: 01.06.2023 16:11:23 [TGambioAPI] POST https://wwwodenn/api.php/v2/special_offers/search [HEADER]: Authorization=Basic dG... [HEADER]: Content-Type=application/json CONTENT: { "search": [ { "match": { "products_id": "7" } } ] } 01.06.2023 16:11:23 [TGambioAPI] STATUS: 200 OK HEADER: Cache-Control: no-store, no-cache, must-revalidate Connection: Keep-Alive Date: Thu, 01 Jun 2023 14:11:23 GMT Keep-Alive: timeout=5, max=100 Pragma: no-cache Content-Length: 344 Content-Type: application/json; charset=utf-8 Expires: Thu, 19 Nov 1981 08:52:00 GMT x-frame-options: SAMEORIGIN x-api-version: v2.6.0 x-rate-limit-limit: 5000 x-rate-limit-remaining: 4977 x-rate-limit-reset: 1685629413 x-shop-version: v4.7.2.3 x-content-type-options: nosniff CONTENT: [ { "id": 2, "price": 139.2758000000000038198777474462985992431640625, "quantity": 9999999, "status": true, "beginsAt": "2001-01-01 00:00:00", "expiresAt": "2099-09-09 23:59:59", "productId": 7, "added": "2023-06-01 16:11:23", "modified": "2023-03-13 18:08:44" } ] 01.06.2023 16:11:23 [TGambioAPI] PUT https://wwwodenn/api.php/v2/special_offers/7 [HEADER]: Authorization=Basic dG9yb0BrYW51c2NodWxlLmNoOnB3NHRlcnNAUG0xMg== [HEADER]: Content-Type=application/json CONTENT: { "id": 2, "productId": 7, "price": 139.2758, "quantity": 9999999, "status": true, "beginsAt": "2001-01-01 00:00:00", "expiresAt": "2099-09-09 23:59:59", "added": "2023-06-01 16:11:23", "modified": "2023-03-13 18:08:44" } 01.06.2023 16:11:24 [TGambioAPI] STATUS: 200 OK HEADER: Cache-Control: no-store, no-cache, must-revalidate Connection: Keep-Alive Date: Thu, 01 Jun 2023 14:11:24 GMT Keep-Alive: timeout=5, max=100 Pragma: no-cache Content-Length: 260 Content-Type: application/json; charset=utf-8 Expires: Thu, 19 Nov 1981 08:52:00 GMT x-frame-options: SAMEORIGIN x-api-version: v2.6.0 x-rate-limit-limit: 5000 x-rate-limit-remaining: 4976 x-rate-limit-reset: 1685629413 x-shop-version: v4.7.2.3 x-content-type-options: nosniff CONTENT: { "id": 2, "price": 139.2758000000000038198777474462985992431640625, "quantity": 9999999, "status": true, "beginsAt": "2001-01-01 00:00:00", "expiresAt": "2099-09-09 23:59:59", "productId": 7, "modified": "2023-06-01 16:11:24" } 01.06.2023 16:11:24 PROBLEM: [ExportiereArtikel.ART] Problem beim Aktualisieren der Artikel: 'Das Feld 'AKTION_VON' wurde nicht gefunden' 01.06.2023 16:11:24 [RepliziereShop.] Entsperre Filiale 901 'var47' (FIL_ID: 7) vom exklusiven Zugriff 01.06.2023 16:11:24 [RepliziereShop.Finally] Replikation beendet. 01.06.2023 16:11:24 [DisconnectDB] Datenbank wird aufgeräumt 01.06.2023 16:11:24 [DisconnectDB] Verbindung zur Datenbank wurde erfolgreich getrennt
Ja, richtig. In der gambio Doku steht kein Eintrag zur Eigenschaft beginsAt. Und es stellen sich hier tatsächlich ein paar Fragen: - Ist der API-Request von Vario so gewollt: special_offers/7 statt special_offers/2 ? - Wird denn tatsächlich etwas durch den PUT request aktualisiert? Es werden ja die gleichen Werte gesendet, die davor durch das API rausgegeben wurden. P.S.: sirtet, ich habe Dir eine PN geschickt.