---
# System prepended metadata

title: Semler POC

---

# Semler POC
## Documentation

The POC is built as a simple rest api with POST and PUT requests
### Prerequisites
URL: `https://f-2522.int.api.uk.vwfs.io/v1/semler-banqsoft-poc/banq-soft-case/case`
header: `x-api-key: xxx`
Test dealers:
```
dealer-1:  Dealer = 257, AllowedAgreements = [1000, 1030], AllowedBrandCodes = * 
dealer-2: Dealer = 455, AllowedAgreements = 1000, AllowedBrandCodes = 1 
```

### Create Case
Send post request to `https://f-2522.int.api.uk.vwfs.io/v1/semler-banqsoft-poc/banq-soft-case/case`. 
Request body should look something like this sample:


```json
{
    "agreementCode": 1000,
    "externalSystemReference": "23003-39000-F1",
    "brandCode": 1,
    "caseObjects": [
        {
            "accessories": [
                {
                    "typeCode": 100,
                    "amount": 0,
                    "description": "Komfortpakke2",
                    "key": "PK1"
                },
                {
                    "typeCode": 200,
                    "amount": 5000,
                    "description": "SK Styrekode",
                    "key": "SPR"
                }
            ],
            "objectRegistry": {
                "description": "Volkswagen ID.3 Pro 204 HK 150 kW Performance",
                "isNew": true,
                "makeName": "Volkswagen",
                "modelCode": "E123MJ",
                "modelName": "ID.3 Pro",
                "modelYear": 2024,
                "typeName": "204 HK 150 kW Performance",
                "variables": [
                    {
                        "typeCode": 100,
                        "value": "R03"
                    }
                ]
            },
            "price": 328188.75
        }
    ],
    "customers": [
        {
            "lastName": "Bang",
            "addresses": [
                {
                    "address": {
                        "eMail": "test@test.dk"
                    }
                }
            ],
            "firstName": "Sören",
            "type": "Private"
        }
    ],
    "dealer": 257
}
```

Values to watch for is Brandcode, Agreement and Dealer id as the two test dealers has different permissions.

### Update case

Send put request to `https://f-2522.int.api.uk.vwfs.io/v1/semler-banqsoft-poc/banq-soft-case/case`. 
Sample: 
```json
{
    "sequence": 236883,
    "agreementCode": 1000,
    "externalSystemReference": "23002-39000-F1",
    "brandCode": 1,
    "caseObjects": [
        {
            "sequence": 236571,
            "accessories": [
                {
                    "typeCode": 100,
                    "amount": 0,
                    "description": "Komfortpakke",
                    "key": "PK1"
                },
                {
                    "typeCode": 200,
                    "amount": 5000,
                    "description": "SK Styrekodek",
                    "key": "SPR"
                }
            ],
            "objectRegistry": {
                "description": "Volkswagen ID.3 Pro 204 HK 150 kW Performance",
                "isNew": true,
                "makeName": "Volkswagen",
                "modelCode": "E123MJ",
                "modelName": "ID.3 Pro",
                "modelYear": 2024,
                "typeName": "204 HK 150 kW Performance",
                "variables": [
                    {
                        "typeCode": 100,
                        "value": "R03"
                    }
                ]
            },
            "price": 328188.75
        }
    ],
    "customers": [
        {
            "lastName": "Bang",
            "addresses": [
                {
                    "address": {
                        "eMail": "test@test.dk"
                    }
                }
            ],
            "firstName": "Sören",
            "type": "Private"
        }
    ],
    "dealer": 257
```
A dealer should only be able change cases that it has created. 