Approval Rule and Approval Flow Messages

GraphQL output types for Messages that represent a change or an action performed on an Approval Rule or Approval Flow.

Each type on this page implements MessagePayload and is returned in the payload field of a Message. For when each Message is generated, see Approval Rule and Approval Flow Messages.

Approval Rule Messages

ApprovalRuleCreated

Generated after an Approval Rule is created.
approvalRule​
The Approval Rule that was created.
type​
String​

ApprovalRuleStatusSet

Generated after a successful Set Status update action.
oldStatus​
Status of the ApprovalRule before the Set Status update action.
Can be Active, or Inactive​
status​
Status of the ApprovalRule after the Set Status update action.
Can be Active, or Inactive​
type​
String​

ApprovalRuleStatus

Active
Inactive

ApprovalRuleNameSet

Generated after a successful Set Name update action.
oldName​
String​
Name of the ApprovalRule before the Set Name update action.
name​
String​
Name of the ApprovalRule after the Set Name update action.
type​
String​

ApprovalRuleDescriptionSet

Generated after a successful Set Description update action.
oldDescription​
String​
Description of the ApprovalRule before the Set Description update action.
description​
String​
Description of the ApprovalRule after the Set Description update action.
type​
String​

ApprovalRuleKeySet

Generated after a successful Set Key update action.
oldKey​
String​
key value of the ApprovalRule before the Set Key update action.
key​
String​
key value of the ApprovalRule after the Set Key update action.
type​
String​

ApprovalRulePredicateSet

Generated after a successful Set Predicate update action.
oldPredicate​
String​
Name of the ApprovalRule before the Set Predicate update action.
predicate​
String​
Name of the ApprovalRule after the Set Predicate update action.
type​
String​

ApprovalRuleApproversSet

Generated after a successful Set Approvers update action.
oldApprovers​
Approver hierarchy of the ApprovalRule before the Set Approvers update action.
approvers​
Approver hierarchy of the ApprovalRule after the Set Approvers update action.
type​
String​

ApproverHierarchy

Describes the order in which Associates can approve the matched Order.
tiers​

All of the nested conjunctions must be approved in order for the hierarchy to be considered approved.

ApproverConjunction

and​

All of the nested disjunctions must be approved in order for the conjunction to be considered approved.

ApproverDisjunction

or​
Array of RuleApprover​

Any of the nested approvers must approve in order for the disjunction to be considered approved.

RuleApprover

associateRole​

The Associate Role that is allowed to approve at a given stage in the approval process.

associateRoleRef​

The Associate Role that is allowed to approve at a given stage in the approval process.

ApprovalRuleRequestersSet

Generated after a successful Set Requester update action.
oldRequesters​
Array of RuleRequester​
RuleRequester of the ApprovalRule after the Set Requester update action.
requesters​
Array of RuleRequester​
RuleRequester of the ApprovalRule after the Set Requester update action.
type​
String​

RuleRequester

associateRole​
The Associate Role that an Associate must hold for the Approval Rule to apply to the Orders they create.
associateRoleRef​
The Associate Role that an Associate must hold for the Approval Rule to apply to the Orders they create.

Approval Flow Messages

ApprovalFlowCreated

Generated after an Approval Flow is created.
approvalFlow​
The Approval Flow that was created.
type​
String​

ApprovalFlowApproved

Generated after an approval in the Approval Flow.
associate​
Reference to the Customer who approved the Approval Flow.
order​
Reference to the Order that received the approval.
associateRef​
Reference to the Customer who approved the Approval Flow.
orderRef​
Reference to the Order that received the approval.
type​
String​

ApprovalFlowRejected

Generated after an Approval Flow is rejected.
rejectionReason​
String​
Description of the reason why the Approval Flow was rejected.
associate​
Reference to the Customer who rejected the Approval Flow.
order​
Reference to the Order that received the rejection.
associateRef​
Reference to the Customer who rejected the Approval Flow.
orderRef​
Reference to the Order that received the rejection.
type​
String​

ApprovalFlowCompleted

Generated after an Approval Flow is completed and reaches a final status.
status​
String​
Final status of the Approval Flow.
order​
Reference to the Order related to the completed Approval Flow.
orderRef​
Reference to the Order related to the completed Approval Flow.
type​
String​