pixiGetStandardReturnReasons
A simple dictionary function which returns the set of standard return reasons, as defined in the Returns & Repairs application.
Since pixi version: LOU Official (6.3.0.4452) Additional notes: This functionality may be useful if you are implementing a web interface for the replacement/return operation.
Additionally to the R&R Reasons, it returns the Return-Reasons for normal returns set in Control Center. Returns-Only reasons get a NULL in RET_REASON_ID.
Request
POST
https://apigateway.descartes.com/tms/pixi/pixiGetStandardReturnReasons
Request body
Name | Type | Required | Description |
---|---|---|---|
LanguageID | integer | false | Defines the language of return values. Type: int Default value: 1 Example: 1 - German, 2 - English Available from: LOU Official (6.3.0.4452) |
Request Example
<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/">
<Body xmlns="">
<pixiGetStandardReturnReasons>
<LanguageID>0</LanguageID>
</pixiGetStandardReturnReasons>
</Body>
</Envelope>
Response
1. Return reasons
Name | Type | Description |
---|---|---|
REASON_TEXT | string | Return reason description Type: varchar (2048) Available from: 25.06 (25.6.0.58802) |
RET_REASON_ID | integer | Return reason ID Type: int Available from: 25.06 (25.6.0.58802) |
Response Example
<PixiGetStandardReturnReasonsPost200TextXmlResponse>
<RET_REASON_ID>0</RET_REASON_ID>
<REASON_TEXT>string</REASON_TEXT>
</PixiGetStandardReturnReasonsPost200TextXmlResponse>
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:pixiGetStandardReturnReasons>
<LanguageID xsi:type="xsd:integer">1 - German, 2 - English</LanguageID>
</ns1:pixiGetStandardReturnReasons>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
PHP Example
<?php
getPixiSoapClientResponse('pixiGetStandardReturnReasons', [
'LanguageID' => '1 - German, 2 - English', // integer
]);
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);
}