---
updatedAt: 2026-04-16T16:21:26.000Z
agentTools:
  projectIndex: https://docs.ascerta.com/llms.txt
---

# Get the value score (money and/or time) for a Use Case instance

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Pay-i",
    "description": "Pay-i API",
    "version": "v1"
  },
  "paths": {
    "/api/v1/use_cases/instances/{use_case_name}/{use_case_id}/value": {
      "get": {
        "tags": [
          "KPIs"
        ],
        "summary": "Get the value score (money and/or time) for a Use Case instance",
        "operationId": "getUseCaseInstanceValue",
        "parameters": [
          {
            "name": "use_case_name",
            "in": "path",
            "description": "Use Case name",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "use_case_id",
            "in": "path",
            "description": "Use case instance ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PayI.Calculator.Models.ValueScoreResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PayI.Common.Models.ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PayI.Common.Models.ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PayI.Common.Models.ApiError"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "PayI.Calculator.Models.ValueScoreResponse": {
        "type": "object",
        "properties": {
          "money": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "time": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PayI.Common.Models.ApiError": {
        "required": [
          "message",
          "statusCode"
        ],
        "type": "object",
        "properties": {
          "message": {
            "minLength": 1,
            "type": "string"
          },
          "statusCode": {
            "type": "integer",
            "format": "int32"
          },
          "xproxy_error": {
            "$ref": "#/components/schemas/PayI.Common.Models.ProxyError"
          }
        },
        "additionalProperties": false
      },
      "PayI.Common.Models.ProxyError": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "nullable": true
          },
          "message": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "Pay_I_API_Key": {
        "type": "apiKey",
        "description": "Pay-I API Key. Example: \"{apikey}\"",
        "name": "xProxy-api-key",
        "in": "header"
      }
    }
  },
  "security": [
    {
      "Pay_I_API_Key": []
    }
  ],
  "tags": [
    {
      "name": "KPIs",
      "description": "KPIs"
    }
  ],
  "servers": [
    {
      "url": "https://api.pay-i.com"
    }
  ]
}
```