OmniSeller:SW6 Plugin: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
MH (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
MH (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
| Zeile 55: | Zeile 55: | ||
| | ||
<div class="mw-parser-output"> | |||
==== B2BPreise ==== | ==== B2BPreise ==== | ||
| |||
{| border="1" cellpadding="1" cellspacing="1" style="width: 500px;" | {| border="1" cellpadding="1" cellspacing="1" style="width: 500px;" | ||
|- | |- | ||
| style="width: 102px;" | Route | | style="width: 102px;" | Route | ||
| style="width: 385px;" | /api/v3/omniseller/ | | style="width: 385px;" | /api/v3/omniseller/b2bprices | ||
|- | |- | ||
| style="width: 102px;" | Request-Tpye | | style="width: 102px;" | Request-Tpye | ||
| Zeile 67: | Zeile 69: | ||
|- | |- | ||
| style="width: 102px;" | Request-Json | | style="width: 102px;" | Request-Json | ||
| style="width: 385px;" | <div>[{<br/> " | | style="width: 385px;" | <div>[{<br/> "Company": "123",<br/> "CustID": "D12345",<br/> "Item": "08154711",<br/> "Variation": "0",<br/> "Ref": "",<br/> "Price": "123,45",</div> <div> "Discount": "10,00",<br/> }</div> <div>]</div> | ||
|- | |- | ||
| style="width: 102px;" | Response-Json | | style="width: 102px;" | Response-Json | ||
| Zeile 73: | Zeile 75: | ||
|} | |} | ||
| |||
{| border="1" cellpadding="1" cellspacing="1" style="width: 500px;" | {| border="1" cellpadding="1" cellspacing="1" style="width: 500px;" | ||
|- | |- | ||
| style="width: 102px;" | Route | | style="width: 102px;" | Route | ||
| style="width: 385px;" | /api/v3/omniseller/ | | style="width: 385px;" | /api/v3/omniseller/b2bpricesDelete | ||
|- | |- | ||
| style="width: 102px;" | Request-Tpye | | style="width: 102px;" | Request-Tpye | ||
| Zeile 83: | Zeile 86: | ||
|- | |- | ||
| style="width: 102px;" | Request-Json | | style="width: 102px;" | Request-Json | ||
| style="width: 385px;" | | | style="width: 385px;" | | ||
|- | |- | ||
| style="width: 102px;" | Response-Json | | style="width: 102px;" | Response-Json | ||
| style="width: 385px;" | | | style="width: 385px;" | <div> </div> | ||
|} | |} | ||
</div> | |||
Version vom 20. April 2021, 17:58 Uhr
das OmniSeller Plugin für Zusatzfunktionen in Shopware6
Hintergründe
Uns erreichen zunehmend Anfragen zur Ausleitung von bestimmten Sage100/ERP Daten in Richtung Shopware, um dort zusätzliche Funktionen wie z.B. Kundenstamm-Import, kundenspezifische Preise oder Erstellungsmöglichkeiten von Verkaufsstatistiken abbilden zu können.
Dieses Plugin soll ein paar dieser Punkte abbilden.
Technisch erweitert dieses Plugin die von Shopware existierende REST-API.
Es werden spezifische Endpunkte zur Verfügung gestellt, die dann angesprochen werden können.
Eine Übersicht hierzu finden Sie unten.
Inhalte/API Endpunkte
Shopware API Authentifizierung
| Route | /api/oauth/token |
| Request-Tpye | POST |
| Request-Json | { "client_id": "administration", "grant_type":"password", "username":"<username>", "password":"<password>" } |
| Response-Json | { "token_type": "Bearer", "expires_in": 600, "access_token": "<Token>", "refresh_token": "<RefreshToken>" } |
Nach der erfolgreichen Authentifizierung wird dann bei den folgenden Endpunkt Requests ein Authorization Header mit "Bearer <Token>" angehängt.
Statistik Import:
| Route | /api/v3/omniseller/statistik |
| Request-Tpye | POST |
| Request-Json | [{ "kunde": "D100000", "periode": "2002003", "mandant": 123, "menge": "10,0000", "umsatz": "77,7900", "roherloes": "77,7900" } ]
|
| Response-Json | { "status": "FINISHED", "successful": 1, "inserts": 0, "updates": 1, "errors": 0 }
|
B2BPreise
| Route | /api/v3/omniseller/b2bprices |
| Request-Tpye | POST |
| Request-Json | [{ "Company": "123", "CustID": "D12345", "Item": "08154711", "Variation": "0", "Ref": "", "Price": "123,45", "Discount": "10,00", } ]
|
| Response-Json | { "status": "FINISHED", "successful": 1, "inserts": 0, "updates": 1, "errors": 0 }
|
| Route | /api/v3/omniseller/b2bpricesDelete |
| Request-Tpye | POST |
| Request-Json | |
| Response-Json |