Description of OCI Connection with Solar Webshop – Poland
Below you find a short description of the OCI URL and how this in the calling Program must be created, based on the available options in the OCI Connection with the Solar Webshop for Poland.
The URL must be setup accordingly:
https://solar.pl/wlc/index.php?fr:act=oci&OCI_VERSION=4.0&HOOK_URL={HOOKURL}&USER={USER}&PW={PW}&FUNCTION={FUNCTION}&SEARCHSTRING={SEARCHSTRING}&PRODUCTID={PRODUCTID}
The parameters (GET or POST):
Parameter | Description | Example | Require |
HOOK_URL | Return URL | my-shop.com/oci_input.php | YES |
OCI_VERSION | Interface version OCI | 4.0 | YES |
USER | User name | John | NO |
PW | User password | 08ght67!K | NO |
SEARCHSTRING | Word search | Lampe 75W | NO |
PRODUCTID | Product number | 687658787 | NO |
FUNCTION | Function name | SOURCING or DETAIL | NO |
returntarget | Target for return to the SRM Server application | NO |
Examples:
1) Example of the minimum URL for requesting the OCI connection:
2) Example of the URL for requesting the OCI connection when searching directly for ´Switch´:
https://solar.pl/wlc/index.php?fr:act=oci&OCI_VERSION=4.0&USER=user-id&PW=password&HOOK_URL=http://myshop.org/ocireceive.asp&FUNCTION=SOURCING&SEARCHSTRING=Switch
3) Example of the URL for requesting the OCI connection when showing directly the item number 333295:
https://solar.pl/wlc/index.php?fr:act=oci&OCI_VERSION=4.0&USER=user-id&PW=password&HOOK_URL=http://myshop.org/ocireceive.asp&FUNCTION=DETAIL&PRODUCTID=333295
Examples of response structure:
NEW_ITEM-DESCRIPTION[1]: Kabel YDY |
NEW_ITEM-MATNR[1]: |
NEW_ITEM-MATGROUP[1]: |
NEW_ITEM-QUANTITY[1]: 150 |
NEW_ITEM-UNIT[1]: M |
NEW_ITEM-PRICE[1]: 171.5607 |
NEW_ITEM-PRICEUNIT[1]: 1000 |
NEW_ITEM-CURRENCY[1]: PLN |
NEW_ITEM-LEADTIME[1]: |
NEW_ITEM-VENDOR[1]: |
NEW_ITEM-VENDORMAT[1]: 333295 |
NEW_ITEM-MANUFACTCODE[1]: |
NEW_ITEM-MANUFACTMAT[1]: 63684739 |
NEW_ITEM-CONTRACT[1]: |
NEW_ITEM-CONTRACT_ITEM[1]: |
NEW_ITEM-SERVICE[1]: |
NEW_ITEM-EXT_QUOTE_ID[1]: |
NEW_ITEM-EXT_QUOTE_ITEM[1]: |
NEW_ITEM-EXT_PRODUCT_ID[1]: |
NEW_ITEM-LONGTEXT_1:132[]: Przewód ydy 100m |
NEW_ITEM-ATTACHMENT[1]: |
NEW_ITEM-ATTACHMENT_PURPOSE[1]: |
NEW_ITEM-EXT_SCHEMA_TYPE[1]: |
NEW_ITEM-EXT_CATEGORYID[1]: |
NEW_ITEM-EXT_CATEGORY[1]: |
NEW_ITEM-SLD_SYS_NAME[1]: |
NEW_ITEM-CUST_FIELD1[1]: |
NEW_ITEM-CUST_FIELD2[1]: |
NEW_ITEM-CUST_FIELD3[1]: |
NEW_ITEM-CUST_FIELD4[1]: |
NEW_ITEM-CUST_FIELD5[1]: |
Scheme of action:
More info: