GetArticlesPackageTypes
This function lets you retrieve information about different package types available for specified articles.
Tags: GetArticlesPackageTypes, Query, GetArticlesPackageTypesResponse, GetArticlesPackageTypesResult, ArticlePackageTypes, ArticlePackage, PackageType
Request XML
POST /xxx/automation.asmx HTTP/1.1
Host: api.ongoingsystems.se
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://ongoingsystems.se/Automation/GetArticlesPackageTypes"
<?xml version="1.0" encoding="utf-8" ?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
<soap:Body>
<GetArticlesPackageTypes xmlns="http://ongoingsystems.se/Automation">
<UserName>string</UserName>
<Password>string</Password>
<Query>
<ArticleDefIds>
<int>int</int>
<int>int</int>
</ArticleDefIds>
</Query>
</GetArticlesPackageTypes>
</soap:Body>
</soap:Envelope>
+
Request specification
GetArticlesPackageTypes |
UserName |
str(50) |
Req. |
Your username. |
Password |
str(50) |
Req. |
Your password. |
Query |
object |
Req. |
Specifies the query/search criteria |
Query |
ArticleDefIds |
object |
Req. |
The article def ids which you want to retrieve package types for |
> int |
int[] |
Req. |
Article def ids to get |
Response XML
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8" ?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
<soap:Body>
<GetArticlesPackageTypesResponse xmlns="http://ongoingsystems.se/Automation">
<GetArticlesPackageTypesResult>
<Message>string</Message>
<Success>boolean</Success>
<ArticlePackageTypes>
<ArticlePackageTypes>
<ArticleDefId>int</ArticleDefId>
<PackageTypes>
<ArticlePackage>
<MaxQuantityPerPalletType>int</MaxQuantityPerPalletType>
<PackageType>
<Name>string</Name>
<Code>string</Code>
<Id>int</Id>
</PackageType>
</ArticlePackage>
<ArticlePackage>
<MaxQuantityPerPalletType>int</MaxQuantityPerPalletType>
<PackageType>
<Name>string</Name>
<Code>string</Code>
<Id>int</Id>
</PackageType>
</ArticlePackage>
</PackageTypes>
</ArticlePackageTypes>
<ArticlePackageTypes>
<ArticleDefId>int</ArticleDefId>
<PackageTypes>
<ArticlePackage>
<MaxQuantityPerPalletType>int</MaxQuantityPerPalletType>
<PackageType>
<Name>string</Name>
<Code>string</Code>
<Id>int</Id>
</PackageType>
</ArticlePackage>
<ArticlePackage>
<MaxQuantityPerPalletType>int</MaxQuantityPerPalletType>
<PackageType>
<Name>string</Name>
<Code>string</Code>
<Id>int</Id>
</PackageType>
</ArticlePackage>
</PackageTypes>
</ArticlePackageTypes>
</ArticlePackageTypes>
</GetArticlesPackageTypesResult>
</GetArticlesPackageTypesResponse>
</soap:Body>
</soap:Envelope>
+
Response specification
GetArticlesPackageTypesResponse |
GetArticlesPackageTypesResult |
object |
A GetArticlesPackageTypesResult object |
GetArticlesPackageTypesResult |
Success |
bool |
True if the call succeeded, false otherwise |
Message |
string |
If the call failed, this field contains the error message |
ArticlePackageTypes |
object |
A list of ArticlePackageTypes objects |
ArticlePackageTypes |
ArticleDefId |
int |
The article def id of the article |
PackageTypes |
object [] |
A list of available ArticlePackage objects for this article def |
ArticlePackage |
MaxQuantityPerPalletType |
int |
The maximum quantity for this package type |
PackageType |
object |
An PackageType object |
PackageType |
Name |
string |
The package type name |
Code |
string |
The package type code |
Id |
int |
The package type id |