OmniSeller:SW6 Plugin: Unterschied zwischen den Versionen

Aus HTK Wiki
Zur Navigation springen Zur Suche springen
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 55: Zeile 55:
 
 


<div class="mw-parser-output">
==== B2BPreise ====
==== B2BPreise ====


&nbsp;


{| 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/statistik
| 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/> &nbsp; &nbsp; &nbsp; &nbsp; "kunde": "D100000",<br/> &nbsp; &nbsp; &nbsp; &nbsp; "periode": "2002003",<br/> &nbsp; &nbsp; &nbsp; &nbsp; "mandant": 123,<br/> &nbsp; &nbsp; &nbsp; &nbsp; "menge": "10,0000",<br/> &nbsp; &nbsp; &nbsp; &nbsp; "umsatz": "77,7900",<br/> &nbsp; &nbsp; &nbsp; &nbsp; "roherloes": "77,7900"<br/> &nbsp; &nbsp; }</div> <div>]</div>  
| style="width: 385px;" | <div>[{<br/> &nbsp; &nbsp; &nbsp; &nbsp; "Company": "123",<br/> &nbsp; &nbsp; &nbsp; &nbsp; "CustID": "D12345",<br/> &nbsp; &nbsp; &nbsp; &nbsp; "Item": "08154711",<br/> &nbsp; &nbsp; &nbsp; &nbsp; "Variation": "0",<br/> &nbsp; &nbsp; &nbsp; &nbsp; "Ref": "",<br/> &nbsp; &nbsp; &nbsp; &nbsp; "Price": "123,45",</div> <div>&nbsp; &nbsp; &nbsp; &nbsp; "Discount": "10,00",<br/> &nbsp; &nbsp; }</div> <div>]</div>  
|-
|-
| style="width: 102px;" | Response-Json
| style="width: 102px;" | Response-Json
Zeile 73: Zeile 75:
|}
|}


&nbsp;


{| 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/statistik
| 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;" | <div>[{<br/> &nbsp; &nbsp; &nbsp; &nbsp; "kunde": "D100000",<br/> &nbsp; &nbsp; &nbsp; &nbsp; "periode": "2002003",<br/> &nbsp; &nbsp; &nbsp; &nbsp; "mandant": 123,<br/> &nbsp; &nbsp; &nbsp; &nbsp; "menge": "10,0000",<br/> &nbsp; &nbsp; &nbsp; &nbsp; "umsatz": "77,7900",<br/> &nbsp; &nbsp; &nbsp; &nbsp; "roherloes": "77,7900"<br/> &nbsp; &nbsp; }</div> <div>]</div>
| style="width: 385px;" | &nbsp;
|-
|-
| style="width: 102px;" | Response-Json
| style="width: 102px;" | Response-Json
| style="width: 385px;" | <div>{</div> <div>&nbsp;&nbsp;&nbsp;&nbsp;"status":&nbsp;"FINISHED",</div> <div>&nbsp;&nbsp;&nbsp;&nbsp;"successful":&nbsp;1,</div> <div>&nbsp;&nbsp;&nbsp;&nbsp;"inserts":&nbsp;0,</div> <div>&nbsp;&nbsp;&nbsp;&nbsp;"updates":&nbsp;1,</div> <div>&nbsp;&nbsp;&nbsp;&nbsp;"errors":&nbsp;0</div> <div>}</div>  
| style="width: 385px;" | <div>&nbsp;</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