You have the possibility to add Xmls in OpenTrans or BMECat format.

Since pixi version: LOU Official (6.3.0.4452) Additional notes: pixiImportAddXml allow you to add XMLs to pixi* which arte visible in pixi* ControlCenter. You need at least one Import Channel which is active. This Channel does not need any urls configured.

    **Important**
    When you send XMLs via Api it can happen that some information gets lost or the call can not be executed because some characters in the XML itself. Please wrap your XML into CDATA to cover everythign which is in the XML.
    
        <![CDATA[ /** � */ ]]>
    
    It can be also helpfull to modify the SOAP Client that you are using.
    
    **Example:**
    
        require "vendor/autoload.php";
        
        use Pixi\API\Soap\Client as SoapClient;
        use Pixi\Api\Soap\Options as SoapClientOptions;
        
        /**
         * Initialize API client and test it
         */
        $username = "pixiAPP";
        $password = "*******";
        $endpoint = "https://api.pixi.eu/soap/pixiAPP/";
        
        $options = new SoapClientOptions($username, $password, $endpoint);
        $options->allowSelfSigned();
        $options->setOptions(array("use" => SOAP_LITERAL)); // To avoid encoding of the xml
        $soapClient = new SoapClient(null, $options->getOptions());
    
    Before you send an XML to pixi* via Api. Please following articles about XML formating:
    
    **BMECat**
    http://help.pixi.eu/bmecat-syntax-spezifikationen-fuer-die-uebergabe-im-xml-format
    
    **openTRANS**
    http://help.pixi.eu/opentrans-syntax-spezifikationen-fuer-die-uebergabe-im-xml-format
    
    **Sample Call: **
    
        $this->getSoapClient->pixiImportAddXML([
        "ChannelRef" => 2,
        "OperationType" => "item", 
        "XML" => <![CDATA[ /* here you add your XML */ ]]>,
        "ParameterXml" => "" ]);

Request

POST https://apigateway.descartes.com/tms/pixi/pixiImportAddXML

Request body

Name Type Required Description
XML string false

Please wrap your XML into CDATA (Additional Information)

Type: varchar(-1)

Default value: NULL

Example: abcdefg

Available from: LOU Official (6.3.0.4452)

ChannelRef integer true

Use pixiImportGetChannels to get a list of your channels and references

Type: int

Default value: 0

Example: 123

Available from: LOU Official (6.3.0.4452)

ParameterXML string false

This Paramater you can also use for XML but leave XML parameter empty

Type: varchar(-1)

Default value: NULL

Example: abcdefg

Available from: LOU Official - Update 46 (6.9.46.27927)

OperationType string false

It can be either ITEM for Item import XML or ORDER if you want to import an order XML

Type: varchar(20)

Default value: NULL

Example: abcdefg

Available from: LOU Official (6.3.0.4452)


Response

1. Result for imported XML

Name Type Description
XMLLogKey integer

Key for created XML

Type: int

Available from: 25.06 (25.6.0.58802)

2. Result for imported XML

Name Type Description
XMLKey integer

Key for created XML

Type: int

Available from: 25.06 (25.6.0.58802)

3. Error message

Name Type Description
ErrorNr integer

Error Code

Type: int

Available from: 25.06 (25.6.0.58802)

ErrorMsg string

Error Message

Type: nvarchar(max)

Available from: 25.06 (25.6.0.58802)