Skip to main content

ordersChangeProposals

Lists the change proposals of an order, newest first.

Business Rules​

  • Only proposals of the current company are returned, whoever requested them.
  • The company comes from the X-Company-Id header, or from session context.
  • When filters.statuses is given, only proposals in one of those statuses are returned. Without it, proposals in every status are returned.
  • When filters.ids is given, only the proposals with those IDs are returned. The filters combine, and a proposal of another order is never returned.

Error Scenarios​

  • CompanyContextRequired when the request has no company.

Permissions Required​

  • change_proposals:read permission
ordersChangeProposals(
filters: ChangeProposalFilterInput
orderId: ID!
): [OrderChangeProposal!]!

Arguments​

ordersChangeProposals.filters ● ChangeProposalFilterInput input orders​

Optional filters by proposal IDs and statuses.

ordersChangeProposals.orderId ● ID! non-null scalar common​

The ID of the order.

Type​

OrderChangeProposal object orders​

A proposal with the changes a source wants to make to an order, for a user to review.