pixiSupplierOrderLineLocQtyCreate
Recommended
Create one supplier order line location quantity.
Since pixi version: AVA Official - Update 7 (8.4.7.23158) Additional notes:
Request
Request body
Name | Type | Required | Description |
---|---|---|---|
Qty | integer | false | (optional parameter) Update quantity. Type: int Default value: Example: Available from: AVA Official - Update 7 (8.4.7.23158) |
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) |
Location | string | false | (optional parameter - one of location parameter must be provided) Id of quantity location. Type: varchar(3) 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) |
LocationId | integer | false | (optional parameter - one of location parameter must be provided) Character code of quantity location. Type: int Default value: Example: Available from: AVA Official - Update 7 (8.4.7.23158) |
ConsiderMinOrderQty | boolean | false | (optional parameter - default 0) Same functionality as at supplier order suggestions, apply (0 no, 1 yes) minimum order quantity. Type: bit 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) |
ConsiderPackageUnits | boolean | false | (optional parameter - default 0) Same functionality as at supplier order suggestions, apply (0 no, 1 yes) packing units. Type: bit 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="">
<pixiSupplierOrderLineLocQtyCreate>
<AppName>string</AppName>
<UserId>0</UserId>
<UserName>string</UserName>
<SupplierOrderLineId>0</SupplierOrderLineId>
<Location>string</Location>
<LocationId>0</LocationId>
<Qty>0</Qty>
<ConsiderPackageUnits>true</ConsiderPackageUnits>
<ConsiderMinOrderQty>true</ConsiderMinOrderQty>
</pixiSupplierOrderLineLocQtyCreate>
</Body>
</Envelope>
Response
1. �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
<PixiSupplierOrderLineLocQtyCreatePost400TextXmlResponse>
<ReturnCode>string</ReturnCode>
<ErrorMessage>string</ErrorMessage>
</PixiSupplierOrderLineLocQtyCreatePost400TextXmlResponse>
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:pixiSupplierOrderLineLocQtyCreate>
<Qty xsi:type="xsd:integer"></Qty>
<UserId xsi:type="xsd:integer"></UserId>
<AppName xsi:type="xsd:string"></AppName>
<Location xsi:type="xsd:string"></Location>
<UserName xsi:type="xsd:string"></UserName>
<LocationId xsi:type="xsd:integer"></LocationId>
<ConsiderMinOrderQty xsi:type="xsd:boolean"></ConsiderMinOrderQty>
<SupplierOrderLineId xsi:type="xsd:integer"></SupplierOrderLineId>
<ConsiderPackageUnits xsi:type="xsd:boolean"></ConsiderPackageUnits>
</ns1:pixiSupplierOrderLineLocQtyCreate>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
PHP Example
<?php
getPixiSoapClientResponse('pixiSupplierOrderLineLocQtyCreate', [
'Qty' => '', // integer
'UserId' => '', // integer
'AppName' => '', // string
'Location' => '', // string
'UserName' => '', // string
'LocationId' => '', // integer
'ConsiderMinOrderQty' => '', // boolean
'SupplierOrderLineId' => '', // integer
'ConsiderPackageUnits' => '', // boolean
]);
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);
}