pixiTagMatchAdd
Match tag id with Item or order.
Since pixi version: 19.06 (9.0.4.39859) Additional notes:
Request
POST
https://apigateway.descartes.com/tms/pixi/pixiTagMatchAdd
Request body
Name | Type | Required | Description |
---|---|---|---|
TagId | integer | true | Tag id which will be matched. Type: int Default value: Example: Available from: 19.06 (9.0.4.39859) |
ItemId | integer | true | Item id to match with Tag. Type: int Default value: Example: Available from: 19.06 (9.0.4.39859) |
OrderNr | integer | true | Order number (pixi internal) to match with tag. Type: int Default value: Example: Available from: 19.06 (9.0.4.39859) |
Request Example
<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/">
<Body xmlns="">
<pixiTagMatchAdd>
<TagId>0</TagId>
<OrderNr>0</OrderNr>
<ItemId>0</ItemId>
</pixiTagMatchAdd>
</Body>
</Envelope>
Response
1. Return status
Name | Type | Description |
---|---|---|
Status | string | Result of API Ca�ll Type: varchar Available from: 25.06 (25.6.0.58802) |
Message | string | Extended Result of API Ca�ll Type: varchar Available from: 25.06 (25.6.0.58802) |
Response Example
<PixiTagMatchAddPost200TextXmlResponse>
<Status>string</Status>
<Message>string</Message>
</PixiTagMatchAddPost200TextXmlResponse>
HTTP Example
POST https://apigateway.descartes.com/tms/pixi/
Content-Type: text/xml; charset=utf-8
# echo -n '{{username}}:{{password}}' | base64 | pbcopy
Authorization: Basic {{token}}
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns1="https://apigateway.descartes.com/tms/pixi/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<ns1:pixiTagMatchAdd>
<TagId xsi:type="xsd:integer"></TagId> <!-- required -->
<ItemId xsi:type="xsd:integer"></ItemId> <!-- required -->
<OrderNr xsi:type="xsd:integer"></OrderNr> <!-- required -->
</ns1:pixiTagMatchAdd>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
PHP Example
<?php
getPixiSoapClientResponse('pixiTagMatchAdd', [
'TagId' => '', // integer (required)
'ItemId' => '', // integer (required)
'OrderNr' => '', // integer (required)
]);
function getPixiSoapClientResponse(string $method, array $arguments = [])
{
$soapArguments = [];
foreach ($arguments as $key => $value) {
$soapArguments[] = new SoapVar($value, null, '', '', $key);
}
$soapClient = new SoapClient(null, [
'login' => '...',
'password' => '...',
'uri' => 'https://apigateway.descartes.com/tms/pixi/',
'location' => 'https://apigateway.descartes.com/tms/pixi/',
]);
return $soapClient->__call($method, $soapArguments);
}