FAQ

News

20.01.2024 | Erweiterung API-Funktion getCustomCatalogue

Die Funktion getCustomCatalogue wurde erweitert. Es ist jetzt möglich Preise für mehrere Mengen (bis zu 10) in einer Anfrage abzurufen.
Dazu werden im Parameter quantity mehrere Mengen angegeben.

Beispiel:
quantity=1_quantity|50_quantity|100_quantity

Die Preise werden im XML productList – selectGroupList – optionList im Array optionTranslations zurückgegeben.
Dabei entspricht der Wert im Feld optionName der angefragten Menge. (Im Beispiel 1_quantity oder 50_quantity oder 100_quantity)

Archiv

 

Der Download des Produkt-PDFs findet normalerweise über einen FTP-Server statt.

PDF-Download FTP
$args -> orderPositions[0] -> dataSourceInformation -> dataSourceUser = ‚username‘;
$args -> orderPositions[0] -> dataSourceInformation -> dataSourcePassword = ‚passw0rd‘;
$args -> orderPositions[0] -> dataSourceInformation -> dataSourcePort = 21;
$args -> orderPositions[0] -> dataSourceInformation -> dataSourceHost = ‚ftp://testftp/filename.pdf‘;
$args -> orderPositions[0] -> dataSourceInformation -> dataTransmission = ‚download‘;

Hier werden die Zugangsdaten für den FTP-Server (User, Passwort, Port) und der Name des PDFs angegeben, welches zu UP übertragen werden soll. Im Feld „dataTransmission” muss der Wert “download” stehen.

Der PDF-Download kann alternativ auch über die URL eines Webservers durchgeführt werden. Dazu muss der Zugriff auf das PDF möglich sein.
Die Variablen „dataSourceUser“ , „dataSourcePassword“ und  „dataSourcePort“ dürfen nicht leer sein.

PDF-Download URL
$args -> orderPositions[0] -> dataSourceInformation -> dataSourceUser = ‚xxx‘;
$args -> orderPositions[0] -> dataSourceInformation -> dataSourcePassword = ‚yyy‘;
$args -> orderPositions[0] -> dataSourceInformation -> dataSourcePort = 21;
$args -> orderPositions[0] -> dataSourceInformation -> dataSourceHost = ‚ftp://testftp/filename.pdf‘;
$args -> orderPositions[0] -> dataSourceInformation -> dataTransmission = ‚download‘;

Kategorie: Auftrag
Schlagwort: Downlaod