Skip to main content

supplyCompletePOMilestone

Marks a purchase order milestone as completed and updates the PO status to the milestone's final status.

Authentication

Authentication is required. Unauthenticated requests will fail.

Permissions

Requires supply:update_milestones permission for the purchase order's brand.

Business Rules

  • Milestone must have been started before it can be completed
  • Cannot complete a milestone that is already completed
  • Completing a milestone updates the PO status to the milestone's final status

Possible Errors

  • Authentication error if not logged in
  • Permission error if lacking access to the brand
  • Milestone not found
  • Milestone not started yet
  • Milestone already completed
supplyCompletePOMilestone(
input: CompletePOMilestoneInput!
): StatusResponse!

Arguments

supplyCompletePOMilestone.input ● CompletePOMilestoneInput! non-null input

Parameters for CompletePOMilestone

Type

StatusResponse object

The response of a mutation that only returns a status