###### tags: `remeha`
# Groothandel TU integratie
## Contactpersonen
**Inhoud**:
Carl van Schagen
T: +31 6 2865 7728
E: c.van.schagen@technischeunie.com
**Technisch**:
Chris Cladder
E: c.cladder@technischeunie.com
## (Non-)functional UI requirements
- Run on a different subdomain
- Hide "Verzenden" wizard step
- Hide any prices (including totals) on Quote page, only show 'Name', Bestelcode' and 'Amount'
- Add green "Add to Shoppingcart" button to Quote page
- Submit must POST XML data to TU endpoint (see sequence diagram below)
## User sequence
```sequence
User->technischeunie.nl: Login
User->technischeunie.nl: Click on link
technischeunie.nl-->Configurator: Configurator opens
Note left of Configurator: incl. Access Token + callback URL
User->Configurator: Selects system
User->Configurator: Sends email
User->Configurator: Click on TU shopping cart link
Configurator->Endpoint: POST XML + Access Token
Configurator->Configurator: Success?
Configurator->User: Show error message
Endpoint->technischeunie.nl: redirect user
```
### From TU doc

### Example XML
```xml
<list>
<SENDER>Remeha</SENDER>
<APPLICATION>Remeha Warmtepompenwijzer</APPLICATION>
<SERIES>Remeha Elga Ace H 4 kW</SERIES>
<COLOR>?</COLOR>
<PICTURE>https://bgr-assets.s3.eu-west-1.amazonaws.com/remeha-nl/projects/thumbnails/1961900b-d206-4621-8c2e-a2ef8bff5922.png</PICTURE>
<URL_DEEPLINK>https://configurator.remeha.nl/systems/59b38d52-6cce-432e-b37b-ee93eb0484a7</URL_DEEPLINK>
<ARTICLE>
<EAN>?</EAN>
<TYPE>Binnendeel Elga Ace H4KW</TYPE>
<MANUFACTURER_PID>7741497</MANUFACTURER_PID>
<ORDER_QUANTITY>1</ORDER_QUANTITY>
<DESCRIPTION>Binnendeel warmtepomp</DESCRIPTION>
</ARTICLE>
<ARTICLE>
<EAN>?</EAN>
<TYPE>eTwist regelaar</TYPE>
<MANUFACTURER_PID>7672429</MANUFACTURER_PID>
<ORDER_QUANTITY>1</ORDER_QUANTITY>
<DESCRIPTION>Wifi klokthermostaat voor modulerende sturing van Remeha cv-ketels en warmtepompen</DESCRIPTION>
</ARTICLE>
</list>
```
## Questions
### External
- Q : Will the hook-url always be sent or can we post to a specific endpoint (acceptance: https://accept.ocp.technischeunie.nl/import/configurationtools/proplanet) sturen? ==A : yes, with proplant the same URL can be used==
- Q : Can the value for the <picture> element be a public URL to an image? ==A : Yes==
- Q : Does het <color> element have to be filled in? ==A : No==
- Q : Don't we need a grouping element around the <article> elements (e.g. <articles/>)? ==A : No grouping element needed==
- Q : After succesfully sending the article data, where should the user be redirected to? ==A : If the clients' browser submits the data to the hool_url, we TU will handle the correct redirect==
### Internal (Bagaar - Remeha)
- Do we have the Remeha NL EAN codes for articles? ==NO, not yet==
- Zullen we "Offerte" stap hernoemen vermitsen er geen prijzen of totalen meer staan?
- Do we need to show a separate logo in the sidebar? ==YES==