Warning: API call is no longer maintained!
Description
Creates and returns a Delivery document based on one or more Supplier orders. Validates that no open delivery already exists for the given supplier orders before creating a new one. If an open delivery is found, an error is returned instead.
Request Parameters
# |
Name |
Type |
Required |
Example |
Description |
1 |
OrderNr |
string |
1 |
123;456;789 |
One or more supplier order numbers separated by a semicolon (;). |
2 |
LocID |
string |
1 |
001 |
Location ID for the delivery. |
3 |
UserName |
string |
1 |
JohnDoe |
Username of the person initiating the call. |
Request body
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:dem="https://api.pixi.eu/soap/demosandbox/">
<soapenv:Header/>
<soapenv:Body>
<dem:pixiCreateSDeliveryByTemplate>
<dem:OrderNr>123;456;789</dem:OrderNr>
<dem:LocID>001</dem:LocID>
<dem:UserName>JohnDoe</dem:UserName>
</dem:pixiCreateSDeliveryByTemplate>
</soapenv:Body>
</soapenv:Envelope>Response
Body 1: Delivery Document Details
# |
Name |
Type |
Description |
1 |
SDelHKey |
integer |
The primary key of the created delivery header. |
2 |
SDelHDate |
datetime |
The creation date of the delivery. |
3 |
SDelHLocationID |
string |
The ID of the location associated with the delivery. |
4 |
SDelHNr |
integer |
The delivery document number. |
5 |
SDelHStatus |
string |
The status of the delivery document. |
6 |
SDelHextOrderNr |
string |
The external order number(s) linked to the delivery. |
7 |
SDelHSupplNr |
string |
The supplier number associated with the delivery. |
Body 2: Errors
# |
Name |
Type |
Description |
1 |
ERROR |
string |
Error message returned when the call cannot be completed. Example: "ERROR: Supplier order already has an open delivery." |
Additional Notes
The procedure checks the system setting "Create Receipts for Purchase Orders with status."
If the setting is 0 (default), only Purchase Orders with status Confirmed can be used to create a Goods Receipt document.
If the setting is 1, both Ordered and Confirmed statuses are allowed.
It is recommended to use pixiCreateDelivery instead of deprecated pixiCreateSDeliveryByTemplate.