v1

latestOpenAPI 3.1.02026-08-06236494759.4 KB
Expense Review Processes

Update Expense Review Process Status

Endpoint to update a specific ExpenseReviewProcess status.

put/business/v2/expense-review/processes/{processId}/status

Path parameters

processIdstring required

The ExpenseReviewProcess ID.

Example: 2d9f6514-4004-4122-b7f2-dcf7e034741c

Request body

status'ACTIVE' | 'INACTIVE' required

Response

The result is a single ExpenseReviewProcess.

idstring

The ExpenseReviewProcess id.

namestring required

The name of theExpenseReviewProcess.

descriptionstring required

A textual description of the ExpenseReviewProcess.

steps_countinteger required

The total number of approval steps.

priorityinteger

The order of priority in which the ExpenseReviewProcess will be executed.

status'ACTIVE' | 'INACTIVE' required

Example response

{
  "id": "7bf79328-a7ae-4222-aa54-091ff7f429a7",
  "name": "EXPENSE REVIEW PROCESS",
  "description": "EXPENSE REVIEW PROCESS DESCRIPTION",
  "steps_count": 2,
  "priority": 2,
  "conditions": [
    {
      "value": [
        "7bf79328-a7ae-4222-aa54-091ff7f429a7",
        "2d65bd5e-3fdf-4002-b166-bde7fb8863fa"
      ]
    }
  ],
  "steps": [
    {
      "step_number": 2,
      "reviewer_info": {
        "id": [
          "7bf79328-a7ae-4222-aa54-091ff7f429a7",
          "2d65bd5e-3fdf-4002-b166-bde7fb8863fa"
        ]
      },
      "automation_rule": {
        "required_info": true,
        "amount_condition": {
          "amount": 10.25
        }
      }
    }
  ]
}