Space Docs
API ReferencePurchase Order

purchaseOrder.create

Type: Mutation · Auth: Workspace-aware

Input

FieldTypeRequiredDefaultDescription
vendorIdunknownNo—ID of the associated vendor
poNumberstringYes—Po number
projectIdunknownNo—ID of the associated project
customerIdunknownNo—ID of the associated customer
workOrderIdunknownNo—ID of the associated work order
orderDateunknownNo—Order date
expectedDeliveryDateunknownNo—Expected delivery date
subtotalunknownNo—Subtotal
taxAmountunknownNo—Tax amount
totalAmountunknownNo—Total amount
shippingAddressunknownNo—Shipping address
notesunknownNo—Notes
poTypeenum(standard, blanket, drop_ship, stock, subcontract)Yes"standard"Po type
trackingNumberunknownNo—Tracking number
shippingMethodunknownNo—Shipping method
shippingCostunknownNo—Shipping cost
internalNotesstring,nullNo—Internal notes
warehouseIdunknownNo—ID of the associated warehouse
relatedQuoteNumberunknownNo—Related quote number
sourceQuoteIdunknownNo—ID of the associated source quote
directionenum(outbound, inbound)Yes"outbound"Direction
sourceVendorQuoteIdunknownNo—ID of the associated source vendor quote

Example

{
  "vendorId": null,
  "poNumber": "example",
  "projectId": null,
  "customerId": null,
  "workOrderId": null,
  "orderDate": null,
  "poType": "standard",
  "direction": "outbound"
}

On this page