Orderlines
Read
pixiGetText
Returns the descriptive text for an object code; currently only order line status codes (`ORDERLINE_STATUS`) are supported.
Scalar function that translates a code into its text.
- If
ObjectTypeequalsORDERLINE_STATUS(case-insensitive, compared viaUPPER), the function looks up the row inOrderStateswhoseStatematchesObjectIdand returns itsStateText. - For any other
ObjectType, or if no matching status exists, the function returnsNULL.
The result is a single value of type varchar(1024).
Notes
- The lookup uses
NOLOCK, so uncommitted data may be read. ObjectIdis passed asvarchar(100)and compared toState; implicit conversion depends on the column type ofState, which is not visible in the code.- If several rows match, the value of the last row read is returned (variable assignment in
SELECT).
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
ObjectType
Required
|
varchar(100) string |
– |
Type of the object whose text is requested. Compared case-insensitively. Allowed values
Example: |
ObjectId
Required
|
varchar(100) string |
– |
Code of the object, for Example: |
Response
Result set 1 · Always
Single return value of the scalar function.
| Column | Type | Description |
|---|---|---|
Result
Nullable |
varchar(1024) string |
Text of the status, or |
Response example
<SqlRowSet1>
<row>
<Result>Ausgeliefert</Result>
</row>
</SqlRowSet1>
Examples
POST https://apigateway.descartes.com/tms/pixi/
Content-Type: text/xml; charset=utf-8
Authorization: Basic BASE64(USERNAME:PASSWORD)
<?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/">
<SOAP-ENV:Body>
<ns1:pixiGetText>
<ObjectType>ORDERLINE_STATUS</ObjectType>
<ObjectId>AU</ObjectId>
</ns1:pixiGetText>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
curl -X POST 'https://apigateway.descartes.com/tms/pixi/' \
--user 'USERNAME:PASSWORD' \
--header 'Content-Type: text/xml; charset=utf-8' \
--data-binary @- <<'XML'
<?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/">
<SOAP-ENV:Body>
<ns1:pixiGetText>
<ObjectType>ORDERLINE_STATUS</ObjectType>
<ObjectId>AU</ObjectId>
</ns1:pixiGetText>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
XML
<?php
$soapClient = new SoapClient(null, [
'login' => 'USERNAME',
'password' => 'PASSWORD',
'location' => 'https://apigateway.descartes.com/tms/pixi/',
'uri' => 'https://apigateway.descartes.com/tms/pixi/',
]);
$arguments = [
'ObjectType' => 'ORDERLINE_STATUS',
'ObjectId' => 'AU',
];
$soapArguments = [];
foreach ($arguments as $name => $value) {
$soapArguments[] = new SoapVar($value, XSD_STRING, '', '', $name);
}
$response = $soapClient->__soapCall('pixiGetText', $soapArguments);
Tables used
OrderStates · Read
- SQL object:
- dbo.pipiGetText
Procedure last changed on 2026-10-05
Documentation written by claude-opus-5-5 on 2026-10-30