pixiGetItemCustomsInfo
Get item specific information
Since pixi version: LOU Official (6.3.0.4452) Additional notes:
Request
Request body
Name | Type | Required | Description |
---|---|---|---|
EanUpc | string | false | Item barcode (EAN) Type: varchar(50) Default value: NULL Example: 123abc Available from: LOU Official (6.3.0.4452) |
ItemKey | integer | false | Item ID Type: int Default value: NULL Example: 123456 Available from: LOU Official (6.3.0.4452) |
ItemNrInt | string | false | ItemNrInt (Shop-ArtikelNr.) Type: varchar(50) Default value: NULL Example: 123abc Available from: LOU Official (6.3.0.4452) |
Request Example
<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/">
<Body xmlns="">
<pixiGetItemCustomsInfo>
<ItemKey>0</ItemKey>
<ItemNrInt>string</ItemNrInt>
<EanUpc>string</EanUpc>
</pixiGetItemCustomsInfo>
</Body>
</Envelope>
Response
1. Result output
Name | Type | Description |
---|---|---|
Width | number | Width Type: numeric Available from: / (25.7.0.59144) |
Heigth | number | Heigth Type: numeric Available from: / (25.7.0.59144) |
Length | number | Length Type: numeric Available from: / (25.7.0.59144) |
Weight | number | Weight in grams Type: numeric Available from: / (25.7.0.59144) |
ItemKey | integer | Item ID Type: int Available from: / (25.7.0.59144) |
ResultCode | string | Result Code Type: varchar (3) Available from: / (25.7.0.59144) |
ResultMessage | string | Result Message Type: varchar (2) Available from: / (25.7.0.59144) |
CustomsTariffText | string | Customs Tariff Text Type: varchar (-1) Available from: / (25.7.0.59144) |
CustomsTariffNumber | string | Customs Tariff Number Type: varchar (50) Available from: / (25.7.0.59144) |
CustomsCountryOfOrigin | string | Customs Country Of Origin Type: varchar (3) Available from: / (25.7.0.59144) |
CustomsPreviousProcess | string | Previous procedure (vorangegangenes Verfahren) Type: varchar (10) Available from: / (25.7.0.59144) |
CustomsCountryOfOriginISO2 | string | Customs Country Of Origin ISO2 Type: char Available from: / (25.7.0.59144) |
Response Example
<PixiGetItemCustomsInfoPost200TextXmlResponse>
<ItemKey>0</ItemKey>
<CustomsTariffNumber>string</CustomsTariffNumber>
<CustomsCountryOfOrigin>string</CustomsCountryOfOrigin>
<CustomsCountryOfOriginISO2>string</CustomsCountryOfOriginISO2>
<Weight>0</Weight>
<Heigth>0</Heigth>
<Width>0</Width>
<Length>0</Length>
<CustomsTariffText>string</CustomsTariffText>
<CustomsPreviousProcess>string</CustomsPreviousProcess>
<ResultCode>string</ResultCode>
<ResultMessage>string</ResultMessage>
</PixiGetItemCustomsInfoPost200TextXmlResponse>
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:pixiGetItemCustomsInfo>
<EanUpc xsi:type="xsd:string">123abc</EanUpc>
<ItemKey xsi:type="xsd:integer">123456</ItemKey>
<ItemNrInt xsi:type="xsd:string">123abc</ItemNrInt>
</ns1:pixiGetItemCustomsInfo>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
PHP Example
<?php
getPixiSoapClientResponse('pixiGetItemCustomsInfo', [
'EanUpc' => '123abc', // string
'ItemKey' => '123456', // integer
'ItemNrInt' => '123abc', // string
]);
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);
}