> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.finput.com.au/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.finput.com.au/_mcp/server.

# Compare a restore point against the card today

GET https://api.finput.com.au/api/v1/rate-card-versions/{id}/diff

What restoring this version would change. The sentences in `summary_lines` and `warnings` are the import preview's own, so the same change is never worded two different ways.

Rate-card versions only. A version of another series, one belonging to another organisation, and one that does not exist all answer the same `404` — distinguishing them would let a caller walk the id space and learn which organisations have been edited, and when.

Reference: https://docs.finput.com.au/api/endpoints/rate-card-versions/diff-rate-card-version

## Authentication

- `Authorization` header (bearer token, required) — JWT access token obtained from `POST /api/v1/auth/login`, or a `finput_sk_...` API token

## Request

### Path parameters

- `id` (integer, required)

## Response

### 200

The diff.

- `version` (RateCardVersion, optional) — One restore point. Metadata only — never the payload.
- `summary_lines` (list of string, optional)
- `parts` (map from string to any, optional)
- `warnings` (list of string, optional)
- `subtrees` (map from string to any, optional)

## Errors

### 403 Forbidden Error

Not permitted to read version history.

- `error` (string, optional)
- `errors` (map from string to list of string, optional)

### 404 Not Found Error

No such version for this caller.

- `error` (string, optional)
- `errors` (map from string to list of string, optional)

## Types

### RateCardVersion

One restore point. Metadata only — never the payload.

- `id` (integer, optional)
- `organisation_id` (integer, optional, nullable)
- `resource` (enum, optional)
  - Allowed values: `rate_card`, `asset_mapping`
- `created_at` (datetime, optional)
- `reason` (string, optional)
- `pinned` (boolean, optional)
- `label` (string, optional)
- `parts_present` (list of string, optional)
- `actor_email` (string, optional)
- `origin` (string, optional) — How the change arrived — the app, an API token, or a connected AI assistant.
- `connection` (RateCardVersionConnection, optional, nullable) — Which assistant, when `origin` says one made the change.

### RateCardVersionConnection

Which assistant, when `origin` says one made the change.

- `id` (integer, optional)
- `client_name` (string, optional)

## Examples

**Response**

```json
{
  "version": {
    "id": 1,
    "organisation_id": 1,
    "resource": "rate_card",
    "created_at": "2024-01-15T09:30:00Z",
    "reason": "string",
    "pinned": true,
    "label": "string",
    "parts_present": [
      "string"
    ],
    "actor_email": "string",
    "origin": "string",
    "connection": {
      "id": 1,
      "client_name": "string"
    }
  },
  "summary_lines": [
    "string"
  ],
  "parts": {},
  "warnings": [
    "string"
  ],
  "subtrees": {}
}
```

**SDK Code**

```python
import requests

url = "https://api.finput.com.au/api/v1/rate-card-versions/1/diff"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.finput.com.au/api/v1/rate-card-versions/1/diff';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.finput.com.au/api/v1/rate-card-versions/1/diff"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.finput.com.au/api/v1/rate-card-versions/1/diff")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.finput.com.au/api/v1/rate-card-versions/1/diff")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.finput.com.au/api/v1/rate-card-versions/1/diff', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.finput.com.au/api/v1/rate-card-versions/1/diff");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.finput.com.au/api/v1/rate-card-versions/1/diff")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```