FAQ

News

20.01.2024 | Extension API-Function getCustomCatalogue

The function getCustomCatalogue has been extended. Now it is possible to get multiple Prices (up to 10) in one Request.
Therefore you have to take multiple quantities in the parameter quantity.

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

The prices are return in the respone in productList – selectGroupList – optionList in array optionTranslations.
The value of the field optionName is the requested quantity. (In the example 1_quantity or 50_quantity or 100_quantity)

Archive

 

Product (2)

The following required fields are defined for order creation in the Order Client.

  • environment
  • portalName
  • countryCode
  • languageCode
  • partyGroupName
  • accountInformation
  • customerNumber
  • password
  • orderInformation
  • customerProductId
  • orderQuantity
  • shippingType
  • orderName
  • dataSourceInformation
  • dataSourceHost
  • dataSourceUser
  • dataSourcePassword
  • dataSourcePort
  • dataTransmission
  • messageLevel
Category: Product

When creating an order, a product previously created in the product catalog is transferred to the interface together with the order data, order quantity and shipping method.

The order quantity and shipping method are overwritten in the following fields:
$order->orderQuantity

$args->orderPositions[0]->orderInformation->orderQuantity
$args->orderPositions[0]->orderInformation->shippingType

Example
http://interface.unitedprint.com/ws2/order.php

In the example, the parameter “validate” can be set.
$args -> validate = ($_GET{‘validate’} == ‘on’ ? 1 : 0);
$erg = $client -> createOrder($args);

An order can be checked using this parameter.
With “validate = 1” no order is created – the order is only checked without being saved at UP.

If the check is successful, the expected delivery date, net and gross price and the currency are returned.

With„validate = 0”
$args -> validate = 0
$erg = $client -> createOrder($args);
the order is written into the UP system and the order number is returned.

// begin processing
$args->accountInformation->password = ‘passwort’;
$args->accountInformation->customerNumber = 1234567;
$args->accountInformation->portalName = ‘print24’;
$args->accountInformation->languageCode = ‘de’;
$args->accountInformation->countryCode = ‘DE’;

Once you have selected a product in the catalog, you can save it to create an orderable product. Use the name of this newly created product for your order.

A user account is required for each order request. The order script requires a product name, a quantity and at least one delivery address. The quantity and shipping method may differ from your saved product. You can order any quantity in the catalog.
The order demo script supports only one delivery address. You can use multiple delivery addresses.

Use the validation indicator to validate your order. You can also use it for price queries.

Downlaod
order_demo.php

Category: Product
Tag: Order