Operation MetadataИстория статусов операции (§9)

История статусов операции (§9)

Хронология переходов статуса (OperationStatusHistory). Для операций, созданных до внедрения — одна legacy-baseline запись.

curl -X GET "https://policy-engine-rest.ezig.workers.dev/api/v1/vaults/demo_vault/operations/deposit/example_string/status-history" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
{
  "items": [
    {
      "id": "example_string",
      "fromStatus": "example_string",
      "toStatus": "example_string",
      "reason": "example_string",
      "changedById": "example_string",
      "changedAt": "2024-12-25T10:00:00Z"
    }
  ]
}
GET
/api/v1/vaults/{code}/operations/{operationType}/{operationId}/status-history
GET
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token
Bearer Tokenstring
Required

better-auth session token. Мобилка/сервисы. Веб использует cookie.

better-auth session token. Мобилка/сервисы. Веб использует cookie.
API Key (cookie: better-auth.session_token)
path
codestring
Required

Уникальный код Vault'а (slug)

path
operationTypestring
Required
Options: deposit, transfer
Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. better-auth session token. Мобилка/сервисы. Веб использует cookie.

path
parameterstring
Required

API Key for authentication. Provide your API key in the cookie.

Path Parameters

codestring
Required

Уникальный код Vault'а (slug)

Example:
demo_vault
operationTypestring
Required
Allowed values:deposittransfer

Responses

itemsarray
Required