← API reference
CANONICAL TYPE REFERENCE

CreatePurchaseOrderInput

Input for createPurchaseOrder. The order is created in DRAFT status with tax of zero, so its total equals the sum of its line totals.

TypeID ("sup_01K…") of the supplier the order is placed with.

poNumberString!

Human-facing purchase order number used to identify the order to the supplier. Must not be blank; also used as the batch number on any stock received against this order.

TypeID ("adr_01K…") of the address the goods should be delivered to. Null to leave the delivery address unspecified on the order.

ISO 4217 currency code (e.g. "EUR") that all line prices and order totals are denominated in.

orderDateString

Date the order is placed, as an ISO 8601 timestamp. Defaults to now when omitted or unparseable.

Date delivery is expected, as an ISO 8601 timestamp. Null when no delivery date has been agreed.

TypeID ("job_01K…") of the job this order is bought for, linking the spend to that job. Null for general/stock purchases.

notesString

Notes for the supplier, carried on the order itself. Null when there are none.

The items being ordered. At least one line is required; lines are numbered in the order given and their totals are summed into the order subtotal.

View exact SDL
"""
Input for `createPurchaseOrder`. The order is created in DRAFT status with tax of zero, so its total equals the sum of its line totals.
"""
input CreatePurchaseOrderInput {
  """TypeID ("sup_01K…") of the supplier the order is placed with."""
  supplierId: SupplierID!
  """
  Human-facing purchase order number used to identify the order to the supplier. Must not be blank; also used as the batch number on any stock received against this order.
  """
  poNumber: String!
  """
  TypeID ("adr_01K…") of the address the goods should be delivered to. Null to leave the delivery address unspecified on the order.
  """
  deliveryAddressId: AddressID
  """
  ISO 4217 currency code (e.g. "EUR") that all line prices and order totals are denominated in.
  """
  currency: CurrencyISO!
  """
  Date the order is placed, as an ISO 8601 timestamp. Defaults to now when omitted or unparseable.
  """
  orderDate: String
  """
  Date delivery is expected, as an ISO 8601 timestamp. Null when no delivery date has been agreed.
  """
  expectedDeliveryDate: String
  """
  TypeID ("job_01K…") of the job this order is bought for, linking the spend to that job. Null for general/stock purchases.
  """
  jobId: JobID
  """
  Notes for the supplier, carried on the order itself. Null when there are none.
  """
  notes: String
  """
  The items being ordered. At least one line is required; lines are numbered in the order given and their totals are summed into the order subtotal.
  """
  lines: [PurchaseOrderLineInput!]!
}

One stable address across all schema views. Follow a field’s type to explore connections between domains.