Space Docs
API ReferencePurchase Order

purchaseOrder.create

Type: Mutation · Auth: Workspace-aware

Input

FieldTypeRequiredDefaultDescription
vendorIdunknownNoID of the associated vendor
poNumberstringYesPo number
projectIdstringNoID of the associated project
customerIdunknownNoID of the associated customer
workOrderIdstringNoID of the associated work order
orderDatestring.date-timeNoOrder date
expectedDeliveryDatestring.date-timeNoExpected delivery date
subtotalunknownNoSubtotal
taxAmountunknownNoTax amount
totalAmountunknownNoTotal amount
shippingAddressstringNoShipping address
notesstringNoNotes
poTypeenum(standard, blanket, drop_ship, stock, subcontract)Yes"standard"Po type
trackingNumberunknownNoTracking number
shippingMethodunknownNoShipping method
shippingCostunknownNoShipping cost
internalNotesunknownNoInternal notes
warehouseIdunknownNoID of the associated warehouse
relatedQuoteNumberunknownNoRelated quote number
sourceQuoteIdunknownNoID of the associated source quote
directionenum(outbound, inbound)Yes"outbound"Direction
sourceVendorQuoteIdunknownNoID of the associated source vendor quote

Example

{
  "vendorId": null,
  "poNumber": "example",
  "projectId": "550e8400-e29b-41d4-a716-446655440000",
  "customerId": null,
  "workOrderId": "550e8400-e29b-41d4-a716-446655440000",
  "orderDate": "2024-01-15T09:00:00.000Z",
  "poType": "standard",
  "direction": "outbound"
}

On this page