pixiSupplierOrderLineUpdate
Recommended
Update one supplier order line.
Since pixi version: AVA Official - Update 7 (8.4.7.23158) Additional notes:
Request
Request body
Name | Type | Required | Description |
---|---|---|---|
UserId | integer | false | (optional parameter) Id of user who execute API call. Type: int Default value: Example: Available from: AVA Official - Update 7 (8.4.7.23158) |
AppName | string | false | Name of application which execute API call. Type: varchar(255) Default value: Example: Available from: AVA Official - Update 7 (8.4.7.23158) |
Comment | string | false | (optional parameter) Add comment. Type: nvarchar Default value: Example: Available from: AVA Official - Update 7 (8.4.7.23158) |
UserName | string | false | User name of user who execute API call. Type: varchar(50) Default value: Example: Available from: AVA Official - Update 7 (8.4.7.23158) |
SupplierPrice | number | false | (optional parameter) Update supplier price. Type: money Default value: Example: Available from: AVA Official - Update 7 (8.4.7.23158) |
SupplierOrderLineId | integer | false | Id of (one) supplier order line. Example: @SupplierOrderLineId = 131 Type: int Default value: Example: Available from: AVA Official - Update 7 (8.4.7.23158) |
EstimatedDeliveryDate | string | false | (optional parameter) Update estimated delivery date. Type: datetime Default value: Example: Available from: AVA Official - Update 7 (8.4.7.23158) |
Request Example
<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/">
<Body xmlns="">
<pixiSupplierOrderLineUpdate>
<AppName>string</AppName>
<UserId>0</UserId>
<UserName>string</UserName>
<SupplierOrderLineId>0</SupplierOrderLineId>
<SupplierPrice>0</SupplierPrice>
<EstimatedDeliveryDate>string</EstimatedDeliveryDate>
<Comment>string</Comment>
</pixiSupplierOrderLineUpdate>
</Body>
</Envelope>
Response
1. Result Set.
Name | Type | Description |
---|---|---|
Updated_SupplierOrderLineId | integer | Return code. (SUCCESS, ERROR, WARNING) Type: int Available from: 25.06 (25.6.0.58802) |
Response Example
<PixiSupplierOrderLineUpdatePost400TextXmlResponse>
<Updated_SupplierOrderLineId>0</Updated_SupplierOrderLineId>
</PixiSupplierOrderLineUpdatePost400TextXmlResponse>
2. �Error Result Set.
Name | Type | Description |
---|---|---|
ReturnCode | string | Return code. (SUCCESS, ERROR, WARNING) Type: varchar (10) Available from: 25.06 (25.6.0.58802) |
ErrorMessage | string | Description of the error. Type: varchar (300) Available from: 25.06 (25.6.0.58802) |
Response Example
<PixiSupplierOrderLineUpdatePost400TextXmlResponse>
<Updated_SupplierOrderLineId>0</Updated_SupplierOrderLineId>
</PixiSupplierOrderLineUpdatePost400TextXmlResponse>
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:pixiSupplierOrderLineUpdate>
<UserId xsi:type="xsd:integer"></UserId>
<AppName xsi:type="xsd:string"></AppName>
<Comment xsi:type="xsd:string"></Comment>
<UserName xsi:type="xsd:string"></UserName>
<SupplierPrice xsi:type="xsd:number"></SupplierPrice>
<SupplierOrderLineId xsi:type="xsd:integer"></SupplierOrderLineId>
<EstimatedDeliveryDate xsi:type="xsd:string"></EstimatedDeliveryDate>
</ns1:pixiSupplierOrderLineUpdate>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
PHP Example
<?php
getPixiSoapClientResponse('pixiSupplierOrderLineUpdate', [
'UserId' => '', // integer
'AppName' => '', // string
'Comment' => '', // string
'UserName' => '', // string
'SupplierPrice' => '', // number
'SupplierOrderLineId' => '', // integer
'EstimatedDeliveryDate' => '', // 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);
}