# The real cost of a finished request

`POST /budget/report` · Praecise Shield · Budgets and kill switch

The declared cost (declared, or the route's when path is given) is taken back and the real cost counted.

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "site": {
      "type": "string",
      "description": ""
    },
    "secret": {
      "type": "string",
      "description": ""
    },
    "client": {
      "type": "string",
      "description": ""
    },
    "agent": {
      "type": "string",
      "description": ""
    },
    "cost": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "tokens": {
          "type": "integer",
          "minimum": 0
        },
        "dbMs": {
          "type": "integer",
          "minimum": 0,
          "description": "Database milliseconds."
        },
        "cents": {
          "type": "integer",
          "minimum": 0,
          "description": "Money in minor units."
        }
      }
    },
    "declared": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "tokens": {
          "type": "integer",
          "minimum": 0
        },
        "dbMs": {
          "type": "integer",
          "minimum": 0,
          "description": "Database milliseconds."
        },
        "cents": {
          "type": "integer",
          "minimum": 0,
          "description": "Money in minor units."
        }
      }
    },
    "method": {
      "type": "string",
      "description": ""
    },
    "path": {
      "type": "string",
      "description": ""
    }
  },
  "required": [
    "site",
    "secret",
    "cost"
  ]
}
```

## Responses

- `200`
- `401`: Wrong site or secret.

## Example

```sh
curl -X POST 'https://shield.praecise.com/budget/report' \
  -H 'Content-Type: application/json' \
  -d '{
  "site": "string",
  "secret": "string",
  "cost": {
    "tokens": 0,
    "dbMs": 0,
    "cents": 0
  }
}'
```
