Managing API

From osCommerce Wiki
Revision as of 17:37, 24 February 2023 by Admin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Note: This manual is for osCommerce v4.

After you accessed the admin area of your website click on Sales channels tab. Under the Physical tab click on the required sales channel and then on Edit button.

Scroll it down to view/update API Access section. You can manage the options in this section by switching them off/on as well as copy Soap Service Url (for PHP), Soap Service Url (for .NET) and copy/regenerate API Key.

Note: For the full access (in most cases for import/export) switch on Site Access Permission (if it is swithced off you will get less information, by default it is switched off).

Fill in the required data in lib/config.php.

Image 44.png

We would recommend to use SoapUI in order to check how API works.

Pro version is not required, it is enough to have the free version "SoapUI Open Source".

In SoapUI queries indicate api_key (soapenv:Header should somehow be as follows). For example:

<soapenv:Envelope xmlns:xsi="" xmlns:xsd="" xmlns:soapenv="" xmlns:urn="urn:Platformwsdl">



<urn:getProduct soapenv:encodingStyle="">

<productId xsi:type="xsd:int">679</productId>