Sets transaction-specific approval cycle. Resets transaction approved_by field, sends transaction back to “reviewing” state.

Examples

Params for adding new transaction-specific approval cycle, 3 approvers:
{"approvers":
  [
    {"operator": "then", "approver_id":2},
    {"operator": "then", "approver_id":266},
    {"operator": "or", "approver_id":19,}
  ]
}
    

Params

Param name Description
approvers
required

Validations:

  • Must be an Array of nested elements

approvers[operator]
required

Operator specifying approver process logic

Validations:

  • Must be one of: then, or.

approvers[approver_id]
required

Approver’s user id

Validations:

  • Must be a Integer

approvers[id]
optional

User approver id, required if user approver already exists. If it’s not supplied, new user approver will be added

Validations:

  • Must be a Integer