Skip to Content
EquinoxAPI and integrationsPublic M2M APIPublic M2M API — approvals

Public M2M API — approvals

Review the operation, its input and access requirements. Parameter names and enum values are protocol identifiers and must retain the exact spelling shown. Optional/defaulted input is marked as such; required fields nested beneath an optional object apply when that object is supplied. Only statically recognized literal constraints are shown; additional validation, conditional requirements and provider rules may apply.

Authentication and permissions · Requests, results and recovery

/api/v1/approvals

Exported methods: GET, POST

GET

  • Resource scopes: approvals:read
  • Query parameters: documentType, endDate, limit, page, search, startDate, status, view
  • Shared pagination: Yes
  • Response keys observed across outcomes: tenantId, workflows

POST

  • Resource scopes: approvals:write
  • Explicit response statuses: 201, 400, 409, 422
  • Explicit error codes: approval_failed, invalid_request, onboarding_incomplete
  • Response keys observed across outcomes: instance, workflow

Validated request fields

FieldTypeOptional/defaultedNullableAllowed literal valuesObserved literal constraints
actionenumYesNoapprove, reject, escalate, delegate—
codestringYesNo——
commentstringYesNo——
delegateToUserIdstringYesNo——
descriptionstringYesNo——
documentAmountnumberYesNo——
documentIdstringYesNo——
documentNumberstringYesNo——
documentTypestringYesNo——
idstringYesNo——
instanceIdstringYesNo——
modeenumYesNosubmit, decide, create_workflowdefault("submit")
namestringYesNo——
notesstringYesNo——
stepsarrayYesNo——

/api/v1/approvals/{id}

Exported methods: GET, PATCH, DELETE

GET

  • Resource scopes: approvals:read
  • Path parameters: id
  • Response keys observed across outcomes: instance

PATCH

  • Resource scopes: approvals:write
  • Path parameters: id
  • Explicit response statuses: 404, 422
  • Explicit error codes: invalid_request, not_found
  • Response keys observed across outcomes: instance

Validated request fields

FieldTypeOptional/defaultedNullableAllowed literal valuesObserved literal constraints
actionenumYesNoapprove, approved, reject, rejected, return, returned, delegate, delegated, escalate—
commentstringYesYes—max(1000)
delegatedTostringYesYes——
delegateToUserIdstringYesYes——
notesstringYesYes—max(1000)

DELETE

  • Resource scopes: approvals:write
  • Path parameters: id
  • Response keys observed across outcomes: deleted, id

Request input was not extracted for this operation; consult its specific contract before sending. Do not infer that no body is required.