Options
All
  • Public
  • Public/Protected
  • All
Menu

Module SupplierCreateOrUpdatePurchaseOrder

Creates a purchase order (or updates it if it already exists).

When the order already exists, only the lines can be updated (see SupplierUpdatePurchaseOrder) - other properties will be ignored.

:lightbulb: Using SupplierCreateOrder and SupplierUpdatePurchaseOrder is preferred.

Index

Properties

BackendID

BackendID: string

Identifer of the order from the 3rd party

Optional BackendSystemID

BackendSystemID: undefined | string

Identifier of the 3rd party system that created the order

Optional CustomFields

CustomFields: undefined | {}

Optional ExpectedDeliveryDate

ExpectedDeliveryDate: undefined | string

Date that the supplier expects to deliver the shipment(s) of the purchase order

Lines

Contents of the purchase order.

Optional Receive

Receive: undefined | false | true

Receive the order immediately after shipping, works only if Ship is set to true

Optional Ship

Ship: undefined | false | true

Ship the order immediately after creation

Optional ShipFromOrganizationUnitBackendID

ShipFromOrganizationUnitBackendID: undefined | string

BackendID of the OrganizationUnit who will be supplying the stock

deprecated

Replaced by ShipFromOrganizationUnitID.

Optional ShipFromOrganizationUnitID

ShipFromOrganizationUnitID: undefined | number

OrganizationUnit who will be supplying the stock. Entity type: OrganizationUnit

Optional ShipToOrganizationUnitBackendID

ShipToOrganizationUnitBackendID: undefined | string

BackendID of the OrganizationUnit that will be receiving the purchase order shipment(s)

deprecated

Replaced by ShipToOrganizationUnitID.

Optional ShipToOrganizationUnitID

ShipToOrganizationUnitID: undefined | number

OrganizationUnit that will be receiving the purchase order shipment(s). Entity type: OrganizationUnit