pixiSupplierOrderLineCreate

Create new purchase order line for one supplier

Since pixi version: 21.09 (21.9.0.60964) Additional notes: CAUTION: Only one item (per location) can be added per purchase order. You can sent order quantity for more location. In case of calculation of package unit, quantities for package unit will be adjusted per location and summarized together for total order quantity.

    Using @ConsiderMinOrderQty = 1 and more location quantity for one item, min order quantity will be applied per location (not total item order quantity).
    
    NOTE:	Fields ItemId, SupplierPrice, LocationId, OrderedQty and SupplierOrderId or SupplierOrderNr are MANDATORY
    NOTE:	Purchase Order should have status NEW or BES (OPEN)
    NOTE:	Supplier of the Purchase order and Item should match
    NOTE:	DiscountType use 0 for % type and 1 for amount type. Discount Type and Discount are not mandatory. Default for Discount Type is PERCENT - Discount Type = 0.
    
    **@PurchaseOrderXML** parameter sample XML:
    
    <Items>
        <Item>
            <ItemId></ItemId>
            <SupplierPrice></SupplierPrice>
            <DiscountType></DiscountType>
            <Discount></Discount>
            <PackagingUnit></PackagingUnit>
            <EstimatedDeliveryDate></EstimatedDeliveryDate>
            <Comment></Comment>
            <LocationList>
                <Location>
                    <LocationId></LocationId>
                    <OrderedQty></OrderedQty>
                </Location>
                <Location>
                    <LocationId></LocationId>
                    <OrderedQty></OrderedQty>
                </Location>
            </LocationList>
        </Item>
    </Items>

Request

POST https://apigateway.descartes.com/tms/pixi/pixiSupplierOrderLineCreate

Request body

Name Type Required Description
UserName string false

User name of user who execute API call

Type: varchar(50)

Default value:

Example: API user

Available from: 21.09 (21.9.0.60964)

SupplierOrderId integer false

Purches order Id

Type: int

Default value: NULL

Example: 12345

Available from: 21.09 (21.9.0.60964)

SupplierOrderNr integer false

Purches order number

Type: int

Default value: NULL

Example: 70012345

Available from: 21.09 (21.9.0.60964)

PurchaseOrderXML string true

Item XML see additional information tab

Type: xml

Default value:

Example: check additional information

Available from: 21.09 (21.9.0.60964)

ConsiderMinOrderQty boolean false

Same functionality as at purchase order suggestions, apply (0 no, 1 yes) minimum order quantity

Type: bit

Default value: 0

Example: 0 or 1

Available from: 21.09 (21.9.0.60964)

ConsiderPackageUnits boolean false

Same functionality as at purchase order suggestions, apply (0 no, 1 yes) packing units

Type: bit

Default value: 0

Example: 0 or 1

Available from: 21.09 (21.9.0.60964)


Response

1. Detailed result set

Name Type Description
ItemId integer

Item Id

Type: int

Available from: / (25.7.0.59144)

Status integer

Status = Error|Success

Type: int

Available from: / (25.7.0.59144)

StatusDescription integer

Detail descripton of status

Type: int

Available from: / (25.7.0.59144)