NAV
bash javascript

Auth

Login

Example response:

{
    "data": {
        "message": "You have logged in successfully",
        "status_code": 200
    }
}

HTTP Request

POST api/auth/login

Parameters

Parameter Type Status Description
email string required
password string required

Logout

Example response:

{
    "data": {
        "message": "You have logged out successfully",
        "status_code": 200
    }
}

HTTP Request

POST api/auth/logout

Create Testing Token

Example response:

{
    "data": {
        "access_token": "sSM1zRxzfpfIvBRe9d1XzfETZlwvGyDXqK94BOhi8eTc3sXF34JU7qKVVGemwzv8ZcnsNbOLzLFnXYZ",
        "status_code": 200
    }
}

HTTP Request

POST api/auth/create-testing-token

Parameters

Parameter Type Status Description
email string required
password string required

Forgot Password

Example response:

{
}

HTTP Request

POST api/auth/forgot-password

Parameters

Parameter Type Status Description
email string required

Reset Password

Example response:

{
}

HTTP Request

POST api/auth/reset-password

Parameters

Parameter Type Status Description
token string required
email string required and email
password string required
password_confirmation string required

Change Password

Example response:

{

}

HTTP Request

POST api/auth/change-password

Parameters

Parameter Type Status Description
old_password string required
new_password string required
new_password_confirmation string required

Errors

B5-Spark uses conventional HTTP response codes to indicate the success or failure of an API request. The table below contains a summary of the typical response codes

Code Description
200 Everything is ok.
400 Valid data was given but the request has failed.
401 No valid API Key was given.
404 The request resource could not be found.
419 Invalid token or session expired.
422 The payload has missing required parameters or invalid data was given.
429 Too many attempts.
500 Request failed due to an internal error .
503 Server is offline for maintenance

Users

All Users

Example (DataTables) response:

{
    "draw": 0,
    "recordsTotal": 49,
    "recordsFiltered": 49,
    "data": [
        {
            "id": 1,
            "first_name": "Alex",
            "last_name": "Mansour",
            "email": "alex.mansour7@gmail.comc",
            "organization_id": 14,
            "state": true,
            "created_at": null,
            "updated_at": "01-11-2018 12:24:01",
            "profile_picture_path": null,
            "role": {
                "id": 4,
                "name": "Test-role",
                "display_name": "Test-role",
                "guard_name": "web",
                "system_role": 0,
                "created_at": "2017-10-14T13:48:46.000000Z",
                "updated_at": "2018-11-05T11:00:28.000000Z",
                "pivot": {
                    "model_id": 1,
                    "role_id": 4,
                    "model_type": "App\\Models\\User"
                }
            }
        },
    ]
}

HTTP Request

GET api/users/data/{listOrDatatable}

You can filter listing users with permission key 'permission' in query param

Get User

Example response:

{
    "data": {
        "id": 1,
        "first_name": "Alex",
        "last_name": "Mansour",
        "email": "alex.mansour7@gmail.comc",
        "organization_id": 14,
        "state": true,
        "created_at": null,
        "updated_at": "01-11-2018 12:24:01",
        "profile_picture_path": null,
        "role": {
            "id": 4,
            "name": "Test-role",
            "display_name": "Test-role",
            "guard_name": "web",
            "system_role": 0,
            "created_at": "2017-10-14T13:48:46.000000Z",
            "updated_at": "2018-11-05T11:00:28.000000Z",
            "pivot": {
                "model_id": 1,
                "role_id": 4,
                "model_type": "App\\Models\\User"
            }
        }
    }
}

HTTP Request

GET api/users/{id}

Create User

Example response:

{
    "data": {
        "message": "User have created successfully",
        "data": null,
        "status_code": 200
    }
}

HTTP Request

POST api/users

Parameters

Parameter Type Status Description
first_name string required
last_name string required
email string required and email
organization integer required
organization_ids array required
profile_picture file optional jpeg,jpg,bmp,png,gif
state bool optional
role integer required

Update User

Example response:

{
    "data": {
        "message": "User updated successfully",
        "data": {
            "id": 27,
            "first_name": "admin",
             "last_name": "admin",
             "organization_id": 1,
            "email": "hello3@b5digital.dk",
            "profile_picture_path": "http://b5spark.localhost:8000/images/users/profile_pictures/usertesting-ZYnZw5jiMb.jpg",
            "role": {
                "id": 1,
                "name": "Super Admin",
                "code": "super_admin",
                "guard_name": "web",
                "created_at": "2020-01-21 18:15:29",
                "updated_at": "2020-01-21 18:15:29",
                "pivot": {
                    "model_id": 27,
                    "role_id": 1,
                    "model_type": "App\\Models\\User"
                }
            }
        },
        "status_code": 200
    }
}

HTTP Request

PUT api/users/{id}

Parameters

Parameter Type Status Description
first_name string required
last_name string required
email string required and email
organization integer required
organization_ids array required
profile_picture file optional jpeg,jpg,bmp,png,gif
state bool optional
role integer required

Remove Profile Picture

Example response:

{
    "data": {
        "message": "Picture was removed successfully",
        "status_code": 200
    }
}

HTTP Request

PUT api/users/me/removeProfilePicture

User me

Logged in user profile

Example response:

{
    "data": {
        "id": 31,
        "first_name": "admin",
        "last_name": "admin",
        "organization_id": 1,
        "email": "admin@et-spark.com",
        "profile_picture_path": null,
        "role": {
            "id": 1,
            "name": "Super Admin",
            "code": "super_admin",
            "guard_name": "web",
            "created_at": "2020-01-21 18:15:29",
            "updated_at": "2020-01-21 18:15:29",
            "pivot": {
                "model_id": 31,
                "role_id": 1,
                "model_type": "App\\Models\\User"
            }
        },
        "permissions": [
            {
                "id": 92,
                "name": "view-leasing-contracts-payments-data",
                "display_name": "View Leasing Contracts Payments Data Tab",
                "guard_name": "web",
                "category_id": 23,
                "created_at": "2017-10-27T11:37:17.000000Z",
                "updated_at": "2017-10-27T11:37:17.000000Z",
                "pivot": {
                    "role_id": 1,
                    "permission_id": 92
                }
            },
        ]
    }
}

HTTP Request

GET api/users/me

Update Profile

Logged in user profile update.

Example response:

{
    "data": {
        "message": "User updated successfully",
        "data": {
            "id": 27,
            "first_name": "admin",
             "last_name": "admin",
             "organization_id": 1,
            "email": "hello3@b5digital.dk",
            "profile_picture_path": "http://b5spark.localhost:8000/images/users/profile_pictures/usertesting-ZYnZw5jiMb.jpg",
            "role": {
                "id": 1,
                "name": "Super Admin",
                "code": "super_admin",
                "guard_name": "web",
                "created_at": "2020-01-21 18:15:29",
                "updated_at": "2020-01-21 18:15:29",
                "pivot": {
                    "model_id": 27,
                    "role_id": 1,
                    "model_type": "App\\Models\\User"
                }
            }
        },
        "status_code": 200
    }
}

HTTP Request

PUT api/users/me

Parameters

Parameter Type Status Description
first_name string required
last_name string required
email string required and email
profile_picture file optional jpeg,jpg,bmp,png,gif

GET Permessions

Example response:

{
    "data": {
        "permissions": [
            {
                "id": 92,
                "name": "view-leasing-contracts-payments-data",
                "display_name": "View Leasing Contracts Payments Data Tab",
                "guard_name": "web",
                "category_id": 23,
                "created_at": "2017-10-27T11:37:17.000000Z",
                "updated_at": "2017-10-27T11:37:17.000000Z",
                "pivot": {
                    "role_id": 1,
                    "permission_id": 92
                }
            }
        ]
    }
}

HTTP Request

GET api/users/permissions

Parameters

Parameter Type Status Description

Check Permessions

Example response:

{
    "data": {
        "permissionsResult": {
            "add-contract-customer-message": true
        }
    }
}

HTTP Request

GET /api/users/permissions/check

Parameters

Parameter Type Status Description

Check Module Fields

Example response:

{
    "data": {
        "moduleFieldsResult": {
            "weighted_rate": true,
            "down_payment": true,
            "deposit": true,
            "salvage_value": true
        }
    }
}

HTTP Request

GET /api/users/module-fields/check

Parameters

Parameter Type Status Description
category string
module_fields array

Roles

Get All Roles

Example response:

{
    "draw": 0,
    "recordsTotal": 6,
    "recordsFiltered": 6,
    "data": [
        {
            "id": 1,
            "name": "admin",
            "display_name": "Administrator",
            "guard_name": "web",
            "system_role": 1,
            "created_at": null,
            "updated_at": "2017-10-11T19:07:27.000000Z",
            "permissions": [
                {
                    "id": 92,
                    "name": "view-leasing-contracts-payments-data",
                    "display_name": "View Leasing Contracts Payments Data Tab",
                    "guard_name": "web",
                    "category_id": 23,
                    "created_at": "2017-10-27T11:37:17.000000Z",
                    "updated_at": "2017-10-27T11:37:17.000000Z",
                    "pivot": {
                        "role_id": 1,
                        "permission_id": 92
                    }
                },
            ],
            "module_fields": [
                {
                    "category_id": 2,
                    "fields": [
                        {
                            "id": 1,
                            "name": "deposit",
                            "display_name": "Depositum",
                            "type": "input",
                            "created_at": "2017-10-19T19:31:06.000000Z",
                            "updated_at": "2017-10-19T19:31:06.000000Z",
                            "pivot": {
                                "role_id": 1,
                                "module_field_id": 1,
                                "fields_category_id": 2
                            }
                        },
                    ]
                },
                {
                    "category_id": 3,
                    "fields": [
                        {
                            "id": 1,
                            "name": "deposit",
                            "display_name": "Depositum",
                            "type": "input",
                            "created_at": "2017-10-19T19:31:06.000000Z",
                            "updated_at": "2017-10-19T19:31:06.000000Z",
                            "pivot": {
                                "role_id": 1,
                                "module_field_id": 1,
                                "fields_category_id": 3
                            }
                        },
                    ]
                }
            ]
        }
    ]
}

HTTP Request

GET /api/roles/list-data/{listOrDatatable}

Show Role

Example response:

{

    "data": {
            "id": 1,
            "name": "admin",
            "display_name": "Administrator",
            "guard_name": "web",
            "system_role": 1,
            "created_at": null,
            "updated_at": "2017-10-11T19:07:27.000000Z",
            "permissions": [
                {
                    "id": 92,
                    "name": "view-leasing-contracts-payments-data",
                    "display_name": "View Leasing Contracts Payments Data Tab",
                    "guard_name": "web",
                    "category_id": 23,
                    "created_at": "2017-10-27T11:37:17.000000Z",
                    "updated_at": "2017-10-27T11:37:17.000000Z",
                    "pivot": {
                        "role_id": 1,
                        "permission_id": 92
                    }
                },
            ],
            "module_fields": [
                {
                    "category_id": 2,
                    "fields": [
                        {
                            "id": 1,
                            "name": "deposit",
                            "display_name": "Depositum",
                            "type": "input",
                            "created_at": "2017-10-19T19:31:06.000000Z",
                            "updated_at": "2017-10-19T19:31:06.000000Z",
                            "pivot": {
                                "role_id": 1,
                                "module_field_id": 1,
                                "fields_category_id": 2
                            }
                        },
                    ]
                },
                {
                    "category_id": 3,
                    "fields": [
                        {
                            "id": 1,
                            "name": "deposit",
                            "display_name": "Depositum",
                            "type": "input",
                            "created_at": "2017-10-19T19:31:06.000000Z",
                            "updated_at": "2017-10-19T19:31:06.000000Z",
                            "pivot": {
                                "role_id": 1,
                                "module_field_id": 1,
                                "fields_category_id": 3
                            }
                        },
                    ]
                }
            ]
    }
}

HTTP Request

GET /api/roles/{id}

Store Role

Example response:

{
    "data": {
        "message": "Role have created successfully",
        "data": null,
        "status_code": 200
    }
}

HTTP Request

POST /api/roles/store

Parameters

Parameter Type Status Description
name string
permissions array

Update Role

Example response:

{
    "data": {
        "message": "Role updated successfully",
        "data": {
            "id": 6,
            "name": "test",
            "display_name": "Nicklas",
            "guard_name": "web",
            "system_role": 0,
            "created_at": "2018-03-13T16:22:18.000000Z",
            "updated_at": "2020-12-29T12:53:02.000000Z",
            "permissions": [
                {
                    "id": 92,
                    "name": "view-leasing-contracts-payments-data",
                    "display_name": "View Leasing Contracts Payments Data Tab",
                    "guard_name": "web",
                    "category_id": 23,
                    "created_at": "2017-10-27T11:37:17.000000Z",
                    "updated_at": "2017-10-27T11:37:17.000000Z",
                    "pivot": {
                        "role_id": 6,
                        "permission_id": 92
                    }
                }
            ],
            "module_fields": [
                {
                    "category_id": 2,
                    "fields": [
                        {
                            "id": 6,
                            "name": "financial_details",
                            "display_name": "Finansielle Detaljer",
                            "type": "output",
                            "created_at": "2017-10-19T19:31:06.000000Z",
                            "updated_at": "2017-10-19T19:31:06.000000Z",
                            "pivot": {
                                "role_id": 6,
                                "module_field_id": 6,
                                "fields_category_id": 2
                            }
                        }
                    ]
                },

            ]
        },
        "status_code": 200
    }
}

HTTP Request

PUT /api/roles/8

Parameters

Parameter Type Status Description
name string
permissions array

Delete Role

Example response:

{
    "data": {
        "message": "Role have Deleted successfully",
        "data": null,
        "status_code": 200
    }
}

HTTP Request

DELETE /api/roles/8

Parameters

Parameter Type Status Description
move_to_role integer required other id number to change the users thats have the old role

Permissions categories

Example response:

{
    "data": {
        "permissions": [
            {
                "id": 23,
                "category_name": "Contracts Payments In Admin Menu",
                "permissions": [
                    {
                        "id": 92,
                        "name": "view-leasing-contracts-payments-data",
                        "display_name": "View Leasing Contracts Payments Data Tab",
                        "guard_name": "web",
                        "category_id": 23,
                        "created_at": "2017-10-27T11:37:17.000000Z",
                        "updated_at": "2017-10-27T11:37:17.000000Z"
                    },

                ]
            },
        ]
    }
}

HTTP Request

GET /api/permissions/list/categorized

Get Module fields

Example response:

{
    "data": {
        "moduleFields": [
            {
                "id": 2,
                "category_name": "offer",
                "category_display_name": "Leasing Tilbud",
                "module_fields": [
                    {
                        "id": 1,
                        "name": "deposit",
                        "display_name": "Depositum",
                        "type": "input",
                        "created_at": "2017-10-19T19:31:06.000000Z",
                        "updated_at": "2017-10-19T19:31:06.000000Z",
                        "pivot": {
                            "fields_category_id": 2,
                            "module_field_id": 1
                        }
                    },

                ]
            }
        ]
    }
}

HTTP Request

GET /api/roles/module-fields

Update Module fields

Parameters

Parameter Type Status Description
module_fields array required

HTTP Request

GET /api/roles/module-fields/update/{id}

Example response:

{
    "data": {
        "message": "messages.roleModuleFieldsUpdated",
        "data": null,
        "status_code": 200
    }
}

Lookups

Get All Lookup Categories

Example response:

{
    "data": [
        {
            "id": 1,
            "code": "customer_types",
            "name": "Customer Types",
            "created_at": "20-05-2020 08:32:30",
            "updated_at": "20-05-2020 08:32:30"
        },
        {
            "id": 2,
            "code": "contract_statuses",
            "name": "Contract Statuses",
            "created_at": "20-05-2020 08:32:30",
            "updated_at": "20-05-2020 08:32:30"
        }
    ]
}

HTTP Request

GET api/lookups/categories

Get All Lookups

Example response:

{
    "data": [
        {
            "id": 2,
            "code": "corporate",
            "name": "Corporate",
            "value": "2",
            "extra_details": null,
            "model_type": "App\\Models\\Customer\\Customer",
            "category_id": 2,
            "is_active": 1,
            "is_system": 0,
            "created_at": "20-05-2020 08:33:11",
            "updated_at": "20-05-2020 08:33:11"
        }
    ]
}

HTTP Request

GET api/lookups/getAll

Parameters

Parameter Type Status Description
search string optional
category_id integer optional
category_code string optional

Add New Lookup

Example response:

{
    "data": {
        "message": "Lookup have created successfully",
        "data": null,
        "status_code": 200
    }
}

HTTP Request

POST api/lookups

Parameters

Parameter Type Status Description
name string required max 100, unique
category_id integer required
value string required max 100

Update Lookup

Example response:

{
    "data": {
        "message": "Lookup updated successfully",
        "data": {
            "id": 3,
            "code": "testing_add",
            "name": "testing",
            "value": "5",
            "extra_details": null,
            "model_type": "App\\Models\\Customer\\Customer",
            "category_id": "1",
            "is_active": 1,
            "is_system": 0,
            "created_at": "20-05-2020 09:50:19",
            "updated_at": "20-05-2020 09:52:26"
        },
        "status_code": 200
    }
}

HTTP Request

PUT api/lookups/3

Parameters

Parameter Type Status Description
name string required max 100, unique
category_id integer required

Delete Lookup

Example response:

{
    "data": {
        "message": "messages.deleted_successfully",
        "data": null,
        "status_code": 200
    }
}

HTTP Request

DELETE api/lookups/{id}

Parameters

Parameter Type Status Description

Get Lookup details

Example response:

{
    "data": {
        "id": 3,
        "code": "testing_add",
        "name": "testing",
        "value": "5",
        "extra_details": null,
        "model_type": "App\\Models\\Customer\\Customer",
        "category_id": 1,
        "is_active": 1,
        "is_system": 0,
        "created_at": "20-05-2020 09:50:19",
        "updated_at": "20-05-2020 09:52:26"
    }
}

HTTP Request

GET api/lookups/3

Get Lookup Datatable

Example response:

{
    "draw": 0,
    "recordsTotal": 1,
    "recordsFiltered": 1,
    "data": [
        {
            "id": "2",
            "code": "corporate",
            "name": "Corporate",
            "value": "2",
            "extra_details": null,
            "model_type": "App\\Models\\Customer\\Customer",
            "category_id": "2",
            "is_active": "1",
            "is_system": 0,
            "created_at": "20-05-2020 08:33:11",
            "updated_at": "20-05-2020 08:33:11",
            "category": {
                "id": "2",
                "code": "contract_statuses",
                "name": "Contract Statuses",
                "created_at": "20-05-2020 08:32:30",
                "updated_at": "20-05-2020 08:32:30"
            }
        }
    ],
    "queries": [
        {
            "query": "select count(*) as aggregate from (select '1' as `row_count` from `lookups` where `category_id` = ? and `is_system` = ?) count_row_table",
            "bindings": [
                "2",
                ""
            ],
            "time": "10.68"
        },
        {
            "query": "select * from `lookups` where `category_id` = ? and `is_system` = ?",
            "bindings": [
                "2",
                ""
            ],
            "time": "0.35"
        },
        {
            "query": "select * from `lookup_categories` where `lookup_categories`.`id` in (2)",
            "bindings": [],
            "time": "0.48"
        }
    ],
    "input": {
        "category_id": "2"
    }
}

HTTP Request

GET api/lookups/getAll/datatable

Parameters

Parameter Type Status Description
category_id integer optional

Organization

Get all organizations

Example response:

{
    "draw": 0,
    "recordsTotal": 27,
    "recordsFiltered": 27,
    "data": [
        {
            "id": 1,
            "name": "Nord Leasing",
            "depreciation_settings_id": 14,
            "contract_setup_fee_cents": 2000,
            "street_address": "Sandbjergvej 17",
            "zip_code": "2970",
            "city": "Hørsholm",
            "cvr_number": "35860797",
            "state": true,
            "file_name": "1-logo.jpeg",
            "file_path_md5": "c576dbafc9e8176d0193cdadf265b9fa",
            "file_mime": "image/jpeg",
            "created_at": null,
            "updated_at": "2019-10-03T14:19:35.000000Z"
        },

    ],
    "queries": [
        {
            "query": "select count(*) as aggregate from (select '1' as `row_count` from `organizations`) count_row_table",
            "bindings": [],
            "time": "0.31"
        },
        {
            "query": "select * from `organizations`",
            "bindings": [],
            "time": "0.36"
        }
    ],
    "input": []
}

HTTP Request

GET api/organizations/data/{listOrDataTable}

Get user organization

Example response:

{
    "data": [
        {
            "id": 1,
            "name": "Default Organization",
            "depreciation_settings_id": null,
            "contract_setup_fee_cents": null,
            "street_address": "pdf_otter",
            "zip_code": "1223",
            "city": "ad",
            "cvr_number": "12355678",
            "state": true,
            "file_name": null,
            "file_path_md5": null,
            "file_mime": null,
            "created_at": null,
            "updated_at": "2020-11-18T10:51:32.000000Z"
        }
    ]
}

HTTP Request

GET api/organizations/getUserOrganization

Store organization

Example response:

{
    "data": {
        "message": "Organization have created successfully",
        "data": null,
        "status_code": 200
    }
}

HTTP Request

POST api/organizations/

Parameter Type Status Description
name string required max 255
street_address string required max 255
zip_code string required max 4
city string required max 255
cvr_number numeric required size 8 , unique
state boolean required
contract_setup_fee_cents numeric optional
logo file optional jpeg,jpg,bmp,png,gif

Update organization

Example response:

{
    "data": {
        "message": "Organization updated successfully",
        "data": {
            "id": 1,
            "name": "name",
            "depreciation_settings_id": null,
            "contract_setup_fee_cents": null,
            "street_address": "pdf_otter",
            "zip_code": "1223",
            "city": "ad",
            "cvr_number": "12355678",
            "state": true,
            "file_name": null,
            "file_path_md5": null,
            "file_mime": null,
            "created_at": null,
            "updated_at": "2020-11-18T10:51:32.000000Z"
        },
        "status_code": 200
    }
}

HTTP Request

PUT api/organizations/{id}

Parameter Type Status Description
name string required max 255
street_address string required max 255
zip_code string required max 4
city string required max 255
cvr_number numeric required size 8 , unique
contract_setup_fee_cents numeric optional
logo file optional jpeg,jpg,bmp,png,gif
depreciation_settings_id numeric optional
state boolean optional

Show organization

Example response:

{
    "data": {
        "id": 4,
        "name": "Fisker MC",
        "depreciation_settings_id": null,
        "contract_setup_fee_cents": null,
        "street_address": "test",
        "zip_code": "test",
        "city": "test",
        "cvr_number": "test",
        "state": false,
        "file_name": null,
        "file_path_md5": null,
        "file_mime": null,
        "created_at": "2016-04-02T07:25:47.000000Z",
        "updated_at": "2017-01-19T16:57:29.000000Z"
    }
}

HTTP Request

GET api/organizations/{id}

Set Organization Depreciation Setting AsDefault

Example response:

{
    "data": {
        "message": "messages.orgDepreciationSettingSetAsDefault",
        "data": null,
        "status_code": 200
    }
}

HTTP Request

POST /api/depreciation/settings/set-default/{id}

Generate Organization Depreciation Setting

Example response:

{
    "data": {
        "message": "messages.orgDepreciationSettingGenerated",
        "data": null,
        "status_code": 200
    }
}

HTTP Request

POST /api/depreciation/settings/generate/{id}

Is Organization Depreciation Table Generated

Example response:

{
    "data": false
}

HTTP Request

GET /api/depreciation/table-generated/{id}

Is Depreciation Table Used

Example response:

{
    "data": true
}

HTTP Request

GET /api/depreciation/table-used

Product

Get all products

Example response:

{
    "data": [
        {
            "id": 1,
            "name": "name",
            "economic_product_id": null,
            "vat_id": 2,
            "from_to_date_flag": true,
            "for_sell": true,
            "for_buy": true,
            "price_excl_vat_cents": 1.2,
            "cost_price_excl_vat_cents": 0.13,
            "vat": {
                "id": 2,
                "type": "25 pct. moms",
                "value": "0.25",
                "created_at": null,
                "updated_at": null
            },
            "productMenuCategories": [
                {
                    "id": 3,
                    "name": "Månedlig betaling",
                    "code": "monthly_payment_product",
                    "pivot": {
                        "product_id": 1,
                        "product_menu_categories_id": 3,
                        "created_at": "2020-11-14T21:51:14.000000Z",
                        "updated_at": "2020-11-14T21:51:14.000000Z"
                    }
                },
            ],
            "baseProduct": {
                "id": 1,
                "code": "leasing_payment",
                "product_id": 1
            },
            "categoryProduct": [
                {
                    "id": 1,
                    "product_id": 1,
                    "product_menu_categories_id": 3
                },
            ]
        }
    ]
}

HTTP Request

GET api/products/{listOrDataTable}

Get product payment vat

Example response:

{
    "data": {
        "vat_amount": 0
    }
}

HTTP Request

POST api/products/get_product_payment_vat/{id}

Parameter Type Status Description
payment_excl_tax_vat numeric optional

Get product by category

Example response:

{
    "data": {
        "products": [
            {
                "id": 4,
                "name": "Forsikring",
                "economic_product_id": null,
                "vat_id": 1,
                "from_to_date_flag": false,
                "for_sell": true,
                "for_buy": true,
                "price_excl_vat_cents": 0,
                "cost_price_excl_vat_cents": 0,
                "base_product": {
                    "id": 4,
                    "code": "insurance",
                    "product_id": 4
                }
            },
            {
                "id": 5,
                "name": "Vej hjælp",
                "economic_product_id": null,
                "vat_id": 1,
                "from_to_date_flag": false,
                "for_sell": true,
                "for_buy": true,
                "price_excl_vat_cents": 0,
                "cost_price_excl_vat_cents": 0,
                "base_product": {
                    "id": 5,
                    "code": "road_assistance",
                    "product_id": 5
                }
            }
        ]
    }
}

HTTP Request

GET api/products/get_product_by_category/{category_code}

Get Product by Code

Example response:

{
    "data": {
        "products": {
            "id": 51,
            "name": "forlænge gebyr",
            "economic_product_id": null,
            "vat_id": 1,
            "from_to_date_flag": true,
            "for_sell": true,
            "for_buy": false,
            "price_excl_vat_cents": 0,
            "cost_price_excl_vat_cents": 0
        }
    }
}

HTTP Request

GET api/products/get_product_by_code/{code}

Get buyable products

Example response:

{
    "data": {
        "products": [
            {
                "id": 1,
                "name": "name",
                "economic_product_id": null,
                "vat_id": 2,
                "from_to_date_flag": true,
                "for_sell": true,
                "for_buy": true,
                "price_excl_vat_cents": 1.2,
                "cost_price_excl_vat_cents": 0.13
            },
            {
                "id": 2,
                "name": "Udbetaling",
                "economic_product_id": null,
                "vat_id": 2,
                "from_to_date_flag": false,
                "for_sell": true,
                "for_buy": true,
                "price_excl_vat_cents": 0,
                "cost_price_excl_vat_cents": 0
            }
        ]
    }
}

HTTP Request

GET api/products/get_buyable_products

Get product menu categories

Example response:

{
    "data": {
        "productMenuCategories": [
            {
                "id": 5,
                "name": "Indgår i intern rente beregning (BETA)",
                "code": "income_expenses_on_contract"
            },
            {
                "id": 4,
                "name": "Kan dannes som betaling på kontrakt",
                "code": "active_product"
            },
            {
                "id": 2,
                "name": "Kan vælges i tilføj yderligere produkter ved kontrakt- og tilbudoprettelse",
                "code": "add_product_to_contract"
            },
            {
                "id": 3,
                "name": "Månedlig betaling",
                "code": "monthly_payment_product"
            },
            {
                "id": 1,
                "name": "Tilføj til kontrakt- og leasingtilbud via checkboks",
                "code": "monthly_product"
            }
        ]
    }
}

HTTP Request

GET api/products/get_product_menu_categories

Store product

Example response:

{
    "data": {
        "message": "Product have created successfully",
        "data": null,
        "status_code": 200
    }
}

HTTP Request

POST api/products/

Parameter Type Status Description
name string required
economic_product_id numeric required unique
vat_id numeric required
from_to_date_flag boolean optional
for_sell boolean optional
for_buy boolean optional
price_excl_vat_cents numeric optional
cost_price_excl_vat_cents numeric optional
product_menu_categories array optional code of categories

Update product

Example response:

{
    "data": {
        "message": "Product updated successfully",
        "data": {
            "id": 1,
            "name": "name",
            "economic_product_id": null,
            "vat_id": 2,
            "from_to_date_flag": true,
            "for_sell": true,
            "for_buy": true,
            "price_excl_vat_cents": 1.2,
            "cost_price_excl_vat_cents": 0.13,
            "vat": {
                "id": 2,
                "type": "25 pct. moms",
                "value": "0.25",
                "created_at": null,
                "updated_at": null
            },
            "productMenuCategories": [
                {
                    "id": 3,
                    "name": "Månedlig betaling",
                    "code": "monthly_payment_product",
                    "pivot": {
                        "product_id": 1,
                        "product_menu_categories_id": 3,
                        "created_at": "2020-11-14T21:51:14.000000Z",
                        "updated_at": "2020-11-14T21:51:14.000000Z"
                    }
                },
                {
                    "id": 5,
                    "name": "Indgår i intern rente beregning (BETA)",
                    "code": "income_expenses_on_contract",
                    "pivot": {
                        "product_id": 1,
                        "product_menu_categories_id": 5,
                        "created_at": "2020-11-14T21:51:14.000000Z",
                        "updated_at": "2020-11-14T21:51:14.000000Z"
                    }
                },
                {
                    "id": 4,
                    "name": "Kan dannes som betaling på kontrakt",
                    "code": "active_product",
                    "pivot": {
                        "product_id": 1,
                        "product_menu_categories_id": 4,
                        "created_at": "2020-11-14T21:51:14.000000Z",
                        "updated_at": "2020-11-14T21:51:14.000000Z"
                    }
                }
            ],
            "baseProduct": {
                "id": 1,
                "code": "leasing_payment",
                "product_id": 1
            },
            "categoryProduct": [
                {
                    "id": 1,
                    "product_id": 1,
                    "product_menu_categories_id": 3
                },
                {
                    "id": 2,
                    "product_id": 1,
                    "product_menu_categories_id": 5
                },
                {
                    "id": 3,
                    "product_id": 1,
                    "product_menu_categories_id": 4
                }
            ]
        },
        "status_code": 200
    }
}

HTTP Request

PUT api/products/1

Parameter Type Status Description
name string optional
economic_product_id numeric optional unique
vat_id numeric optional
from_to_date_flag boolean optional
for_sell boolean optional
for_buy boolean optional
price_excl_vat_cents numeric optional
cost_price_excl_vat_cents numeric optional

Show product info

Example response:

{
    "data": {
        "id": 23,
        "name": "3. nummerplade",
        "economic_product_id": 25,
        "vat_id": 1,
        "from_to_date_flag": false,
        "for_sell": true,
        "for_buy": true,
        "price_excl_vat_cents": 1000,
        "cost_price_excl_vat_cents": 800,
        "vat": {
            "id": 1,
            "type": "Ikke momspligtigt",
            "value": "0.00",
            "created_at": null,
            "updated_at": null
        },
        "productMenuCategories": [
            {
                "id": 5,
                "name": "Tilføj til kontrakt- og leasingtilbud via checkboks",
                "code": "monthly_product",
                "pivot": {
                    "product_id": 23,
                    "product_menu_categories_id": 5,
                    "created_at": "2019-08-06T10:38:08.000000Z",
                    "updated_at": "2019-08-06T10:38:08.000000Z"
                }
            },

        ],
        "baseProduct": null,
        "categoryProduct": [
            {
                "id": 80,
                "product_id": 23,
                "product_menu_categories_id": 5
            },

        ]
    }
}

HTTP Request

GET /api/products/info/23

Parameter Type Status Description

Template Provider

Get all Template Providers

Example response:


{
    "data": [
        {
            "id": 1,
            "provider_template_details_id": 1,
            "contract_type_id": 1,
            "leasing_type_id": 2,
            "template_type_id": 1,
            "created_at": "2017-11-06T14:18:22.000000Z",
            "updated_at": "2017-11-06T14:18:22.000000Z",
            "providerTemplateDetails": {
                "id": 1,
                "provider_id": 1,
                "provider_template_id": "Leasingtilbud_2016_operationel_copy.docx",
                "provider_template_name": "Leasingtilbud_2016_operationel_copy.docx",
                "created_at": "2017-11-06T14:18:22.000000Z",
                "updated_at": "2017-11-06T14:18:22.000000Z"
            },
            "templateType": {
                "id": 1,
                "name": "Leasing Tilbud",
                "code": "offer",
                "created_at": null,
                "updated_at": null
            },
            "contractType": {
                "id": 1,
                "name": "Privat",
                "code": "private",
                "created_at": null,
                "updated_at": null
            },
            "leasingType": {
                "id": 2,
                "name": "Operationel",
                "code": "operational",
                "created_at": null,
                "updated_at": null
            }
        }
    ]
}

HTTP Request

GET api/template_providers/data/{listOrDatatable}

Store Template Provider

Example response:

{
    "data": {
        "message": "messages.leasingContractTemplateAdded",
        "data": null,
        "status_code": 200
    }
}

HTTP Request

POST api/template_providers

Parameter Type Status Description
provider_name string required
provider_code string required IN: pdf_otter,reporting_cloud,custom_html,aspose_word
contract_type_id integer required
leasing_type_id integer required
template_type_id integer required
template_file file required_if:provider_code
aspose_word_template file required_if:provider_code
template_name string

Payment Terms

Get all payment terms

Example response:

{
    "draw": 0,
    "recordsTotal": 4,
    "recordsFiltered": 4,
    "data": [
        {
            "id": 1,
            "name": "Løbende måned 30 dage",
            "economic_payment_term_number": 1,
            "days_of_credit": 30,
            "created_at": null,
            "updated_at": null
        },
    ],
    "queries": [
        {
            "query": "select count(*) as aggregate from (select '1' as `row_count` from `payment_terms`) count_row_table",
            "bindings": [],
            "time": "1.15"
        },
        {
            "query": "select * from `payment_terms`",
            "bindings": [],
            "time": "0.18"
        }
    ],
    "input": []
}

HTTP Request

GET /api/payment/terms/data/{listordatatable}

Show Payment Term

Example response:

{
    "data": {
        "id": 1,
        "name": "Løbende måned 30 dage",
        "economic_payment_term_number": 2,
        "days_of_credit": 30,
        "created_at": null,
        "updated_at": null
    }
}

HTTP Request

GET api/payment/terms/{id}

Store Payment Term

Example response:

{
    "data": {
        "message": "PaymentTerm have created successfully",
        "data": null,
        "status_code": 200
    }
}

HTTP Request

POST api/payment/terms

Parameter Type Status Description
name string required
economic_payment_term_number numeric required unique
days_of_credit numeric optional

Update Payment Term

Example response:

{
    "data": {
        "message": "PaymentTerm updated successfully",
        "data": {
            "id": 1,
            "name": "name",
            "economic_payment_term_number": "1",
            "days_of_credit": 30,
            "created_at": null,
            "updated_at": "2020-11-18T11:53:38.000000Z"
        },
        "status_code": 200
    }
}

HTTP Request

PUT api/payment/terms/{id}

Parameter Type Status Description
name string required
economic_payment_term_number numeric required unique
days_of_credit numeric optional

Transaction Type

Get all transactions

Example response:

{
    "draw": 0,
    "recordsTotal": 1,
    "recordsFiltered": 1,
    "data": [
        {
            "id": 1,
            "service_type_id": 1,
            "name": "name",
            "account_number": 1,
            "contract_value_transaction": 1,
            "vehicle_transaction": 1,
            "is_active": 1,
            "vat_required": 0,
            "vat_code_id": null,
            "created_at": "2020-11-18T11:56:29.000000Z",
            "updated_at": "2020-11-18T11:56:29.000000Z",
            "move_vehicle_transaction": false,
            "baseTransactionType": null,
            "vatCode": null
        }
    ],
    "queries": [
        {
            "query": "select count(*) as aggregate from (select '1' as `row_count` from `transaction_types`) count_row_table",
            "bindings": [],
            "time": "1.32"
        },
        {
            "query": "select * from `transaction_types`",
            "bindings": [],
            "time": "0.24"
        },
        {
            "query": "select `code` from `base_transaction_types` where `transaction_type_id` = ? limit 1",
            "bindings": [
                "1"
            ],
            "time": "0.45"
        },
        {
            "query": "select `code` from `base_transaction_types` where `transaction_type_id` = ? limit 1",
            "bindings": [
                "1"
            ],
            "time": "0.34"
        },
        {
            "query": "select * from `base_transaction_types` where `base_transaction_types`.`transaction_type_id` = ? and `base_transaction_types`.`transaction_type_id` is not null limit 1",
            "bindings": [
                "1"
            ],
            "time": "0.29"
        }
    ],
    "input": []
}

HTTP Request

GET api/transaction/data/{listOrDataTable}

Get transaction details

Example response:

{
    "data": {
        "id": 18,
        "service_type_id": 1,
        "name": "Køb køretøj m/ brugtmoms",
        "account_number": 5530,
        "contract_value_transaction": true,
        "vehicle_transaction": true,
        "is_active": true,
        "vat_required": false,
        "vat_code_id": 0,
        "created_at": "2017-05-16T19:59:15.000000Z",
        "updated_at": "2017-05-21T09:53:16.000000Z",
        "move_vehicle_transaction": false,
        "baseTransactionType": {
            "id": 12,
            "code": "buy_vehicle_used_vat",
            "transaction_type_id": 18
        },
        "vatCode": null
    }
}

HTTP Request

GET /api/transaction/18

Store transaction

Example response:

{
    "data": {
        "message": "TransactionTypes have created successfully",
        "data": null,
        "status_code": 200
    }
}

HTTP Request

POST api/transaction/

Parameter Type Status Description
name string required
service_type_id numeric required
account_number numeric required
contract_value_transaction boolean required
vehicle_transaction boolean required
is_active boolean required
vat_required boolean required
vat_code_id numeric required_if:vat_required=true

Update Transaction

Example response:

{
    "data": {
        "message": "TransactionTypes updated successfully",
        "data": {
            "id": 1,
            "service_type_id": "1",
            "name": "name",
            "account_number": "1",
            "contract_value_transaction": "1",
            "vehicle_transaction": "1",
            "is_active": true,
            "vat_required": false,
            "vat_code_id": null,
            "created_at": "2020-11-18T11:56:29.000000Z",
            "updated_at": "2020-11-18T11:57:29.000000Z",
            "move_vehicle_transaction": false,
            "base_transaction_type": null,
            "baseTransactionType": null,
            "vatCode": null
        },
        "status_code": 200
    }
}

HTTP Request

PUT api/transaction/{id}

Parameter Type Status Description
name string required
service_type_id numeric required
account_number numeric required
contract_value_transaction boolean required
vehicle_transaction boolean required
is_active boolean required
vat_required boolean required
vat_code_id numeric required_if:vat_required=true

Setting

Get all settings

Example response:

{
    "draw": 0,
    "recordsTotal": 3,
    "recordsFiltered": 3,
    "data": [
        {
            "id": 1,
            "key": "registration_tax_limit",
            "category": "calculator",
            "value": "193400",
            "description": null,
            "created_at": "2020-11-14T21:51:14.000000Z",
            "updated_at": "2020-11-14T21:51:14.000000Z"
        },
        {
            "id": 2,
            "key": "registration_tax_lower_bound",
            "category": "calculator",
            "value": "0.85",
            "description": null,
            "created_at": "2020-11-14T21:51:14.000000Z",
            "updated_at": "2020-11-14T21:51:14.000000Z"
        },
        {
            "id": 3,
            "key": "registration_tax_upper_bound",
            "category": "calculator",
            "value": "1.5",
            "description": null,
            "created_at": "2020-11-14T21:51:14.000000Z",
            "updated_at": "2020-11-14T21:51:14.000000Z"
        }
    ],
    "queries": [
        {
            "query": "select count(*) as aggregate from (select '1' as `row_count` from `settings`) count_row_table",
            "bindings": [],
            "time": "1.17"
        },
        {
            "query": "select * from `settings`",
            "bindings": [],
            "time": "0.2"
        }
    ],
    "input": []
}

HTTP Request

GET api/settings/data/{listOrDataTable}/{categoryOrAll}

Store setting

Example response:

{
    "data": {
        "message": "Settings have created successfully",
        "data": null,
        "status_code": 200
    }
}

HTTP Request

POST api/settings/

Parameter Type Status Description
key string required unique ,alpha_dash
value string required
description string optional
category string optional
type_id integer required

Update Setting

Example response:

{
    "data": {
        "message": "Settings updated successfully",
        "data": {
            "id": 1,
            "key": "key",
            "category": "calculator",
            "value": "123",
            "description": null,
            "created_at": "2020-11-14T21:51:14.000000Z",
            "updated_at": "2020-11-18T12:06:32.000000Z"
        },
        "status_code": 200
    }
}

HTTP Request

PUT api/settings/{id}

Parameter Type Status Description
key string required unique ,alpha_dash
value string required
description string optional
category string optional

Get Setting Details

Example response:

{
    "data": {
        "id": 51,
        "key": "new_settingggg",
        "category": "beregner",
        "type_id": null,
        "description": null,
        "value": "1000000",
        "created_at": "08-03-2021",
        "updated_at": "08-03-2021"
    }
}

HTTP Request

GET api/settings/{id}

Parameter Type Status Description

Get settings data key and value

Example response:

{
    "data": {
        "session_lifetime": "30",
        "company_logo": "https://leaso-new.fra1.digitaloceanspaces.com/system-files/logos/asdasd?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AXEMOJO3VCADITHIKG4P%2F20220207%2Ffra1.digitaloceanspaces.com%2Fs3%2Faws4_request&X-Amz-Date=20220207T101014Z&X-Amz-SignedHeaders=host&X-Amz-Expires=1800&X-Amz-Signature=70671e3b17b289cdf7756d3a297f14ca2d6512f3703b3ff89d0d4e6e0c8f88a9",
        "loan_rate": "0.07",
        "leasing_rate": "0.17"
    }
}

HTTP Request

GET api/settings/getValue

Parameter Type Status Description

Customer

Get Customers list

Example response:

{
    "data": {
        "customers": [
            {
                "id": 2,
                "customer_name": "custom1 - 2",
                "customer_type": "private",
                "email": "sds@sd.com"
            },
            {
                "id": 3,
                "customer_name": "custom1 - 3",
                "customer_type": "private",
                "email": "sds@sd.com"
            },
            {
                "id": 5,
                "customer_name": "custom1 - 5",
                "customer_type": "private",
                "email": "sds@sd.com"
            }
        ]
    }
}

HTTP Request

GET api/customers/list/{customerType?}

Parameter Type Status Description
customer_id integer optional customer ID
customerType string optional private ,company
keyword string optional first_name ,last_name,company_name ,email
orgId array or string array of ids [1,2] or string (all) to get all customer by all orgs

Store Customer

Example response:

{
  "data": {
    "customers": [
      {
        "id": 266,
        "first_name": "Sad",
        "last_name": "Asd",
        "company_name": "a",
        "customer_name": "A",
        "customer_type": "company",
        "email": "asdasd@asd.com",
        "assignee_name": {
          "first_name": "Stephen",
          "last_name": "Berg"
        },
        "customer_status": "approved",
        "customer_rating": "1 - Lav"
      },
      ...
}

HTTP Request

POST /api/contract/leasing/customer/add

Parameter Type Status Description
customer_type string required private, company
select_create_customer string optional new-customer,existing-customer
customer_first_name string required if customer_type = private
customer_last_name string required if customer_type = private
cpr_number integer required if customer_type = private
cvr_number integer required if customer_type = private
customer_email email required Email
contact_person_first_name string required if customer_type = company
contact_person_last_name string required if customer_type = company
company_name string required if customer_type = company
street_address string required
zip_code string required
city string required
telephone phone required
bank_registration string optional
bank_account_number string optional
payment_term_id string optional
driver_license_file file optional
social_security_file file optional

Update Customer

Example response:

{
    "data": {
        "message": "",
        "data": {
            "customerId": "1",
            "customer": {
                "id": 1,
                "company_name": null,
                "customer_private_or_company": "private",
                "first_name": "John",
                "last_name": "Doe",
                "email": "aas@ds.sd",
                "street_address": "Asdassadas",
                "zip_code": null,
                "city": "",
                "telephone": null,
                "cpr_number": null,
                "cvr_number": null,
                "economic_customer_number": null,
                "economic_customer_contact_number": null,
                "payment_term_id": null,
                "bank_registration": null,
                "bank_account_number": null,
                "pbs_created": null,
                "id_received": null,
                "related_to_id": null,
                "driver_license_file_id": 3,
                "social_security_file_id": null,
                "created_at": null,
                "updated_at": "2020-11-18T14:54:47.000000Z"
            }
        },
        "status_code": 200
    }
}

HTTP Request

PUT api/customers/{customerId}

Parameter Type Status Description
customer_type string required private, company
select_create_customer string optional new-customer,existing-customer
customer_first_name string required if customer_type = private
customer_last_name string required if customer_type = private
cpr_number integer required if customer_type = private
cvr_number integer required if customer_type = private
customer_email email required Email
contact_person_first_name string required if customer_type = company
contact_person_last_name string required if customer_type = company
company_name string required if customer_type = company
street_address string required
zip_code string required
city string required
telephone phone required
bank_registration string optional
bank_account_number string optional
payment_term_id string optional

Get Customer details

Example response:

{
    "data": {
        "id": 26,
        "company_name": null,
        "customer_private_or_company": "private",
        "first_name": "Sophus",
        "last_name": "Schlosser",
        "email": "sophus@schlosser.dk",
        "street_address": "Test",
        "zip_code": "2121",
        "city": "Test",
        "telephone": "234578977",
        "cpr_number": "2323233434",
        "cvr_number": null,
        "economic_customer_number": 35001,
        "economic_customer_contact_number": null,
        "payment_term_id": 1,
        "bank_registration": 3232,
        "bank_account_number": 9999999999999,
        "pbs_created": null,
        "id_received": null,
        "related_to_id": null,
        "driver_license_file_id": 221,
        "social_security_file_id": 270,
        "created_at": "2016-04-06T15:14:33.000000Z",
        "updated_at": "2018-12-28T15:18:07.000000Z",
        "customerType": "private",
        "payment_term": {
            "id": 1,
            "name": "Løbende måned 30 dage",
            "economic_payment_term_number": 2,
            "days_of_credit": 30,
            "created_at": null,
            "updated_at": null
        },
        "customerEconomicPaymentTerm": 2,
        "customer_personal_information": {
            "id": 1,
            "customer_id": 26,
            "marital_status_id": null,
            "occupation_type_id": 1,
            "education_level_id": null,
            "education_id": null,
            "housing_type_id": null,
            "member_of_union": 1,
            "home_living_children": null,
            "credit_score": null
        }
    }
}

HTTP Request

GET api/customers/{customerId}

Parameter Type Status Description

Delete Customer asset liability

Example response:

{
    "data": {
        "message": "messages.customerAssetLiabilityDestroyed",
        "data": null,
        "status_code": 200
    }
}

HTTP Request

Delete api/customer-asset-liability/{customerId}

Parameter Type Status Description
customer_id integer required customer ID
asset_liability_id integer required customer asset liability ID

Delete Customer income expense

Example response:

{
    "data": {
        "message": "messages.customerIncomeExpenseDestroyed",
        "data": null,
        "status_code": 200
    }
}

HTTP Request

Delete api/customer-income-expense/{customerId}

Parameter Type Status Description
customer_id integer required customer ID
income_expense_id integer required customer income expense ID

Upload Customer file

Example response:

{
    "data": {
        "message": "messages.customerCardUploaded",
        "customer_file_id": 6
    }
}

HTTP Request

POST api/customer/{customerId}/file/upload

Parameter Type Status Description
fileType string required driver_license, social_security
customer_file file required mimes: pdf,jpeg,jpg,png,bmp,gif,svg and max:10000

Download Customer file

Example response:

HTTP Request

GET api/customer/{customerId}/file/{fileType}/download

Parameter Type Status Description
customer_id integer required customer ID
fileType String required driver_license, social_security

Store FinancialInfo

Example response:

{
    "data": {
        "message": "messages.customerFinancialInfoAdded",
        "data": null,
        "status_code": 200
    }
}

HTTP Request

POST api/customer/{customerId}/financial-info/store

Parameter Type Status Description
financial_info array required
financial_info.*.date date required d-m-y
financial_info.*.type string required expense , expense, asset , liability
financial_info.*.type_id integer required
financial_info.*.amount integer required

Get FinancialInfo available dates

Example response:

{
    "data": {
        "available_dates": [
            "01-01-1991"
        ],
        "previous_dates": [
            "01-01-1990"
        ]
    }
}

HTTP Request

GET api/customer/{customerId}/financial-info/available-dates

Parameter Type Status Description

Get FinancialInfo summary

Example response:

{
    "data": {
        "dates": [
            "01-01-1991",
            "01-01-1990"
        ],
        "assets_plus_liabilities": {
            "firstDate": "0,00",
            "secondDate": "0,00"
        },
        "income_plus_expenses": {
            "firstDate": "1,00",
            "secondDate": "0,00"
        }
    }
}

HTTP Request

GET api/customer/{customerId}/financial-info/summary

Parameter Type Status Description
date date required m-d-Y

Get FinancialInfo show

Example response:

{
    "data": {
        "dates": [
            "01-01-1991"
        ],
        "details": {
            "asset": {
                "dsfds": {
                    "firstDate": {
                        "id": null,
                        "value": 0
                    }
                },
                "Total": {
                    "firstDate": "0,00"
                }
            },
            "assets_plus_liabilities": {
                "firstDate": "0,00"
            },
            "expense": {
                "aaa": {
                    "firstDate": {
                        "id": 3,
                        "value": "1,00"
                    }
                },
                "Total": {
                    "firstDate": "1,00"
                }
            },
            "income_plus_expenses": {
                "firstDate": "1,00"
            }
        }
    }
}

HTTP Request

GET api/customer/{customerId}/financial-info

Parameter Type Status Description
date date required d-m-y

Get Customer income documents

Example response:

{
    "draw": 0,
    "recordsTotal": 1,
    "recordsFiltered": 1,
    "data": [
        {
            "id": 2,
            "customer_id": 1,
            "type": "tax_statement",
            "file_document_id": 5,
            "date": "01-01-1991"
        }
    ],
    "queries": [
        {
            "query": "select count(*) as aggregate from (select '1' as `row_count` from `customer_income_documents` where `customer_id` = ?) count_row_table",
            "bindings": [
                "1"
            ],
            "time": "1.54"
        },
        {
            "query": "select * from `customer_income_documents` where `customer_id` = ?",
            "bindings": [
                "1"
            ],
            "time": "0.34"
        }
    ],
    "input": []
}

HTTP Request

GET api/customer-income-documents/{customerId}

Parameter Type Status Description

Download Customer income documents

Example response:

HTTP Request

GET api/customer-income-documents/{customerId}/download

Parameter Type Status Description
customer_id integer required customer ID
income_document_id integer required income document ID

Store Customer income documents

Example response:

{
    "data": {
        "message": "messages.customerIncomeDocumentUploaded",
        "data": null,
        "status_code": 200
    }
}

HTTP Request

POST api/customer-income-documents/{customerId}/file/upload

Parameter Type Status Description
fileType bodyParam required tax_statement,paycheck
customer_income_document file required mimes: pdf,jpeg,jpg,png,bmp,gif,svg and max:10000
date date required d-m-y
name string required

Delete Customer income documents

Example response:

{
    "data": {
        "message": "messages.customerIncomeDocumentDeleted",
        "data": null,
        "status_code": 200
    }
}

HTTP Request

DELETE api/customer-income-documents/{customerId}/file/{fileId}/delete

Parameter Type Status Description
customer_id integer required customer ID
fileId integer required Customer income documents ID

Update invoices

Example response:

{
    "data": {
        "message": "messages.customersInvoicesUpdatedRequestReceived",
        "data": null,
        "status_code": 200
    }
}

HTTP Request

POST /api/customers/invoices

Customer booked invoices

Example response:

{
    "draw": 0,
    "recordsTotal": 178,
    "recordsFiltered": 178,
    "data": [
        {
            "id": 1232,
            "leasing_contract_id": 162,
            "customer_id": 26,
            "economic_invoice_booked_id": 15,
            "status": "overdue",
            "date": "2016-05-11T00:00:00.000000Z",
            "due_date": "2016-05-19T00:00:00.000000Z",
            "net_amount_cents": 5208.34,
            "remainder_amount_cents": 5208.34,
            "created_at": "2020-12-07T14:36:44.000000Z",
            "updated_at": "2020-12-07T14:36:44.000000Z"
        },
    ]
}

HTTP Request

GET /api/customer/invoices/booked/{customerID}

Parameter Type Status Description
invoice_status string overdue or paid or not-paid
contract_id integer 162

Print customer info and files

Example response:

{"download all customer files and info"}

HTTP Request

GET /api/customers/{customerID}/info/download

get Customer Historical Address

Example response:

{
  "draw": 0,
  "recordsTotal": 2,
  "recordsFiltered": 2,
  "data": [
    {
      "id": 2,
      "customer_id": 29,
      "address": "Asta JakobsenByvænget 10   Ålborg 8000  Århus C",
      "created_at": "18-10-2022 12:05:17"
    }
  ]
}

HTTP Request

GET /api/customers/29/cpr/historical-address

Contract Custom Fields

Show contract custome fields

Example request:

curl -X GET "/api/contract/custom-fields/{customerId}/{leasingContractId}" \
-H "Accept: application/json"

Example response:

{
    "data": [
        {
            "name": "Sekundær bruger",
            "key": "contract_custom_field_1",
            "value": ""
        },
        {
            "name": "Kørekort nr.",
            "key": "contract_custom_field_2",
            "value": ""
        }
    ]
}

HTTP Request

GET /api/contract/custom-fields/{customerId}/{leasingContractId}

Update contract custome fields

Example request:

curl -X PUT "/api/contract/custom-fields/{customerId}/{leasingContractId}" \
-H "Accept: application/json"

Example response:

    {"data":{"message":"contract custom fields updated successfully","data":null,"status_code":200}}

HTTP Request

PUT /api/contract/custom-fields/{customerId}/{leasingContractId}

Parameter Type Status Description
custom_fields array required

custom_fields.*.key | string | required and it's value must be from (GET custom-files the key property)

custom_fields.*.value | string | optional but must be present even if it's empty

Vehicle

Get Vehicle options

Example response:

{
    "data": [
        {
            "vehiclesFuelOptions": [
                "Benzin",
                "Diesel"
            ],
            "vehiclesTransmissionOptions": [
                "Manuelt",
                "Manuelt 4-hjul",
                "Automat",
                "Automat 4-hjul"
            ]
        }
    ]
}

HTTP Request

GET api/vehicle/options

Get Valuation Type

Example response:

{
    "data": [
        {
            "id": 2,
            "valuation_description": "Fair pris",
            "is_default": 1,
            "is_in_a_year": 0,
            "created_at": null,
            "updated_at": null
        },
        {
            "id": 3,
            "valuation_description": "Fair pris om et år",
            "is_default": 0,
            "is_in_a_year": 1,
            "created_at": null,
            "updated_at": null
        },
        {
            "id": 1,
            "valuation_description": "Super pris",
            "is_default": 0,
            "is_in_a_year": 0,
            "created_at": null,
            "updated_at": null
        }
    ]
}

HTTP Request

GET api/vehicle/valuation/types

Get Vehicle conditions

Example response:

{
    "data": {
        "1": "name"
    }
}

HTTP Request

GET api/vehicle/conditions

Upload Vehicle Main image

Example response:

{
    "data": {
        "message": "messages.vehicleMainImageUploaded",
        "main_image_url": "https://.//vehicles/1/main_image/FLUVlbgehIZmG72cvIX9m20oeRUQxPmI9YBR2Bag.png"
    }
}

HTTP Request

POST api/vehicle/{vehicleId}/main-image/upload

Parameter Type Status parameter Description
vehicleId integer required urlParam
vehicle_main_image_file file required bodyParam main image of vehicle

Store Vehicle

Example response:

{
    "data": {
        "message": "Vehicle have created successfully",
        "data": null,
        "status_code": 200
    }
}

HTTP Request

POST api/vehicle

Parameter Type Status parameter Description
vehicle_type_id integer required bodyParam
vehicle_brand_id integer required bodyParam
vehicle_model_string string required bodyParam
vehicle_type_string string required bodyParam
vehicle_brand_string string required bodyParam
serial_number alpha_num bodyParam
vehicle_used_vat boolean bodyParam
vehicle_date_of_first_registration date bodyParam
vehicle_mileage numeric bodyParam
vehicle_market_value numeric bodyParam
fuel string bodyParam ('Benzin', 'Diesel')
transmission string bodyParam ('Manuelt', 'Manuelt 4-hjul', 'Automat', 'Automat 4-hjul')
engine string bodyParam
car_type string bodyParam
version string bodyParam
ekstra string bodyParam
description string bodyParam
gears string bodyParam
wheel_size string bodyParam
wheel_type string bodyParam
interior_colour string bodyParam
interior_type string bodyParam
sunroof boolean bodyParam
show_on_front_page boolean bodyParam
color string bodyParam
vehicle_condition_id integer bodyParam vehicle condition ID
euro_ncap boolean bodyParam
abs boolean bodyParam
customs_inpsections boolean bodyParam
price_as_new_cents numeric bodyParam
km_per_litre numeric bodyParam
num_airbags numeric bodyParam
num_seat_belts numeric bodyParam
num_integrated_children_seats numeric bodyParam

Update Vehicle

Example response:

{
    "data": {
        "message": "Vehicle updated successfully",
        "data": {
            "id": 5,
            "vehicle_type_id": "3",
            "vehicle_type_string": "Loan",
            "vehicle_brand_id": "145",
            "vehicle_brand_string": "Loan",
            "vehicle_model_string": "Loan",
            "vehicle_serial_number": "WUAXXX5559N1132Fg",
            "vehicle_used_vat": true,
            "vehicle_date_of_first_registration": "1990-12-31",
            "fuel": "Benzin",
            "transmission": "Automat",
            "engine": "1300",
            "car_type": "Null",
            "version": "Null",
            "ekstra": "Null",
            "description": "null",
            "gears": "null",
            "wheel_size": "null",
            "wheel_type": "null",
            "interior_colour": "null",
            "interior_type": "null",
            "sunroof": true,
            "show_on_front_page": true,
            "main_image_file_id": "7",
            "state": "0",
            "color": "null",
            "vehicle_condition_id": "1",
            "abs": false,
            "customs_inpsections": false,
            "price_as_new_cents": 0,
            "km_per_litre": "12",
            "num_airbags": "4",
            "num_seat_belts": "3",
            "num_integrated_children_seats": "0",
            "euro_ncap": false,
            "created_at": "2020-11-19T07:40:56.000000Z",
            "updated_at": "2020-11-19T07:40:56.000000Z",
            "main_image_file_url": "https://.//vehicles/5/main_image/FLUVlbgehIZmG72cvIX9m20oeRUQxPmI9YBR2Bag.png",
            "date_of_first_registration": "31-12-1990",
            "main_image_file": {
                "id": 7,
                "filename": "1-main-image.png",
                "filepath_md5": "FLUVlbgehIZmG72cvIX9m20oeRUQxPmI9YBR2Bag.png",
                "file_mime": "image/jpeg",
                "uploaded_by": null,
                "is_uploaded": false,
                "created_at": "2020-11-19T06:57:30.000000Z",
                "updated_at": "2020-11-19T06:57:30.000000Z"
            },
            "vehicleBrand": {
                "id": 145,
                "name": "Loan",
                "created_at": "2020-11-15T06:21:59.000000Z",
                "updated_at": "2020-11-15T06:21:59.000000Z"
            },
            "vehicleType": {
                "id": 3,
                "name": "Loan",
                "state": "Aktiv",
                "created_at": "2020-11-15T06:21:59.000000Z",
                "updated_at": "2020-11-15T06:21:59.000000Z"
            },
            "vehicleCondition": {
                "id": 1,
                "name": "name",
                "code": "code",
                "value": 1,
                "created_at": null,
                "updated_at": null
            },
            "vehicleMileage": [],
            "latestVehicleMileage": null,
            "vehicleMarketValue": [],
            "latestVehicleMarketValue": null,
            "latestVehicleMarketSet": null,
            "latestTerminationLeasingContract": null,
            "mainImageFile": {
                "id": 7,
                "filename": "1-main-image.png",
                "filepath_md5": "FLUVlbgehIZmG72cvIX9m20oeRUQxPmI9YBR2Bag.png",
                "file_mime": "image/jpeg",
                "uploaded_by": null,
                "is_uploaded": false,
                "created_at": "2020-11-19T06:57:30.000000Z",
                "updated_at": "2020-11-19T06:57:30.000000Z"
            },
            "vehicleGalleryImage": []
        },
        "status_code": 200
    }
}

HTTP Request

PUT api/vehicle/{vehicleId}

Parameter Type Status parameter Description
vehicleId integer required urlParam
vehicle_type integer required bodyParam
vehicle_brand integer required bodyParam
vehicle_model string required bodyParam
serial_number alpha_num bodyParam
vehicle_used_vat boolean bodyParam
vehicle_date_of_first_registration date bodyParam
vehicle_mileage numeric bodyParam
vehicle_market_value numeric bodyParam
fuel string numeric bodyParam ('Benzin', 'Diesel')
transmission string bodyParam ('Manuelt', 'Manuelt 4-hjul', 'Automat', 'Automat 4-hjul')
engine string bodyParam
car_type string bodyParam
version string bodyParam
ekstra string bodyParam
description string bodyParam
gears string bodyParam
wheel_size string bodyParam
wheel_type string bodyParam
interior_colour string bodyParam
interior_type string bodyParam
sunroof boolean bodyParam
show_on_front_page boolean bodyParam
color string bodyParam
vehicle_condition_id integer bodyParam vehicle condition ID
euro_ncap boolean bodyParam
abs boolean bodyParam
customs_inpsections boolean bodyParam
price_as_new_cents numeric bodyParam
km_per_litre numeric bodyParam
num_airbags numeric bodyParam
num_seat_belts numeric bodyParam
num_integrated_children_seats numeric bodyParam
state numeric bodyParam

Get Vehicle

Example response:

{
    "data": {
        "id": 5,
        "vehicle_type_id": 3,
        "vehicle_type_string": "Loan",
        "vehicle_brand_id": 145,
        "vehicle_brand_string": "Loan",
        "vehicle_model_string": "Loan",
        "vehicle_serial_number": "WUAXXX5559N1132Fg",
        "vehicle_used_vat": true,
        "vehicle_date_of_first_registration": "1990-12-31",
        "fuel": "Benzin",
        "transmission": "Automat",
        "engine": "1300",
        "car_type": "Null",
        "version": "Null",
        "ekstra": "Null",
        "description": "null",
        "gears": "null",
        "wheel_size": "null",
        "wheel_type": "null",
        "interior_colour": "null",
        "interior_type": "null",
        "sunroof": true,
        "show_on_front_page": true,
        "main_image_file_id": 7,
        "state": 0,
        "color": "null",
        "vehicle_condition_id": 1,
        "abs": false,
        "customs_inpsections": false,
        "price_as_new_cents": 0,
        "km_per_litre": 12,
        "num_airbags": 4,
        "num_seat_belts": 3,
        "num_integrated_children_seats": 0,
        "euro_ncap": false,
        "created_at": "2020-11-19T07:40:56.000000Z",
        "updated_at": "2020-11-19T07:40:56.000000Z",
        "main_image_file_url": "https://.//vehicles/5/main_image/FLUVlbgehIZmG72cvIX9m20oeRUQxPmI9YBR2Bag.png",
        "date_of_first_registration": "31-12-1990",
        "main_image_file": {
            "id": 7,
            "filename": "1-main-image.png",
            "filepath_md5": "FLUVlbgehIZmG72cvIX9m20oeRUQxPmI9YBR2Bag.png",
            "file_mime": "image/jpeg",
            "uploaded_by": null,
            "is_uploaded": false,
            "created_at": "2020-11-19T06:57:30.000000Z",
            "updated_at": "2020-11-19T06:57:30.000000Z"
        },
        "vehicleBrand": {
            "id": 145,
            "name": "Loan",
            "created_at": "2020-11-15T06:21:59.000000Z",
            "updated_at": "2020-11-15T06:21:59.000000Z"
        },
        "vehicleType": {
            "id": 3,
            "name": "Loan",
            "state": "Aktiv",
            "created_at": "2020-11-15T06:21:59.000000Z",
            "updated_at": "2020-11-15T06:21:59.000000Z"
        },
        "vehicleCondition": {
            "id": 1,
            "name": "name",
            "code": "code",
            "value": 1,
            "created_at": null,
            "updated_at": null
        },
        "vehicleMileage": [],
        "latestVehicleMileage": null,
        "vehicleMarketValue": [],
        "latestVehicleMarketValue": null,
        "latestVehicleMarketSet": null,
        "latestTerminationLeasingContract": null,
        "mainImageFile": {
            "id": 7,
            "filename": "1-main-image.png",
            "filepath_md5": "FLUVlbgehIZmG72cvIX9m20oeRUQxPmI9YBR2Bag.png",
            "file_mime": "image/jpeg",
            "uploaded_by": null,
            "is_uploaded": false,
            "created_at": "2020-11-19T06:57:30.000000Z",
            "updated_at": "2020-11-19T06:57:30.000000Z"
        },
        "vehicleGalleryImage": []
    }
}

HTTP Request

GET api/vehicle/{vehicleId}

Parameter Type Status parameter Description

Get All Vehicles

Example response:

{
    "draw": 0,
    "recordsTotal": 3,
    "recordsFiltered": 3,
    "data": [
        {
            "id": 1,
            "vehicle_type_id": 3,
            "vehicle_type_string": "Loan",
            "vehicle_brand_id": 145,
            "vehicle_brand_string": "Loan",
            "vehicle_model_string": "Loan",
            "vehicle_serial_number": "WUAXXX5559N1132F",
            "vehicle_used_vat": null,
            "vehicle_date_of_first_registration": "1990-12-31",
            "fuel": null,
            "transmission": null,
            "engine": null,
            "car_type": null,
            "version": null,
            "ekstra": null,
            "description": null,
            "gears": null,
            "wheel_size": null,
            "wheel_type": null,
            "interior_colour": null,
            "interior_type": null,
            "sunroof": true,
            "show_on_front_page": true,
            "main_image_file_id": 7,
            "state": 0,
            "color": null,
            "vehicle_condition_id": null,
            "abs": false,
            "customs_inpsections": false,
            "price_as_new_cents": 0,
            "km_per_litre": null,
            "num_airbags": null,
            "num_seat_belts": null,
            "num_integrated_children_seats": null,
            "euro_ncap": false,
            "created_at": "2020-11-15T06:21:59.000000Z",
            "updated_at": "2020-11-19T07:04:58.000000Z",
            "main_image_file_url": "https://.//vehicles/1/main_image/FLUVlbgehIZmG72cvIX9m20oeRUQxPmI9YBR2Bag.png",
            "date_of_first_registration": "31-12-1990",
            "main_image_file": {
                "id": 7,
                "filename": "1-main-image.png",
                "filepath_md5": "FLUVlbgehIZmG72cvIX9m20oeRUQxPmI9YBR2Bag.png",
                "file_mime": "image/jpeg",
                "uploaded_by": null,
                "is_uploaded": false,
                "created_at": "2020-11-19T06:57:30.000000Z",
                "updated_at": "2020-11-19T06:57:30.000000Z"
            },
            "vehicleBrand": {
                "id": 145,
                "name": "Loan",
                "created_at": "2020-11-15T06:21:59.000000Z",
                "updated_at": "2020-11-15T06:21:59.000000Z"
            },
            "vehicleType": {
                "id": 3,
                "name": "Loan",
                "state": "Aktiv",
                "created_at": "2020-11-15T06:21:59.000000Z",
                "updated_at": "2020-11-15T06:21:59.000000Z"
            },
            "vehicleCondition": null,
            "vehicleMileage": [],
            "latestVehicleMileage": null,
            "vehicleMarketValue": [],
            "latestVehicleMarketValue": null,
            "latestVehicleMarketSet": null,
            "latestTerminationLeasingContract": null,
            "mainImageFile": {
                "id": 7,
                "filename": "1-main-image.png",
                "filepath_md5": "FLUVlbgehIZmG72cvIX9m20oeRUQxPmI9YBR2Bag.png",
                "file_mime": "image/jpeg",
                "uploaded_by": null,
                "is_uploaded": false,
                "created_at": "2020-11-19T06:57:30.000000Z",
                "updated_at": "2020-11-19T06:57:30.000000Z"
            },
            "vehicleGalleryImage": []
        }
    ],
    "queries": [
        {
            "query": "select count(*) as aggregate from (select '1' as `row_count` from `vehicles`) count_row_table",
            "bindings": [],
            "time": "1.08"
        },
        {
            "query": "select * from `vehicle_gallery_images` where `vehicle_gallery_images`.`vehicle_id` = ? and `vehicle_gallery_images`.`vehicle_id` is not null",
            "bindings": [
                "4"
            ],
            "time": "0.2"
        }

    ],
    "input": []
}

HTTP Request

GET api/vehicle/data/{listOrDataTable}

Parameter Type Status parameter Description
keyword optional for search
vehicle_type_id optional for filter by it

Import Market values

HTTP Request

POST /api/vehicle/markets/value/import

Parameter Type Status parameter Description
vehicles_market_value file required file excel

Example response:

    {
        "data": {
            "message": "messages.vehiclesMarketValueImported",
            "data": null,
            "status_code": 200
        }
    }

Download Market Value Template

HTTP Request

Get /api/vehicle/markets/value/template

Parameter Type Status parameter Description

Example response:

    {
        "download the file"
    }

Add Market Price Reference Step 1

HTTP Request

POST /api/vehicle/marketPriceReference/add

Parameters

Parameter Type Status Description
vehicle_id integer 310,
vehicleMarketPrice integer 0,
dateAverage date 14-12-2020,
registrationTax integer 20000,
references array [{"source_of_add": 1, "vehicle_brand_id": 145, "vehicle_model": 2, "date_of_first_registration": "14-12-2020", "kilometer": "0.1", "price": "0.2"}]

Example response:

{
    "data": {
        "message": "messages.vehiclesMarketPriceReferences",
        "data": null,
        "status_code": 200
    }
}

Add Vehicle Mileage

HTTP Request

POST /api/vehicle/mileage/{id}

Parameters

Parameter Type Status Description
vehicle_mileage integer required
vehicle_mileage_date date required

Example response:

{
    "data": {
        "message": "messages.vehicleMileageAdded",
        "data": null,
        "status_code": 200
    }
}

Add market value

HTTP Request

POST /api/vehicle/market/value/{id}

Parameters

Parameter Type Status Description
vehicle_market_value integer required
valuation_type_id integer required
source string required
market_value_date date required

Example response:

{
    "data": {
        "message": "messages.vehicleMarketValueAdded",
        "data": null,
        "status_code": 200
    }
}

Get market values

HTTP Request

GET /api/vehicle/market/values/{id}

Parameters

Parameter Type Status Description

Example response:

{
    "draw": 0,
    "recordsTotal": 14,
    "recordsFiltered": 14,
    "data": [
        {
            "id": 55,
            "vehicle_id": 5,
            "source": "test",
            "date": "2020-12-20",
            "market_value_cents": "2,00",
            "valuation_type_id": 2,
            "created_at": "2020-12-20T12:35:40.000000Z",
            "updated_at": "2020-12-20T12:35:40.000000Z",
            "valuationType": {
                "id": 2,
                "valuation_description": "Fair pris",
                "is_default": 1,
                "is_in_a_year": 0,
                "created_at": null,
                "updated_at": null
            }
        },
    ]
}   

Get Market Price Reference

HTTP Request

GET /api/vehicle/{id}/datatable/marketPriceReference

Parameters

Parameter Type Status Description

Example response:

{
    "draw": 0,
    "recordsTotal": 14,
    "recordsFiltered": 14,
    "data": [
        {
            "id": 1,
            "vehicle_market_set_id": 1,
            "source_of_add": "Source",
            "vehicle_brand_id": 163,
            "vehicle_model": "Model-z",
            "date_of_first_registration": "12-12-2012",
            "kilometer": 23232.33,
            "price_cents": "0,00",
            "vehicle_id": 299,
            "registration_tax_cents": 0,
            "market_price_cents": 0,
            "vehicle_market_file_documents": [],
            "download_document": []
        },
    ]
}   

Get Gallery Images

HTTP Request

GET /api/vehicle/{id}/gallery-list-data

Parameters

Parameter Type Status Description

Example response:

{
    "draw": 0,
    "recordsTotal": 14,
    "recordsFiltered": 14,
    "data": [
        {
            "id": 106,
            "vehicle_id": 295,
            "gallery_image_file_id": 284,
            "created_at": "16-02-2019",
            "updated_at": "2019-02-16T11:14:23.000000Z",
            "file_document": {
                "id": 284,
                "filename": "295-gallery-image.jpg",
                "filepath_md5": "PXIGaG8kpW8cCceyTYCmtc2XWbGsoIRDHbpeuGhT.jpeg",
                "file_mime": "image/jpeg",
                "uploaded_by": 2,
                "is_uploaded": false,
                "created_at": "2019-02-16T11:14:23.000000Z",
                "updated_at": "2019-02-16T11:14:23.000000Z"
            },
            "gallery_image_url": "https://leaso-staging.ams3.digitaloceanspaces.com/system-files/vehicles/5/gallery/PXIGaG8kpW8cCceyTYCmtc2XWbGsoIRDHbpeuGhT.jpeg"
        },
    ]
}   

Upload Gallery Images

HTTP Request

POST /api/vehicle/{id}/gallery/upload

Parameters

Parameter Type Status Description
gallery_images required array

Example response:

{
    "data": {
        "message": "vehicleGalleryUpdated",
        "data": null,
        "status_code": 200
    }
}   

Delete Gallery Images

HTTP Request

DELETE /api/vehicle/{id}/gallery/{galleryImageId}

Example response:

{
    "data": {
        "message": "vehicleGalleryDeleted",
        "data": null,
        "status_code": 200
    }
}   

Download vehicle market reference Document

HTTP Request

Get /api/vehicle/marketPriceReference/{vehicleMarketPriceReferenceId}/{fileRecordId}/download

Example response:

    "Download The File"

Vehicle Brand

Store Vehicle Brand

Example response:

{
    "data": {
        "message": "VehicleBrand have created successfully",
        "data": null,
        "status_code": 200
    }
}

HTTP Request

POST api/vehicles/brand

Parameter Type Status parameter Description
name String required bodyparam
vehicle_type array required bodyparam vehicleTypes ID

Update Vehicle Brand

Example response:

{
    "data": {
        "message": "VehicleBrand updated successfully",
        "data": {
            "id": 1,
            "name": "ALFA ROMEO",
            "created_at": "2020-11-15T06:21:59.000000Z",
            "updated_at": "2020-11-18T16:04:35.000000Z",
            "vehicleTypes": [
                {
                    "id": 1,
                    "name": "Motorcykel",
                    "state": "Aktiv",
                    "created_at": "2020-11-15T06:21:59.000000Z",
                    "updated_at": "2020-11-15T06:21:59.000000Z",
                    "pivot": {
                        "vehicle_brand_id": 1,
                        "vehicle_type_id": 1
                    }
                },
                {
                    "id": 3,
                    "name": "Loan",
                    "state": "Aktiv",
                    "created_at": "2020-11-15T06:21:59.000000Z",
                    "updated_at": "2020-11-15T06:21:59.000000Z",
                    "pivot": {
                        "vehicle_brand_id": 1,
                        "vehicle_type_id": 3
                    }
                }
            ]
        },
        "status_code": 200
    }
}

HTTP Request

PUT api/vehicles/brand/{id}

Parameter Type Status parameter Description
id integer required urlParam Brand ID
name String required bodyparam
vehicle_type array required bodyparam vehicleTypes ID

Get Vehicle Brand

Example response:

{
    "data": {
        "id": 1,
        "name": "ALFA ROMEO",
        "created_at": "2020-11-15T06:21:59.000000Z",
        "updated_at": "2020-11-18T16:04:35.000000Z",
        "vehicleTypes": [
            {
                "id": 1,
                "name": "Motorcykel",
                "state": "Aktiv",
                "created_at": "2020-11-15T06:21:59.000000Z",
                "updated_at": "2020-11-15T06:21:59.000000Z",
                "pivot": {
                    "vehicle_brand_id": 1,
                    "vehicle_type_id": 1
                }
            },
            {
                "id": 3,
                "name": "Loan",
                "state": "Aktiv",
                "created_at": "2020-11-15T06:21:59.000000Z",
                "updated_at": "2020-11-15T06:21:59.000000Z",
                "pivot": {
                    "vehicle_brand_id": 1,
                    "vehicle_type_id": 3
                }
            }
        ]
    }
}

HTTP Request

GET api/vehicles/brand/{id}

Parameter Type Status parameter Description
id integer required urlParam Brand ID

Get All Vehicle Brand

Example response:

{
    "draw": 0,
    "recordsTotal": 2,
    "recordsFiltered": 2,
    "data": [
      {
          "id": 1,
          "name": "ALFA ROMEO",
          "created_at": "2020-11-15T06:21:59.000000Z",
          "updated_at": "2020-11-15T06:21:59.000000Z",
          "vehicleTypes": [
              {
                  "id": 2,
                  "name": "Personbil",
                  "state": "Aktiv",
                  "created_at": "2020-11-15T06:21:59.000000Z",
                  "updated_at": "2020-11-15T06:21:59.000000Z",
                  "pivot": {
                      "vehicle_brand_id": 2,
                      "vehicle_type_id": 2
                  }
              }
          ]
      },
      {
          "id": 1,
          "name": "AM GENERAL",
          "created_at": "2020-11-15T06:21:59.000000Z",
          "updated_at": "2020-11-15T06:21:59.000000Z",
          "vehicleTypes": [
              {
                  "id": 2,
                  "name": "Personbil",
                  "state": "Aktiv",
                  "created_at": "2020-11-15T06:21:59.000000Z",
                  "updated_at": "2020-11-15T06:21:59.000000Z",
                  "pivot": {
                      "vehicle_brand_id": 3,
                      "vehicle_type_id": 2
                  }
              }
          ]
      }
     ],
    "queries": [
            {
                "query": "select count(*) as aggregate from (select '1' as `row_count` from `vehicle_brands`) count_row_table",
                "bindings": [],
                "time": "1.28"
            },
            {
                "query": "select * from `vehicle_brands`",
                "bindings": [],
                "time": "0.44"
            },
            {
                "query": "select `vehicle_types`.*, `vehicle_brand_type`.`vehicle_brand_id` as `pivot_vehicle_brand_id`, `vehicle_brand_type`.`vehicle_type_id` as `pivot_vehicle_type_id` from `vehicle_types` inner join `vehicle_brand_type` on `vehicle_types`.`id` = `vehicle_brand_type`.`vehicle_type_id` where `vehicle_brand_type`.`vehicle_brand_id` = ?",
                "bindings": [
                    "1"
                ],
                "time": "0.82"
            }
    ],
    "input": []
}

HTTP Request

GET api/vehicles/brand/data/{listOrDataTable}

Vehicles brand type

Example response:

{
    "data": {
        "vehicleTypeBrands": [
            {
                "name": "AUDI",
                "id": 163,
                "pivot": {
                    "vehicle_type_id": 2,
                    "vehicle_brand_id": 163
                }
            },
            {
                "name": "BMW",
                "id": 145,
                "pivot": {
                    "vehicle_type_id": 2,
                    "vehicle_brand_id": 145
                }
            }
        ]
    }
}

HTTP Request

GET /api/vehicles/brand/type/2

Vehicle Type

Store Vehicle Type

Example response:

{
    "data": {
        "message": "VehicleType have created successfully",
        "data": null,
        "status_code": 200
    }
}

HTTP Request

POST api/vehicles/type

Parameter Type Status parameter Description
name string required bodyParam
state boolean

Update Vehicle Type

Example response:

{
    "data": {
        "message": "VehicleType updated successfully",
        "data": {
            "id": 1,
            "name": "type2",
            "state": "Aktiv",
            "created_at": "2020-11-15T06:21:59.000000Z",
            "updated_at": "2020-11-19T08:06:50.000000Z"
        },
        "status_code": 200
    }
}

HTTP Request

PUT api/vehicles/type/{id}

Parameter Type Status parameter Description
name String required bodyparam
state boolean

Get Vehicle Type

Example response:

{
    "data": {
                "id": 2,
                "name": "Personbil",
                "state": "Aktiv",
                "created_at": "2020-11-15T06:21:59.000000Z",
                "updated_at": "2020-11-15T06:21:59.000000Z"
            }
}

HTTP Request

GET api/vehicles/type/{id}

Parameter Type Status parameter Description
id integer required urlParam Brand ID

Get All Vehicle Types

Example response:

{
    "draw": 0,
    "recordsTotal": 2,
    "recordsFiltered": 2,
    "data": [
        {
            "id": 2,
            "name": "Personbil",
            "state": "Aktiv",
            "created_at": "2020-11-15T06:21:59.000000Z",
            "updated_at": "2020-11-15T06:21:59.000000Z"
        },
        {
            "id": 3,
            "name": "Loan",
            "state": "Aktiv",
            "created_at": "2020-11-15T06:21:59.000000Z",
            "updated_at": "2020-11-15T06:21:59.000000Z"
        }
    ],
    "queries": [
        {
            "query": "select count(*) as aggregate from (select '1' as `row_count` from `vehicle_types`) count_row_table",
            "bindings": [],
            "time": "1.22"
        },
        {
            "query": "select * from `vehicle_types`",
            "bindings": [],
            "time": "0.16"
        }
    ],
    "input": []
}

HTTP Request

GET vehicles/type/data/{listOrDataTable}

Contract

Contract Details

Example request:

curl -X GET "/api/contract/leasing/93/160/details" \
-H "Accept: application/json"

Example response:

{
    "data": {
        "customer": {
            "id": 93,
            "company_name": null,
            "customer_private_or_company": "private",
            "first_name": "Thomas",
            "last_name": "Kragsberger",
            "email": "tk@nord-leasing.dk",
            "street_address": "Hejvej 1",
            "zip_code": "1234",
            "city": "Hejby",
            "telephone": "12345678",
            "cpr_number": "1122334455",
            "cvr_number": null,
            "economic_customer_number": 9703735,
            "economic_customer_contact_number": null,
            "payment_term_id": 3,
            "bank_registration": 1234,
            "bank_account_number": 1234,
            "pbs_created": null,
            "id_received": null,
            "related_to_id": null,
            "driver_license_file_id": null,
            "social_security_file_id": null,
            "created_at": "2017-01-10T12:49:29.000000Z",
            "updated_at": "2017-01-10T12:51:24.000000Z"
        },
        "customerName": "Thomas Kragsberger",
        "secondarySplitCustomer": null,
        "leasingContract": {
            "id": 160,
            "user_id": 2,
            "offer_id": 0,
            "state": "delivered",
            "contract_type_id": 1,
            "leasing_type_id": 1,
            "generated_monthly_payments": true,
            "vehicle_id": 5,
            "vehicle_plate_number": null,
            "weighted_rate": "0.1500000",
            "down_payment_cents": 0,
            "active_monthly_payment_cents": -8824,
            "inactive_monthly_payment_cents": 0,
            "depreciation_percent": -125,
            "deposit_cents": 0,
            "salvage_value_cents": 225000,
            "expected_registration_tax_cents": 59000,
            "estimated_tax_for_period_cents": 4649.2,
            "final_registration_tax_cents": 0,
            "vehicle_price_excl_tax_and_vat_cents": 100000,
            "vehicle_price_end_contract_incl_tax_vat_cents": 336710,
            "commission_cents": 10000,
            "profit_cents": 0,
            "contract_length_in_months": 12,
            "months_with_license_plates": 12,
            "split_leasing_private_percent": 0,
            "split_leasing_company_percent": 0,
            "first_registration_date": "2012-02-23",
            "sent_for_approval_date": "2016-07-08",
            "approved_denied_date": "2016-07-08",
            "rec_signedcontract_customer": "2016-07-08",
            "final_signature_date": null,
            "delivery_date": "2016-07-08",
            "start_date": "2016-07-08",
            "termination_date": "2017-07-07",
            "expected_payout_date": null,
            "private_tax_cents": 0,
            "vat_deduction_per_month_cents": 0,
            "vat_deduction_down_payment_cents": 0,
            "kilometer_limit": 0,
            "price_per_additional_km_cents": 0,
            "custom_fields": null,
            "EU_vat": false,
            "created_at": "2017-01-12T12:48:45.000000Z",
            "updated_at": "2020-12-16T09:54:29.000000Z",
            "leasing_monthly_payment": {
                "id": 2286,
                "leasing_offer_id": 0,
                "leasing_contract_id": 160,
                "payment_type_id": 1,
                "amount_excl_tax_vat_cents": -7059.2,
                "amount_incl_tax_vat_cents": -8824,
                "vat_cents": -1764.8,
                "cost_price_excl_vat_cents": 0
            },
            "loan_monthly_payment": null,
            "leasing_down_payment": null,
            "leasing_deposit": null,
            "contract_type": {
                "id": 1,
                "name": "Privat",
                "code": "private",
                "created_at": null,
                "updated_at": null
            },
            "leasing_type": {
                "id": 1,
                "name": "Finansiel",
                "code": "financial",
                "created_at": null,
                "updated_at": null
            },
            "vehicle": {
                "id": 5,
                "vehicle_type_id": 2,
                "vehicle_type_string": "Personbil",
                "vehicle_brand_id": 145,
                "vehicle_brand_string": "BMW",
                "vehicle_model_string": "I3",
                "vehicle_serial_number": "Alex1459200934567",
                "vehicle_used_vat": true,
                "vehicle_date_of_first_registration": "2012-12-12",
                "fuel": "Benzin",
                "transmission": "Manuelt",
                "engine": "5,0",
                "car_type": "",
                "version": "",
                "ekstra": "",
                "description": null,
                "gears": null,
                "wheel_size": null,
                "wheel_type": null,
                "interior_colour": null,
                "interior_type": null,
                "sunroof": false,
                "show_on_front_page": true,
                "main_image_file_id": null,
                "state": 1,
                "color": null,
                "vehicle_condition_id": 1,
                "euro_ncap": true,
                "abs": false,
                "customs_inpsections": false,
                "price_as_new_cents": 0,
                "km_per_litre": 100000,
                "num_airbags": 2,
                "num_seat_belts": 3,
                "num_integrated_children_seats": 3,
                "created_at": "2016-04-11T08:51:00.000000Z",
                "updated_at": "2020-12-29T15:27:44.000000Z",
                "main_image_file_url": "",
                "date_of_first_registration": "12-12-2012",
                "latest_vehicle_market_set": null,
                "latest_vehicle_mileage": {
                    "id": 142,
                    "vehicle_id": 5,
                    "mileage": 1,
                    "date": "2020-12-20",
                    "created_at": "2020-12-21T14:34:32.000000Z",
                    "updated_at": "2020-12-21T14:34:32.000000Z"
                }
            },
            "leasing_products": [
                {
                    "id": 2286,
                    "leasing_offer_id": 0,
                    "leasing_contract_id": 160,
                    "payment_type_id": 1,
                    "amount_excl_tax_vat_cents": -7059.2,
                    "amount_incl_tax_vat_cents": -8824,
                    "vat_cents": -1764.8,
                    "cost_price_excl_vat_cents": 0
                }
            ]
        },
        "leasingProducts": [
            {
                "id": 2286,
                "leasing_offer_id": 0,
                "leasing_contract_id": 160,
                "payment_type_id": 1,
                "amount_excl_tax_vat_cents": -7059.2,
                "amount_incl_tax_vat_cents": -8824,
                "vat_cents": -1764.8,
                "cost_price_excl_vat_cents": 0
            }
        ],
        "leasingContractVehicle": {
            "id": 5,
            "vehicle_type_id": 2,
            "vehicle_type_string": "Personbil",
            "vehicle_brand_id": 145,
            "vehicle_brand_string": "BMW",
            "vehicle_model_string": "I3",
            "vehicle_serial_number": "Alex1459200934567",
            "vehicle_used_vat": true,
            "vehicle_date_of_first_registration": "2012-12-12",
            "fuel": "Benzin",
            "transmission": "Manuelt",
            "engine": "5,0",
            "car_type": "",
            "version": "",
            "ekstra": "",
            "description": null,
            "gears": null,
            "wheel_size": null,
            "wheel_type": null,
            "interior_colour": null,
            "interior_type": null,
            "sunroof": false,
            "show_on_front_page": true,
            "main_image_file_id": null,
            "state": 1,
            "color": null,
            "vehicle_condition_id": 1,
            "euro_ncap": true,
            "abs": false,
            "customs_inpsections": false,
            "price_as_new_cents": 0,
            "km_per_litre": 100000,
            "num_airbags": 2,
            "num_seat_belts": 3,
            "num_integrated_children_seats": 3,
            "created_at": "2016-04-11T08:51:00.000000Z",
            "updated_at": "2020-12-29T15:27:44.000000Z",
            "main_image_file_url": "",
            "date_of_first_registration": "12-12-2012",
            "latest_vehicle_market_set": null,
            "latest_vehicle_mileage": {
                "id": 142,
                "vehicle_id": 5,
                "mileage": 1,
                "date": "2020-12-20",
                "created_at": "2020-12-21T14:34:32.000000Z",
                "updated_at": "2020-12-21T14:34:32.000000Z"
            }
        },
        "vehicleSoldOrMoved": "",
        "draftPDF": false,
        "signedPDF": false,
        "hasCashFlowGenerated": true,
        "selectedMonthlyProduct": [],
        "selectedProductToContractProducts": [],
        "monthlyPaymentExclVAT": -7059.2,
        "monthlyPaymentExclTaxVat": "-7.059,20",
        "monthlyPaymentVat": "-1.764,80",
        "downPaymentExclTaxVat": null,
        "downPaymentVat": null,
        "depositExclTaxVat": null,
        "depositVat": null,
        "mileage": 1,
        "completionRate": "29"
    }
}

HTTP Request

GET /api/contract/leasing/{customerID}/{leasingContractId}/details

Parameters

Update Contract

Example request:

curl -X PUT "/api/contract/leasing/update/{leasingContractId}" \
-H "Accept: application/json"

Example response:

{
}

HTTP Request

PUT api/contract/leasing/update/{leasingContractId}

Parameters

Parameter Type Status Description
vehicles_first_registration required date
contract_length_in_months required integer
price_of_vehicle required
estimated_tax required
down_payment required numeric
contract_type_id required integer
leasing_type_id required integer
private_split_percent required if contract_type_id is split-leasing numeric between 0, 100
company_split_percent required if contract_type_id is split-leasing numeric between 0, 100
road_assistance optional boolean
insurance optional boolean
deposit optional numeric
commission_exclude_vat required numeric
vehicle_id required integer
customer_id required unless contract_type_id is split-leasing integer
private_tax optional numeric
kilometer_limit optional numeric
price_per_additional_km optional numeric
EU_vat optional boolean

Get Contracts

Example request:

{
    "data": {
        "message": null,
        "data": null,
        "status_code": 200
    }
}

HTTP Request

GET /api/contracts/leasing/data/all/{listOrDataTable}

curl -X GET "/api/contracts/leasing/data/all/datatable" \
-H "Accept: application/json"

Example response:

{
    "draw": 0,
    "recordsTotal": 1160,
    "recordsFiltered": 1160,
    "data": [
        {
            "id": 5,
            "user_id": 1,
            "offer_id": 102,
            "state": "pending",
            "contract_type_id": null,
            "leasing_type_id": null,
            "generated_monthly_payments": false,
            "vehicle_id": 5,
            "vehicle_plate_number": null,
            "weighted_rate": "9.9999999",
            "down_payment_cents": 15000,
            "active_monthly_payment_cents": 0,
            "inactive_monthly_payment_cents": null,
            "depreciation_percent": 2000,
            "deposit_cents": 0,
            "salvage_value_cents": 120000,
            "expected_registration_tax_cents": 100000,
            "estimated_tax_for_period_cents": 0,
            "final_registration_tax_cents": 0,
            "vehicle_price_excl_tax_and_vat_cents": 150000,
            "vehicle_price_end_contract_incl_tax_vat_cents": 0,
            "commission_cents": 7500,
            "profit_cents": 0,
            "contract_length_in_months": 12,
            "months_with_license_plates": 12,
            "split_leasing_private_percent": 0,
            "split_leasing_company_percent": 0,
            "first_registration_date": "2012-12-12",
            "sent_for_approval_date": "0000-00-00",
            "approved_denied_date": "0000-00-00",
            "rec_signedcontract_customer": "0000-00-00",
            "final_signature_date": "0000-00-00",
            "delivery_date": "0000-00-00",
            "start_date": "0000-00-00",
            "termination_date": "0000-00-00",
            "expected_payout_date": null,
            "private_tax_cents": 0,
            "vat_deduction_per_month_cents": 0,
            "vat_deduction_down_payment_cents": 0,
            "kilometer_limit": null,
            "price_per_additional_km_cents": null,
            "custom_fields": null,
            "EU_vat": false,
            "created_at": "2016-04-11T08:51:00.000000Z",
            "updated_at": "2016-04-11T08:51:00.000000Z",
            "contract_customers": [
                {
                    "id": 849,
                    "leasing_contract_id": 5,
                    "customer_id": 27,
                    "customer_type": 1,
                    "active": 1,
                    "from_date": "2015-12-22",
                    "to_date": "2016-12-21",
                    "contract_draft_file_id": null,
                    "contract_signed_file_id": null,
                    "created_at": null,
                    "updated_at": null,
                    "customer": {
                        "id": 27,
                        "company_name": null,
                        "customer_private_or_company": "private",
                        "first_name": "Alex",
                        "last_name": "Mansour",
                        "email": "alex.mansour7@gmail.comz",
                        "street_address": "Christ",
                        "zip_code": "2860",
                        "city": "Soborg",
                        "telephone": "18887003686",
                        "cpr_number": "1405924789",
                        "cvr_number": null,
                        "economic_customer_number": 35000,
                        "economic_customer_contact_number": null,
                        "payment_term_id": 5,
                        "bank_registration": 5555,
                        "bank_account_number": 0,
                        "pbs_created": null,
                        "id_received": null,
                        "related_to_id": null,
                        "driver_license_file_id": 176,
                        "social_security_file_id": 177,
                        "created_at": "2016-04-06T15:15:51.000000Z",
                        "updated_at": "2018-09-03T12:10:53.000000Z"
                    }
                }
            ],
            "contract_type": null,
            "leasing_type": null,
            "vehicle": {
                "id": 5,
                "vehicle_type_id": 2,
                "vehicle_type_string": "Personbil",
                "vehicle_brand_id": 145,
                "vehicle_brand_string": "BMW",
                "vehicle_model_string": "I3",
                "vehicle_serial_number": "Alex1459200934567",
                "vehicle_used_vat": true,
                "vehicle_date_of_first_registration": "2012-12-12",
                "fuel": "Benzin",
                "transmission": "Manuelt",
                "engine": "5,0",
                "car_type": "",
                "version": "",
                "ekstra": "",
                "description": null,
                "gears": null,
                "wheel_size": null,
                "wheel_type": null,
                "interior_colour": null,
                "interior_type": null,
                "sunroof": false,
                "show_on_front_page": false,
                "main_image_file_id": null,
                "state": 2,
                "color": null,
                "vehicle_condition_id": 1,
                "euro_ncap": true,
                "abs": false,
                "customs_inpsections": false,
                "price_as_new_cents": 0,
                "km_per_litre": 100000,
                "num_airbags": 2,
                "num_seat_belts": 3,
                "num_integrated_children_seats": 3,
                "created_at": "2016-04-11T08:51:00.000000Z",
                "updated_at": "2019-11-11T13:25:24.000000Z",
                "main_image_file_url": "",
                "date_of_first_registration": "12-12-2012"
            },
            "contract_tasks": [
                {
                    "id": 315,
                    "leasing_contract_id": 5,
                    "task_id": 16,
                    "completed": 1,
                    "due_date": null,
                    "assignee_id": null,
                    "created_at": "2017-05-16T21:08:17.000000Z",
                    "updated_at": "2017-05-16T21:08:17.000000Z"
                }
            ],
            "leasing_products": [
                {
                    "id": 1885,
                    "leasing_offer_id": 102,
                    "leasing_contract_id": 5,
                    "payment_type_id": 1,
                    "amount_excl_tax_vat_cents": 6744,
                    "amount_incl_tax_vat_cents": 8430,
                    "vat_cents": 1686,
                    "cost_price_excl_vat_cents": 0
                },
            ],
            "user": {
                "id": 1,
                "first_name": "Alex",
                "last_name": "Mansour",
                "email": "alex.mansour7@gmail.comc",
                "organization_id": 14,
                "profile_picture_path": null,
                "state": true,
                "created_at": null,
                "updated_at": "01-11-2018 12:24:01",
                "last_active_at": null,
                "organization": {
                    "id": 14,
                    "name": "3H Leasing",
                    "depreciation_settings_id": null,
                    "contract_setup_fee_cents": null,
                    "street_address": "Vandtårnsvej 80",
                    "zip_code": "2860",
                    "city": "Søborg",
                    "cvr_number": "37458333",
                    "state": true,
                    "file_name": null,
                    "file_path_md5": null,
                    "file_mime": null,
                    "created_at": "2016-09-14T06:13:43.000000Z",
                    "updated_at": "2016-09-14T06:13:43.000000Z"
                }
            }
        }
    ]
}

Parameters

Parameter Type Status Description
customer_id optional integer send customer_id if you need to get customer contract
active optional boolean 0 1
status_codes optional array
leasing_type_ids optional array
organization_id optional array
EU_vat optional boolean
contract_value_date optional date

Get Calculations

HTTP Request

GET /api/contract/leasing/{customerId}/{leasingContractId}/calculations

curl -X "GET /api/contract/leasing/{customerId}/{leasingContractId}/calculations" \
-H "Accept: application/json"

Parameters

Parameter Type Status Description

Example response:

{
    "data": {
        "calculationData": {
            "contractLength": 12,
            "deposit": "0",
            "insuranceAmount": "0",
            "roadAssistance": "0",
            "downPayment": "50.000",
            "salvageValue": "160.000",
            "monthlyPayment": "5.864",
            "newMonthlyPayment": "7.650",
            "commission": "0",
            "weightedRate": "0.1800000",
            "taxForPeriod": "15.760",
            "upfrontPayment": "175.760",
            "totalPayments": "216.294",
            "netInvestment": "175.760",
            "totalNetInvestmentAndPayments": "40.534",
            "totalProfit": "40.534",
            "salvagePresentValue": "-133.822",
            "activePrice": "5.864",
            "inActivePrice": "0",
            "newActivePrice": 7650,
            "newInActivePrice": 0,
            "vehiclePriceEndContractIncTaxVat": "388.000",
            "activeMonths": 12,
            "inActiveMonths": 0,
            "productsTotalAmount": 5864,
            "privateTax": "0",
            "vatDeductionPerMonth": "0",
            "vatDeductionDownPayment": "0",
            "pricePerAdditionalKM": "0,00",
            "internalRate": "24,97",
            "incomeAndExpenseData": [
                {
                    "date": "09-12-2020",
                    "day": 0,
                    "interest_days": 0,
                    "interest_pct": "0,00",
                    "payment": "-172.279,43",
                    "end_value": "-172.279,43",
                    "interest": "0,00",
                    "repayment": "0,00",
                    "netPresentValue": "-172.279,43"
                },
            ],
            "totalCostProducts": "0",
            "totalRevenue": "0",
            "profit": "0",
            "depreciationPercent": "20,00",
            "leasingOfferContractCostProducts": [],
            "productsRevenue": [],
            "selfFinancing": "18,54",
            "deviationFromMinimumProfit": "30.534"
        },
        "calculationOutputAreas": {
            "totalUpfrontProductNotFormatted": 50000,
            "totalRevenue": 0,
            "productsRevenue": [],
            "monthlyProductArea": {
                "labels.products.leasing_payment": "5.864"
            },
            "monthlyProductAreaTotal": "5.864",
            "upfrontProductArea": {
                "Udbetaling": "50.000"
            },
            "upfrontProductAreaTotal": "50.000",
            "downPaymentMaxValue": 75516,
            "upfrontProductAreaTotalExclVat": 40000,
            "upfrontProductCostTotal": 0
        }
    }
}

Generate Leasing Contract Payments - cashflow

Example request:

curl -X POST "/api/contracts/leasing/{ContractId}/cashflow" \
-H "Accept: application/json"

Example response:

{"data":{"message":null,"data":null,"status_code":200}}

HTTP Request

POST /api/contracts/leasing/{ContractId}/cashflow

Parameters

Parameter Type Status Description
start_date required date format:Y-m-d (if there's a termination date this should be up to the termination date + 1 year)
delivery_date required date format:Y-m-d (if there's a termination date this should be up to the termination date + 1 year)
termination_date required date format:Y-m-d after start_date
monthly_payment required numeric
product_type_id required numeric
full_payments required boolean for leasing types
process_date required date format:Y-m-d (for loan types, if there's a termination date this should be up to the termination date + 1 year)

Create Invoice

Example request:

curl -X POST "/api/contract/leasing/{ContractId}/invoice" \
-H "Accept: application/json"

Example response:

{"data":{"message":null,"data":null,"status_code":200}}

HTTP Request

POST api/contract/leasing/{ContractId}/invoice

Parameters

Parameter Type Status Description
contract_payment_book_date date
due_date date
payment_term_number integer

contract types

Example request:

curl -X GET "/api/contract/types" \
-H "Accept: application/json"

Example response:

{
    "data": {
        "contractTypes": [
            {
                "id": 1,
                "name": "Privat",
                "code": "private",
                "created_at": null,
                "updated_at": null
            },
            {
                "id": 2,
                "name": "Erhverv",
                "code": "company",
                "created_at": null,
                "updated_at": null
            },
            {
                "id": 3,
                "name": "Splitleasing",
                "code": "split-leasing",
                "created_at": null,
                "updated_at": null
            }
        ]
    }
}

HTTP Request

GET /api/contract/types

Parameters

Parameter Type Status Description

Leasing types

Example request:

curl -X GET "/api/leasing/types" \
-H "Accept: application/json"

Example response:

{
    "data": {
        "leasingTypes": [
            {
                "id": 3,
                "name": "Billån",
                "code": "auto_loan",
                "created_at": null,
                "updated_at": "2018-11-05T10:40:54.000000Z"
            },
            {
                "id": 1,
                "name": "Finansiel",
                "code": "financial",
                "created_at": null,
                "updated_at": null
            }
        ]
    }
}

Extend Contract

HTTP Request

PUT /api/contract/leasing/extend-contract/{id}

Parameters

Parameter Type Status Description
prolog_fee integer
months integer
{
  "data": {
    "message": "Contract extended successfully",
    "data": true,
    "status_code": 200
  }
}

HTTP Request

GET /api/leasing/types

Parameters

Parameter Type Status Description

Cancel Contract

Example request:

curl -X GET "/api/tasks/contract/leasing/canceled/151/636" \
-H "Accept: application/json"

Example response:

{
    "data": {
        "message": "messages.contractCanceledSuccessfully",
        "data": null,
        "status_code": 200
    }
}

HTTP Request

GET /api/tasks/contract/leasing/canceled/{customerId}/{leasingContractId}

Parameters

Parameter Type Status Description
status string canceled

Get contract transaction type

Example request:

curl -X GET "/api/contract/transaction/type/{id}" \
-H "Accept: application/json"

Example response:

{
    "data": {
        "transactionType": {
            "id": 1,
            "service_type_id": 9,
            "name": "Køb køretøj",
            "account_number": 5530,
            "contract_value_transaction": true,
            "vehicle_transaction": true,
            "is_active": true,
            "vat_required": true,
            "vat_code_id": 12,
            "created_at": null,
            "updated_at": "04-04-2021",
            "base_transaction_type": {
                "id": 10,
                "code": "buy_vehicle",
                "transaction_type_id": 1
            },
            "vat_code": {
                "id": 12,
                "code": "IV25",
                "name": "IV25",
                "value": null,
                "model_type": "App\\Models\\Contract\\ContractTransactions",
                "extra_details": null,
                "category_id": 4,
                "is_active": 1,
                "is_system": 1,
                "created_at": "03-03-2021 12:39:10",
                "updated_at": "03-03-2021 12:39:10"
            }
        },
        "vehicleTransaction": true,
        "moveVehicleTransaction": false
    }
}

HTTP Request

GET /api/contract/transaction/type/{id}

Parameters

Parameter Type Status Description

Get Contract Split Details - Distribution

Example request:

curl -X GET "/api/contract/leasing/{id}/mileage-split" \
-H "Accept: application/json"

Example response:

{
    "data": {
        "mileage": {
            "private": "0,12",
            "company": "0,00",
            "total": "0,12"
        },
        "split": {
            "private": "100,00",
            "company": "0,00",
            "total": "100,00"
        },
        "charged_per_customer": {
            "private": "43.452,00",
            "company": "43.452,00",
            "total": "86.904,00"
        },
        "actual_payments": {
            "private": "86.904,00",
            "company": "0,00",
            "total": "86.904,00"
        },
        "due_owed_by_customer": {
            "private": "43.452,00",
            "company": "-43.452,00",
            "total": "0,00"
        }
    }
}

HTTP Request

GET /api/contract/leasing/{id}/mileage-split

Parameters

Parameter Type Status Description
date_of_statement date

Make Contract Split Payments

Example request:

curl -X POST "/api/contract/leasing/{id}/mileage-split" \
-H "Accept: application/json"

Example response:

{
    "data": {
        "message": "messages.contractSplitPaymentsCreated",
        "data": null,
        "status_code": 200
    }
}

HTTP Request

POST /api/contract/leasing/{id}/mileage-split

Parameters

Parameter Type Status Description
date_of_statement date

import Contract Mileage Data

Example request:

curl -X POST "/api/contract/leasing/{id}/mileage/import" \
-H "Accept: application/json"

Example response:

{
    "data": {
        "message": "messages.contractsMileageDataImported",
        "data": null,
        "status_code": 200
    }
}

HTTP Request

POST /api/contract/leasing/{id}/mileage/import

Parameters

Parameter Type Status Description
contracts_mileage file

Get Realised InternalRate

Example response:

{
    "data": {
        "message": "messages.contractsMileageDataImported",
        "data": null,
        "status_code": 200
    }
}

HTTP Request

POST api/contract/leasing/{id}/internalRate

download ContractMileageData Template

Example request:

curl -X GET "/api/contract/leasing/{id}/mileage/template" \
-H "Accept: application/json"

Example response:

Download file

HTTP Request

GET /api/contract/leasing/{id}/mileage/template

Parameters

Parameter Type Status Description

Contract Mileage Data

Example request:

curl -X POST "/api/contract/leasing/{id}/mileage/data" \
-H "Accept: application/json"

Example response:

    {
    "draw": 0,
    "recordsTotal": 1,
    "recordsFiltered": 1,
    "data": [
        {
            "id": 594,
            "user_id": 2,
            "offer_id": 0,
            "state": "delivered",
            "contract_type_id": 3,
            "leasing_type_id": 1,
            "generated_monthly_payments": true,
            "vehicle_id": 148,
            "vehicle_plate_number": null,
            "weighted_rate": "0.1500000",
            "down_payment_cents": 0,
            "active_monthly_payment_cents": 7242,
            "inactive_monthly_payment_cents": 0,
            "depreciation_percent": 34.949999999999996,
            "deposit_cents": 0,
            "salvage_value_cents": 130100,
            "expected_registration_tax_cents": 200000,
            "estimated_tax_for_period_cents": 17076,
            "final_registration_tax_cents": 200000,
            "vehicle_price_excl_tax_and_vat_cents": 200000,
            "vehicle_price_end_contract_incl_tax_vat_cents": 350625,
            "commission_cents": 0,
            "profit_cents": 0,
            "contract_length_in_months": 12,
            "months_with_license_plates": 12,
            "split_leasing_private_percent": 50,
            "split_leasing_company_percent": 50,
            "first_registration_date": "2012-01-01",
            "sent_for_approval_date": "2017-12-19",
            "approved_denied_date": null,
            "rec_signedcontract_customer": null,
            "final_signature_date": null,
            "delivery_date": "2017-01-01",
            "start_date": "2017-01-01",
            "termination_date": "2017-12-31",
            "expected_payout_date": null,
            "private_tax_cents": 0,
            "vat_deduction_per_month_cents": 500,
            "vat_deduction_down_payment_cents": 0,
            "kilometer_limit": 0,
            "price_per_additional_km_cents": 0,
            "custom_fields": null,
            "EU_vat": false,
            "created_at": "2017-12-19T15:08:09.000000Z",
            "updated_at": "2017-12-24T15:08:06.000000Z"
        }
    ]
}

HTTP Request

POST /api/contract/leasing/{id}/mileage/data

Parameters

Parameter Type Status Description

Update driving data

Example request:

curl -X POST "/api/contract/leasing/{id}/mileage/vehicle" \
-H "Accept: application/json"

Example response:

{
    "data": {
        "message": "messages.updateContractVehicleMileageDataResult",
        "status": 200
    }
}

HTTP Request

POST /api/contract/leasing/{id}/mileage/vehicle

Parameters

Parameter Type Status Description

Delete Mileage Data

Example request:

curl -X Delete "/api/contract/leasing/{leasingId}/customer/{customerId}/mileage/{id}" \
-H "Accept: application/json"

Example response:

{
    "data": {
        "message": "messages.vehicleMileageDeleted",
        "data": null,
        "status_code": 200
    }
}

HTTP Request

Delete /api/contract/leasing/{leasingId}/customer/{customerId}/mileage/{id}

Parameters

Parameter Type Status Description

Add Additional product

HTTP Request

POST /api/leasing/{id}/contract/product

HTTP Request

POST /api/leasing/{id}/offer/product

curl -X POST "/api/leasing/{id}/{typeOfferOrContract}/product" \
-H "Accept: application/json"

Parameters

Parameter Type Status Description
contract_type string private
cost_price_excl_vat_cents integer 800
monthly_total integer 474
payment_excl_tax_vat_cents integer 1000
payment_type_id integer 23
upfront_total integer 50.443
vat_cents integer 0

Example response:

{
    "data": {
        "message": "messages.offerProductAdded",
        "totalExpenses": 6178.1900000000005
    }
}

Add LeasingOfferContract CostProducts

HTTP Request

POST /api/leasing/{id}/contract/cost-product

HTTP Request

POST /api/leasing/{id}/offer/cost-product

curl -X POST "/api/leasing/{id}/{typeOfferOrContract}/cost-product" \
-H "Accept: application/json"

Parameters

Parameter Type Status Description
cost_products array [{"payment_type_id": 23, "payment_excl_tax_vat_cents": 800}]

Example response:

{
    "data": {
        "message": "messages.offerProductAdded"
    }
}

Restore Contract

HTTP Request

POST /api/tasks/contract/leasing/restore-contract/{customerId}/{leasingContractId}

curl -X POST "/api/tasks/contract/leasing/restore-contract/{customerId}/{leasingContractId}" \
-H "Accept: application/json"

Parameters

Parameter Type Status Description

Example response:

{
    "data": {
        "message": "messages.contractRestoredSuccessfully",
        "data": null,
        "status_code": 200
    }
}

Contract To Note

Get Customer Messages Data

Example request:

curl -X GET "/api/contract/leasing/customer/messages/data/{listordatatable}" \
-H "Accept: application/json"

Example response:

{
    "draw": 0,
    "recordsTotal": 2,
    "recordsFiltered": 2,
    "data": [
        {
            "id": 126,
            "leasing_contract_id": 162,
            "customer_id": 26,
            "user_id": 2,
            "message_date": "0000-00-00",
            "text": "Hello",
            "created_at": "2020-12-06T12:48:46.000000Z",
            "updated_at": "2020-12-06T12:48:46.000000Z",
            "customer": {
                "id": 26,
                "company_name": null,
                "customer_private_or_company": "private",
                "first_name": "Sophus",
                "last_name": "Schlosser",
                "email": "sophus@schlosser.dk",
                "street_address": "Test",
                "zip_code": "2121",
                "city": "Test",
                "telephone": "234578977",
                "cpr_number": "2323233434",
                "cvr_number": null,
                "economic_customer_number": 35001,
                "economic_customer_contact_number": null,
                "payment_term_id": 1,
                "bank_registration": 3232,
                "bank_account_number": 9999999999999,
                "pbs_created": null,
                "id_received": null,
                "related_to_id": null,
                "driver_license_file_id": 221,
                "social_security_file_id": 270,
                "created_at": "2016-04-06T15:14:33.000000Z",
                "updated_at": "2018-12-28T15:18:07.000000Z"
            },
            "user": {
                "id": 2,
                "first_name": "Admin",
                "last_name": "admin",
                "email": "admin@nord-leasing.dk",
                "organization_id": 1,
                "profile_picture_path": null,
                "state": true,
                "created_at": null,
                "updated_at": "08-03-2018 23:39:03",
                "last_active_at": null
            }
        }
    ],
    "queries": [
        {
            "query": "select count(*) as aggregate from (select * from `contract_customer_messages` where `leasing_contract_id` = ? order by `contract_customer_messages`.`message_date` asc) count_row_table",
            "bindings": [
                "162"
            ],
            "time": "0.27"
        },

    ],
    "input": {
        "contract_id": 162
    }
}

HTTP Request

GET /api/contract/leasing/customer/messages/data/datatable

Parameters

Parameter Type Status Description
contract_id optional Integer send contract_id to get contract notes
customer_id optional Integer send customer_id to get all customer notes

Add Customer Message

Example request:

curl -X POST "/api/contract/leasing/customer-message/add" \
-H "Accept: application/json"

Example response:

{
    "data": {
        "message": "ContractCustomerMessages have created successfully",
        "data": null,
        "status_code": 200
    }
}

HTTP Request

POST /api/contract/leasing/customer-message/add

Parameters

Parameter Type Status Description
contract_id required Integer
message_text required string
message_date required date
customer_id required Integer

Contract Estimated Monthly Payments Data

Estimated Monthly Payments List

HTTP Request

GET /api/contract/leasing/{id}/estimated-monthly-payments/data/{listOrDataTable}

curl -X "GET /api/contract/leasing/{id}/estimated-monthly-payments/data/{listOrDataTable}" \
-H "Accept: application/json"

Parameters

Parameter Type Status Description

Example response:

{
    "draw": 0,
    "recordsTotal": 4,
    "recordsFiltered": 4,
    "data": [
        {
            "id": 409,
            "leasing_contract_id": 162,
            "estimated_registration_tax_lower_cents": 64900,
            "estimated_monthly_payment_cents": 9402,
            "created_at": "2017-01-12T15:51:22.000000Z",
            "updated_at": "2017-01-12T15:51:22.000000Z"
        }
    ],
    "queries": [
        {
            "query": "select count(*) as aggregate from (select '1' as `row_count` from `estimated_monthly_payments` where `leasing_contract_id` = ?) count_row_table",
            "bindings": [
                "162"
            ],
            "time": "0.47"
        },
        {
            "query": "select * from `estimated_monthly_payments` where `leasing_contract_id` = ?",
            "bindings": [
                "162"
            ],
            "time": "0.35"
        }
    ],
    "input": []
}

Contract Amortization

Create Contract Repayment Transactions

HTTP Request

POST /api/contract/repayment-transactions/{id}

curl -X "POST /api/contract/repayment-transactions/{id}" \
-H "Accept: application/json"

Parameters

Parameter Type Status Description

Example response:

{
    "data": {
        "message": "messages.contractAmortizationMatrixReCreated",
        "status_code": 200
    }
}

Create Contract Amortization Matrix

HTTP Request

POST /api/contract/amortization-matrix/{id}

curl -X "POST /api/contract/amortization-matrix/{id}" \
-H "Accept: application/json"

Parameters

Parameter Type Status Description

Example response:

{
    "data": {
        "message": "messages.contractAmortizationMatrixCreated",
        "status_code": 200
    }
}

List Contract Amortization Matrix Datatable

HTTP Request

GET /api/contract/amortizations/list/{contractId}

Parameters

Parameter Type Status Description
contractId int

Example response:

{
  "draw": 0,
  "recordsTotal": 13,
  "recordsFiltered": 13,
  "data": [
    {
      "opening_value": 175000,
      "interest": 386.33,
      "repayment": 1157.88,
      "ending_value": 173842.12,
      "booked": "Ja",
      "repayment_id": 1478,
      "repayment_cents": 1157.88,
      "opening_value_cents": 175000,
      "leasing_contract_id": 132,
      "interest_of_month": "0.22",
      "interest_days": 8,
      "interest_cents": 386.33,
      "ending_value_cents": 173842.12,
      "funding_cost_cents": 0,
      "profit_cents": 0,
      "days_in_months": 30,
      "created": true,
      "contract_payment_id": 4029,
      "from_date": "04-11-2021",
      "to_date": "04-11-2021",
      "payment_excl_tax_vat": 0
    },
    {
      ... etc
    }
  ],
  "queries": [
    {
      "query": "select count(*) as aggregate from (select '1' as `row_count` from `contract_amortization_matrix` where `leasing_contract_id` = ?) count_row_table",
      "bindings": [
        "132"
      ],
      "time": "1.17"
    },
    {
      "query": "select * from `contract_amortization_matrix` where `leasing_contract_id` = ?",
      "bindings": [
        "132"
      ],
      "time": "0.84"
    }
  ],
  "input": []
}

Contract Tasks

Contract Tasks

Example request:

curl -X GET "http://nord-leasing.dev/tasks/contract/leasing/{customerId}/{leasingContractId}" \
-H "Accept: application/json"

Example response:

{
    "data": {
        "contractTasks": [
            {
                "id": 10,
                "name": "Kreditgodkendelse",
                "type": "contract_task",
                "description": "Tilføj kreditvurdering under ”noter”.",
                "code": "credit_approvement",
                "optional": 0,
                "custom_task": 0,
                "order": 1,
                "create_with_entity": true,
                "due_days": null,
                "due_months": null,
                "due_start": null,
                "created_at": "2017-04-26T17:01:31.000000Z",
                "updated_at": "2017-04-26T17:01:31.000000Z",
                "contract_task": {
                    "id": 1345,
                    "leasing_contract_id": 160,
                    "task_id": 10,
                    "completed": 0,
                    "due_date": null,
                    "assignee_id": null,
                    "created_at": "2017-05-16T21:08:19.000000Z",
                    "updated_at": "2017-05-16T21:08:19.000000Z"
                },
              "contract_task_status": "allowed"
            },
        ]
    }
}

HTTP Request

GET tasks/contract/leasing/{customerId}/{leasingContractId}

Generate Monthly Payments Task

Example request:

curl -X POST "/api/tasks/contract/leasing/{customerId}/{leasingContractId}/monthly-payments" \
-H "Accept: application/json"

Example response:

{
}

HTTP Request

POST /api/tasks/contract/leasing/{customerId}/{leasingContractId}/monthly-payments

Parameters

Parameter Type Status Description
start_date date required in type leasing format:d-m-Y (if there's a termination date this should be up to the termination date + 1 year)
delivery_date date required in type leasing format:d-m-Y (if there's a termination date this should be up to the termination date + 1 year)
final_registration_tax required numeric
full_payments required boolean for leasing types
process_date date required in type loan format:d-m-Y (for loan types, if there's a termination date this should be up to the termination date + 1 year)

Add Task

Example request:

curl -X POST "api/tasks/contract/leasing/{customerId}/{leasingContractId}/store" \
-H "Accept: application/json"

Example response:

{
    "data": {
        "message": "messages.contractTaskAddedSuccessfully",
        "data": null,
        "status_code": 200
    }
}

HTTP Request

POST api/tasks/contract/leasing/{customerId}/{leasingContractId}/store

Parameters

Parameter Type Status Description
task_id required integer from tasks/list EndPoint
due_date required date format:d-m-Y
assignee_id required integer from users/list EndPoint

Edit Task

Example request:

curl -X GET "api/tasks/contract/leasing/{customerId}/{leasingContractId}/edit/{contractTaskId}" \
-H "Accept: application/json"

Example response:

{
    "data": {
        "contractTask": {
            "id": 400,
            "leasing_contract_id": 162,
            "task_id": 10,
            "completed": 0,
            "due_date": null,
            "assignee_id": null,
            "created_at": "2017-05-16T21:08:18.000000Z",
            "updated_at": "2017-05-16T21:08:18.000000Z"
        }
    }
}

HTTP Request

GET api/contract/leasing/{customerId}/{leasingContractId}/edit/{contractTaskId}

Update Task

Example request:

curl -X PUT "api/tasks/contract/leasing/{customerId}/{leasingContractId}/update/{contractTaskId}" \
-H "Accept: application/json"

Example response:

{
    "data": {
        "message": "messages.contractTaskAddedSuccessfully",
        "data": null, "status_code": 200
    }
}

HTTP Request

PUT api/tasks/contract/leasing/{customerId}/{leasingContractId}/update/{contractTaskId}

Parameters

Parameter Type Status Description
task_id required integer from tasks/list EndPoint
due_date required date format:d-m-Y
assignee_id required integer from users/list EndPoint

Contract NotExists TasksList Missing

Example request:

curl -X GET "/api/tasks/contract/leasing/missing/{customerId}/{leasingContractId}" \
-H "Accept: application/json"

Example response:

{
    "data": {
        "tasks": [
            {
                "id": 17,
                "name": "test of task"
           }
        ]
    }   
}

Get Tasks

HTTP Request

GET /api/admin/contracts/tasks-data/{listOrDataTable}

curl -X GET "/api/admin/contracts/tasks-data/datatable" \
-H "Accept: application/json"

Parameters

Parameter Type Status Description
due_date dates
completed boolean
contract_id integer send contract id only if you want to get tasks of the contract

Example response:

{
    "draw": 0,
    "recordsTotal": 591,
    "recordsFiltered": 591,
    "data": [
        {
            "id": 4747,
            "assignee": "Admin admin",
            "assignee_id": 2,
            "completed": 1,
            "created_at": "2018-03-08T12:36:02.000000Z",
            "custom_task": 1,
            "customer_id": 98,
            "due_date": "2018-03-21",
            "leasing_contract_id": 689,
            "task": "Test from today+3md",
            "task_code": "test_from_today+3md",
            "task_id": 17,
            "updated_at": "2018-03-08T23:36:48.000000Z",
            "contract_task_status": "allowed",
            "leasing_contract": {
                "id": 689,
                "user_id": 2,
                "offer_id": 0,
                "state": "pending",
                "contract_type_id": 1,
                "leasing_type_id": 1,
                "generated_monthly_payments": false,
                "vehicle_id": 198,
                "vehicle_plate_number": null,
                "weighted_rate": "0.1500000",
                "down_payment_cents": 0,
                "active_monthly_payment_cents": 5423,
                "inactive_monthly_payment_cents": 0,
                "depreciation_percent": 20,
                "deposit_cents": 0,
                "salvage_value_cents": 160000,
                "expected_registration_tax_cents": 200000,
                "estimated_tax_for_period_cents": 16512,
                "final_registration_tax_cents": 0,
                "vehicle_price_excl_tax_and_vat_cents": 200000,
                "vehicle_price_end_contract_incl_tax_vat_cents": 388000,
                "commission_cents": 0,
                "profit_cents": 0,
                "contract_length_in_months": 12,
                "months_with_license_plates": 12,
                "split_leasing_private_percent": 0,
                "split_leasing_company_percent": 0,
                "first_registration_date": "2012-01-01",
                "sent_for_approval_date": "2018-03-08",
                "approved_denied_date": null,
                "rec_signedcontract_customer": null,
                "final_signature_date": null,
                "delivery_date": null,
                "start_date": null,
                "termination_date": null,
                "expected_payout_date": null,
                "private_tax_cents": 0,
                "vat_deduction_per_month_cents": 0,
                "vat_deduction_down_payment_cents": 0,
                "kilometer_limit": 0,
                "price_per_additional_km_cents": 0,
                "custom_fields": {
                    "contract_custom_field_1": "Default 2",
                    "contract_custom_field_2": null,
                    "contract_custom_field_3": "Herman skal ha Audi"
                },
                "EU_vat": false,
                "created_at": "2018-03-08T12:36:02.000000Z",
                "updated_at": "2018-03-08T12:36:02.000000Z",
                "primary_contract_customers": {
                    "id": 847,
                    "leasing_contract_id": 689,
                    "customer_id": 98,
                    "customer_type": 1,
                    "active": 1,
                    "from_date": "1990-12-31",
                    "to_date": null,
                    "contract_draft_file_id": 260,
                    "contract_signed_file_id": null,
                    "created_at": "2018-03-08T12:36:02.000000Z",
                    "updated_at": "2018-03-08T15:49:47.000000Z"
                },
                "user": {
                    "id": 2,
                    "first_name": "Admin",
                    "last_name": "admin",
                    "email": "admin@nord-leasing.dk",
                    "organization_id": 1,
                    "profile_picture_path": null,
                    "state": true,
                    "created_at": null,
                    "updated_at": "08-03-2018 23:39:03",
                    "last_active_at": null
                }
            }
        },
    ]
}

Update Lock Tasks

HTTP Request

POST /api/admin/contracts/tasks/{contract_task_id}/update-lock

curl -X POST "/api/admin/contracts/{contract_id}/tasks/update-lock" \
-H "Accept: application/json"

Parameters

Parameter Type Status Description
tasks_id array

Example response:

{
    "data": {
        "message": null,
        "data": null,
        "status_code": 200
    }
}

List contract tasks

`GET /api/tasks/contract/leasing/list/{customerId}/{leasingContractId}

Example response:

{
  "draw": 0,
  "recordsTotal": 7,
  "recordsFiltered": 7,
  "data": [
    {
      "id": 400,
      "assignee_id": null,
      "created_at": "16-05-2017",
      "completed": 1,
      "due_date": null,
      "updated_at": "16-05-2017",
      "leasing_contract_id": 162,
      "assignee": null,
      "customer_id": null,
      "custom_task": null,
      "task_id": 10,
      "task_name": null,
      "task_code": null,
      "status": null
    },
    etc ...
  ],
  "queries": [
    {
      "query": "select count(*) as aggregate from (select '1' as `row_count` from `contract_tasks` where `leasing_contract_id` = ? and exists (select * from `tasks` where `contract_tasks`.`task_id` = `tasks`.`id` and `type` = ?)) count_row_table",
      "bindings": [
        "162",
        "contract_task"
      ],
      "time": "4.79"
    },
    {
      "query": "select * from `contract_tasks` where `leasing_contract_id` = ? and exists (select * from `tasks` where `contract_tasks`.`task_id` = `tasks`.`id` and `type` = ?)",
      "bindings": [
        "162",
        "contract_task"
      ],
      "time": "1.08"
    }
  ],
  "input": []
}

Sell Vehicle Task

Example request:

curl -X POST "http://nord-leasing.dev/tasks/contract/leasing/end-contract/{customerId}/{leasingContractId}" \
-H "Accept: application/json"

Example response:

{

}

HTTP Request

POST tasks/contract/leasing/end-contract/{customerId}/{leasingContractId}

Parameters

Parameter Type Status Description
customer_id numeric required exists in customers table
payment_term_id string required
payment_excl_tax_vat numeric required
payment_vat numeric required
transaction_amount numeric required
date date required format:Y-m-d

HTTP Request

GET tasks/contract/leasing/end-contract/{customerId}/{leasingContractId}/product

Get Sell Vehicle Task Product

Example request:

curl -X GET "http://nord-leasing.dev/tasks/contract/leasing/end-contract/{customerId}/{leasingContractId}/product" \
-H "Accept: application/json"

Example response:

{
    data: [
    {
        product => {
            base_product: null
            cost_price_excl_vat_cents: 800
            economic_product_id: 25
            from_to_date_flag: false
            id: 23
            name: "3. nummerplade"
            price_excl_vat_cents: 1000
            vat_id: 1
        },
        calculateVat => true,
        contractValue => 3234344
    }
   ]
}

HTTP Request

GET tasks/contract/leasing/end-contract/{customerId}/{leasingContractId}/product

Mark Task as Complate

Example request:

curl -X POST "api/tasks/contract/leasing/{customerId}/{leasingContractId}/complete" \
-H "Accept: application/json"

Example response:

{
    "data": {
        "message": "messages.contractClosedSuccessfully",
        "data": null, "status_code": 200
    }
}

HTTP Request

POST api/tasks/contract/leasing/{customerId}/{leasingContractId}/complete

Parameters

Parameter Type Status Description
contract_task_code string required credit_approvement

Mark Contract Task As Incomplete

Example request:

curl -X POST "http://nord-leasing.dev/tasks/contract/leasing/{customerId}/{leasingContractId}/incomplete" \
-H "Accept: application/json"

Example response:

{"message":"Kontrakt genåbnet succes","explanation_message":null}

HTTP Request

POST tasks/contract/leasing/{customerId}/{leasingContractId}/incomplete

Parameters

Parameter Type Status Description
contract_task_code string required

Restore Contract

Example request:

curl -X POST "http://nord-leasing.dev/tasks/contract/leasing/restore-contract{customerId}/{leasingContractId}" \
-H "Accept: application/json"

Example response:

{

}

Contract Transactions

Run Monthly Interest On Contract

Example request:

curl -X POST "http://nord-leasing.dev/contract/transactions/run-monthly-interest/{leasingContractId}" \
-H "Accept: application/json"

Example response:

{

}

HTTP Request

POST contract/transactions/run-monthly-interest/{leasingContractId}

Get Contract Transactions

HTTP Request

GET contract/leasing/{leasingContractId}/transactions/data

Example response:

{"draw":1,"recordsTotal":16,"recordsFiltered":16,"data":[{"transaction_type":"Sælg køretøj m/ moms, balance","account_number":"5530","contract_value_transaction":"1","transaction_id":"4319","booked":"J","transaction_set_id":"2411","amount_cents":"-111.323,23","file_record_id":null,"vehicle_id":null,"transaction_date":"02-10-2018","vehicle_brand_string":null,"vehicle_model_string":null,"vehicle_serial_number":null,"vehicle":"","transaction_set":"2411","contract_value":"-111.323,23","download_document":[]},{"transaction_type":"Afdrag Balance","account_number":"5530","contract_value_transaction":"1","transaction_id":"4317","booked":"J","transaction_set_id":"2274","amount_cents":"-10.000,00","file_record_id":"273","vehicle_id":null,"transaction_date":"03-10-2018","vehicle_brand_string":null,"vehicle_model_string":null,"vehicle_serial_number":null,"vehicle":"","transaction_set":"2274","contract_value":"-121.323,23","download_document":["http://nordleasing.localhost:8000/contract/leasing/801/transaction/273/document"]},{"transaction_type":"Afdrag Resultat","account_number":"1030","contract_value_transaction":0,"transaction_id":"4318","booked":"J","transaction_set_id":"2274","amount_cents":"10.000,00","file_record_id":"273","vehicle_id":null,"transaction_date":"03-10-2018","vehicle_brand_string":null,"vehicle_model_string":null,"vehicle_serial_number":null,"vehicle":"","transaction_set":"2274","contract_value":"-121.323,23","download_document":["http://nordleasing.localhost:8000/contract/leasing/801/transaction/273/document"]}],"queries":[{"query":"select count(*) as aggregate from (select `transaction_types`.`name` as `transaction_type`, `transaction_types`.`account_number` as `account_number`, `transaction_types`.`contract_value_transaction`, `contract_transactions`.`id` as `transaction_id`, `contract_transactions`.`booked`, `contract_transactions`.`transaction_set_id` as `transaction_set_id`, `contract_transactions`.`amount_cents` as `amount_cents`, `transaction_set_file_documents`.`file_document_id` as `file_record_id`, `contract_transactions`.`vehicle_id`, `contract_transactions`.`transaction_date`, `vehicles`.`vehicle_brand_string`, `vehicles`.`vehicle_model_string`, `vehicles`.`vehicle_serial_number` from `contract_transactions` inner join `transaction_sets` on `contract_transactions`.`transaction_set_id` = `transaction_sets`.`id` inner join `transaction_types` on `contract_transactions`.`transaction_type_id` = `transaction_types`.`id` left join `vehicles` on `contract_transactions`.`vehicle_id` = `vehicles`.`id` left join `transaction_set_file_documents` on `transaction_set_file_documents`.`transaction_set_id` = `contract_transactions`.`transaction_set_id` where `leasing_contract_id` = ? order by `contract_transactions`.`transaction_date` asc) count_row_table","bindings":["801"],"time":0.68},{"query":"select `transaction_types`.`name` as `transaction_type`, `transaction_types`.`account_number` as `account_number`, `transaction_types`.`contract_value_transaction`, `contract_transactions`.`id` as `transaction_id`, `contract_transactions`.`booked`, `contract_transactions`.`transaction_set_id` as `transaction_set_id`, `contract_transactions`.`amount_cents` as `amount_cents`, `transaction_set_file_documents`.`file_document_id` as `file_record_id`, `contract_transactions`.`vehicle_id`, `contract_transactions`.`transaction_date`, `vehicles`.`vehicle_brand_string`, `vehicles`.`vehicle_model_string`, `vehicles`.`vehicle_serial_number` from `contract_transactions` inner join `transaction_sets` on `contract_transactions`.`transaction_set_id` = `transaction_sets`.`id` inner join `transaction_types` on `contract_transactions`.`transaction_type_id` = `transaction_types`.`id` left join `vehicles` on `contract_transactions`.`vehicle_id` = `vehicles`.`id` left join `transaction_set_file_documents` on `transaction_set_file_documents`.`transaction_set_id` = `contract_transactions`.`transaction_set_id` where `leasing_contract_id` = ? order by `contract_transactions`.`transaction_date` asc limit 20 offset 0","bindings":["801"],"time":0.56},{"query":"select sum(`amount_cents`) as aggregate from `contract_transactions` where exists (select * from `transaction_types` where `contract_transactions`.`transaction_type_id` = `transaction_types`.`id` and `contract_value_transaction` = ?) and `leasing_contract_id` = ? and `transaction_date` <= ?","bindings":[1,"801","2018-10-02"],"time":0.41},{"query":"select * from `transaction_sets` where `transaction_sets`.`id` = ? limit 1","bindings":[2411],"time":0.43},{"query":"select * from `transaction_set_file_documents` where `transaction_set_file_documents`.`transaction_set_id` = ? and `transaction_set_file_documents`.`transaction_set_id` is not null","bindings":[2411],"time":0.34},{"query":"select sum(`amount_cents`) as aggregate from `contract_transactions` where exists (select * from `transaction_types` where `contract_transactions`.`transaction_type_id` = `transaction_types`.`id` and `contract_value_transaction` = ?) and `leasing_contract_id` = ? and `transaction_date` <= ?","bindings":[1,"801","2018-10-02"],"time":0.43},{"query":"select * from `transaction_sets` where `transaction_sets`.`id` = ? limit 1","bindings":[2411],"time":0.45},{"query":"select * from `transaction_set_file_documents` where `transaction_set_file_documents`.`transaction_set_id` = ? and `transaction_set_file_documents`.`transaction_set_id` is not null","bindings":[2411],"time":0.3},{"query":"select sum(`amount_cents`) as aggregate from `contract_transactions` where exists (select * from `transaction_types` where `contract_transactions`.`transaction_type_id` = `transaction_types`.`id` and `contract_value_transaction` = ?) and `leasing_contract_id` = ? and `transaction_date` <= ?","bindings":[1,"801","2018-10-02"],"time":0.46},{"query":"select * from `transaction_sets` where `transaction_sets`.`id` = ? limit 1","bindings":[2412],"time":0.5},{"query":"select * from `transaction_set_file_documents` where `transaction_set_file_documents`.`transaction_set_id` = ? and `transaction_set_file_documents`.`transaction_set_id` is not null","bindings":[2412],"time":0.43},{"query":"select sum(`amount_cents`) as aggregate from `contract_transactions` where exists (select * from `transaction_types` where `contract_transactions`.`transaction_type_id` = `transaction_types`.`id` and `contract_value_transaction` = ?) and `leasing_contract_id` = ? and `transaction_date` <= ?","bindings":[1,"801","2018-10-02"],"time":0.57},{"query":"select * from `transaction_sets` where `transaction_sets`.`id` = ? limit 1","bindings":[2412],"time":0.42},{"query":"select * from `transaction_set_file_documents` where `transaction_set_file_documents`.`transaction_set_id` = ? and `transaction_set_file_documents`.`transaction_set_id` is not null","bindings":[2412],"time":0.3},{"query":"select sum(`amount_cents`) as aggregate from `contract_transactions` where exists (select * from `transaction_types` where `contract_transactions`.`transaction_type_id` = `transaction_types`.`id` and `contract_value_transaction` = ?) and `leasing_contract_id` = ? and `transaction_date` <= ?","bindings":[1,"801","2018-10-03"],"time":0.42},{"query":"select * from `transaction_sets` where `transaction_sets`.`id` = ? limit 1","bindings":[2274],"time":0.42},{"query":"select * from `transaction_set_file_documents` where `transaction_set_file_documents`.`transaction_set_id` = ? and `transaction_set_file_documents`.`transaction_set_id` is not null","bindings":[2274],"time":0.3},{"query":"select sum(`amount_cents`) as aggregate from `contract_transactions` where exists (select * from `transaction_types` where `contract_transactions`.`transaction_type_id` = `transaction_types`.`id` and `contract_value_transaction` = ?) and `leasing_contract_id` = ? and `transaction_date` <= ?","bindings":[1,"801","2018-10-03"],"time":0.43},{"query":"select * from `transaction_sets` where `transaction_sets`.`id` = ? limit 1","bindings":[2274],"time":0.46},{"query":"select * from `transaction_set_file_documents` where `transaction_set_file_documents`.`transaction_set_id` = ? and `transaction_set_file_documents`.`transaction_set_id` is not null","bindings":[2274],"time":0.37},{"query":"select sum(`amount_cents`) as aggregate from `contract_transactions` where exists (select * from `transaction_types` where `contract_transactions`.`transaction_type_id` = `transaction_types`.`id` and `contract_value_transaction` = ?) and `leasing_contract_id` = ? and `transaction_date` <= ?","bindings":[1,"801","2018-10-11"],"time":0.53},{"query":"select * from `transaction_sets` where `transaction_sets`.`id` = ? limit 1","bindings":[2652],"time":0.4},{"query":"select * from `transaction_set_file_documents` where `transaction_set_file_documents`.`transaction_set_id` = ? and `transaction_set_file_documents`.`transaction_set_id` is not null","bindings":[2652],"time":0.28},{"query":"select sum(`amount_cents`) as aggregate from `contract_transactions` where exists (select * from `transaction_types` where `contract_transactions`.`transaction_type_id` = `transaction_types`.`id` and `contract_value_transaction` = ?) and `leasing_contract_id` = ? and `transaction_date` <= ?","bindings":[1,"801","2018-10-11"],"time":0.42},{"query":"select * from `transaction_sets` where `transaction_sets`.`id` = ? limit 1","bindings":[2652],"time":0.4},{"query":"select * from `transaction_set_file_documents` where `transaction_set_file_documents`.`transaction_set_id` = ? and `transaction_set_file_documents`.`transaction_set_id` is not null","bindings":[2652],"time":0.28},{"query":"select sum(`amount_cents`) as aggregate from `contract_transactions` where exists (select * from `transaction_types` where `contract_transactions`.`transaction_type_id` = `transaction_types`.`id` and `contract_value_transaction` = ?) and `leasing_contract_id` = ? and `transaction_date` <= ?","bindings":[1,"801","2018-10-16"],"time":0.47},{"query":"select * from `transaction_sets` where `transaction_sets`.`id` = ? limit 1","bindings":[2273],"time":0.42},{"query":"select * from `transaction_set_file_documents` where `transaction_set_file_documents`.`transaction_set_id` = ? and `transaction_set_file_documents`.`transaction_set_id` is not null","bindings":[2273],"time":0.3},{"query":"select sum(`amount_cents`) as aggregate from `contract_transactions` where exists (select * from `transaction_types` where `contract_transactions`.`transaction_type_id` = `transaction_types`.`id` and `contract_value_transaction` = ?) and `leasing_contract_id` = ? and `transaction_date` <= ?","bindings":[1,"801","2018-10-16"],"time":0.42},{"query":"select * from `transaction_sets` where `transaction_sets`.`id` = ? limit 1","bindings":[2273],"time":0.4},{"query":"select * from `transaction_set_file_documents` where `transaction_set_file_documents`.`transaction_set_id` = ? and `transaction_set_file_documents`.`transaction_set_id` is not null","bindings":[2273],"time":0.29},{"query":"select sum(`amount_cents`) as aggregate from `contract_transactions` where exists (select * from `transaction_types` where `contract_transactions`.`transaction_type_id` = `transaction_types`.`id` and `contract_value_transaction` = ?) and `leasing_contract_id` = ? and `transaction_date` <= ?","bindings":[1,"801","2018-10-17"],"time":0.42},{"query":"select * from `transaction_sets` where `transaction_sets`.`id` = ? limit 1","bindings":[2481],"time":0.45},{"query":"select * from `transaction_set_file_documents` where `transaction_set_file_documents`.`transaction_set_id` = ? and `transaction_set_file_documents`.`transaction_set_id` is not null","bindings":[2481],"time":0.32},{"query":"select sum(`amount_cents`) as aggregate from `contract_transactions` where exists (select * from `transaction_types` where `contract_transactions`.`transaction_type_id` = `transaction_types`.`id` and `contract_value_transaction` = ?) and `leasing_contract_id` = ? and `transaction_date` <= ?","bindings":[1,"801","2018-10-17"],"time":0.43},{"query":"select * from `transaction_sets` where `transaction_sets`.`id` = ? limit 1","bindings":[2480],"time":0.4},{"query":"select * from `transaction_set_file_documents` where `transaction_set_file_documents`.`transaction_set_id` = ? and `transaction_set_file_documents`.`transaction_set_id` is not null","bindings":[2480],"time":0.3},{"query":"select sum(`amount_cents`) as aggregate from `contract_transactions` where exists (select * from `transaction_types` where `contract_transactions`.`transaction_type_id` = `transaction_types`.`id` and `contract_value_transaction` = ?) and `leasing_contract_id` = ? and `transaction_date` <= ?","bindings":[1,"801","2018-10-17"],"time":0.48},{"query":"select * from `transaction_sets` where `transaction_sets`.`id` = ? limit 1","bindings":[2480],"time":0.43},{"query":"select * from `transaction_set_file_documents` where `transaction_set_file_documents`.`transaction_set_id` = ? and `transaction_set_file_documents`.`transaction_set_id` is not null","bindings":[2480],"time":0.32},{"query":"select sum(`amount_cents`) as aggregate from `contract_transactions` where exists (select * from `transaction_types` where `contract_transactions`.`transaction_type_id` = `transaction_types`.`id` and `contract_value_transaction` = ?) and `leasing_contract_id` = ? and `transaction_date` <= ?","bindings":[1,"801","2018-10-17"],"time":0.43},{"query":"select * from `transaction_sets` where `transaction_sets`.`id` = ? limit 1","bindings":[2481],"time":0.52},{"query":"select * from `transaction_set_file_documents` where `transaction_set_file_documents`.`transaction_set_id` = ? and `transaction_set_file_documents`.`transaction_set_id` is not null","bindings":[2481],"time":0.5},{"query":"select sum(`amount_cents`) as aggregate from `contract_transactions` where exists (select * from `transaction_types` where `contract_transactions`.`transaction_type_id` = `transaction_types`.`id` and `contract_value_transaction` = ?) and `leasing_contract_id` = ? and `transaction_date` <= ?","bindings":[1,"801","2018-11-05"],"time":0.7},{"query":"select * from `transaction_sets` where `transaction_sets`.`id` = ? limit 1","bindings":[2797],"time":0.41},{"query":"select * from `transaction_set_file_documents` where `transaction_set_file_documents`.`transaction_set_id` = ? and `transaction_set_file_documents`.`transaction_set_id` is not null","bindings":[2797],"time":0.29},{"query":"select sum(`amount_cents`) as aggregate from `contract_transactions` where exists (select * from `transaction_types` where `contract_transactions`.`transaction_type_id` = `transaction_types`.`id` and `contract_value_transaction` = ?) and `leasing_contract_id` = ? and `transaction_date` <= ?","bindings":[1,"801","2018-11-05"],"time":0.42},{"query":"select * from `transaction_sets` where `transaction_sets`.`id` = ? limit 1","bindings":[2797],"time":0.48},{"query":"select * from `transaction_set_file_documents` where `transaction_set_file_documents`.`transaction_set_id` = ? and `transaction_set_file_documents`.`transaction_set_id` is not null","bindings":[2797],"time":0.4}],"input":{"draw":"1","columns":[{"data":"transaction_date","name":"","searchable":"true","orderable":"false","search":{"value":"","regex":"false"}},{"data":"transaction_set","name":"contract_transactions.transaction_set_id","searchable":"true","orderable":"false","search":{"value":"","regex":"false"}},{"data":"transaction_type","name":"transaction_types.name","searchable":"true","orderable":"false","search":{"value":"","regex":"false"}},{"data":"account_number","name":"","searchable":"true","orderable":"false","search":{"value":"","regex":"false"}},{"data":"amount_cents","name":"","searchable":"true","orderable":"false","search":{"value":"","regex":"false"}},{"data":"contract_value","name":"","searchable":"false","orderable":"false","search":{"value":"","regex":"false"}},{"data":"booked","name":"","searchable":"true","orderable":"false","search":{"value":"","regex":"false"}},{"data":"vehicle","name":"vehicles.vehicle","searchable":"true","orderable":"false","search":{"value":"","regex":"false"}},{"data":"download_document","name":"","searchable":"false","orderable":"false","search":{"value":"","regex":"false"}}],"start":"0","length":"20","search":{"value":"","regex":"false"},"_":"1568805315352"}}

Download Transaction Set Document

HTTP Request

GET contract/leasing/{leasingContractId}/transaction/{fileRecordId}/document

Example response:

Contract Customers

Change Contract Customer

HTTP Request

POST contract/leasing/{leasingContractId}/{customerId}

Example response:

{"data":{"newCustomer":{"id":161,"company_name":null,"customer_private_or_company":"private","first_name":"Alex","last_name":"Test","email":"email@email.fog","street_address":"Adressef","zip_code":"2870","city":"Soborg","telephone":"42925930","cpr_number":"1405922335","cvr_number":null,"economic_customer_number":9703888,"economic_customer_contact_number":null,"payment_term_id":1,"bank_registration":4555,"bank_account_number":0,"pbs_created":null,"id_received":null,"related_to_id":null,"driver_license_file_id":null,"social_security_file_id":null,"created_at":"2018-09-01 15:24:31","updated_at":"2018-11-05 11:26:03"},"leasingContractId":"7"}}

Parameters

Parameter Type Status Description
new_customer_id int required
primary_end_date date required
selected_customer_id int nullable (in split contract use it )

Get Leasing Contract Customers

HTTP Request

GET /api/contract/leasing/customers/105

Example response:

{
    "data": {
        "contractCustomers": [
            {
                "id": 130,
                "leasing_contract_id": 105,
                "customer_id": 26,
                "customer_type": 1,
                "active": 1,
                "from_date": "2016-10-30",
                "to_date": "2017-10-29",
                "contract_draft_file_id": null,
                "contract_signed_file_id": null,
                "created_at": "2016-10-30T20:43:31.000000Z",
                "updated_at": "2016-10-30T20:43:31.000000Z",
                "customer": {
                    "id": 26,
                    "company_name": null,
                    "customer_private_or_company": "private",
                    "first_name": "Amor",
                    "last_name": "Schlosser",
                    "email": "Amor@m.com",
                    "street_address": "S Dress",
                    "zip_code": null,
                    "city": "",
                    "telephone": null,
                    "cpr_number": null,
                    "cvr_number": null,
                    "economic_customer_number": 35001,
                    "economic_customer_contact_number": null,
                    "payment_term_id": 1,
                    "bank_registration": null,
                    "bank_account_number": null,
                    "pbs_created": null,
                    "id_received": null,
                    "related_to_id": null,
                    "driver_license_file_id": 221,
                    "social_security_file_id": 270,
                    "created_at": "2016-04-06T15:14:33.000000Z",
                    "updated_at": "2020-12-08T14:51:42.000000Z"
                }
            }
        ]
    }
}

Parameters

Parameter Type Status Description

Get All Customers of Leasing Contract

HTTP Request

GET /api/contract/leasing/{contractId}/customers

Example response:

{
    "data": [
        {
            "id": 38,
            "assignee_id": null,
            "company_name": "Hansen Is",
            "customer_private_or_company": "company",
            "first_name": "Hans",
            "last_name": "Is34",
            "email": "hansisrw@terhansis.dk",
            "street_address": "Vej 12",
            "zip_code": "2200",
            "city": "København N",
            "telephone": "26272728",
            "cpr_number": null,
            "cvr_number": "77654567",
            "economic_customer_number": 9202988,
            "economic_customer_contact_number": 9,
            "payment_term_id": 3,
            "bank_registration": null,
            "bank_account_number": 4636,
            "pbs_created": null,
            "id_received": null,
            "related_to_id": null,
            "driver_license_file_id": null,
            "social_security_file_id": null,
            "created_at": "01-05-2016",
            "updated_at": "01-07-2021",
            "company_form_id": null
        },
        {
            "id": 30,
            "assignee_id": null,
            "company_name": null,
            "customer_private_or_company": "private",
            "first_name": "Sophus",
            "last_name": "Schlosser",
            "email": "test@test.dk",
            "street_address": "",
            "zip_code": null,
            "city": "",
            "telephone": null,
            "cpr_number": null,
            "cvr_number": null,
            "economic_customer_number": 9703709,
            "economic_customer_contact_number": null,
            "payment_term_id": 3,
            "bank_registration": null,
            "bank_account_number": null,
            "pbs_created": null,
            "id_received": null,
            "related_to_id": null,
            "driver_license_file_id": null,
            "social_security_file_id": null,
            "created_at": "17-04-2016",
            "updated_at": "12-05-2016",
            "company_form_id": null
        }
    ]
}

Parameters

Parameter Type Status Description

Contract Documents

Download Signed Contract PDF

HTTP Request

GET /api/contract/leasing/{customerId}/{leasingContractId}/contract-pdf/download-signed

Example response:

    Download File

Add Contract

HTTP Request

POST /api/contract/leasing/{customerId}/{leasingContractId}/contract-pdf/download-draft

Example response:

     Generate File

Parameters

Parameter Type Status Description

Delete Draft Contract PDF

HTTP Request

DELETE /api/contract/leasing/{customerId}/{leasingContractId}/contract-pdf/delete-draft

Example response:

{
    "data": {
        "message": "messages.contractDraftFileDeleted",
        "data": null,
        "status_code": 200
    }
}

Parameters

Parameter Type Status Description

Delete Signed Contract

HTTP Request

DELETE /api/contract/leasing/156/775/delete-signed

Example response:

{
    "data": {
        "message": "messages.contractSignedFileDeleted",
        "data": null,
        "status_code": 200
    }
}

Parameters

Parameter Type Status Description

Update vehicle in contract

Change Vehicle

HTTP Request

PUT /api/contract/leasing/{leasingContractId}/change-vehicle

Parameters

Parameter Type Status Description
vehicle_id int vehicle,id

Example response:

{
    "data": {"message": "messages.leasingContractUpdateVehicle", "data": null, "status_code": 200}
}

Update vehicle plate number in contract

Update vehicle plate number

HTTP Request

PUT /api/contract/leasing/{leasingContractId}/updateVehiclePlateNumber

Parameters

Parameter Type Status Description
vehicle_plate_number string

Example response:

{
    "data": {"message": "messages.leasingContractUpdateVehicle","data": null, "status_code": 200}
}

Vat Codes

Get Vat Codes

GET vatCodes/list

Example response:

{"data":{"vat":[{"id":1,"name":"I25","code":"I25","created_at":"2019-10-08 13:37:26","updated_at":"2019-10-08 13:37:26"},{"id":2,"name":"IV25","code":"IV25","created_at":"2019-10-08 13:37:26","updated_at":"2019-10-08 13:37:26"},{"id":3,"name":"IY25","code":"IY25","created_at":"2019-10-08 13:37:26","updated_at":"2019-10-08 13:37:26"}]}}

Leasing Transactions

Transaction Types

HTTP Request

GET contract/leasing-transaction/{leasingContractId}

Example response:

{
  "data": {
    "vehicles": [
      {
        "vehicle_brand_string": "BMW",
        "vehicle_model_string": "i8",
        "id": 251,
        "vehicle_serial_number": null
      }
    ],
    "transactionTypes": [
      {
        "name": "Afdrag Balance",
        "id": 9,
        "base_transaction_type": {
          "id": 5,
          "code": "Repayments_balance",
          "transaction_type_id": 9
        }
      },
      {
        "name": "Afdrag på lån, Balance",
        "id": 31,
        "base_transaction_type": {
          "id": 21,
          "code": "repayment_loan_balancesheet",
          "transaction_type_id": 31
        }
      },
      {
        "name": "Afdrag på lån, resultat",
        "id": 32,
        "base_transaction_type": {
          "id": 22,
          "code": "repayment_loan_incomestatement",
          "transaction_type_id": 32
        }
      },
      {
        "name": "Afdrag Resultat",
        "id": 10,
        "base_transaction_type": {
          "id": 4,
          "code": "Repayments_income_statement",
          "transaction_type_id": 10
        }
      },
      {
        "name": "Bank",
        "id": 6,
        "base_transaction_type": null
      },
      {
        "name": "Benzin",
        "id": 15,
        "base_transaction_type": null
      },
      {
        "name": "Debitorer",
        "id": 8,
        "base_transaction_type": null
      },
      {
        "name": "Depositum, Balance",
        "id": 14,
        "base_transaction_type": {
          "id": 8,
          "code": "deposit_balance_sheet",
          "transaction_type_id": 14
        }
      },
      {
        "name": "Depositum, Resultat",
        "id": 13,
        "base_transaction_type": {
          "id": 9,
          "code": "deposit_income_statement",
          "transaction_type_id": 13
        }
      },
      {
        "name": "Flyt køretøj til ny kontrakt, afgang",
        "id": 3,
        "base_transaction_type": {
          "id": 2,
          "code": "move_vehicle_departure",
          "transaction_type_id": 3
        }
      },
      {
        "name": "Flyt køretøj til ny kontrakt, tilgang",
        "id": 7,
        "base_transaction_type": {
          "id": 3,
          "code": "move_vehicle_add",
          "transaction_type_id": 7
        }
      },
      {
        "name": "Forsikringsgodtgørelse",
        "id": 20,
        "base_transaction_type": null
      },
      {
        "name": "hhhh",
        "id": 33,
        "base_transaction_type": null
      },
      {
        "name": "Køb køretøj",
        "id": 1,
        "base_transaction_type": {
          "id": 10,
          "code": "buy_vehicle",
          "transaction_type_id": 1
        }
      },
      {
        "name": "Køb køretøj m/ brugtmoms",
        "id": 18,
        "base_transaction_type": {
          "id": 12,
          "code": "buy_vehicle_used_vat",
          "transaction_type_id": 18
        }
      },
      {
        "name": "Køb køretøj m/ EU moms",
        "id": 17,
        "base_transaction_type": {
          "id": 11,
          "code": "buy_vehicle_EUvat",
          "transaction_type_id": 17
        }
      },
      {
        "name": "Moms",
        "id": 5,
        "base_transaction_type": null
      },
      {
        "name": "Name",
        "id": 27,
        "base_transaction_type": null
      },
      {
        "name": "Nedskrivning af aktiv",
        "id": 21,
        "base_transaction_type": null
      },
      {
        "name": "registreringsafgift",
        "id": 16,
        "base_transaction_type": null
      },
      {
        "name": "Rentetilskrivning, balance",
        "id": 28,
        "base_transaction_type": {
          "id": 19,
          "code": "monthly_interest_balancesheet",
          "transaction_type_id": 28
        }
      },
      {
        "name": "Rentetilskrivning, resultat",
        "id": 29,
        "base_transaction_type": {
          "id": 20,
          "code": "monthly_interest_incomestatement",
          "transaction_type_id": 29
        }
      },
      {
        "name": "Sælg køretøj m/ brugtmoms, balance",
        "id": 19,
        "base_transaction_type": {
          "id": 14,
          "code": "sell_vehicle_with_used_vat_balancesheet",
          "transaction_type_id": 19
        }
      },
      {
        "name": "Sælg køretøj m/ brugtmoms, resultatopgørelse",
        "id": 25,
        "base_transaction_type": {
          "id": 17,
          "code": "sell_vehicle_with_used_vat_incomestatement",
          "transaction_type_id": 25
        }
      },
      {
        "name": "Sælg køretøj m/ EU-moms, balance",
        "id": 23,
        "base_transaction_type": {
          "id": 15,
          "code": "sell_vehicle_with_EUvat_balancesheet",
          "transaction_type_id": 23
        }
      },
      {
        "name": "Sælg køretøj m/ EU-moms, resultatopgørelse",
        "id": 26,
        "base_transaction_type": {
          "id": 18,
          "code": "sell_vehicle_with_EUvat_incomestatement",
          "transaction_type_id": 26
        }
      },
      {
        "name": "Sælg køretøj m/ moms, balance",
        "id": 2,
        "base_transaction_type": {
          "id": 1,
          "code": "sell_vehicle",
          "transaction_type_id": 2
        }
      },
      {
        "name": "Sælg køretøj m/ moms, resultatopgørelse",
        "id": 24,
        "base_transaction_type": {
          "id": 16,
          "code": "sell_vehicle_with_vat_incomestatement",
          "transaction_type_id": 24
        }
      },
      {
        "name": "Tysk moms retur",
        "id": 22,
        "base_transaction_type": null
      },
      {
        "name": "Udbetaling, Balance",
        "id": 4,
        "base_transaction_type": {
          "id": 6,
          "code": "down_payment",
          "transaction_type_id": 4
        }
      },
      {
        "name": "Udbetaling, Balance",
        "id": 12,
        "base_transaction_type": null
      },
      {
        "name": "Udbetaling, Resultat",
        "id": 11,
        "base_transaction_type": {
          "id": 7,
          "code": "downpayment_incomestatement",
          "transaction_type_id": 11
        }
      },
      {
        "name": "Udbetalt lån",
        "id": 30,
        "base_transaction_type": {
          "id": 23,
          "code": "payout_loan",
          "transaction_type_id": 30
        }
      }
    ],
    "defaultTransType": {
      "id": 1,
      "service_type_id": 1,
      "name": "Køb køretøj",
      "account_number": 5530,
      "contract_value_transaction": 1,
      "vehicle_transaction": 1,
      "is_active": 1,
      "created_at": null,
      "updated_at": null,
      "base_transaction_type": {
        "id": 10,
        "code": "buy_vehicle",
        "transaction_type_id": 1
      }
    },
    "leasingContractId": "955"
  }
}

Add Leasing Transaction

HTTP Request

POST /api/contract/leasing-transaction/{leasingContractId}

Example response:

{"data":{"message":"skabelon tilf\u00f8jet med succes","data":null,"status_code":200}}

Parameters

Parameter Type Status Description
transactions[].transaction_type_id required integer
transactions[].amount_cents required numeric
transactions[].transaction_category_id required numeric
transactions[].category_user_supplier_id required in suppliers and customer numeric
transactions[].vehicle_transaction required boolean
transactions[].vehicle_id required if vehicle_transaction true integer
transactions[].vehicle_leasing_contract required integer
transactions[].transaction_contract required if vehicle_leasing_contract true integer distinct
transaction_record_files[] required array of files jpeg,jpg,bmp,png,gif,pdf
transactions[].transaction_date required date
save_as_template required boolean
template_name required if save_as_template 1 boolean
transactions.*.vat_code_used required boolean
transactions.*.vat_code_id required if transactions.*.vat_code_used 1 integer exists in vat_codes

Import CashBook Entries

HTTP Request

POST /api/contract/cashbook-entries/import/{leasingContractId}

Example response:

{"message":"Transaktionerne er oprettet i e-conomic, 2 Filer blev uploadet p\u00e5 e-conomic","explanation_message":null}

Get Deals Contracts Templates

HTTP Request

GET /api/reporting-cloud/templates

Example response:

{
    "data": {
        "dealsContractsTemplates": [
            "Autohauz_Leasingkontrakt_Erhverv_2017.1.docx.docx",
            "Autohauz_Leasingkontrakt_Privat_2017.1.docx.docx",
        ]
    }
}

Settings Transaction Templates

Transaction Templates List

HTTP Request

GET /api/contract/leasing-transaction/templates/getAll/datatable

Example response:

{
    "draw": 0,
    "recordsTotal": 6,
    "recordsFiltered": 6,
    "data": [
        {
            "id": 1,
            "name": "Køb Køretøj",
            "code": "buy_vehicle",
            "is_system_field": 1,
            "created_at": "2019-09-12T13:10:48.000000Z",
            "updated_at": "2019-09-12T13:10:48.000000Z",
            "transaction_types_templates": [
                {
                    "id": 1,
                    "transaction_type_id": 1,
                    "template_id": 1,
                    "created_at": "2019-09-12T13:10:48.000000Z",
                    "updated_at": "2019-09-12T13:10:48.000000Z",
                    "transaction_type": {
                        "id": 1,
                        "service_type_id": 1,
                        "name": "Køb køretøj",
                        "account_number": 5530,
                        "contract_value_transaction": true,
                        "vehicle_transaction": true,
                        "is_active": true,
                        "vat_required": false,
                        "vat_code_id": null,
                        "created_at": null,
                        "updated_at": "2019-11-05T10:26:24.000000Z",
                        "move_vehicle_transaction": false
                    }
                }
            ]
        },
    ],
    "queries": [
        {
            "query": "select count(*) as aggregate from (select '1' as `row_count` from `transaction_templates`) count_row_table",
            "bindings": [],
            "time": "0.35"
        },
    ],
    "input": []
}

Transaction Templates Details

HTTP Request

GET /api/contract/leasing-transaction/templates/getDetails

Example response:

{
    "data": {
        "id": 3,
        "name": "Flyt Køretøj",
        "code": "move_vehicle",
        "is_system_field": 1,
        "created_at": "2019-09-12T13:10:48.000000Z",
        "updated_at": "2019-09-12T13:10:48.000000Z",
        "transaction_types_templates": [
            {
                "id": 5,
                "transaction_type_id": 3,
                "template_id": 3,
                "created_at": "2019-09-12T13:10:48.000000Z",
                "updated_at": "2019-09-12T13:10:48.000000Z",
                "transaction_type": {
                    "id": 3,
                    "service_type_id": 1,
                    "name": "Flyt køretøj til ny kontrakt, afgang",
                    "account_number": 5530,
                    "contract_value_transaction": true,
                    "vehicle_transaction": true,
                    "is_active": true,
                    "vat_required": false,
                    "vat_code_id": 0,
                    "created_at": null,
                    "updated_at": null,
                    "move_vehicle_transaction": true
                }
            },
            {
                "id": 6,
                "transaction_type_id": 7,
                "template_id": 3,
                "created_at": "2019-09-12T13:10:48.000000Z",
                "updated_at": "2019-09-12T13:10:48.000000Z",
                "transaction_type": {
                    "id": 7,
                    "service_type_id": 1,
                    "name": "Flyt køretøj til ny kontrakt, tilgang",
                    "account_number": 5530,
                    "contract_value_transaction": true,
                    "vehicle_transaction": true,
                    "is_active": true,
                    "vat_required": false,
                    "vat_code_id": 0,
                    "created_at": null,
                    "updated_at": null,
                    "move_vehicle_transaction": true
                }
            }
        ]
    }
}

Parameters

Parameter Type Status Description
id integer required when code is not present
code text required when id is not present

Add Transaction Template

HTTP Request

POST /api/contract/leasing-transaction/templates

Example response:

{"data":{"message":"TransactionTemplate have created successfully","data":null,"status_code":200}}

Parameters

Parameter Type Status Description
name required string
transactions[].transaction_type_id required integer exists in transaction_types id

Update Transaction Template

HTTP Request

PUT /api/contract/leasing-transaction/templates/{id}

Example response:

{
    "data": {
        "message": "TransactionTemplate updated successfully",
        "data": {
            "id": 27,
            "name": "new naaame",
            "code": "template_27",
            "is_system_field": 0,
            "created_at": "2020-11-30T10:06:07.000000Z",
            "updated_at": "2020-11-30T11:06:58.000000Z",
            "transaction_types_templates": [
                {
                    "id": 47,
                    "transaction_type_id": 4,
                    "template_id": 27,
                    "created_at": "2020-11-30T11:06:58.000000Z",
                    "updated_at": "2020-11-30T11:06:58.000000Z"
                }
            ]
        },
        "status_code": 200
    }
}

Parameters

Parameter Type Status Description
id required string exists in transaction_templates id
name required string
transactions[].transaction_type_id required if the template is NOT a system template (is_system_field=0) integer exists in transaction_types id

Delete Transaction Template

HTTP Request

DELETE /api/contract/leasing-transaction/templates/{id}

Example response:

{
    "data": {
        "message": "TransactionTemplate deleted successfully",
        "data": null,
        "status_code": 200
    }
}

Transaction types List

HTTP Request

GET /api/transaction/types-list

Example response:

{
    "data": [
        {
            "transactionTypes": [
                {
                    "name": "Afdrag Balance",
                    "id": 9,
                    "move_vehicle_transaction": false
                },
            ]
        }
    ]
}

Module Setting

List Modules fields

HTTP Request

GET /api/module-setting/list-modules-fields/datatable

Parameters

Parameter Type Status Description
module_id integer

Example response:

{
    "draw": 0,
    "recordsTotal": 32,
    "recordsFiltered": 32,
    "data": [
        {
            "id": 52,
            "key": "vehicle_type",
            "display_name": "Type",
            "type": "input",
            "is_required": 0,
            "is_system_field": 0,
            "is_displayed": 0,
            "field_module_id": 3,
            "created_at": "2019-08-25T17:59:44.000000Z",
            "updated_at": "2020-11-29T16:02:38.000000Z",
            "field_module": {
                "id": 3,
                "code": "create_update_vehicle",
                "name": "Opret/Rediger Køretøj",
                "created_at": "2019-08-25T17:59:44.000000Z",
                "updated_at": "2019-08-25T17:59:44.000000Z"
            }
        }
    ]
}

Show Module Details

HTTP Request

GET /api/module-setting/{id}

Example response:

{
    "data": {
        "id": 52,
        "key": "vehicle_type",
        "display_name": "Type",
        "type": "input",
        "is_required": 0,
        "is_system_field": 0,
        "is_displayed": 0,
        "field_module_id": 3,
        "created_at": "2019-08-25T17:59:44.000000Z",
        "updated_at": "2020-11-29T16:02:38.000000Z"
    }
}

List Modules

HTTP Request

GET /api/module-setting/list-modules

Example response:

{
    "data": [
        {
            "id": 1,
            "code": "request_contract",
            "name": "Forespørg på kontrakt",
            "created_at": "2019-01-22T18:45:28.000000Z",
            "updated_at": "2019-01-22T18:45:28.000000Z"
        }
    ]
}

Update Field Module

HTTP Request

PUT /api/module-setting/52

Parameters

Parameter Type Status Description
is_required required boolean
is_displayed required boolean

Example response:

{
    "data": {
        "message": "ModuleInputFieldSetting updated successfully",
        "data": {
            "id": 52,
            "key": "vehicle_type",
            "display_name": "Type",
            "type": "input",
            "is_required": 0,
            "is_system_field": 0,
            "is_displayed": 0,
            "field_module_id": 3,
            "created_at": "2019-08-25T17:59:44.000000Z",
            "updated_at": "2020-11-29T16:02:38.000000Z"
        },
        "status_code": 200
    }
}

Get Fields By Module

HTTP Request

GET /api/module-setting/get-fields-by-module/{moduleCode}

Parameters

Parameter Type Status Description

Example response:

{
    "data": [
        {
            "id": 29,
            "key": "customer_first_name",
            "display_name": "Fornavn",
            "type": "input",
            "is_required": 1,
            "is_system_field": 1,
            "is_displayed": 1,
            "field_module_id": 2,
            "created_at": "2019-08-25T17:59:25.000000Z",
            "updated_at": "2019-08-25T17:59:25.000000Z"
        },
    ]
}

Settings Custom Fields

List Custom Fields

Example request:

curl -X GET "/api/custom-fields/data/datatable" \
-H "Accept: application/json"

HTTP Request

Get /api/custom-fields/data/{listOrDataTable}

Example response:

{
    "draw": 0,
    "recordsTotal": 16,
    "recordsFiltered": 16,
    "data": [
        {
            "id": 1,
            "name": "Sekundær bruger",
            "key": "contract_custom_field_1",
            "default_value": "",
            "created_at": "2018-02-13T10:06:38.000000Z",
            "updated_at": "2018-09-12T12:13:49.000000Z"
        },
    ],
    "queries": [
        {
            "query": "select count(*) as aggregate from (select '1' as `row_count` from `contract_custom_fields`) count_row_table",
            "bindings": [],
            "time": "0.65"
        },
    ],
    "input": []
}

Create Custom Fields

Example request:

curl -X POST "/api/custom-fields" \
-H "Accept: application/json"

Example response:

{
    "data": {
        "message": "ContractCustomField have created successfully",
        "data": null,
        "status_code": 200
    }
}

HTTP Request

POST /api/custom-fields

Parameters

Parameter Type Status Description
name string required
default_value string nullable

Update custom fields

Example request:

curl -X PUT "/api/custom-fields/16" \
-H "Accept: application/json"

Example response:

{
    "data": {
        "message": "ContractCustomField updated successfully",
        "data": {
            "id": 16,
            "name": "hello 2",
            "key": "contract_custom_field_16",
            "default_value": 123,
            "created_at": "2020-11-30T12:10:59.000000Z",
            "updated_at": "2020-11-30T12:23:28.000000Z"
        },
        "status_code": 200
    }
}

HTTP Request

PUT /api/custom-fields/{id}

Show Custom Fields

Example request:

curl -X GET "/api/custom-fields/{id}" \
-H "Accept: application/json"

Example response:

{
    "data": {
        "id": 16,
        "name": "hello 2",
        "key": "contract_custom_field_16",
        "default_value": "123",
        "created_at": "2020-11-30T12:10:59.000000Z",
        "updated_at": "2020-11-30T12:23:28.000000Z"
    }
}

HTTP Request

GET custom-fields/{id}

Parameters

Parameter Type Status Description
name string required
default_value +9* nullable-

Payments

Get Payments

HTTP Request

GET /api/admin/contracts/leasing/payments/data/{listOrDataTable}

Parameters

curl -X GET "/api/admin/contracts/leasing/payments/data/datatable" \
-H "Accept: application/json"
Parameter Type Status Description
contract_payment_date date
contract_payment_after_date date
hide_booked_payments boolean
booked boolean 1 for booked 0 for not booked , dont send it for all
contract_type_id number
contract_id integer send contract id only if you want to get payments of the contract

Example response:

{
    "draw": 0,
    "recordsTotal": 60,
    "recordsFiltered": 60,
    "data": [
        {
            "id": 16522,
            "leasing_contract_id": 1171,
            "customer_id": 156,
            "payment_type_id": 1,
            "payment_term_id": null,
            "payment_incl_tax_vat_cents": 1467,
            "payment_excl_tax_vat_cents": 1173.6,
            "vat_cents": 293.4,
            "vat_deduction_cents": 293.4,
            "date": "2020-12-01",
            "text": "Leasingydelse 01-12-2020 til 31-12-2020",
            "booked": "",
            "booking_date": "0000-00-00",
            "economic_invoice_draft_id": null,
            "economic_invoice_booked_id": null,
            "from_date": "2020-12-01",
            "to_date": "2020-12-31",
            "created_at": "2020-02-03T17:02:08.000000Z",
            "updated_at": "2020-02-03T17:02:08.000000Z",
            "customer": {
                "id": 156,
                "company_name": null,
                "customer_private_or_company": "private",
                "first_name": "1st Name",
                "last_name": "2nd Name",
                "email": "email@email.fo",
                "street_address": "Sverigesvej 8",
                "zip_code": "6600",
                "city": "Vejen",
                "telephone": "70121416",
                "cpr_number": "8888889293",
                "cvr_number": null,
                "economic_customer_number": 9703868,
                "economic_customer_contact_number": null,
                "payment_term_id": 2,
                "bank_registration": 6666,
                "bank_account_number": 2040120,
                "pbs_created": null,
                "id_received": null,
                "related_to_id": null,
                "driver_license_file_id": null,
                "social_security_file_id": null,
                "created_at": "2018-02-12T10:56:14.000000Z",
                "updated_at": "2019-01-31T17:34:36.000000Z"
            },
            "leasing_contract": {
                "id": 1171,
                "user_id": 2,
                "offer_id": 595,
                "state": "delivered",
                "contract_type_id": 1,
                "leasing_type_id": 1,
                "generated_monthly_payments": true,
                "vehicle_id": 318,
                "vehicle_plate_number": null,
                "weighted_rate": "-0.0100000",
                "down_payment_cents": 0,
                "active_monthly_payment_cents": 1467,
                "inactive_monthly_payment_cents": 0,
                "depreciation_percent": 20,
                "deposit_cents": 0,
                "salvage_value_cents": 160000,
                "expected_registration_tax_cents": 200000,
                "estimated_tax_for_period_cents": 15760,
                "final_registration_tax_cents": 200000,
                "vehicle_price_excl_tax_and_vat_cents": 200000,
                "vehicle_price_end_contract_incl_tax_vat_cents": 388000,
                "commission_cents": 0,
                "profit_cents": 0,
                "contract_length_in_months": 12,
                "months_with_license_plates": 12,
                "split_leasing_private_percent": 0,
                "split_leasing_company_percent": 0,
                "first_registration_date": "2012-01-01",
                "sent_for_approval_date": "2020-02-03",
                "approved_denied_date": null,
                "rec_signedcontract_customer": null,
                "final_signature_date": null,
                "delivery_date": "2020-02-03",
                "start_date": "2020-02-03",
                "termination_date": "2021-02-02",
                "expected_payout_date": null,
                "private_tax_cents": 0,
                "vat_deduction_per_month_cents": 0,
                "vat_deduction_down_payment_cents": 0,
                "kilometer_limit": 25000,
                "price_per_additional_km_cents": 0,
                "custom_fields": {
                    "contract_custom_field_1": "",
                    "contract_custom_field_2": null,
                    "contract_custom_field_3": "",
                    "contract_custom_field_4": null,
                    "contract_custom_field_5": null,
                    "contract_custom_field_6": null,
                    "contract_custom_field_7": null,
                    "contract_custom_field_8": null,
                    "contract_custom_field_9": null,
                    "contract_custom_field_10": null,
                    "contract_custom_field_11": null,
                    "contract_custom_field_12": null,
                    "contract_custom_field_13": null,
                    "contract_custom_field_14": null,
                    "contract_custom_field_15": "23123"
                },
                "EU_vat": false,
                "created_at": "2020-02-03T17:00:32.000000Z",
                "updated_at": "2020-02-03T17:02:08.000000Z",
                "primary_contract_customers": {
                    "id": 1407,
                    "leasing_contract_id": 1171,
                    "customer_id": 156,
                    "customer_type": 1,
                    "active": 1,
                    "from_date": "2020-02-03",
                    "to_date": "2021-02-02",
                    "contract_draft_file_id": null,
                    "contract_signed_file_id": null,
                    "created_at": "2020-02-03T17:00:32.000000Z",
                    "updated_at": "2020-02-03T17:02:08.000000Z"
                }
            },
            "payment_type": {
                "id": 1,
                "name": "Leasingydelse",
                "economic_product_id": 1,
                "vat_id": 2,
                "from_to_date_flag": true,
                "for_sell": true,
                "for_buy": false,
                "price_excl_vat_cents": 0,
                "cost_price_excl_vat_cents": 0
            }
        },
    ]
}

Book Contracts Payments By Date - Create Invoices

HTTP Request

POST /api/admin/contracts/leasing/payments/bookByDate

Parameters

curl -X POST "/api/admin/contracts/leasing/payments/bookByDate" \
-H "Accept: application/json"
Parameter Type Status Description
contract_payment_book_date date
due_date date
payment_term_number integer

Example response:

{
    "success": true,
    "message": "messages.bookLeasingContractPaymentsByDateRequestReceived"
}

Book Contracts Payments By Ids Post and send selected

HTTP Request

POST /api/admin/contracts/leasing/payments/bookByIds

Parameters

curl -X POST "/api/admin/contracts/leasing/payments/bookByIds" \
-H "Accept: application/json"
Parameter Type Status Description
contract_payment_ids array array of ids
due_date date
payment_term_number integer

Example response:

{
    "success": true,
    "message": "messages.bookLeasingContractPaymentsByIdsRequestReceived"
}

Delete Payment

HTTP Request

Delete /api/admin/contracts/leasing/1160/payments/16307

Parameters

curl -X Delete "/api/admin/contracts/leasing/1160/payments/16307" \
-H "Accept: application/json"
Parameter Type Status Description

Example response:

{
    "data": {
        "message": "messages.leasingContractPaymentDeleted",
        "hasCashFlowGenerated": true
    }
}

Add Payment

HTTP Request

POST /api/contract/leasing/{id}/payment/add

Parameters

curl -X POST "/api/contract/leasing/{id}/payment/add" \
-H "Accept: application/json"
Parameter Type Status Description
date date required
from_date date
from_to_date_flag boal
payment_excl_tax_vat_cents integer required
payment_type_id integer required
to_date date
vat_cents integer
customer_id integer required

Example response:

{
    "data": {"message": "messages.leasingContractPaymentAdded"}
}

Get Leasing Contract Change Customer

HTTP Request

GET /api/contract/leasing/{leasingContractId}/{customerId}

Parameter Type Status Description

Example response:

{
    "data": {
        "historyOfCustomerChanges": [],
        "currentPrimaryCustomer": {
            "id": 1479,
            "leasing_contract_id": 1232,
            "customer_id": 156,
            "customer_type": 1,
            "active": 1,
            "from_date": "1990-12-31",
            "to_date": null,
            "contract_draft_file_id": null,
            "contract_signed_file_id": null,
            "created_at": "2020-01-29T11:31:44.000000Z",
            "updated_at": "2020-01-29T12:25:37.000000Z",
            "customer": {
                "id": 156,
                "company_name": null,
                "customer_private_or_company": "private",
                "first_name": "1st Name",
                "last_name": "2nd Name",
                "email": "email@email.fo",
                "street_address": "Sverigesvej 8",
                "zip_code": "6600",
                "city": "Vejen",
                "telephone": "70121416",
                "cpr_number": "8888889293",
                "cvr_number": null,
                "economic_customer_number": 9703868,
                "economic_customer_contact_number": null,
                "payment_term_id": 2,
                "bank_registration": 6666,
                "bank_account_number": 2040120,
                "pbs_created": null,
                "id_received": null,
                "related_to_id": null,
                "driver_license_file_id": null,
                "social_security_file_id": null,
                "created_at": "2018-02-12T10:56:14.000000Z",
                "updated_at": "2019-01-31T17:34:36.000000Z"
            }
        },
        "currentSecondaryCustomer": null,
        "currentGuarantorCustomer": null,
        "leasingContractId": "1232"
    }
}

Change Leasing Contract Customer

HTTP Request

POST /api/contract/leasing/{leasingContractId}/{customerId}

Parameter Type Status Description
new_customer_id required integer id
primary_end_date required date Y-m-d

Example response:

{
    "data": {
        "newCustomer": {
            "id": 26,
            "company_name": null,
            "customer_private_or_company": "private",
            "first_name": "Sophus",
            "last_name": "Schlosser",
            "email": "sophus@schløsser.dk",
            "street_address": "Test",
            "zip_code": "2121",
            "city": "Test",
            "telephone": "234578977",
            "cpr_number": "2323233434",
            "cvr_number": null,
            "economic_customer_number": 35001,
            "economic_customer_contact_number": null,
            "payment_term_id": 1,
            "bank_registration": 3232,
            "bank_account_number": 9999999999999,
            "pbs_created": null,
            "id_received": null,
            "related_to_id": null,
            "driver_license_file_id": 221,
            "social_security_file_id": 270,
            "created_at": "2016-04-06T15:14:33.000000Z",
            "updated_at": "2018-12-28T15:18:07.000000Z"
        },
        "leasingContractId": "1232"
    }
}

Change Leasing Contract Guarantor Customer

HTTP Request

POST /api/contract/leasing/{leasingContractId}/customer/guarantor

Parameter Type Status Description
guarantor_customer_id required integer id
guarantor_start_date required date Y-m-d
guarantor_start_date required integer id
new_guarantor_customer_id required date Y-m-d

Example response:

{
    "data": {
        "message": null,
        "data": null,
        "status_code": 200
    }
}

Change Leasing Contract Secondary Customer

HTTP Request

POST /api/contract/leasing/{leasingContractId}/customer/secondary

Parameter Type Status Description
secondary_customer_id required integer id
secondary_start_date required date Y-m-d
new_secondary_customer_id required integer id
new_secondary_end_date required date Y-m-d

Example response:

{
    "data": {
        "message": null,
        "data": null,
        "status_code": 200
    }
}

Transactions

Get Transactions

HTTP Request

GET /api/admin/contracts/leasing/transactions/data/{listOrDataTable}

curl -X GET "/api/admin/contracts/leasing/transactions/data/datatable" \
-H "Accept: application/json"

Parameters

Parameter Type Status Description
contract_transaction_date date
contract_transaction_after_date date
hide_booked_transactions boolean
contract_id integer send contract id only if you want to get transactions of the contract
category_id integer (id) to filter by category (by Leverandør, Kunde, finansiel, and 0for all )

Example response:

{
    "draw": 0,
    "recordsTotal": 2,
    "recordsFiltered": 2,
    "data": [
        {
            "account_number": 5530,
            "amount_cents": 0,
            "booked": "N",
            "contract_id": 784,
            "contract_value": "0,00",
            "contract_value_transaction": true,
            "download_document": [],
            "file_record_id": "",
            "transaction_date": "2030-09-20",
            "id": 4327,
            "transaction_set": 2415,
            "transaction_set_id": 2415,
            "transaction_type": "Sælg køretøj m/ moms, balance",
            "vat_code": "",
            "vehicle": "BMW-I3-Alex1459200934567",
            "vehicle_id": 5,
            "transactionSet": {
                "id": 2415,
                "service_type_id": 1,
                "voucher_number": null,
                "created_at": "2018-10-21T17:09:40.000000Z",
                "updated_at": "2018-10-21T17:09:40.000000Z"
            },
            "leasingContract": {
                "id": 784,
                "user_id": 2,
                "offer_id": 0,
                "state": "delivered",
                "contract_type_id": 3,
                "leasing_type_id": 1,
                "generated_monthly_payments": true,
                "vehicle_id": 229,
                "vehicle_plate_number": null,
                "weighted_rate": "0.1500000",
                "down_payment_cents": 0,
                "active_monthly_payment_cents": 4447,
                "inactive_monthly_payment_cents": 0,
                "depreciation_percent": 20,
                "deposit_cents": 0,
                "salvage_value_cents": 160000,
                "expected_registration_tax_cents": 500000,
                "estimated_tax_for_period_cents": 41750,
                "final_registration_tax_cents": 500000,
                "vehicle_price_excl_tax_and_vat_cents": 200000,
                "vehicle_price_end_contract_incl_tax_vat_cents": 670000,
                "commission_cents": 0,
                "profit_cents": 0,
                "contract_length_in_months": 12,
                "months_with_license_plates": 12,
                "split_leasing_private_percent": 50,
                "split_leasing_company_percent": 50,
                "first_registration_date": "2012-01-01",
                "sent_for_approval_date": "2018-10-01",
                "approved_denied_date": null,
                "rec_signedcontract_customer": null,
                "final_signature_date": null,
                "delivery_date": "2018-08-15",
                "start_date": "2018-08-15",
                "termination_date": "2019-08-14",
                "expected_payout_date": null,
                "private_tax_cents": 0,
                "vat_deduction_per_month_cents": 444.7,
                "vat_deduction_down_payment_cents": 9663.6,
                "kilometer_limit": 0,
                "price_per_additional_km_cents": 0,
                "custom_fields": {
                    "contract_custom_field_1": "",
                    "contract_custom_field_2": null,
                    "contract_custom_field_3": "",
                    "contract_custom_field_4": null,
                    "contract_custom_field_5": null,
                    "contract_custom_field_6": null,
                    "contract_custom_field_7": null,
                    "contract_custom_field_8": null,
                    "contract_custom_field_9": null,
                    "contract_custom_field_10": null,
                    "contract_custom_field_11": null,
                    "contract_custom_field_12": null,
                    "contract_custom_field_13": null,
                    "contract_custom_field_14": null
                },
                "EU_vat": false,
                "created_at": "2018-10-01T12:14:59.000000Z",
                "updated_at": "2018-10-01T12:19:23.000000Z"
            },
            "transactionType": {
                "id": 2,
                "service_type_id": 1,
                "name": "Sælg køretøj m/ moms, balance",
                "account_number": 5530,
                "contract_value_transaction": true,
                "vehicle_transaction": true,
                "is_active": true,
                "vat_required": false,
                "vat_code_id": 0,
                "created_at": null,
                "updated_at": "2018-10-17T12:20:57.000000Z",
                "move_vehicle_transaction": false
            },
            "transactionDocumentFile": null,
            "vatCode": null,
            "vehicleObj": {
                "id": 5,
                "vehicle_type_id": 2,
                "vehicle_type_string": "Personbil",
                "vehicle_brand_id": 145,
                "vehicle_brand_string": "BMW",
                "vehicle_model_string": "I3",
                "vehicle_serial_number": "Alex1459200934567",
                "vehicle_used_vat": true,
                "vehicle_date_of_first_registration": "2012-12-12",
                "fuel": "Benzin",
                "transmission": "Manuelt",
                "engine": "5,0",
                "car_type": "",
                "version": "",
                "ekstra": "",
                "description": null,
                "gears": null,
                "wheel_size": null,
                "wheel_type": null,
                "interior_colour": null,
                "interior_type": null,
                "sunroof": false,
                "show_on_front_page": false,
                "main_image_file_id": null,
                "state": 2,
                "color": null,
                "vehicle_condition_id": 1,
                "euro_ncap": true,
                "abs": false,
                "customs_inpsections": false,
                "price_as_new_cents": 0,
                "km_per_litre": 100000,
                "num_airbags": 2,
                "num_seat_belts": 3,
                "num_integrated_children_seats": 3,
                "created_at": "2016-04-11T08:51:00.000000Z",
                "updated_at": "2019-11-11T13:25:24.000000Z",
                "main_image_file_url": "",
                "date_of_first_registration": "12-12-2012"
            }
        },
    ]
}

Show Transactions

HTTP Request

GET /api/contract/transactions/18471

curl -X GET "/api/contract/transactions/18471" \
-H "Accept: application/json"

Parameters

Parameter Type Status Description

Example response:

{
    "data": {
        "transaction_set": {
            "id": 10834,
            "service_type_id": 10,
            "voucher_number": null,
            "created_at": "23-05-2022",
            "updated_at": "23-05-2022"
        },
        "document_files": [
            {
                "id": 1,
                "transaction_set_id": 10834,
                "file_document_id": 22,
                "leasing_contract_id": 598,
                "created_at": "23-09-2019",
                "updated_at": "22-12-2021"
            }
        ],
        "transactions": [
            {
                "id": 18480,
                "leasing_contract_id": 2083,
                "transaction_set_id": 10834,
                "transaction_category_id": 492,
                "category_user_supplier_id": 0,
                "cash_book_entry_id": null,
                "transaction_type_id": 32,
                "transaction_date": "31-12-2022",
                "amount_cents": 43012.47,
                "booked": false,
                "vehicle_id": null,
                "repayment_id": null,
                "contract_payment_id": 22816,
                "vat_code_id": null,
                "created_at": "23-05-2022",
                "updated_at": "23-05-2022",
                "transaction_type": {
                    "id": 32,
                    "service_type_id": 9,
                    "name": "Afdrag på lån, resultat",
                    "account_number": 1130,
                    "contract_value_transaction": false,
                    "vehicle_transaction": false,
                    "is_active": true,
                    "vat_required": false,
                    "vat_code_id": 0,
                    "created_at": "19-11-2018",
                    "updated_at": "03-03-2021"
                },
                "vehicle": null,
                "leasing_contract": {
                    "id": 2083,
                    "user_id": 2,
                    "offer_id": 0,
                    "state": "closed",
                    "contract_type_id": 1,
                    "leasing_type_id": 7,
                    "generated_monthly_payments": false,
                    "vehicle_id": 257,
                    "vehicle_plate_number": null,
                    "weighted_rate": "0.0700002",
                    "down_payment_cents": 0,
                    "active_monthly_payment_cents": 43012.47,
                    "inactive_monthly_payment_cents": 0,
                    "depreciation_percent": 0,
                    "deposit_cents": 0,
                    "salvage_value_cents": 0,
                    "expected_registration_tax_cents": 0,
                    "estimated_tax_for_period_cents": 0,
                    "final_registration_tax_cents": 0,
                    "vehicle_price_excl_tax_and_vat_cents": 500000,
                    "vehicle_price_end_contract_incl_tax_vat_cents": 0,
                    "commission_cents": 0,
                    "profit_cents": 0,
                    "contract_length_in_months": 12,
                    "months_with_license_plates": 12,
                    "split_leasing_private_percent": 0,
                    "split_leasing_company_percent": 0,
                    "first_registration_date": "31-12-1990",
                    "sent_for_approval_date": null,
                    "approved_denied_date": "23-02-2022",
                    "rec_signedcontract_customer": null,
                    "final_signature_date": null,
                    "delivery_date": "23-02-2022",
                    "start_date": "23-02-2022",
                    "termination_date": "22-02-2023",
                    "expected_payout_date": "23-02-2022",
                    "private_tax_cents": 0,
                    "vat_deduction_per_month_cents": 0,
                    "vat_deduction_down_payment_cents": 0,
                    "kilometer_limit": 0,
                    "price_per_additional_km_cents": 0,
                    "custom_fields": {
                        "contract_custom_field_1": "test Sekundærfgjfj",
                        "contract_custom_field_2": "test Kørekort nr.hfhg",
                        "contract_custom_field_3": "test Leasingperiode fra",
                        "contract_custom_field_4": "Test Leasingperiode til",
                        "contract_custom_field_5": "test Teknisk garatiforsikring andtal måneder",
                        "contract_custom_field_6": "test Selskab Garantiforsikring",
                        "contract_custom_field_7": "test Præmie garantiforsikring",
                        "contract_custom_field_8": "test Service i henhold til fabrikkens anvisninger",
                        "contract_custom_field_9": "test Forsikringsselskab",
                        "contract_custom_field_10": "test Selvrisiko",
                        "contract_custom_field_11": "test Køretøjets stand og beskaffenhed",
                        "contract_custom_field_12": "test Ekstraudstyr",
                        "contract_custom_field_13": "test Anvisning efter endt leasingperiodee",
                        "contract_custom_field_14": "test Antal kørte kilometer indeholdt i aftalen",
                        "contract_custom_field_15": "23123",
                        "contract_custom_field_16": "23we",
                        "contract_custom_field_17": "sdf33",
                        "contract_custom_field_18": "12332wqe",
                        "contract_custom_field_19": "1231weqwqee",
                        "contract_custom_field_20": "dfsd",
                        "contract_custom_field_21": "vn",
                        "contract_custom_field_22": "dsfbh",
                        "contract_custom_field_23": "bnm,",
                        "contract_custom_field_24": "new field added to list",
                        "contract_custom_field_25": "test",
                        "contract_custom_field_26": "adasdasdqweewe2323",
                        "contract_custom_field_27": "hm,gfhm,gh,jgh,",
                        "contract_custom_field_28": "dfhdfh",
                        "contract_custom_field_29": null,
                        "contract_custom_field_30": "2142",
                        "contract_custom_field_31": "3423"
                    },
                    "EU_vat": false,
                    "created_at": "23-02-2022",
                    "updated_at": "23-02-2022",
                    "prolong": 0
                },
                "transaction_category": {
                    "id": 492,
                    "code": "finansiel",
                    "name": "finansiel",
                    "value": null,
                    "model_type": "App\\Models\\Transaction\\TransactionCategory",
                    "extra_details": null,
                    "category_id": 33,
                    "is_active": 1,
                    "is_system": 1,
                    "created_at": "14-03-2022 12:30:45",
                    "updated_at": "14-03-2022 12:30:45",
                    "is_visible": 0
                }
            },
            {
                "id": 18481,
                "leasing_contract_id": 2083,
                "transaction_set_id": 10834,
                "transaction_category_id": 492,
                "category_user_supplier_id": 0,
                "cash_book_entry_id": null,
                "transaction_type_id": 31,
                "transaction_date": "31-12-2022",
                "amount_cents": -43012.47,
                "booked": true,
                "vehicle_id": null,
                "repayment_id": null,
                "contract_payment_id": 22816,
                "vat_code_id": null,
                "created_at": "23-05-2022",
                "updated_at": "23-05-2022",
                "transaction_type": {
                    "id": 31,
                    "service_type_id": 9,
                    "name": "Afdrag på lån, Balance",
                    "account_number": 5531,
                    "contract_value_transaction": true,
                    "vehicle_transaction": false,
                    "is_active": true,
                    "vat_required": false,
                    "vat_code_id": 0,
                    "created_at": "19-11-2018",
                    "updated_at": "03-03-2021"
                },
                "vehicle": null,
                "leasing_contract": {
                    "id": 2083,
                    "user_id": 2,
                    "offer_id": 0,
                    "state": "closed",
                    "contract_type_id": 1,
                    "leasing_type_id": 7,
                    "generated_monthly_payments": false,
                    "vehicle_id": 257,
                    "vehicle_plate_number": null,
                    "weighted_rate": "0.0700002",
                    "down_payment_cents": 0,
                    "active_monthly_payment_cents": 43012.47,
                    "inactive_monthly_payment_cents": 0,
                    "depreciation_percent": 0,
                    "deposit_cents": 0,
                    "salvage_value_cents": 0,
                    "expected_registration_tax_cents": 0,
                    "estimated_tax_for_period_cents": 0,
                    "final_registration_tax_cents": 0,
                    "vehicle_price_excl_tax_and_vat_cents": 500000,
                    "vehicle_price_end_contract_incl_tax_vat_cents": 0,
                    "commission_cents": 0,
                    "profit_cents": 0,
                    "contract_length_in_months": 12,
                    "months_with_license_plates": 12,
                    "split_leasing_private_percent": 0,
                    "split_leasing_company_percent": 0,
                    "first_registration_date": "31-12-1990",
                    "sent_for_approval_date": null,
                    "approved_denied_date": "23-02-2022",
                    "rec_signedcontract_customer": null,
                    "final_signature_date": null,
                    "delivery_date": "23-02-2022",
                    "start_date": "23-02-2022",
                    "termination_date": "22-02-2023",
                    "expected_payout_date": "23-02-2022",
                    "private_tax_cents": 0,
                    "vat_deduction_per_month_cents": 0,
                    "vat_deduction_down_payment_cents": 0,
                    "kilometer_limit": 0,
                    "price_per_additional_km_cents": 0,
                    "custom_fields": {
                        "contract_custom_field_1": "test Sekundærfgjfj",
                        "contract_custom_field_2": "test Kørekort nr.hfhg",
                        "contract_custom_field_3": "test Leasingperiode fra",
                        "contract_custom_field_4": "Test Leasingperiode til",
                        "contract_custom_field_5": "test Teknisk garatiforsikring andtal måneder",
                        "contract_custom_field_6": "test Selskab Garantiforsikring",
                        "contract_custom_field_7": "test Præmie garantiforsikring",
                        "contract_custom_field_8": "test Service i henhold til fabrikkens anvisninger",
                        "contract_custom_field_9": "test Forsikringsselskab",
                        "contract_custom_field_10": "test Selvrisiko",
                        "contract_custom_field_11": "test Køretøjets stand og beskaffenhed",
                        "contract_custom_field_12": "test Ekstraudstyr",
                        "contract_custom_field_13": "test Anvisning efter endt leasingperiodee",
                        "contract_custom_field_14": "test Antal kørte kilometer indeholdt i aftalen",
                        "contract_custom_field_15": "23123",
                        "contract_custom_field_16": "23we",
                        "contract_custom_field_17": "sdf33",
                        "contract_custom_field_18": "12332wqe",
                        "contract_custom_field_19": "1231weqwqee",
                        "contract_custom_field_20": "dfsd",
                        "contract_custom_field_21": "vn",
                        "contract_custom_field_22": "dsfbh",
                        "contract_custom_field_23": "bnm,",
                        "contract_custom_field_24": "new field added to list",
                        "contract_custom_field_25": "test",
                        "contract_custom_field_26": "adasdasdqweewe2323",
                        "contract_custom_field_27": "hm,gfhm,gh,jgh,",
                        "contract_custom_field_28": "dfhdfh",
                        "contract_custom_field_29": null,
                        "contract_custom_field_30": "2142",
                        "contract_custom_field_31": "3423"
                    },
                    "EU_vat": false,
                    "created_at": "23-02-2022",
                    "updated_at": "23-02-2022",
                    "prolong": 0
                },
                "transaction_category": {
                    "id": 492,
                    "code": "finansiel",
                    "name": "finansiel",
                    "value": null,
                    "model_type": "App\\Models\\Transaction\\TransactionCategory",
                    "extra_details": null,
                    "category_id": 33,
                    "is_active": 1,
                    "is_system": 1,
                    "created_at": "14-03-2022 12:30:45",
                    "updated_at": "14-03-2022 12:30:45",
                    "is_visible": 0
                }
            }
        ]
    }
}

Delete Transactions

HTTP Request

Delete /api/contract/transactions/{set_id}/delete

curl -X Delete "/api/contract/transactions/{set_id}/delete" \
-H "Accept: application/json"

Parameters

Parameter Type Status Description

Example response:

{
    "data": {
        "message": "messages.deleted",
        "status_code": 200
    }
}

Get Transactions by set id

HTTP Request

Get /api/contract/transactions/{set_id}/transactions-by-set

curl -X Get "/api/contract/transactions/{set_id}/transactions-by-set" \
-H "Accept: application/json"

Parameters

Parameter Type Status Description

Example response:

{
    "data": [
        {
            "id": 18476,
            "leasing_contract_id": 1320,
            "transaction_set_id": 10832,
            "transaction_category_id": 492,
            "category_user_supplier_id": 0,
            "cash_book_entry_id": null,
            "transaction_type_id": 4,
            "transaction_date": "22-02-2021",
            "amount_cents": -40000,
            "booked": false,
            "vehicle_id": null,
            "repayment_id": null,
            "contract_payment_id": 18542,
            "vat_code_id": null,
            "created_at": "23-05-2022",
            "updated_at": "23-05-2022"
        },
        {
            "id": 18477,
            "leasing_contract_id": 1320,
            "transaction_set_id": 10832,
            "transaction_category_id": 492,
            "category_user_supplier_id": 0,
            "cash_book_entry_id": null,
            "transaction_type_id": 11,
            "transaction_date": "22-02-2021",
            "amount_cents": 40000,
            "booked": false,
            "vehicle_id": null,
            "repayment_id": null,
            "contract_payment_id": 18542,
            "vat_code_id": null,
            "created_at": "23-05-2022",
            "updated_at": "23-05-2022"
        }
    ]
}

Book Contracts Transactions By Date - Transactions Post

HTTP Request

POST /api/admin/contracts/leasing/transactions/bookByDate

Parameters

curl -X POST "/api/admin/contracts/leasing/transactions/bookByDate" \
-H "Accept: application/json"
Parameter Type Status Description
contract_transaction_book_date date

Example response:

{
    "data": {
        "message": "messages.cashBookEntriesImportedSuccessfull",
        "data": null,
        "status_code": 200
    }
}

Book Contracts Transactions By Ids - Post and send selected

HTTP Request

POST /api/admin/contracts/leasing/transactions/bookByIds

Parameters

curl -X POST "/api/admin/contracts/leasing/transactions/bookByIds" \
-H "Accept: application/json"
Parameter Type Status Description
contract_transaction_ids integer array of ids

Example response:

{
    "data": {
        "message": "messages.cashBookEntriesImportedSuccessfull",
        "data": null,
        "status_code": 200
    }
}

Import Contract Transactions

HTTP Request

POST /api/contract/transactions/import

Parameters

curl -X POST "/api/contract/transactions/import" \
-H "Accept: application/json"
Parameter Type Status Description
transactions file file Excel

Example response:

{
    "data": {
        "message": "messages.contractsTransactionsImported",
        "data": null,
        "status_code": 200
    }
}

Download Contract Transactions Template

HTTP Request

GET /api/contract/transactions/template

Parameters

curl -X GET "/api/contract/transactions/template" \
-H "Accept: application/json"
Parameter Type Status Description

Example response:

    Download template file

Download Transaction File (Appendix)

HTTP Request

GET /api/contract/leasing/801/transaction/273/document

Parameters

curl -X GET "/api/contract/leasing/801/transaction/273/document" \
-H "Accept: application/json"
Parameter Type Status Description

Example response:

    Download Transaction File (Appendix) 

Run Monthly Interest On Contract

HTTP Request

GET /api/contract/transactions/run-monthly-interest/{leasingContractId}

Parameters

curl -X GET "/api/contract/transactions/run-monthly-interest/{leasingContractId}" \
-H "Accept: application/json"
Parameter Type Status Description

Example response:

{
    "data": {
        "message": "messages.monthlyInterestProcessCompleted",
        "data": null,
        "status_code": 200
    }
}

Economic

Get E-conomic Entries

HTTP Request

GET /api/admin/economic/entries/data/{listOrDataTable}

curl -X GET "/api/admin/economic/entries/data/datatable" \
-H "Accept: application/json"

Parameters

Parameter Type Status Description

Example response:

{
    "draw": 0,
    "recordsTotal": 4908,
    "recordsFiltered": 4908,
    "data": [
        {
            "id": 1,
            "entry_number": 3848,
            "entry_type": "customerInvoice",
            "entry_date": "2020-10-30",
            "account_number": 1030,
            "voucher_number": 1176,
            "amount": "-100000",
            "currency": "DKK",
            "text": "Faktura"
        }
    ]
}

Update Economic Entries

HTTP Request

POST /api/admin/economic/entries/update

curl -X POST "/api/admin/economic/entries/update" \
-H "Accept: application/json"

Parameters

Parameter Type Status Description

Example response:

{
    "data": {
        "message": "economicEntriesUpdated successfully",
        "data": null,
        "status_code": 200
    }
}

Amortization matrix

Get Amortization

HTTP Request

GET /api/admin/contracts/amortization-matrix/data/{listOrDataTable}

curl -X GET "/api/admin/contracts/amortization-matrix/data/datatable" \
-H "Accept: application/json"

Parameters

Parameter Type Status Description
contract_id integer send contract id if you want to get Amortization of the contract

Example response:

{
    "draw": 0,
    "recordsTotal": 3404,
    "recordsFiltered": 3404,
    "data": [
        {
            "opening_value": 100000,
            "interest": 265.9,
            "repayment": 121.2,
            "ending_value": 99878.8,
            "payment": {
                "id": 5064,
                "leasing_contract_id": 6,
                "customer_id": 27,
                "payment_type_id": 1,
                "payment_term_id": 3,
                "payment_incl_tax_vat_cents": 483.87,
                "payment_excl_tax_vat_cents": 387.1,
                "vat_cents": 96.77,
                "vat_deduction_cents": 0,
                "date": "2015-12-22",
                "text": "Leasingydelse 22-12-2015 til 31-12-2015",
                "booked": "Y",
                "booking_date": "2017-02-23",
                "economic_invoice_draft_id": 532,
                "economic_invoice_booked_id": 414,
                "from_date": "2015-12-22",
                "to_date": "2015-12-31",
                "created_at": "2017-03-01T17:50:34.000000Z",
                "updated_at": "2017-03-21T11:05:44.000000Z"
            },
            "booked": "Y",
            "repayment_id": 1400,
            "repayment_cents": 121.2,
            "opening_value_cents": 100000,
            "leasing_contract_id": 6,
            "interest_of_month": "0.27",
            "interest_days": 10,
            "interest_cents": 265.9,
            "ending_value_cents": 99878.8,
            "days_in_months": 31,
            "created": true,
            "contract_payment_id": 5064
        }
    ]
}

Create Contracts Amortization Matrix

HTTP Request

Post /api/admin/contracts/amortization-matrix

curl -X Post "/api/admin/contracts/amortization-matrix" \
-H "Accept: application/json"

Parameters

Parameter Type Status Description

Example response:

{
    "data": {
        "message": "messages.contractsAmortizationMatrixCreated",
        "data": null,
        "status_code": 200
    }
}

Create Contracts Repayment Transactions

HTTP Request

Post /api/admin/contracts/repayment-transactions

curl -X Post "/api/admin/contracts/repayment-transactions" \
-H "Accept: application/json"

Parameters

Parameter Type Status Description

Example response:

{
    "data": {
        "message": "messages.contractsRePaymentsTransactionsCreated",
        "data": null,
        "status_code": 200
    }
}

Deals/Offers

Get Deals/Offers

HTTP Request

GET /api/deals-data/all/{listOrDataTable}

curl -X GET "/api/deals-data/all/datatable" \
-H "Accept: application/json"

Parameters

Parameter Type Status Description
customer_id integer optional send customer_id only if you want to get offers of the customer
organization_id integer optional
leasing_type_ids array optional

Example response:

{
    "draw": 0,
    "recordsTotal": 498,
    "recordsFiltered": 498,
    "data": [
        {
            "id": 100,
            "state": "draft",
            "contract_type_id": null,
            "leasing_type_id": null,
            "quote": false,
            "front_page": false,
            "copied_from_contract": false,
            "copied_from_contract_id": null,
            "vehicle_brand_id": 145,
            "vehicle_type_id": 2,
            "vehicle_model": "I3",
            "vehicle_used_vat": null,
            "weighted_rate": "0.2000000",
            "down_payment_cents": 20000,
            "active_monthly_payment_cents": 0,
            "inactive_monthly_payment_cents": null,
            "depreciation_percent": 2000,
            "deposit_cents": 0,
            "expected_registration_tax_cents": 100000,
            "estimated_tax_for_period_cents": 0,
            "vehicle_price_excl_tax_and_vat_cents": 150000,
            "vehicle_price_end_contract_incl_tax_vat_cents": 0,
            "commission_cents": 7500,
            "profit_cents": 0,
            "contract_length_in_months": 12,
            "months_with_license_plates": 12,
            "split_leasing_private_percent": 0,
            "split_leasing_company_percent": 0,
            "created_at": "2016-04-06T15:14:33.000000Z",
            "updated_at": "2016-04-17T10:26:55.000000Z",
            "leasing_loan_offer_set_id": 130,
            "salvage_value_cents": 120000,
            "first_registration_date": "2012-12-12",
            "expected_payout_date": null,
            "vat_deduction_per_month_cents": 0,
            "vat_deduction_down_payment_cents": 0,
            "kilometer_limit": null,
            "price_per_additional_km_cents": null,
            "offer_type": null,
            "leasing_type": null,
            "vehicle_brand": {
                "id": 145,
                "name": "BMW",
                "created_at": null,
                "updated_at": null
            },
            "leasing_offer_set": {
                "id": 130,
                "organization_id": 1,
                "state": "draft",
                "customer_private_or_company": "private",
                "customer_company_name": null,
                "customer_first_name": "Sophus",
                "customer_last_name": "Schlosser",
                "customer_email": "sophus@schlosser.dk",
                "customer_id": 26,
                "created_at": "2016-04-06T15:14:33.000000Z",
                "updated_at": "2016-04-06T15:14:33.000000Z",
                "customer": {
                    "id": 26,
                    "company_name": null,
                    "customer_private_or_company": "private",
                    "first_name": "Sophus",
                    "last_name": "Schlosser",
                    "email": "sophus@schlosser.dk",
                    "street_address": "Test",
                    "zip_code": "2121",
                    "city": "Test",
                    "telephone": "234578977",
                    "cpr_number": "2323233434",
                    "cvr_number": null,
                    "economic_customer_number": 35001,
                    "economic_customer_contact_number": null,
                    "payment_term_id": 1,
                    "bank_registration": 3232,
                    "bank_account_number": 9999999999999,
                    "pbs_created": null,
                    "id_received": null,
                    "related_to_id": null,
                    "driver_license_file_id": 221,
                    "social_security_file_id": 270,
                    "created_at": "2016-04-06T15:14:33.000000Z",
                    "updated_at": "2018-12-28T15:18:07.000000Z"
                },
                "owner": {
                    "id": 1,
                    "name": "Nord Leasing",
                    "depreciation_settings_id": 14,
                    "contract_setup_fee_cents": 2000,
                    "street_address": "Sandbjergvej 17",
                    "zip_code": "2970",
                    "city": "Hørsholm",
                    "cvr_number": "35860797",
                    "state": true,
                    "file_name": "1-logo.jpeg",
                    "file_path_md5": "c576dbafc9e8176d0193cdadf265b9fa",
                    "file_mime": "image/jpeg",
                    "created_at": null,
                    "updated_at": "2019-10-03T14:19:35.000000Z"
                }
            },
            "leasing_products": [
                {
                    "id": 1883,
                    "leasing_offer_id": 100,
                    "leasing_contract_id": null,
                    "payment_type_id": 1,
                    "amount_excl_tax_vat_cents": 3872,
                    "amount_incl_tax_vat_cents": 4840,
                    "vat_cents": 968,
                    "cost_price_excl_vat_cents": 0
                }
            ]
        }
    ]
}

Add selected offers to new customer

HTTP Request

POST /api/addToCustomer

curl -X POST "/api/addToCustomer" \
-H "Accept: application/json"

Parameters

Parameter Type Status Description
customer integer id
customer_type string company
offerIds array of selected offers
select_create_customer string existing-customer
or
customer integer id
customer_email email
customer_first_name string
customer_last_name string
customer_type string private
offerIds array of selected offers
select_create_customer string new-customer
or
customer integer id
contact_person_email email
contact_person_first_name string
contact_person_last_name string
customer_type string company
company_name string
offerIds array of selected offers
select_create_customer string new-customer

Example response:

{
    "data": {
        "customers": [
            {
                "customer_name": "Sophus Schlosser",
                "full_name": "",
                "customer_type": "private",
                "company_name": null,
                "id": 26,
                "email": "sophus@schlosser.dk"
            },
            {
                "customer_name": "Alex Mansour",
                "full_name": "",
                "customer_type": "private",
                "company_name": null,
                "id": 27,
                "email": "alex.mansour7@gmail.comz"
            },
        ],
        "customerId": 221
    }
}

Get Leasing Offer

HTTP Request

GET /api/offer/leasing/{customerId}/{offerId}

curl -X GET "/api/offer/leasing/{customerId}/{offerId}" \
-H "Accept: application/json"

Parameters

Parameter Type Status Description

Example response:

{
    "data": {
        "leasingOffer": {
            "id": 433,
            "state": "draft",
            "contract_type_id": 2,
            "leasing_type_id": 1,
            "quote": false,
            "front_page": false,
            "copied_from_contract": false,
            "copied_from_contract_id": null,
            "vehicle_brand_id": 163,
            "vehicle_type_id": 2,
            "vehicle_model": "A7",
            "vehicle_used_vat": false,
            "weighted_rate": "0.1500000",
            "down_payment_cents": 0,
            "active_monthly_payment_cents": 4447,
            "inactive_monthly_payment_cents": 0,
            "depreciation_percent": 20,
            "deposit_cents": 0,
            "expected_registration_tax_cents": 500000,
            "estimated_tax_for_period_cents": 41750,
            "vehicle_price_excl_tax_and_vat_cents": 200000,
            "vehicle_price_end_contract_incl_tax_vat_cents": 670000,
            "commission_cents": 0,
            "profit_cents": 0,
            "contract_length_in_months": 12,
            "months_with_license_plates": 12,
            "split_leasing_private_percent": 0,
            "split_leasing_company_percent": 0,
            "created_at": "2018-09-27T09:44:56.000000Z",
            "updated_at": "2018-09-27T09:44:56.000000Z",
            "leasing_loan_offer_set_id": 180,
            "salvage_value_cents": 160000,
            "first_registration_date": "2012-01-01",
            "expected_payout_date": null,
            "vat_deduction_per_month_cents": 889.4,
            "vat_deduction_down_payment_cents": 4327.2,
            "kilometer_limit": 0,
            "price_per_additional_km_cents": 0,
            "leasing_products": [
                {
                    "id": 3523,
                    "leasing_offer_id": 433,
                    "leasing_contract_id": 773,
                    "payment_type_id": 1,
                    "amount_excl_tax_vat_cents": 3557.6,
                    "amount_incl_tax_vat_cents": 4447,
                    "vat_cents": 889.4,
                    "cost_price_excl_vat_cents": 0,
                    "product": {
                        "id": 1,
                        "name": "Leasingydelse",
                        "economic_product_id": 1,
                        "vat_id": 2,
                        "from_to_date_flag": true,
                        "for_sell": true,
                        "for_buy": false,
                        "price_excl_vat_cents": 0,
                        "cost_price_excl_vat_cents": 0
                    }
                },
                {
                    "id": 3524,
                    "leasing_offer_id": 433,
                    "leasing_contract_id": 773,
                    "payment_type_id": 2,
                    "amount_excl_tax_vat_cents": 64000,
                    "amount_incl_tax_vat_cents": 80000,
                    "vat_cents": 16000,
                    "cost_price_excl_vat_cents": 0,
                    "product": {
                        "id": 2,
                        "name": "Udbetaling",
                        "economic_product_id": 3,
                        "vat_id": 2,
                        "from_to_date_flag": false,
                        "for_sell": true,
                        "for_buy": false,
                        "price_excl_vat_cents": 0,
                        "cost_price_excl_vat_cents": 0
                    }
                }
            ],
            "leasing_monthly_payment": {
                "id": 3523,
                "leasing_offer_id": 433,
                "leasing_contract_id": 773,
                "payment_type_id": 1,
                "amount_excl_tax_vat_cents": 3557.6,
                "amount_incl_tax_vat_cents": 4447,
                "vat_cents": 889.4,
                "cost_price_excl_vat_cents": 0
            },
            "loan_monthly_payment": null,
            "leasing_down_payment": {
                "id": 3524,
                "leasing_offer_id": 433,
                "leasing_contract_id": 773,
                "payment_type_id": 2,
                "amount_excl_tax_vat_cents": 64000,
                "amount_incl_tax_vat_cents": 80000,
                "vat_cents": 16000,
                "cost_price_excl_vat_cents": 0
            },
            "leasing_deposit": null,
            "offer_type": {
                "id": 2,
                "name": "Erhverv",
                "code": "company",
                "created_at": null,
                "updated_at": null
            },
            "leasing_type": {
                "id": 1,
                "name": "Finansiel",
                "code": "financial",
                "created_at": null,
                "updated_at": null
            },
            "vehicle_brand": {
                "id": 163,
                "name": "AUDI",
                "created_at": "2018-01-25T12:49:33.000000Z",
                "updated_at": "2018-01-25T12:49:33.000000Z"
            },
            "copied_contract": null
        },
        "offerVehicleMake": "AUDI",
        "customer": {
            "id": 82,
            "company_name": "Angular",
            "customer_private_or_company": "company",
            "first_name": "First Ang",
            "last_name": "Last Ang",
            "email": "miryam_mamdouh@hotmail.com",
            "street_address": "",
            "zip_code": "",
            "city": "",
            "telephone": "21836115",
            "cpr_number": null,
            "cvr_number": "98989898",
            "economic_customer_number": 9703729,
            "economic_customer_contact_number": 11,
            "payment_term_id": 5,
            "bank_registration": 9898,
            "bank_account_number": 0,
            "pbs_created": null,
            "id_received": null,
            "related_to_id": null,
            "driver_license_file_id": null,
            "social_security_file_id": null,
            "created_at": "2016-11-23T22:01:46.000000Z",
            "updated_at": "2019-10-15T17:06:02.000000Z"
        },
        "cusFullName": "Angular",
        "customerId": "82",
        "offerSetId": 180,
        "offerId": "433",
        "leasingProducts": [
            {
                "id": 3523,
                "leasing_offer_id": 433,
                "leasing_contract_id": 773,
                "payment_type_id": 1,
                "amount_excl_tax_vat_cents": 3557.6,
                "amount_incl_tax_vat_cents": 4447,
                "vat_cents": 889.4,
                "cost_price_excl_vat_cents": 0,
                "product": {
                    "id": 1,
                    "name": "Leasingydelse",
                    "economic_product_id": 1,
                    "vat_id": 2,
                    "from_to_date_flag": true,
                    "for_sell": true,
                    "for_buy": false,
                    "price_excl_vat_cents": 0,
                    "cost_price_excl_vat_cents": 0
                }
            },
            {
                "id": 3524,
                "leasing_offer_id": 433,
                "leasing_contract_id": 773,
                "payment_type_id": 2,
                "amount_excl_tax_vat_cents": 64000,
                "amount_incl_tax_vat_cents": 80000,
                "vat_cents": 16000,
                "cost_price_excl_vat_cents": 0,
                "product": {
                    "id": 2,
                    "name": "Udbetaling",
                    "economic_product_id": 3,
                    "vat_id": 2,
                    "from_to_date_flag": false,
                    "for_sell": true,
                    "for_buy": false,
                    "price_excl_vat_cents": 0,
                    "cost_price_excl_vat_cents": 0
                }
            }
        ],
        "selectedMonthlyProduct": [],
        "selectedProductToOfferProducts": [],
        "monthlyPaymentExclVAT": 3557.6
    }
}

Request Contract - Inqure

HTTP Request

POST /api/deal/contract/request

curl -X POST "/api/deal/contract/request" \
-H "Accept: application/json"

Parameters

Parameter Type Status Description
company_name string required company
customer_private_or_company string private
first_name string required Angular
last_name string required Test
email email required angular@test.dk
street_address string Angular Adr.
zip_code integer required 2100
city string København Ø
telephone integer required 21836115
cpr_number integer required 2311161234
cvr_number integer required 2311161234
economic_customer_number integer 9703728
payment_term_id integer 3
bank_registration integer 1234
bank_account_number integer 11199933
created_at date 2016-11-23 21:44:01
updated_at date 2018-11-21 18:33:49
customer_type string private
offer_id integer required 464
customer_id integer required 464
private_split_percent integer required 81
company_split_percent integer required 81

Example response:

{
    "data": {
        "message": "messages.inqureSuccessfully",
        "data": null,
        "status_code": 200
    }
}

Split-contract Request

HTTP Request

POST /api/deal/split-contract/request

curl -X POST "/api/deal/contract/request" \
-H "Accept: application/json"

Parameters

Parameter Type Status Description
company_name string required company
customer_private_or_company string private
first_name string required Angular
last_name string required Test
email email required angular@test.dk
street_address string Angular Adr.
zip_code integer required 2100
city string København Ø
telephone integer required 21836115
cpr_number integer required 2311161234
cvr_number integer required 2311161234
bank_registration integer
bank_account_number integer
vehicle_mileage integer
vehicle_market_value integer
vehicle_market_value_year integer
fuel string
transmission string
engine string
car_type string
version string
ekstra string
social_security_file file pdf
driver_license_file file pdf
income_docs array',
income_docs.*.date date_format:d-m-Y
income_docs.*.document_type string
income_docs.*.document_file file

Example response:

{
    "data": {
        "message": "",
        "data": null,
        "status_code": 200
    }
}

Send Offer to customer

HTTP Request

GET /api/offer/send/{customerId}/{offerId}

curl -X GET "/api/offer/send/{customerId}/{offerId}" \
-H "Accept: application/json"

Example response:

{
    "data": {
        "message": "Selected Offers has been sent!",
        "data": null,
        "status_code": 200
    }
}

Generate Offer PDF Print

HTTP Request

GET /api/offer/print/{customerId}/{offerId}

curl -X GET "/api/offer/print/{customerId}/{offerId}" \
-H "Accept: application/json"

Example response:

    "Print"

Update offer

HTTP Request

PUT /api/deal/update/{id}

curl -X PUT "/api/deal/update/{id}" \
-H "Accept: application/json"

Parameters

Parameter Type Status Description
EU_vat integer 0
commission_default_cal boal true
commission_exclude_vat integer 0
company_split_percent integer 0
contract_length_in_months integer 12
contract_status string ending
contract_type_id integer 1
cost_products array []
deposit integer 0
depreciation integer 34.94999999999996
down_payment integer 50000
down_payment_default_cal boal true
down_payment_exclude_vat integer 40000
estimated_tax integer 170000
expected_payout_date date null
kilometer_limit integer 0
leasing_type_id integer 1
monthly_payment integer 5934.4
monthly_products array []
months_on_plates_per_year integer 12
price_of_vehicle integer 200000
price_per_additional_km integer 0
private_split_percent integer 0
profit integer 0
salvage_value integer 130100
vehicle_make integer 145
vehicle_make_name string BMW
vehicle_model string 500
vehicle_type integer 2
vehicle_used_vat integer 0
vehicles_first_registration date 201-01-01
weighted_rate integer 18

Example response:

{
    "data": {
        "cusFullName": "aaasd dsadsa",
        "offerSetId": 186
    }
}

Get offer calculations

HTTP Request

GET /api/deal/leasing/{customerId}/{offerId}/calculations

curl -X GET "/api/deal/leasing/{customerId}/{offerId}/calculations" \
-H "Accept: application/json"

Example response:

{
    "data": {
        "calculationData": {
            "contractLength": 12,
            "deposit": "0",
            "downPayment": "50.000",
            "insuranceAmount": "854",
            "roadAssistance": 0,
            "salvageValue": "130.100",
            "monthlyPayment": "7.559",
            "newMonthlyPayment": "8.681",
            "commission": "0",
            "weightedRate": "0.1800000",
            "taxForPeriod": "15.760",
            "upfrontPayment": "175.760",
            "totalPayments": "202.666",
            "netInvestment": "175.760",
            "totalNetInvestmentAndPayments": "47.154",
            "totalProfit": "26.906",
            "salvagePresentValue": "-108.814",
            "activePrice": "7.559",
            "inActivePrice": "0",
            "newActivePrice": 8681,
            "kilometerLimit": "0",
            "newInActivePrice": 0,
            "vehiclePriceEndContractIncTaxVat": "350.625",
            "activeMonths": 12,
            "inActiveMonths": 0,
            "productsTotalAmount": 20913,
            "vatDeductionPerMonth": "0",
            "vatDeductionDownPayment": "0",
            "pricePerAdditionalKM": "0,00",
            "internalRate": "15,66",
            "incomeAndExpenseData": [
                {
                    "date": "15-12-2020",
                    "day": 0,
                    "interest_days": 0,
                    "interest_pct": "0,00",
                    "payment": "-172.443,79",
                    "end_value": "-172.443,79",
                    "interest": "0,00",
                    "repayment": "0,00",
                    "netPresentValue": "-172.443,79"
                },
            ],
            "leasingOfferContractCostProducts": [],
            "totalCostProducts": "0",
            "productsRevenue": [
                {
                    "payment_type_id": 22,
                    "amount_excl_tax_vat_cents": 5000,
                    "amount_as_contract_length": 5000,
                    "product": {
                        "id": 22,
                        "name": "GPS-tracker",
                        "economic_product_id": 19,
                        "vat_id": 2,
                        "from_to_date_flag": false,
                        "for_sell": true,
                        "for_buy": true,
                        "price_excl_vat_cents": 5000,
                        "cost_price_excl_vat_cents": 4000,
                        "base_product": null,
                        "product_menu_categories": [
                            {
                                "id": 5,
                                "name": "Tilføj til kontrakt- og leasingtilbud via checkboks",
                                "code": "monthly_product",
                                "pivot": {
                                    "product_id": 22,
                                    "product_menu_categories_id": 5,
                                    "created_at": "2019-08-02T08:58:37.000000Z",
                                    "updated_at": "2019-08-02T08:58:37.000000Z"
                                }
                            },

                        ]
                    }
                },
                {
                    "payment_type_id": 22,
                    "amount_excl_tax_vat_cents": 5000,
                    "amount_as_contract_length": 5000,
                    "product": {
                        "id": 22,
                        "name": "GPS-tracker",
                        "economic_product_id": 19,
                        "vat_id": 2,
                        "from_to_date_flag": false,
                        "for_sell": true,
                        "for_buy": true,
                        "price_excl_vat_cents": 5000,
                        "cost_price_excl_vat_cents": 4000,
                        "base_product": null,
                        "product_menu_categories": [
                            {
                                "id": 5,
                                "name": "Tilføj til kontrakt- og leasingtilbud via checkboks",
                                "code": "monthly_product",
                                "pivot": {
                                    "product_id": 22,
                                    "product_menu_categories_id": 5,
                                    "created_at": "2019-08-02T08:58:37.000000Z",
                                    "updated_at": "2019-08-02T08:58:37.000000Z"
                                }
                            },
                        ]
                    }
                },
                {
                    "payment_type_id": 9,
                    "amount_excl_tax_vat_cents": 854,
                    "amount_as_contract_length": 10248,
                    "product": {
                        "id": 9,
                        "name": "Forsikring",
                        "economic_product_id": 6,
                        "vat_id": 1,
                        "from_to_date_flag": false,
                        "for_sell": true,
                        "for_buy": true,
                        "price_excl_vat_cents": 0,
                        "cost_price_excl_vat_cents": 0,
                        "base_product": {
                            "id": 4,
                            "code": "insurance",
                            "product_id": 9
                        },
                        "product_menu_categories": [
                            {
                                "id": 5,
                                "name": "Tilføj til kontrakt- og leasingtilbud via checkboks",
                                "code": "monthly_product",
                                "pivot": {
                                    "product_id": 9,
                                    "product_menu_categories_id": 5,
                                    "created_at": "2017-05-03T10:21:31.000000Z",
                                    "updated_at": "2017-05-03T10:21:31.000000Z"
                                }
                            },

                        ]
                    }
                }
            ],
            "totalRevenue": "20.248",
            "profit": "0",
            "depreciationPercent": "34,95",
            "selfFinancing": "22,35",
            "deviationFromMinimumProfit": "37.154"
        },
        "calculationOutputAreas": {
            "totalUpfrontProductNotFormatted": 62500,
            "totalRevenue": 20248,
            "productsRevenue": [
                {
                    "payment_type_id": 22,
                    "amount_excl_tax_vat_cents": 5000,
                    "amount_as_contract_length": 5000,
                    "product": {
                        "id": 22,
                        "name": "GPS-tracker",
                        "economic_product_id": 19,
                        "vat_id": 2,
                        "from_to_date_flag": false,
                        "for_sell": true,
                        "for_buy": true,
                        "price_excl_vat_cents": 5000,
                        "cost_price_excl_vat_cents": 4000,
                        "base_product": null,
                        "product_menu_categories": [
                            {
                                "id": 5,
                                "name": "Tilføj til kontrakt- og leasingtilbud via checkboks",
                                "code": "monthly_product",
                                "pivot": {
                                    "product_id": 22,
                                    "product_menu_categories_id": 5,
                                    "created_at": "2019-08-02T08:58:37.000000Z",
                                    "updated_at": "2019-08-02T08:58:37.000000Z"
                                }
                            },

                        ]
                    }
                },
                {
                    "payment_type_id": 22,
                    "amount_excl_tax_vat_cents": 5000,
                    "amount_as_contract_length": 5000,
                    "product": {
                        "id": 22,
                        "name": "GPS-tracker",
                        "economic_product_id": 19,
                        "vat_id": 2,
                        "from_to_date_flag": false,
                        "for_sell": true,
                        "for_buy": true,
                        "price_excl_vat_cents": 5000,
                        "cost_price_excl_vat_cents": 4000,
                        "base_product": null,
                        "product_menu_categories": [
                            {
                                "id": 5,
                                "name": "Tilføj til kontrakt- og leasingtilbud via checkboks",
                                "code": "monthly_product",
                                "pivot": {
                                    "product_id": 22,
                                    "product_menu_categories_id": 5,
                                    "created_at": "2019-08-02T08:58:37.000000Z",
                                    "updated_at": "2019-08-02T08:58:37.000000Z"
                                }
                            },

                        ]
                    }
                },
                {
                    "payment_type_id": 9,
                    "amount_excl_tax_vat_cents": 854,
                    "amount_as_contract_length": 10248,
                    "product": {
                        "id": 9,
                        "name": "Forsikring",
                        "economic_product_id": 6,
                        "vat_id": 1,
                        "from_to_date_flag": false,
                        "for_sell": true,
                        "for_buy": true,
                        "price_excl_vat_cents": 0,
                        "cost_price_excl_vat_cents": 0,
                        "base_product": {
                            "id": 4,
                            "code": "insurance",
                            "product_id": 9
                        },
                        "product_menu_categories": [
                            {
                                "id": 5,
                                "name": "Tilføj til kontrakt- og leasingtilbud via checkboks",
                                "code": "monthly_product",
                                "pivot": {
                                    "product_id": 9,
                                    "product_menu_categories_id": 5,
                                    "created_at": "2017-05-03T10:21:31.000000Z",
                                    "updated_at": "2017-05-03T10:21:31.000000Z"
                                }
                            },
                        ]
                    }
                }
            ],
            "monthlyProductArea": {
                "labels.products.leasing_payment": "7.559",
                "Forsikring": "854"
            },
            "monthlyProductAreaTotal": "8.413",
            "upfrontProductArea": {
                "GPS-tracker": "6.250",
                "Udbetaling": "50.000"
            },
            "upfrontProductAreaTotal": "62.500",
            "downPaymentMaxValue": 78316,
            "upfrontProductAreaTotalExclVat": 50000,
            "upfrontProductCostTotal": 8000
        }
    }
}

Add Offer monthly Product

HTTP Request

POST /api/offer/contract/557/monthlyProduct/{monthlyProductId}/{type}

curl -X POST "/api/offer/contract/557/monthlyProduct/{monthlyProductId}/{type}" \
-H "Accept: application/json"

Parameters

Parameter Type Status Description
vehicle_price integer 200000
vehicle_type integer 2
vehicle_used_vat integer optional 0
payment_type_id integer optional 24
products array []

Example response:

{
    "data": {
        "message": "messages.offerProductAdded",
        "data": null,
        "status_code": 200
    }
}

Delete Offer monthly Product

HTTP Request

DELETE /api/offer/contract/557/monthlyProduct/{monthlyProductId}/{type}

curl -X DELETE "/api/offer/contract/557/monthlyProduct/{monthlyProductId}/{type}" \
-H "Accept: application/json"

Parameters

Parameter Type Status Description

Example response:

{
    "data": {
        "message": "messages.leasingOfferProductDeleted",
        "data": null,
        "status_code": 200
    }
}

New Offer

New offer Calculation step 1

HTTP Request

POST /api/vehicle/marketPriceReference/calculations

Parameters

Parameter Type Status Description
references array [{"date_of_first_registration": "14-12-2020", "kilometer": 0.1, "price": 0.2}],
vehicle_airbags integer 3,
vehicle_childrenSeats integer 1,
vehicle_condition integer 2,
vehicle_custom_inspection integer 0,
vehicle_date_of_first_registration date 13-12-2020,
vehicle_euro_ncap integer 0,
vehicle_fuel string Benzin,
vehicle_kmPerLitre integer 5,
vehicle_mileage integer 1,
vehicle_newPrice integer 0.2,
vehicle_seatBelts integer 2

Example response:

{
    "data": {
        "dateAverage": "14-12-2020",
        "priceAverage": 0.2,
        "kilometerAverage": 0.1,
        "adDeduction": -0.01,
        "conditionDeduction": -0,
        "kmDeduction": -5.58e-7,
        "dateDeduction": -0,
        "marketPriceAfterDeduction": -5.58e-7,
        "registrationTax": 20000
    }
}

Calculation

HTTP Request

POST /api/offer/calculation

Parameters

Parameter Type Status Description
EU_vat integer 0
commission_default_cal bool true
commission_exclude_vat integer 0
contract_length_in_months integer 4
contract_status string pending
contract_type_id integer 1
cost_products array []
deposit integer 0
down_payment_default_cal bool true
estimated_tax integer 0.03
kilometer_limit integer 25000
leasing_id integer null
leasing_type_id integer 1
monthly_products array []
months_on_plates_per_year integer 12
price_of_vehicle integer 0.01
products array {}
profit integer 0
vehicle_type integer 2
vehicle_used_vat bool true
vehicles_first_registration date 2020-12-13
weighted_rate date 244180367.89842093

Example response:

{
    "data": {
        "contractLength": 4,
        "deposit": "0",
        "downPayment": "0",
        "monthlyPaymentExclVAT": 0,
        "salvageValue": "0",
        "monthlyPayment": "0",
        "newMonthlyPayment": "0",
        "commission": 0,
        "weightedRate": 244180367.89842093,
        "taxForPeriod": "0",
        "upfrontPayment": "0",
        "totalPayments": "0",
        "netInvestment": "0",
        "totalProfit": "0",
        "totalNetInvestmentAndPayments": "0",
        "salvagePresentValue": "0",
        "activePrice": "0",
        "vehiclePriceEndContractIncTaxVat": "0",
        "roadAssistance": "0",
        "insuranceAmount": "0",
        "inActivePrice": "0",
        "newActivePrice": 0,
        "newInActivePrice": 0,
        "activeMonths": 12,
        "inActiveMonths": 0,
        "vatDeductionPerMonth": "",
        "vatDeductionDownPayment": "",
        "pricePerAdditionalKM": null,
        "kilometerLimit": "25.000",
        "internalRate": "0,00",
        "calculationOutputAreas": {
            "downPaymentMaxValue": 0.0043001,
            "totalUpfrontProductNotFormatted": 0,
            "totalRevenue": 0,
            "productsRevenue": [],
            "monthlyProductArea": {
                "labels.products.leasing_payment": "0"
            },
            "monthlyProductAreaTotal": "0",
            "upfrontProductArea": {
                "Depositum": "0"
            },
            "upfrontProductAreaTotal": "0",
            "upfrontProductAreaTotalExclVat": 0
        },
        "incomeAndExpenseData": [
            {
                "date": "14-12-2020",
                "day": 0,
                "interest_days": 0,
                "interest_pct": "0,00",
                "payment": "-0,01",
                "end_value": "-0,01",
                "interest": "0,00",
                "repayment": "0,00",
                "netPresentValue": "-0,01"
            },
        ],
        "totalCostProducts": "0",
        "productsRevenue": [],
        "totalRevenue": "0",
        "profit": "0",
        "depreciationPercent": "100,00",
        "leasingOfferContractCostProducts": [],
        "selfFinancing": "0,00",
        "deviationFromMinimumProfit": "-10.000"
    }
}

get Expected Registration

HTTP Request

POST /api/calculation/expected_registration

Parameters

Parameter Type Status Description
contract_id integer 1
contract_length_in_months integer
final_registration_tax integer
vehicles_first_registration date 2020-12-13

Example response:

{
    "data": {
        "expected_registration_tax": 20
    }
}

Add product Row

HTTP Request

POST /api/offer/product/row

Parameters

Parameter Type Status Description
contract_type string private
cost_price_excl_vat_cents integer 500
monthly_total integer 859
payment_excl_tax_vat_cents integer 1000
payment_type_id integer 14
upfront_total integer 1.000
vat_cents integer 250

Example response:

{
    "data": {
        "nonSplitLeasingResult": {
            "paymentAmountInclVat": 1250,
            "upfrontProductAreaTotal": "1.000",
            "monthlyProductAreaTotal": 859
        },
        "splitLeasingResult": [],
        "vatAmount": 250,
        "paymentAmount": 1000,
        "productTypeId": "14",
        "productName": "CheckBoxMonthly",
        "totalOtherExpenses": 1250,
        "costPriceAmount": 500,
        "calculationOutputArea": "monthly"
    }
}

Confirm Calculation Step 2

HTTP Request

POST /api/deal/calculation/confirm

Parameters

Parameter Type Status Description
EU_vat integer 0
commission_default_cal bool true
commission_exclude_vat integer 0
contract_length_in_months integer 1
contract_status string pending
contract_type_id integer 1
cost_products array [{payment_type_id: 23 payment_excl_tax_vat_cents: 800}]
deposit integer 0
down_payment_default_cal bool true
estimated_tax integer 2
kilometer_limit integer 25000
leasing_id integer null
leasing_type_id integer 1
monthly_products array [23]
months_on_plates_per_year integer 12
price_of_vehicle integer 0.02
products array {}
profit integer 0
vehicle_type integer 2
vehicle_used_vat integer 0
vehicles_first_registration date 2020-12-13
weighted_rate integer 99.08956797

Example response:

{
    "data": {
        "message": null,
        "data": null,
        "status_code": 200
    }
}

Add New Offer finish Step 3

HTTP Request

POST /api/deal/new

Parameters

Parameter Type Status Description
EU_vat integer 0
commission_default_cal bool true
commission_exclude_vat integer 0.01
contract_length_in_months integer 1
contract_status string pending
contract_type_id integer 1
cost_products array []
customer integer 156
customer_email email testtm.com
customer_first_name string ahmed
customer_last_name string mohamed
customer_telephone integer 1245551
deposit integer 0.1
down_payment_default_cal bool true
estimated_tax integer 0.1
kilometer_limit integer 25000
leasing_id integer null
leasing_type_id integer 1
monthly_payment integer 1
monthly_products array []
months_on_plates_per_year integer 12
price_of_vehicle integer 1
price_per_additional_km integer 0.01
products array {}
profit integer 0.1
salvage_value integer 0.01
select_create_customer string new-customer
customer_type string company
company_name string test
contact_person_first_name string test
contact_person_last_name string test2
contact_person_email email test@t.com
vehicle_make integer 152
vehicle_model integer 1
vehicle_type integer 2
vehicle_used_vat integer 0
vehicles_first_registration date 2020-12-15
company_split_percent integer
depreciation integer
down_payment integer
down_payment_exclude_vat integer
expected_payout_date integer
final_registration_tax integer
price_per_additional_km integer
private_split_percent integer
private_tax integer
salvage_value integer
vatDeductionDownPayment integer
vatDeductionPerMonth integer
vehicle_plate_number integer
weighted_rate integer

Example response:

{
    "data": {
        "cusFullName": "Ahmed Mohamed",
        "offerSetId": 325,
        "customerId": 237,
        "offerId": 623
    }
}

Settings/depreciation

Get Settings depreciation Table

HTTP Request

GET /api/organizations/depreciation/{listOrDataTable}

curl -X GET "/api/organizations/depreciation/datatable" \
-H "Accept: application/json"

Parameters

Parameter Type Status Description

Example response:

{
    "draw": 0,
    "recordsTotal": 5,
    "recordsFiltered": 5,
    "data": [
        {
            "name": "Nord Leasing",
            "id": 1
        },
        {
            "name": "new org",
            "id": 2
        },
        {
            "name": "FA. Moto-Sport",
            "id": 7
        },
        {
            "name": "Test new org",
            "id": 16
        },
        {
            "name": "name",
            "id": 20
        }
    ],
    "queries": [
        {
            "query": "select count(*) as aggregate from (select '1' as `row_count` from `organizations` where `depreciation_settings_id` is not null) count_row_table",
            "bindings": [],
            "time": "0.55"
        },
        {
            "query": "select `name`, `id` from `organizations` where `depreciation_settings_id` is not null",
            "bindings": [],
            "time": "0.28"
        }
    ],
    "input": []
}

Get Default depreciation settings data

HTTP Request

GET /api/depreciation/settings-data/{listOrDataTable}

curl -X GET "/api/depreciation/settings-data/datatable" \
-H "Accept: application/json"

Parameters

Parameter Type Status Description
organization_id integer
is_default bool

Example response:

{
    "draw": 0,
    "recordsTotal": 96,
    "recordsFiltered": 96,
    "data": [
            {
                "id": 913,
                "organization_id": 1,
                "depreciation_settings_id": 14,
                "contract_length_month": 1,
                "depreciation_percent": 9.25
            }
        ]
}

Get depreciation settings data

HTTP Request

GET /api/depreciation/{orgID}/settings

curl -X GET "/api/depreciation/2/settings" \
-H "Accept: application/json"

Parameters

Parameter Type Status Description

Example response:

{
    "draw": 0,
    "recordsTotal": 96,
    "recordsFiltered": 96,
    "data": [
             {
            "org_depreciation_settings_id": 1009,
            "contract_length_month": 1,
            "depreciation_percent": "<div class=\"percentage_container\">\n                            <span class=\"percentage_value\">9,25</span>\n                            <div class=\"percentage_value_form form-inline\" hidden>\n                                <input type=\"text\" class=\"form-control percentage_value_input\" value=\"9,25\">\n                                <input type=\"hidden\" class=\"form-control percentage_value_id\" value=\"1009\">\n                                <button class=\"btn btn-info save_percentage_value\">Gem</button>\n                                <button class=\"btn dark btn-outline cancel_percentage_value\">Annuller</button>\n                                <span class=\"help-block error\"></span>\n                            </div>\n                        </div>"
        }
        ]
}

update Organization Month Depreciation Setting

HTTP Request

PUT /api/depreciation/{ID}

curl -X PUT "/api/depreciation/2" \
-H "Accept: application/json"

Parameters

Parameter Type Status Description
depreciation_percent integer required

Example response:

{
    "data": {
        "message": "messages.organizationDepreciationSettingMonthUpdated",
        "data": null,
        "status_code": 200
    }
}

Settings/tasks

Get Settings Tasks

HTTP Request

GET /api/tasks/list-data/{listOrDataTable}

curl -X GET "/api/tasks/list-data/datatable" \
-H "Accept: application/json"

Parameters

Parameter Type Status Description

Example response:

{
    "draw": 0,
    "recordsTotal": 96,
    "recordsFiltered": 96,
    "data": [
        {
            "id": 17,
            "name": "test of task",
            "type": "contract_task",
            "description": " ",
            "code": "test_of_task",
            "optional": 0,
            "custom_task": 1,
            "order": 8,
            "create_with_entity": true,
            "due_days": 2,
            "due_months": 4,
            "due_start": "before_contract_ends",
            "created_at": "2018-03-08T10:53:36.000000Z",
            "updated_at": "2020-11-29T07:40:36.000000Z",
            "status": "approved"
        }
    ]
}

Create task

HTTP Request

POST /api/tasks

curl -X POST "/api/tasks" \
-H "Accept: application/json"

Parameters

Parameter Type Status Description
name string required max 100 chars
create_with_entity present boolean
due_start required if create_with_entity is true Accepts: today, before_contract_ends They can be populated using tasks/due-list EndPoint
due_days required if create_with_entity is true integer
due_months required if create_with_entity is true integer
status string approved, disapproved

Example response:

{
    "data": {
        "message": "Task have created successfully",
        "data": null,
        "status_code": 200
    }
}

Update tasks

HTTP Request

PUT /api/tasks/{id}

curl -X PUT "/api/tasks/1" \
-H "Accept: application/json"

Parameters

Parameter Type Status Description
name string required max 100 chars
create_with_entity present boolean
due_start required if create_with_entity is true Accepts: today, before_contract_ends They can be populated using tasks/due-list EndPoint
due_days required with due_start integer
due_months required with due_start integer
code optional integer not effected , its takes from name
custom_task optional boolean
description optional text
optional optional boolean
order optional integer
type optional string
status optional integer lookup id, lookup category codd = blocked_tasks_status

Example response:

{
    "data": {
        "message": "Task updated successfully",
        "data": {
            "id": 17,
            "name": "test of task",
            "type": "contract_task",
            "description": " ",
            "code": "test_of_task",
            "optional": 0,
            "custom_task": 1,
            "order": 8,
            "create_with_entity": true,
            "due_days": 2,
            "due_months": 4,
            "due_start": "before_contract_ends",
            "created_at": "2018-03-08T10:53:36.000000Z",
            "updated_at": "2020-11-29T07:40:36.000000Z"
        },
        "status_code": 200
    }
}

Update system task status

HTTP Request

PUT /api/tasks/update-system-tasks/{task_id}

curl -X PUT "/api/tasks/update-system-tasks/{task_id}"
-H "Accept: application/json"

Parameters

Parameter Type Status Description
status required integer lookup id, lookup category code = blocked_tasks_status

Example response:

{
  "data": {
    "message": "messages.taskUpdated",
    "data": null,
    "status_code": 200
  }
}

Get Default assignee

HTTP Request

GET /api/tasks/default-assignee

curl -X GET "/api/tasks/default-assignee" \
-H "Accept: application/json"

Parameters

Parameter Type Status Description

Example response:

{
    "data":  {
        "assignee": {
            "id": 46,
            "first_name": "Chris",
            "last_name": "Hansen",
            "email": "chris@midtleasing.dk",
            "organization_id": 25,
            "profile_picture_path": null,
            "state": true,
            "created_at": "18-06-2019 15:47:00",
            "updated_at": "18-06-2019 15:48:06",
            "last_active_at": null
        }
    }
}

Set Default assignee

HTTP Request

PUT /api/tasks/default-assignee

curl -X PUT "/api/tasks/default-assignee" \
-H "Accept: application/json"

Parameters

Parameter Type Status Description
assignee_id integer

Example response:

{
     "data": {
        "message": "Default Assignee updated successfully",
        "data": null,
        "status_code": 200
    }
}

Get Task Due List

HTTP Request

GET /api/tasks/due-list

curl -X GET "/api/tasks/due-list" \
-H "Accept: application/json"

Parameters

Parameter Type Status Description

Example response:

{
    "data": [
        {
            "tasksDueList": {
                "today": "Fra i dag",
                "before_contract_ends": "Før kontrakten slutter"
            }
        }
    ]
}

Show task

HTTP Request

GET /api/tasks/{id}

curl -X GET "/api/tasks/1" \
-H "Accept: application/json"

Parameters

Parameter Type Status Description

Example response:

{
    "data": {
        "id": 17,
        "name": "test of task",
        "type": "contract_task",
        "description": " ",
        "code": "test_of_task",
        "optional": 0,
        "custom_task": 1,
        "order": 8,
        "create_with_entity": true,
        "due_days": 2,
        "due_months": 4,
        "due_start": "before_contract_ends",
        "created_at": "2018-03-08T10:53:36.000000Z",
        "updated_at": "2020-11-29T07:40:36.000000Z"
    }
}

Settings Asset liability types

List Asset liability types

HTTP Request

GET /api/asset-liability-types/list-data/{listOrDataTable}

curl -X GET "/api/asset-liability-types/list-data/datatable" \
-H "Accept: application/json"

Parameters

Parameter Type Status Description

Example response:

{
    "draw": 0,
    "recordsTotal": 21,
    "recordsFiltered": 21,
    "data": [
        {
            "id": 1,
            "type": "expense",
            "name": "Husleje per måned",
            "show_on_online_application": true
        }
    ]
}

Store Asset liability types

HTTP Request

POST /api/asset-liability-types

curl -X POST "/api/asset-liability-types" \
-H "Accept: application/json"

Parameters

Parameter Type Status Description
name string
type string asset or liability
show_on_online_application bool

Example response:

{
    "draw": 0,
    "recordsTotal": 21,
    "recordsFiltered": 21,
    "data": [
        {
            "id": 1,
            "type": "expense",
            "name": "Husleje per måned",
            "show_on_online_application": true
        }
    ]
}

Show Asset liability types

HTTP Request

GET /api/asset-liability-types/{id}

curl -X GET "/api/asset-liability-types/13" \
-H "Accept: application/json"

Parameters

Parameter Type Status Description

Example response:

{
    "data": {
        "id": 13,
        "type": "liability",
        "name": "new test",
        "show_on_online_application": false
    }
}

Update Asset liability types

HTTP Request

PUT /api/asset-liability-types/{id}

curl -X PUT "/api/asset-liability-types/13" \
-H "Accept: application/json"

Parameters

Parameter Type Status Description
name string
type string asset or liability
show_on_online_application bool

Example response:

{
    "data": {
        "message": "AssetLiabilityType updated successfully",
        "data": {
            "id": 13,
            "type": "liability",
            "name": "new test",
            "show_on_online_application": false
        },
        "status_code": 200
    }
}

Settings Income expense types

List Income expense types

HTTP Request

GET /api/income-expense-types/list-data/{listOrDataTable}

curl -X GET "/api/income-expense-types/list-data/datatable" \
-H "Accept: application/json"

Parameters

Parameter Type Status Description

Example response:

{
    "draw": 0,
    "recordsTotal": 21,
    "recordsFiltered": 21,
    "data": [
        {
            "id": 1,
            "type": "expense",
            "name": "Husleje per måned",
            "show_on_online_application": true
        }
    ]
}

Store Income expense types

HTTP Request

POST /api/income-expense-types

curl -X POST "/api/income-expense-types" \
-H "Accept: application/json"

Parameters

Parameter Type Status Description
name string
type string expense or income
show_on_online_application bool

Example response:

{
    "data": {
        "message": "IncomeExpenseType have created successfully",
        "data": null,
        "status_code": 200
    }
}

Update Income expense types

HTTP Request

PUT /api/income-expense-types/{id}

curl -X PUT "/api/income-expense-types/21" \
-H "Accept: application/json"

Parameters

Parameter Type Status Description
name string
type string expense or income
show_on_online_application bool

Example response:

{
    "data": {
        "message": "IncomeExpenseType updated successfully",
        "data": {
            "id": 21,
            "type": "income",
            "name": "new test",
            "show_on_online_application": true
        },
        "status_code": 200
    }
}

Show Income expense types

HTTP Request

GET /api/income-expense-types/{id}

curl -X GET "/api/income-expense-types/21" \
-H "Accept: application/json"

Parameters

Parameter Type Status Description

Example response:

{
    "data": {
        "id": 21,
        "type": "income",
        "name": "new test",
        "show_on_online_application": true
    }
}

Report Problems

Report Problems

HTTP Request

POST /api/bugs

curl -X POST "/api/bugs" \
-H "Accept: application/json"

Parameters

Parameter Type Status Description
title string
urgency string
message string
screenshot file

Example response:

{
    "data": {
        "message": "messages.feedbackReceived",
        "data": null,
        "status_code": 200
    }
}

Contract To Do List

Get Contract Task Message Note

HTTP Request

GET /api/tasks/contract/leasing/{customerId}/{leasingContractId}/message

curl -X GET "/api/tasks/contract/leasing/{customerId}/{leasingContractId}/message" \
-H "Accept: application/json"

Parameters

Parameter Type Status Description
contract_task_code string credit_approvement

Example response:

{
    "data": {"messageNote": ""}
}

Credit Approvement Task

HTTP Request

POST /api/tasks/contract/leasing/credit-approvement/{customerId}/{leasingContractId}

curl -X "POST /api/tasks/contract/leasing/credit-approvement/{customerId}/{leasingContractId}" \
-H "Accept: application/json"

Parameters

Parameter Type Status Description
status array
customer_id integer
secondary_customer_id integer required if contract split
message_text array message_text[0]
social_security_card array social_security_card[0][file] and social_security_card[0][name]
income_statement array income_statement[0][file] and income_statement[0][name]
paychecks array paychecks[0][file] and paychecks[0][name]
drivers_licens array drivers_licens[0][file] and drivers_licens[0][name]

Example response:

{
    "data": {
        "message": null,
        "data": null,
        "status_code": 200
    }
}

Mark Contract Task As Done

HTTP Request

POST /api/tasks/contract/leasing/{customerId}/{leasingContractId}/complete

curl -X "POST /api/tasks/contract/leasing/{customerId}/{leasingContractId}/complete" \
-H "Accept: application/json"

Parameters

Parameter Type Status Description
contract_task_code string contract_created_pdf

Example response:

{
    "data": {
        "message": "messages.contractClosedSuccessfully",
        "data": null,
        "status_code": 200
    }
}

Upload Contract Task

HTTP Request

POST /api/contract/signed-document/upload/{customerId}/{leasingContractId}

curl -X "POST /api/contract/signed-document/upload/{customerId}/{leasingContractId}" \
-H "Accept: application/json"

Parameters

Parameter Type Status Description
signed_contract_file File required / pdf

Example response:

{
    "data": {
        "message": null,
        "data": null,
        "status_code": 200
    }
}

Generate Upfront Payments Task

HTTP Request

POST /api/tasks/contract/leasing/{customerId}/{leasingContractId}/upfront-payments

curl -X "POST /api/tasks/contract/leasing/{customerId}/{leasingContractId}/upfront-payments" \
-H "Accept: application/json"

Parameters

Parameter Type Status Description
date Date
payment_term_number Integer

Example response:

{
    "data": {
        "message": "messages.upfrontPaymentsCompleted",
        "data": null,
        "status_code": 200
    }
}

Get Sell Vehicle Task Product

HTTP Request

GET /api/tasks/contract/leasing/end-contract/{customerId}/{leasingContractId}/product

curl -X "GET /api/tasks/contract/leasing/end-contract/{customerId}/{leasingContractId}/product" \
-H "Accept: application/json"

Parameters

Parameter Type Status Description

Example response:

{
    "data": {
        "product": {
            "id": 20,
            "name": "Køretøj m/ brugtmoms",
            "economic_product_id": 17,
            "vat_id": 1,
            "from_to_date_flag": false,
            "for_sell": true,
            "for_buy": false,
            "price_excl_vat_cents": 0,
            "cost_price_excl_vat_cents": 0
        },
        "calculateVat": false,
        "contractValue": -1
    }
}

Sell Vehicle Task - End Contract

HTTP Request

POST /api/tasks/contract/leasing/end-contract/{customerId}/{leasingContractId}

curl -X "POST /api/tasks/contract/leasing/end-contract/{customerId}/{leasingContractId}" \
-H "Accept: application/json"

Parameters

Parameter Type Status Description
customer_id integer
date date
payment_excl_tax_vat integer
payment_term_id integer
payment_vat integer
transaction_amount integer

Example response:

{
    "data": {
        "message": "messages.contractEndedSuccessfully",
        "data": null,
        "status_code": 200
    }
}

New Contract

Calculator in step 1

HTTP Request

POST /api/vehicle/marketPriceReference/calculations

Parameters

Parameter Type Status Description
references array [{"date_of_first_registration": "13-12-2020", "kilometer": 1, "price": 1}],
vehicle_airbags integer 3
vehicle_childrenSeats integer 1
vehicle_condition integer 2
vehicle_custom_inspection integer 0
vehicle_date_of_first_registration date 13-12-2020
vehicle_euro_ncap integer 0
vehicle_fuel string Benzin
vehicle_kmPerLitre integer 5
vehicle_mileage integer 1
vehicle_newPrice integer 0.2
vehicle_seatBelts integer

Example response:

{
    "data": {
        "dateAverage": "13-12-2020",
        "priceAverage": 1,
        "kilometerAverage": 1,
        "adDeduction": -0.05,
        "conditionDeduction": -0,
        "kmDeduction": 0,
        "dateDeduction": -0,
        "marketPriceAfterDeduction": 0,
        "registrationTax": 20000
    }
}

Confirm contract calculation step 2

HTTP Request

POST /api/contract/leasing/calculation/confirm

Parameters

Parameter Type Status Description
EU_vat integer 0
commission_default_cal boal true
commission_exclude_vat integer 0
contract_length_in_months integer 1
contract_status string pending
contract_type_id integer 1
cost_products array []
deposit integer 0
down_payment_default_cal boal true
estimated_tax integer 0
kilometer_limit integer 25000
leasing_id integer null
leasing_type_id integer 1
monthly_products array []
months_on_plates_per_year integer 12
price_of_vehicle integer 1
products array {}
profit integer 0
sent_for_approval_date date 2020-12-14
vehicle_type integer 2
vehicle_used_vat integer 0
vehicles_first_registration date 2020-12-14

Example response:

{
    "data": {
        "message": null,
        "data": null,
        "status_code": 200
    }
}

Contract Calculation

HTTP Request

POST /api/contract/calculation

Parameters

Parameter Type Status Description
EU_vat integer 0
commission_default_cal boal true
commission_exclude_vat integer 0
contract_length_in_months integer 1
contract_status string pending
contract_type_id integer 1
cost_products array [{"payment_type_id": 23, "payment_excl_tax_vat_cents": 800}],
deposit integer 0
down_payment_default_cal boal true
estimated_tax integer 1.03
kilometer_limit integer 25000
leasing_id integer null
leasing_type_id integer 1
monthly_products array [14, 23]
months_on_plates_per_year integer 12
price_of_vehicle integer 1.01
products array [{"product_payment_type": 23, "product_payment_amount": 1000, "product_cost_price_amount": 800, "product_payment_vat": 0}]
profit integer 0
sent_for_approval_date date 2020-12-14
vehicle_type integer 2
vehicle_used_vat integer 0
vehicles_first_registration date 2020-12-13

Example response:

{
    "data": {
        "contractLength": 1,
        "deposit": "0",
        "downPayment": "0",
        "monthlyPaymentExclVAT": 0.8,
        "salvageValue": "1",
        "monthlyPayment": "1",
        "newMonthlyPayment": "1",
        "commission": 0,
        "weightedRate": 2906181.6744579244,
        "taxForPeriod": "0",
        "upfrontPayment": "1",
        "totalPayments": "2",
        "netInvestment": "1",
        "totalProfit": "1",
        "totalNetInvestmentAndPayments": "1.201",
        "salvagePresentValue": "0",
        "activePrice": "1",
        "vehiclePriceEndContractIncTaxVat": "2",
        "roadAssistance": "0",
        "insuranceAmount": "0",
        "inActivePrice": "0",
        "newActivePrice": 1,
        "newInActivePrice": 0,
        "activeMonths": 12,
        "inActiveMonths": 0,
        "vatDeductionPerMonth": "",
        "vatDeductionDownPayment": "",
        "pricePerAdditionalKM": null,
        "kilometerLimit": "25.000",
        "internalRate": "322.670,07",
        "calculationOutputAreas": {
            "downPaymentMaxValue": 280.3612988166667,
            "totalUpfrontProductNotFormatted": 1000,
            "totalRevenue": 2000,
            "productsRevenue": [
                {
                    "payment_type_id": 14,
                    "amount_excl_tax_vat_cents": 1000,
                    "amount_as_contract_length": 1000,
                    "product": {
                        "id": 14,
                        "name": "CheckBoxMonthly",
                        "economic_product_id": 14,
                        "vat_id": 2,
                        "from_to_date_flag": false,
                        "for_sell": true,
                        "for_buy": false,
                        "price_excl_vat_cents": 1000,
                        "cost_price_excl_vat_cents": 500,
                        "product_menu_categories": [
                            {
                                "id": 5,
                                "name": "Tilføj til kontrakt- og leasingtilbud via checkboks",
                                "code": "monthly_product",
                                "pivot": {
                                    "product_id": 14,
                                    "product_menu_categories_id": 5,
                                    "created_at": "2017-04-19T11:55:09.000000Z",
                                    "updated_at": "2017-04-19T11:55:09.000000Z"
                                }
                            },

                        ],
                        "base_product": null,
                        "vat": {
                            "id": 2,
                            "type": "25 pct. moms",
                            "value": "0.25",
                            "created_at": null,
                            "updated_at": null
                        }
                    }
                },
                {
                    "payment_type_id": 23,
                    "amount_excl_tax_vat_cents": 1000,
                    "amount_as_contract_length": 1000,
                    "product": {
                        "id": 23,
                        "name": "3. nummerplade",
                        "economic_product_id": 25,
                        "vat_id": 1,
                        "from_to_date_flag": false,
                        "for_sell": true,
                        "for_buy": true,
                        "price_excl_vat_cents": 1000,
                        "cost_price_excl_vat_cents": 800,
                        "product_menu_categories": [
                            {
                                "id": 5,
                                "name": "Tilføj til kontrakt- og leasingtilbud via checkboks",
                                "code": "monthly_product",
                                "pivot": {
                                    "product_id": 23,
                                    "product_menu_categories_id": 5,
                                    "created_at": "2019-08-06T10:38:08.000000Z",
                                    "updated_at": "2019-08-06T10:38:08.000000Z"
                                }
                            },

                        ],
                        "base_product": null
                    }
                }
            ],
            "monthlyProductArea": {
                "labels.products.leasing_payment": "1",
                "CheckBoxMonthly": "1.250"
            },
            "monthlyProductAreaTotal": "1.251",
            "upfrontProductArea": {
                "3. nummerplade": "1.000",
                "Depositum": "0"
            },
            "upfrontProductAreaTotal": "1.000",
            "upfrontProductAreaTotalExclVat": 1000
        },
        "incomeAndExpenseData": [
            {
                "date": "15-12-2020",
                "day": 0,
                "interest_days": 0,
                "interest_pct": "0,00",
                "payment": "-0,59",
                "end_value": "-0,59",
                "interest": "0,00",
                "repayment": "0,00",
                "netPresentValue": "-0,59"
            },
        ],
        "totalCostProducts": "800",
        "productsRevenue": [
            {
                "payment_type_id": 14,
                "amount_excl_tax_vat_cents": 1000,
                "amount_as_contract_length": 1000,
                "product": {
                    "id": 14,
                    "name": "CheckBoxMonthly",
                    "economic_product_id": 14,
                    "vat_id": 2,
                    "from_to_date_flag": false,
                    "for_sell": true,
                    "for_buy": false,
                    "price_excl_vat_cents": 1000,
                    "cost_price_excl_vat_cents": 500,
                    "product_menu_categories": [
                        {
                            "id": 5,
                            "name": "Tilføj til kontrakt- og leasingtilbud via checkboks",
                            "code": "monthly_product",
                            "pivot": {
                                "product_id": 14,
                                "product_menu_categories_id": 5,
                                "created_at": "2017-04-19T11:55:09.000000Z",
                                "updated_at": "2017-04-19T11:55:09.000000Z"
                            }
                        },
                    ],
                    "base_product": null,
                    "vat": {
                        "id": 2,
                        "type": "25 pct. moms",
                        "value": "0.25",
                        "created_at": null,
                        "updated_at": null
                    }
                }
            },
        ],
        "totalRevenue": "2.000",
        "profit": "0",
        "depreciationPercent": "0,99",
        "leasingOfferContractCostProducts": [
            {
                "payment_type_id": 23,
                "amount_excl_tax_vat_cents": 800,
                "amount_as_contract_length": 800,
                "product": {
                    "id": 23,
                    "name": "3. nummerplade",
                    "economic_product_id": 25,
                    "vat_id": 1,
                    "from_to_date_flag": false,
                    "for_sell": true,
                    "for_buy": true,
                    "price_excl_vat_cents": 1000,
                    "cost_price_excl_vat_cents": 800,
                    "base_product": null,
                    "product_menu_categories": [
                        {
                            "id": 5,
                            "name": "Tilføj til kontrakt- og leasingtilbud via checkboks",
                            "code": "monthly_product",
                            "pivot": {
                                "product_id": 23,
                                "product_menu_categories_id": 5,
                                "created_at": "2019-08-06T10:38:08.000000Z",
                                "updated_at": "2019-08-06T10:38:08.000000Z"
                            }
                        },
                    ]
                }
            }
        ],
        "selfFinancing": "124,84",
        "deviationFromMinimumProfit": "-8.799"
    }
}

New Contract

HTTP Request

POST /api/contract/leasing/new

Parameters

Parameter Type Status Description
cost_products array [{"payment_type_id": 23, "payment_excl_tax_vat_cents": 800}]
products array [{"product_payment_type": 23, "product_payment_amount": 1000, "product_cost_price_amount": 800, "product_payment_vat": 0 }]
EU_vat integer 0
commission_default_cal string true
commission_exclude_vat integer 0
contract_length_in_months integer 1
contract_status string pending
contract_type_id integer 1
customer_id integer 229
deposit integer 0
down_payment integer 0.01
down_payment_default_cal string true
estimated_tax integer 1.03
kilometer_limit integer 25000
leasing_id integer null
leasing_type_id integer 1
monthly_payment integer 0.8
monthly_products array [23]
months_on_plates_per_year integer 12
price_of_vehicle integer 1
profit integer 0
saved_leasing_contract_id integer null
sent_for_approval_date date 2020-12-14
vehicle_id integer 310
vehicle_type integer 2
vehicle_used_vat integer 0
vehicles_first_registration date 2020-12-13
weighted_rate integer 1

Example response:

{
    "data": {
        "customerId": 229,
        "leasingContractId": 1187
    }
}

Get Leasing Calculation

HTTP Request

POST /api/contract/calculation

Parameters

Parameter Type Status Description
contract_type string private
cost_price_excl_vat_cents integer 800
monthly_total integer 1
payment_excl_tax_vat_cents integer 1000
payment_type_id integer 23
upfront_total integer 0
vat_cents integer 0

Example response:

{
    "data": {
        "nonSplitLeasingResult": {
            "paymentAmountInclVat": 1000,
            "upfrontProductAreaTotal": 0,
            "monthlyProductAreaTotal": "1"
        },
        "splitLeasingResult": [],
        "vatAmount": 0,
        "paymentAmount": 1000,
        "productTypeId": 23,
        "productName": "3. nummerplade",
        "totalOtherExpenses": 1000,
        "costPriceAmount": 800,
        "calculationOutputArea": "upfront"
    }
}

Get Contract Product Payment Vat

HTTP Request

POST contract/payment/vat/23

Parameters

Parameter Type Status Description

Example response:

{
    "data": {
        "vat_amount": 0
    }
}

Personal Info

Get Education Levels

HTTP Request

GET /api/personal-info/education/levels

Example response:

{
    "data": {
        "educationLevels": [
            {
                "id": 1,
                "name": "Faglært"
            }
        ]
    }
}

Get Education

HTTP Request

GET /api/personal-info/educations/{educationLevelId}

Example response:

{
    "data": {
        "educations": [
            {
                "id": 1,
                "name": "Anden faglært",
                "education_level_id": 1
            },

        ]
    }
}

Get Housing Types

HTTP Request

GET /api/personal-info/housing/types

Example response:


{
    "data": {
        "housingTypes": [
            {
                "id": 1,
                "name": "Andelsbolig"
            },

        ]
    }
}

Get Housing Expenses Types

HTTP Request

GET /api/personal-info/housing/{housingTypeId}

Example response:


{
    "data": {
        "expenseTypes": [
            {
                "id": 2,
                "type": "expense",
                "name": "Realkreditlån",
                "show_on_online_application": true,
                "pivot": {
                    "housing_type_id": 1,
                    "expense_type_id": 2
                }
            },
        ]
    }
}

Get Occupation Types

HTTP Request

GET /api/personal-info/occupation/types

Example response:


{
    "data": {
        "occupationTypes": [
            {
                "id": 1,
                "name": "Job"
            },
            {
                "id": 2,
                "name": "Ledig"
            },
            {
                "id": 3,
                "name": "Pensionist"
            },
            {
                "id": 4,
                "name": "Studerende"
            }
        ]
    }
}

Get Marital Statuses

HTTP Request

GET /api/personal-info/marital/statuses

Example response:


{
    "data": {
        "maritalStatuses": [
            {
                "id": 1,
                "name": "Enke",
                "married_living_together": false
            },

        ]
    }
}

Get cpr citizenship

HTTP Request

GET /api/customers/cpr/citizenship

Example response:


{
    "data": [
      {
        "id": 758,
        "code": "Nepal",
        "name": "Nepal",
        "value": null
      }
    ]
}

Documents Management

Get All document for customer

HTTP Request

GET /api/customers/{customer_id}/documents/data/{listOrDataTable}

Example response:


{
    "draw": 0,
    "recordsTotal": 5,
    "recordsFiltered": 5,
    "data": [
        {
            "id": 138,
            "customer_id": 26,
            "type_id": 373,
            "file_document_id": 512,
            "date": "02-08-2021",
            "file_document": {
                "id": 512,
                "filename": "fileName",
                "filepath_md5": "2e13144f61aaf5ef3d3c443d1253a00f",
                "file_mime": "image/jpeg",
                "uploaded_by": 2,
                "is_uploaded": false,
                "created_at": "02-08-2021",
                "updated_at": "02-08-2021"
            },
            "type": {
                "id": 373,
                "code": "social_security",
                "name": "Identifikation",
                "value": null,
                "model_type": "App\\Models\\Document\\DocumentType",
                "extra_details": null,
                "category_id": 23,
                "is_active": 1,
                "is_system": 1,
                "created_at": "27-07-2021 13:27:27",
                "updated_at": "27-07-2021 13:27:27"
            }
        },
}

Parameters

Parameter Type Status Description
type.code for search
date for search
filename for search

Download one document

HTTP Request

GET /api/customers/download-document/{document_id}

Example response:

{
    "data": {
        "message": "",
        "data": "https://leaso-new.fra1.digitaloceanspaces.com/system-files/customers/26/documents/income/1f800e84f87c0b97be595b7eab33f3c2?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AXEMOJO3VCADITHIKG4P%2F20210803%2Ffra1.digitaloceanspaces.com%2Fs3%2Faws4_request&X-Amz-Date=20210803T083445Z&X-Amz-SignedHeaders=host&X-Amz-Expires=1800&X-Amz-Signature=fc3f1857a19328082556dae9d54919ad11db6c9c3c4825cff23b0eeecc5f6b6e",
        "status_code": 200
    }
}

Delete one document

HTTP Request

DELETE /api/customers/delete-document/{document_id}

Example response:


{
    "data": {
        "message": "messages.CustomerDocument deleted successfully",
        "data": null,
        "status_code": 200
    }
}

Delete all documents for one customer

HTTP Request

DELETE /api/customers/delete-all-documents/{customer_id}

Example response:

{
    "data": {
        "message": "messages.CustomerDocument deleted successfully",
        "data": null,
        "status_code": 200
    }
}

Download all documents for one customer

HTTP Request

POST /api/customers/download-all-documents/{customer_id}

Example response:

{
"will download zip file"
}

Upload document for customer

HTTP Request

POST /api/customers/{customer_id}/upload-document

Example response:

{
    "data": {
        "message": "messages.CustomerDocument have created successfully",
        "data": {
            "customer_id": "26",
            "type_id": "370",
            "file_document_id": 513,
            "date": "02-08-2021",
            "id": 139
        }
    }
}

Parameters

Parameter Type Status Description
name string filename
type integer file type
date date
document file
action string new, replace

CVR Companies

Get CVR Company

HTTP Request

GET /api/customers/cvr/{search}

Parameters

Parameter Type Status Description
search required in URL search by cvr (38112104) or name
{
    "data": [
        {
            "vat": 38112104,
            "slug": "softwareselskabet-af-2016-aps",
            "address": {
                "street": "Trianglen",
                "streetcode": 8820,
                "numberfrom": 8,
                "numberto": null,
                "letterfrom": "C",
                "letterto": null,
                "floor": null,
                "door": null,
                "zipcode": 6000,
                "cityname": "Kolding",
                "altcityname": "Bramdrup",
                "countrycode": "DK",
                "coname": null,
                "freetext": null,
                "municipalitycode": 621,
                "municipalityname": "KOLDING",
                "mailbox": null,
                "kvh": "06218820__8C",
                "kvhx": "06218820__8C_______",
                "longitude": 9.46002179,
                "latitude": 55.53197915,
                "addressid": "7ed2832f-39ca-4627-8256-a39303714745",
                "start": "2020-10-31",
                "end": null,
                "timestamp": "2020-10-31"
            },
            "companyform": {
                "code": 80,
                "description": "APS",
                "longdescription": "Anpartsselskab",
                "holding": false
            },
            "companystatus": {
                "text": "NORMAL",
                "start": "2016-10-14"
            },
            "contact": {
                "email": "sb@leaso.dk",
                "www": "http://www.leaso.dk",
                "phone": "53746720"
            },
            "status": {
                "code": null,
                "creditcode": null,
                "start": null,
                "end": null,
                "bankrupt": false
            },
            "industry": {
                "primary": {
                    "code": 620200,
                    "text": "Konsulentbistand vedrørende informationsteknologi"
                },
                "secondary": []
            },
            "life": {
                "start": "2016-10-14",
                "end": null,
                "name": "Leaso ApS",
                "adprotected": true
            },
            "accounting": {
                "period_start": "--01-01",
                "period_end": "--12-31",
                "first_period_start": "2016-10-14",
                "first_period_end": "2017-04-30",
                "restructuring_period_start": "2020-05-01",
                "restructuring_period_end": "2020-12-31",
                "revision": false,
                "documents": [
                    {
                        "url": "https://regnskaber.cvrapi.dk/40121183/amNsb3VkczovLzAzLzgyLzhjLzUzLzcwLzgwMjEtNDhkMS1hMzZlLTY3OTE5OTJhYWI1OA.pdf",
                        "type": "AARSRAPPORT",
                        "start": "2020-05-01",
                        "end": "2020-12-31",
                        "publicdate": "2021-02-05",
                        "updated": "2021-06-09T15:50:03",
                        "currency": "DKK",
                        "summary": {
                            "assets": 2315221,
                            "cashandcashequivalents": 194728,
                            "contributedcapital": 100000,
                            "currentassets": 1824275,
                            "depreciationamortisationexpenseprofitorloss": -106578,
                            "developmentprojectsinprogressandprepaymentsforintangibleassets": 490946,
                            "employeebenefitsexpense": -77724,
                            "equity": 1400690,
                            "grossprofitloss": 1528562,
                            "intangibleassets": 490946,
                            "liabilitiesandequity": 2315221,
                            "liabilitiesotherthanprovisions": 861481,
                            "noncurrentassets": 490946,
                            "otherfinanceexpenses": -1282,
                            "othershorttermpayables": 519429,
                            "othershorttermreceivables": 107704,
                            "postemploymentbenefitexpense": -221269,
                            "profitloss": 1039995,
                            "profitlossfromordinaryactivitiesbeforetax": 1342978,
                            "profitlossfromordinaryoperatingactivities": 1344260,
                            "provisions": 53050,
                            "provisionsfordeferredtax": 53050,
                            "restofotherreserves": 382938,
                            "retainedearnings": 917752,
                            "shorttermliabilitiesotherthanprovisions": 861481,
                            "shorttermreceivables": 1629547,
                            "shorttermreceivablesfromgroupenterprises": 1500000,
                            "shorttermtaxpayables": 231721,
                            "shorttermtradepayables": 110331,
                            "shorttermtradereceivables": 21843,
                            "socialsecuritycontributions": -3968,
                            "taxexpenseonordinaryactivities": -302983,
                            "wagesandsalaries": -295025,
                            "averagenumberofemployees": 1,
                            "roi": 58.0618,
                            "liquidityratio": 211.7603,
                            "solvencyratio": 60.4992,
                            "equityreturn": 95.8797
                        }
                    },
                    {
                        "url": "https://regnskaber.cvrapi.dk/40121183/amNsb3VkczovLzAzLzNmL2YyLzcwLzBlLzA0ODYtNGVhNS1hOTE2LTg0N2IyMjI3NTg2Yg.pdf",
                        "type": "AARSRAPPORT",
                        "start": "2019-05-01",
                        "end": "2020-04-30",
                        "publicdate": "2020-07-06",
                        "updated": "2021-06-09T15:50:03",
                        "currency": "DKK",
                        "summary": {
                            "acquiredothersimilarrights": 243159,
                            "assets": 470968,
                            "cashandcashequivalents": 188880,
                            "contributedcapital": 100000,
                            "currentassets": 227809,
                            "currentdeferredtaxassets": 18211,
                            "depreciationamortisationexpenseprofitorloss": -106578,
                            "employeebenefitsexpense": -416020,
                            "equity": 360696,
                            "grossprofitloss": 776877,
                            "intangibleassets": 243159,
                            "liabilitiesandequity": 470968,
                            "liabilitiesotherthanprovisions": 110272,
                            "noncurrentassets": 243159,
                            "otherfinanceincome": -553,
                            "othershorttermpayables": 106280,
                            "profitloss": 228787,
                            "profitlossfromordinaryactivitiesbeforetax": 253726,
                            "profitlossfromordinaryoperatingactivities": 254279,
                            "retainedearnings": 213696,
                            "sharepremium": 47000,
                            "shorttermliabilitiesotherthanprovisions": 110272,
                            "shorttermpayablestoshareholdersandmanagement": 3992,
                            "shorttermreceivables": 38929,
                            "shorttermtradereceivables": 20718,
                            "taxexpense": 24939,
                            "roi": 53.9907,
                            "liquidityratio": 206.5883,
                            "solvencyratio": 76.5861,
                            "equityreturn": 70.3434
                        }
                    },
                    {
                        "url": "https://regnskaber.cvrapi.dk/40121183/ZG9rdW1lbnRsYWdlcjovLzAzL2YxL2VkL2NhL2Q1L2UwMGYtNGJhNi1iYzQ3LTY2ODgxMjE2MjVmYg.pdf",
                        "type": "AARSRAPPORT",
                        "start": "2018-05-01",
                        "end": "2019-04-30",
                        "publicdate": "2019-09-23",
                        "updated": "2021-06-09T15:50:03",
                        "currency": "DKK",
                        "summary": {
                            "acquiredothersimilarrights": 203379,
                            "assets": 237595,
                            "cashandcashequivalents": 1066,
                            "contributedcapital": 100000,
                            "currentassets": 34216,
                            "currentdeferredtaxassets": 43150,
                            "depreciationamortisationexpenseprofitorloss": -77307,
                            "employeebenefitsexpense": -209010,
                            "equity": 131909,
                            "grossprofitloss": 120558,
                            "intangibleassets": 203379,
                            "liabilitiesandequity": 237595,
                            "liabilitiesotherthanprovisions": 105686,
                            "noncurrentassets": 203379,
                            "otherfinanceincome": -144,
                            "othershorttermpayables": 45563,
                            "profitloss": -130531,
                            "profitlossfromordinaryactivitiesbeforetax": -166119,
                            "profitlossfromordinaryoperatingactivities": -165759,
                            "restofotherfinanceexpenses": 216,
                            "retainedearnings": -15091,
                            "sharepremium": 47000,
                            "shorttermliabilitiesotherthanprovisions": 105686,
                            "shorttermpayablestoshareholdersandmanagement": 20000,
                            "shorttermreceivables": 33150,
                            "shorttermtaxpayables": 40123,
                            "shorttermtradereceivables": -10000,
                            "taxexpense": -35588,
                            "roi": -69.7654,
                            "liquidityratio": 32.3751,
                            "solvencyratio": 55.5184,
                            "equityreturn": -125.9345
                        }
                    },
                    {
                        "url": "https://regnskaber.cvrapi.dk/40121183/ZG9rdW1lbnRsYWdlcjovLzAzLzBhLzljL2JjL2MzL2YwNTktNDhjNy1hYmM2LTI2ZThiMjU5NDZiYQ.pdf",
                        "type": "AARSRAPPORT",
                        "start": "2017-05-01",
                        "end": "2018-04-30",
                        "publicdate": "2018-09-28",
                        "updated": "2021-06-09T15:50:03",
                        "currency": "DKK",
                        "summary": {
                            "acquiredothersimilarrights": 220802,
                            "assets": 384352,
                            "cashandcashequivalents": 16907,
                            "contributedcapital": 100000,
                            "currentassets": 163550,
                            "currentdeferredtaxassets": 7562,
                            "depreciationamortisationexpenseprofitorloss": -65330,
                            "employeebenefitsexpense": -106315,
                            "equity": 262440,
                            "grossprofitloss": 334056,
                            "intangibleassets": 220802,
                            "liabilitiesandequity": 384352,
                            "liabilitiesotherthanprovisions": 121912,
                            "noncurrentassets": 220802,
                            "otherfinanceincome": -23,
                            "othershorttermpayables": 35543,
                            "othershorttermreceivables": 8000,
                            "profitloss": 126010,
                            "profitlossfromordinaryactivitiesbeforetax": 161551,
                            "profitlossfromordinaryoperatingactivities": 162411,
                            "restofotherfinanceexpenses": -837,
                            "retainedearnings": 115440,
                            "sharepremium": 47000,
                            "shorttermliabilitiesotherthanprovisions": 121912,
                            "shorttermpayablestoshareholdersandmanagement": 46246,
                            "shorttermreceivables": 146643,
                            "shorttermtaxpayables": 40123,
                            "shorttermtradereceivables": 131081,
                            "taxexpense": 35541,
                            "roi": 42.2558,
                            "liquidityratio": 134.1541,
                            "solvencyratio": 68.2812,
                            "equityreturn": 61.5573
                        }
                    },
                    {
                        "url": "https://regnskaber.cvrapi.dk/40121183/ZG9rdW1lbnRsYWdlcjovLzAzL2QwL2YyL2FjLzIyL2IxNzctNDE2Ny1hNDczLWM4YjE2MDk2ZTZlNw.pdf",
                        "type": "AARSRAPPORT",
                        "start": "2016-10-14",
                        "end": "2017-04-30",
                        "publicdate": "2017-10-04",
                        "updated": "2021-06-09T15:50:03",
                        "currency": "DKK",
                        "summary": {
                            "acquiredothersimilarrights": 162073,
                            "assets": 215342,
                            "cashandcashequivalents": 31686,
                            "contributedcapital": 100000,
                            "currentassets": 53269,
                            "currentdeferredtaxassets": 2981,
                            "depreciationamortisationexpenseprofitorloss": -40518,
                            "employeebenefitsexpense": -33789,
                            "equity": 136430,
                            "grossprofitloss": 60771,
                            "intangibleassets": 162073,
                            "liabilitiesandequity": 215342,
                            "liabilitiesotherthanprovisions": 78912,
                            "noncurrentassets": 162073,
                            "otherfinanceincome": -15,
                            "othershorttermpayables": 16983,
                            "othershorttermreceivables": 18602,
                            "profitloss": -10570,
                            "profitlossfromordinaryactivitiesbeforetax": -13551,
                            "profitlossfromordinaryoperatingactivities": -13536,
                            "retainedearnings": -10570,
                            "sharepremium": 47000,
                            "shorttermliabilitiesotherthanprovisions": 78912,
                            "shorttermpayablestoshareholdersandmanagement": 61929,
                            "shorttermreceivables": 21583,
                            "taxexpense": -2981,
                            "roi": -6.2858,
                            "liquidityratio": 67.5043,
                            "solvencyratio": 63.355,
                            "equityreturn": -9.9326
                        }
                    }
                ],
                "tax": [
                    {
                        "year": 2017,
                        "tradeid": 38112104,
                        "managementvat": 31471249,
                        "companytype": "Datterselskab",
                        "taxlaw": "Selskabsskatteloven § 1.1.1",
                        "taxableincome": null,
                        "deficit": null,
                        "paidtax": null,
                        "tonnageorcarbon": null
                    },
                    {
                        "year": 2018,
                        "tradeid": 38112104,
                        "managementvat": 31471249,
                        "companytype": "Datterselskab",
                        "taxlaw": "Selskabsskatteloven § 1.1.1",
                        "taxableincome": null,
                        "deficit": null,
                        "paidtax": null,
                        "tonnageorcarbon": null
                    },
                    {
                        "year": 2019,
                        "tradeid": 38112104,
                        "managementvat": 31471249,
                        "companytype": "Datterselskab",
                        "taxlaw": "Selskabsskatteloven § 1.1.1",
                        "taxableincome": null,
                        "deficit": null,
                        "paidtax": null,
                        "tonnageorcarbon": null
                    }
                ]
            },
            "info": {
                "capital_amount": 100000,
                "capital_currency": "DKK",
                "capital_partial": false,
                "capital_classes": false,
                "capital_ipo": false,
                "shareholder_below_5_percent": false,
                "shareholder_public": false,
                "articles_of_association": "2020-10-21",
                "purpose": "Selskabets formål er at er at udvikle software.",
                "bind": "Selskabet tegnes af en direktør.",
                "modes_legislation_money_laundering": false,
                "modes_social_economic": false,
                "modes_government": false,
                "lei_id": null,
                "demerges": [],
                "merges": [],
                "ean": []
            },
            "secondarynames": [
                "Softwareselskabet Anno 2016 ApS",
                "Softwareselskabet f 2016 ApS"
            ],
            "subsidiaries": [
                {
                    "subsidiarynumber": 1021841532,
                    "vat": 38112104,
                    "slug": "softwareselskabet-af-2016-aps",
                    "address": {
                        "street": "Trianglen",
                        "streetcode": 8820,
                        "numberfrom": 8,
                        "numberto": null,
                        "letterfrom": "C",
                        "letterto": null,
                        "floor": null,
                        "door": null,
                        "zipcode": 6000,
                        "cityname": "Kolding",
                        "altcityname": "Bramdrup",
                        "countrycode": "DK",
                        "coname": null,
                        "freetext": null,
                        "municipalitycode": 621,
                        "municipalityname": "KOLDING",
                        "mailbox": null,
                        "kvh": "06218820__8C",
                        "kvhx": "06218820__8C_______",
                        "longitude": 9.46002179,
                        "latitude": 55.53197915,
                        "addressid": "7ed2832f-39ca-4627-8256-a39303714745",
                        "start": "2020-10-31",
                        "end": null,
                        "timestamp": "2020-10-31"
                    },
                    "life": {
                        "start": "2016-10-14",
                        "end": null,
                        "name": "Leaso ApS",
                        "adprotected": true,
                        "main": true
                    }
                }
            ],
            "employment": {
                "months": [
                    {
                        "amount": 1,
                        "amount_fte": 1,
                        "interval_low": 1,
                        "interval_high": 1,
                        "interval_low_fte": 1,
                        "interval_high_fte": 1,
                        "year": 2021,
                        "month": 7
                    },

                ],
                "quarters": [
                    {
                        "amount": null,
                        "amount_fte": null,
                        "interval_low": 0,
                        "interval_high": 0,
                        "interval_low_fte": 1,
                        "interval_high_fte": 1,
                        "year": 2019,
                        "quarter": 3
                    },

                ],
                "years": [
                    {
                        "amount": null,
                        "amount_fte": null,
                        "interval_low": 1,
                        "interval_high": 1,
                        "interval_low_fte": 1,
                        "interval_high_fte": 1,
                        "year": 2018
                    },
                    {
                        "amount": null,
                        "amount_fte": null,
                        "interval_low": 1,
                        "interval_high": 1,
                        "interval_low_fte": 1,
                        "interval_high_fte": 1,
                        "year": 2017
                    }
                ]
            },
            "participants": [
                {
                    "participantnumber": 4000343959,
                    "slug": "stephen-ulf-berg",
                    "address": {
                        "street": "Sdr. Vilstrupvej",
                        "streetcode": 8232,
                        "numberfrom": 4,
                        "numberto": null,
                        "letterfrom": null,
                        "letterto": null,
                        "floor": null,
                        "door": null,
                        "zipcode": 7000,
                        "cityname": "Fredericia",
                        "altcityname": "Højrup",
                        "countrycode": "DK",
                        "coname": null,
                        "freetext": null,
                        "municipalitycode": 607,
                        "municipalityname": "FREDERICIA",
                        "mailbox": null,
                        "kvh": "06078232___4",
                        "kvhx": "06078232___4_______",
                        "longitude": 9.60006916,
                        "latitude": 55.55654549,
                        "addressid": "0a3f50ba-d61d-32b8-e044-0003ba298018",
                        "start": "2013-12-19",
                        "end": null,
                        "timestamp": "2021-08-18",
                        "unlisted": false
                    },
                    "life": {
                        "name": "Stephen Ulf Berg",
                        "profession": null,
                        "deceased": false
                    },
                    "participant": true,
                    "roles": [
                        {
                            "type": "director",
                            "life": {
                                "start": "2020-10-31",
                                "end": null,
                                "title": "Adm. dir."
                            }
                        },
                        {
                            "type": "real_owner",
                            "life": {
                                "owner_percent": 100,
                                "owner_voting_percent": 100,
                                "special_ownership": "Har indirekte besiddelser",
                                "start": "2017-02-06",
                                "end": null
                            }
                        }
                    ]
                },
                {
                    "participantnumber": 4006682998,
                    "slug": "nicklas-heidensleben-thorsen",
                    "address": {
                        "street": "Fasanvænget",
                        "streetcode": 184,
                        "numberfrom": 426,
                        "numberto": null,
                        "letterfrom": null,
                        "letterto": null,
                        "floor": null,
                        "door": null,
                        "zipcode": 2980,
                        "cityname": "Kokkedal",
                        "altcityname": "Ullerød",
                        "countrycode": "DK",
                        "coname": "c/o Michael Thorsen",
                        "freetext": null,
                        "municipalitycode": 210,
                        "municipalityname": "FREDENSBORG",
                        "mailbox": null,
                        "kvh": "02100184_426",
                        "kvhx": "02100184_426_______",
                        "longitude": 12.50285515,
                        "latitude": 55.91301936,
                        "addressid": "0a3f50aa-57c7-32b8-e044-0003ba298018",
                        "start": "2019-10-16",
                        "end": null,
                        "timestamp": "2021-10-08",
                        "unlisted": false
                    },
                    "life": {
                        "name": "Nicklas Heidensleben Thorsen",
                        "profession": null,
                        "deceased": false
                    },
                    "participant": true,
                    "roles": [
                        {
                            "type": "founder",
                            "life": {
                                "start": "2016-10-14",
                                "end": null,
                                "title": null
                            }
                        }
                    ]
                },
                {
                    "vat": 31471249,
                    "slug": "holdingselskabet-af-23-maj-2008-kobenhavn-aps",
                    "address": {
                        "street": "Sandbjergvej",
                        "streetcode": 528,
                        "numberfrom": 17,
                        "numberto": null,
                        "letterfrom": null,
                        "letterto": null,
                        "floor": null,
                        "door": null,
                        "zipcode": 2970,
                        "cityname": "Hørsholm",
                        "altcityname": null,
                        "countrycode": "DK",
                        "coname": "Christian Richter",
                        "freetext": null,
                        "municipalitycode": 230,
                        "municipalityname": "RUDERSDAL",
                        "mailbox": null,
                        "kvh": "02300528__17",
                        "kvhx": "02300528__17_______",
                        "longitude": 12.50149015,
                        "latitude": 55.85315616,
                        "addressid": "0a3f50a7-f9c3-32b8-e044-0003ba298018",
                        "start": "2016-09-21",
                        "end": null,
                        "timestamp": "2016-09-27"
                    },
                    "companyform": {
                        "code": 80,
                        "description": "APS",
                        "longdescription": "Anpartsselskab",
                        "holding": true
                    },
                    "companystatus": {
                        "text": "NORMAL",
                        "start": "2008-05-21"
                    },
                    "life": {
                        "start": "2008-05-21",
                        "end": null,
                        "name": "HOLDINGSELSKABET AF 23. MAJ 2008 KØBENHAVN ApS",
                        "adprotected": false
                    },
                    "company": true,
                    "roles": [
                        {
                            "type": "founder",
                            "life": {
                                "start": "2016-10-14",
                                "end": null,
                                "title": null
                            }
                        }
                    ]
                },
                {
                    "vat": 25360478,
                    "slug": "sinvest-as",
                    "address": {
                        "street": "Sdr. Vilstrupvej",
                        "streetcode": 8232,
                        "numberfrom": 4,
                        "numberto": null,
                        "letterfrom": null,
                        "letterto": null,
                        "floor": null,
                        "door": null,
                        "zipcode": 7000,
                        "cityname": "Fredericia",
                        "altcityname": null,
                        "countrycode": "DK",
                        "coname": "Stephen Berg",
                        "freetext": null,
                        "municipalitycode": 607,
                        "municipalityname": "FREDERICIA",
                        "mailbox": null,
                        "kvh": "06078232___4",
                        "kvhx": "06078232___4_______",
                        "longitude": 9.60006916,
                        "latitude": 55.55654549,
                        "addressid": "0a3f50ba-d61d-32b8-e044-0003ba298018",
                        "start": "2014-05-18",
                        "end": null,
                        "timestamp": "2014-05-18"
                    },
                    "companyform": {
                        "code": 60,
                        "description": "A/S",
                        "longdescription": "Aktieselskab",
                        "holding": true
                    },
                    "companystatus": {
                        "text": "NORMAL",
                        "start": "2000-05-12"
                    },
                    "life": {
                        "start": "2000-05-12",
                        "end": null,
                        "name": "SINVEST A/S",
                        "adprotected": true
                    },
                    "company": true,
                    "roles": [
                        {
                            "type": "owner",
                            "life": {
                                "owner_percent": 100,
                                "owner_voting_percent": 100,
                                "start": "2020-12-18",
                                "end": null
                            }
                        }
                    ]
                }
            ],
            "participations": []
        }
    ]
}

Update CVR Company

HTTP Request

POST /api/customers/cvr/{search}

Parameters

Parameter Type Status Description
search required in URL search by cvr (38112104)
{
    "data": {
        "cvr_number": 38112104,
        "company_name": "Leaso ApS",
        "city": "Kolding",
        "street_address": "Trianglen",
        "countrycode": "DK",
        "zip_code": 6000,
        "telephone": "53746720",
        "email": "sb@leaso.dk",
        "info_bind": "Selskabet tegnes af en direktør.",
        "participants": [
            {
                "participantnumber": 4000343959,
                "slug": "stephen-ulf-berg",
                "address": {
                    "street": "Sdr. Vilstrupvej",
                    "streetcode": 8232,
                    "numberfrom": 4,
                    "numberto": null,
                    "letterfrom": null,
                    "letterto": null,
                    "floor": null,
                    "door": null,
                    "zipcode": 7000,
                    "cityname": "Fredericia",
                    "altcityname": "Højrup",
                    "countrycode": "DK",
                    "coname": null,
                    "freetext": null,
                    "municipalitycode": 607,
                    "municipalityname": "FREDERICIA",
                    "mailbox": null,
                    "kvh": "06078232___4",
                    "kvhx": "06078232___4_______",
                    "longitude": 9.60006916,
                    "latitude": 55.55654549,
                    "addressid": "0a3f50ba-d61d-32b8-e044-0003ba298018",
                    "start": "2013-12-19",
                    "end": null,
                    "timestamp": "2021-08-18",
                    "unlisted": false
                },
                "life": {
                    "name": "Stephen Ulf Berg",
                    "profession": null,
                    "deceased": false
                },
                "participant": true,
                "roles": [
                    {
                        "type": "real_owner",
                        "life": {
                            "owner_percent": 97.5,
                            "owner_voting_percent": 97.5,
                            "start": "2020-10-31",
                            "end": "2020-12-17"
                        }
                    }
                ]
            },
            {
                "participantnumber": 4000482344,
                "slug": "hans-christian-richter",
                "address": {
                    "street": "Skovvej",
                    "streetcode": 742,
                    "numberfrom": 24,
                    "numberto": null,
                    "letterfrom": null,
                    "letterto": null,
                    "floor": null,
                    "door": null,
                    "zipcode": 2820,
                    "cityname": "Gentofte",
                    "altcityname": null,
                    "countrycode": "DK",
                    "coname": null,
                    "freetext": null,
                    "municipalitycode": 157,
                    "municipalityname": "GENTOFTE",
                    "mailbox": null,
                    "kvh": "01570742__24",
                    "kvhx": "01570742__24_______",
                    "longitude": 12.54638084,
                    "latitude": 55.76335783,
                    "addressid": "0a3f50a3-ffc2-32b8-e044-0003ba298018",
                    "start": "2020-11-02",
                    "end": null,
                    "timestamp": "2021-08-12",
                    "unlisted": false
                },
                "life": {
                    "name": "Hans-Christian Richter",
                    "profession": null,
                    "deceased": false
                },
                "participant": true,
                "roles": [
                    {
                        "type": "director",
                        "life": {
                            "start": "2016-10-14",
                            "end": "2018-12-03",
                            "title": "Adm. dir."
                        }
                    },
                    {
                        "type": "owner",
                        "life": {
                            "owner_percent": 50,
                            "owner_voting_percent": 50,
                            "start": "2020-05-01",
                            "end": "2020-10-31"
                        }
                    },
                    {
                        "type": "real_owner",
                        "life": {
                            "owner_percent": 58.5,
                            "owner_voting_percent": 58.5,
                            "special_ownership": "Har indirekte besiddelser",
                            "start": "2017-02-28",
                            "end": "2020-10-31"
                        }
                    }
                ]
            }
        ],
        "customer": {
            "id": 26,
            "assignee_id": null,
            "company_name": "Leaso ApS",
            "customer_private_or_company": "company",
            "first_name": "Sophus3",
            "last_name": "Schlosser",
            "email": "sb@leaso.dk",
            "street_address": "Trianglen",
            "zip_code": "6000",
            "city": "Kolding",
            "telephone": "53746720",
            "cpr_number": "3214567878",
            "cvr_number": "38112104",
            "economic_customer_number": 35001,
            "economic_customer_contact_number": null,
            "payment_term_id": 1,
            "bank_registration": 1232,
            "bank_account_number": 446346,
            "pbs_created": null,
            "id_received": null,
            "related_to_id": null,
            "driver_license_file_id": 405,
            "social_security_file_id": 404,
            "created_at": "06-04-2016",
            "updated_at": "12-10-2021"
        }
    }
}

GET Company real owner

HTTP Request

GET /api/customers/{id}/real-owner

Parameters

Parameter Type Status Description
{
    "draw": 0,
    "recordsTotal": 4,
    "recordsFiltered": 4,
    "data": [
        {
            "id": 160,
            "name": "Jeppe Dahl Andersen",
            "created_at": "21-04-2022 13:35:16",
            "updated_at": "21-04-2022 13:35:16",
            "participantnumber": "4000505709",
            "details": [
                {
                    "id": 2820,
                    "customer_id": 616,
                    "owner_id": 160,
                    "created_at": "21-04-2022 14:09:52",
                    "updated_at": "21-04-2022 14:09:52",
                    "active": 1,
                    "owner_percent": "56.00",
                    "owner_voting_percent": "56.00",
                    "position": "real_owner",
                    "history": null,
                    "start_date": "2017-07-04",
                    "end_date": null,
                    "street_address": "Sejs Søvej 36 Sejs-Svejbæk 8600 Silkeborg",
                    "cityname": "Silkeborg"
                },
                {
                    "id": 2823,
                    "customer_id": 616,
                    "owner_id": 160,
                    "created_at": "21-04-2022 14:09:52",
                    "updated_at": "21-04-2022 14:09:52",
                    "active": 1,
                    "owner_percent": "0.00",
                    "owner_voting_percent": "0.00",
                    "position": "director",
                    "history": "{\"roles\": [{\"life\": {\"end\": \"2019-01-01\", \"start\": \"2011-08-22\", \"title\": \"Adm. dir.\"}, \"type\": \"director\"}, {\"life\": {\"end\": \"2019-02-20\", \"start\": \"2019-01-02\", \"title\": \"Direktør\"}, \"type\": \"director\"}, {\"life\": {\"end\": \"2019-02-19\", \"start\": \"2011-08-22\", \"title\": \"Bestyrelsesmedlem\", \"election_format\": \"Generalforsamling\"}, \"type\": \"board\"}, {\"life\": {\"end\": \"2019-04-01\", \"start\": \"2019-02-20\", \"title\": \"Formand\", \"election_format\": \"Generalforsamling\"}, \"type\": \"board\"}]}",
                    "start_date": "2019-04-02",
                    "end_date": null,
                    "street_address": "Sejs Søvej 36 Sejs-Svejbæk 8600 Silkeborg",
                    "cityname": "Silkeborg"
                }
            ]
        },
        {
            "id": 161,
            "name": "Poul Konrad Beck",
            "created_at": "21-04-2022 13:35:16",
            "updated_at": "21-04-2022 13:35:16",
            "participantnumber": "4003873366",
            "details": [
                {
                    "id": 2821,
                    "customer_id": 616,
                    "owner_id": 161,
                    "created_at": "21-04-2022 14:09:52",
                    "updated_at": "21-04-2022 14:09:52",
                    "active": 1,
                    "owner_percent": "22.00",
                    "owner_voting_percent": "22.00",
                    "position": "real_owner",
                    "history": "{\"roles\": [{\"life\": {\"end\": \"2021-10-06\", \"start\": \"2017-08-28\", \"title\": \"Bestyrelsesmedlem\", \"election_format\": \"Generalforsamling\"}, \"type\": \"board\"}, {\"life\": {\"end\": \"2019-11-16\", \"start\": \"2017-07-04\", \"owner_percent\": 18, \"owner_voting_percent\": 18}, \"type\": \"real_owner\"}]}",
                    "start_date": "2017-07-04",
                    "end_date": null,
                    "street_address": "Søholt Allé 14  8600 Silkeborg",
                    "cityname": "Silkeborg"
                }
            ]
        },
        {
            "id": 162,
            "name": "Kenneth Pedersen",
            "created_at": "21-04-2022 13:35:16",
            "updated_at": "21-04-2022 13:35:16",
            "participantnumber": "4004064714",
            "details": [
                {
                    "id": 2822,
                    "customer_id": 616,
                    "owner_id": 162,
                    "created_at": "21-04-2022 14:09:52",
                    "updated_at": "21-04-2022 14:09:52",
                    "active": 1,
                    "owner_percent": "17.60",
                    "owner_voting_percent": "17.60",
                    "position": "real_owner",
                    "history": "{\"roles\": [{\"life\": {\"end\": \"2019-11-16\", \"start\": \"2017-07-04\", \"owner_percent\": 18, \"owner_voting_percent\": 18}, \"type\": \"real_owner\"}]}",
                    "start_date": "2017-07-04",
                    "end_date": null,
                    "street_address": "Sølystvej 31  8600 Silkeborg",
                    "cityname": "Silkeborg"
                }
            ]
        },
        {
            "id": 163,
            "name": "Inger Margrethe Bank Rønne",
            "created_at": "21-04-2022 13:36:47",
            "updated_at": "21-04-2022 13:36:47",
            "participantnumber": "4003851830",
            "details": [
                {
                    "id": 2824,
                    "customer_id": 616,
                    "owner_id": 163,
                    "created_at": "21-04-2022 14:09:52",
                    "updated_at": "21-04-2022 14:09:52",
                    "active": 0,
                    "owner_percent": "8.00",
                    "owner_voting_percent": "8.00",
                    "position": "real_owner",
                    "history": null,
                    "start_date": "2017-07-04",
                    "end_date": "2019-11-17",
                    "street_address": "Hasselhaven 70  8520 Lystrup",
                    "cityname": "Lystrup"
                }
            ]
        }
    ],
    "queries": [
        {
            "query": "select count(*) as aggregate from `owners` where exists (select * from `customers` inner join `company_owners` on `customers`.`id` = `company_owners`.`customer_id` where `owners`.`id` = `company_owners`.`owner_id` and `customers`.`id` = ? and `position` = ?)",
            "bindings": [
                "616",
                "real_owner"
            ],
            "time": 0.53
        },
        {
            "query": "select * from `owners` where exists (select * from `customers` inner join `company_owners` on `customers`.`id` = `company_owners`.`customer_id` where `owners`.`id` = `company_owners`.`owner_id` and `customers`.`id` = ? and `position` = ?)",
            "bindings": [
                "616",
                "real_owner"
            ],
            "time": 0.37
        },
        {
            "query": "select * from `company_owners` where `company_owners`.`owner_id` in (160, 161, 162, 163)",
            "bindings": [],
            "time": 0.34
        }
    ],
    "input": []
}

GET All Companies Types

HTTP Request

GET /api/customers/get-all-companies-types

Parameters

Parameter Type Status Description
{
    "data": {
        "general": "General",
        "real_owner": "Real Owner",
        "owner": [
            "Legal Owner-person",
            "Legal Owner-company"
        ],
        "fully_responsible_participant": [
            "Fully liable partner-person",
            "Fully liable partner-company"
        ],
        "daily-management": "daily-management",
        "director": "Director",
        "accountant": "Auditor",
        "board": "Board of Directors"
    }
}

GET Company real owner

HTTP Request

GET /api/customers/{id}/real-owner

Parameters

Parameter Type Status Description
{
    "draw": 0,
    "recordsTotal": 4,
    "recordsFiltered": 4,
    "data": [
        {
            "id": 160,
            "name": "Jeppe Dahl Andersen",
            "created_at": "21-04-2022 13:35:16",
            "updated_at": "21-04-2022 13:35:16",
            "participantnumber": "4000505709",
            "details": [
                {
                    "id": 2820,
                    "customer_id": 616,
                    "owner_id": 160,
                    "created_at": "21-04-2022 14:09:52",
                    "updated_at": "21-04-2022 14:09:52",
                    "active": 1,
                    "owner_percent": "56.00",
                    "owner_voting_percent": "56.00",
                    "position": "real_owner",
                    "history": null,
                    "start_date": "2017-07-04",
                    "end_date": null,
                    "street_address": "Sejs Søvej 36 Sejs-Svejbæk 8600 Silkeborg",
                    "cityname": "Silkeborg"
                },
                {
                    "id": 2823,
                    "customer_id": 616,
                    "owner_id": 160,
                    "created_at": "21-04-2022 14:09:52",
                    "updated_at": "21-04-2022 14:09:52",
                    "active": 1,
                    "owner_percent": "0.00",
                    "owner_voting_percent": "0.00",
                    "position": "director",
                    "history": "{\"roles\": [{\"life\": {\"end\": \"2019-01-01\", \"start\": \"2011-08-22\", \"title\": \"Adm. dir.\"}, \"type\": \"director\"}, {\"life\": {\"end\": \"2019-02-20\", \"start\": \"2019-01-02\", \"title\": \"Direktør\"}, \"type\": \"director\"}, {\"life\": {\"end\": \"2019-02-19\", \"start\": \"2011-08-22\", \"title\": \"Bestyrelsesmedlem\", \"election_format\": \"Generalforsamling\"}, \"type\": \"board\"}, {\"life\": {\"end\": \"2019-04-01\", \"start\": \"2019-02-20\", \"title\": \"Formand\", \"election_format\": \"Generalforsamling\"}, \"type\": \"board\"}]}",
                    "start_date": "2019-04-02",
                    "end_date": null,
                    "street_address": "Sejs Søvej 36 Sejs-Svejbæk 8600 Silkeborg",
                    "cityname": "Silkeborg"
                }
            ]
        },
        {
            "id": 161,
            "name": "Poul Konrad Beck",
            "created_at": "21-04-2022 13:35:16",
            "updated_at": "21-04-2022 13:35:16",
            "participantnumber": "4003873366",
            "details": [
                {
                    "id": 2821,
                    "customer_id": 616,
                    "owner_id": 161,
                    "created_at": "21-04-2022 14:09:52",
                    "updated_at": "21-04-2022 14:09:52",
                    "active": 1,
                    "owner_percent": "22.00",
                    "owner_voting_percent": "22.00",
                    "position": "real_owner",
                    "history": "{\"roles\": [{\"life\": {\"end\": \"2021-10-06\", \"start\": \"2017-08-28\", \"title\": \"Bestyrelsesmedlem\", \"election_format\": \"Generalforsamling\"}, \"type\": \"board\"}, {\"life\": {\"end\": \"2019-11-16\", \"start\": \"2017-07-04\", \"owner_percent\": 18, \"owner_voting_percent\": 18}, \"type\": \"real_owner\"}]}",
                    "start_date": "2017-07-04",
                    "end_date": null,
                    "street_address": "Søholt Allé 14  8600 Silkeborg",
                    "cityname": "Silkeborg"
                }
            ]
        },
        {
            "id": 162,
            "name": "Kenneth Pedersen",
            "created_at": "21-04-2022 13:35:16",
            "updated_at": "21-04-2022 13:35:16",
            "participantnumber": "4004064714",
            "details": [
                {
                    "id": 2822,
                    "customer_id": 616,
                    "owner_id": 162,
                    "created_at": "21-04-2022 14:09:52",
                    "updated_at": "21-04-2022 14:09:52",
                    "active": 1,
                    "owner_percent": "17.60",
                    "owner_voting_percent": "17.60",
                    "position": "real_owner",
                    "history": "{\"roles\": [{\"life\": {\"end\": \"2019-11-16\", \"start\": \"2017-07-04\", \"owner_percent\": 18, \"owner_voting_percent\": 18}, \"type\": \"real_owner\"}]}",
                    "start_date": "2017-07-04",
                    "end_date": null,
                    "street_address": "Sølystvej 31  8600 Silkeborg",
                    "cityname": "Silkeborg"
                }
            ]
        },
        {
            "id": 163,
            "name": "Inger Margrethe Bank Rønne",
            "created_at": "21-04-2022 13:36:47",
            "updated_at": "21-04-2022 13:36:47",
            "participantnumber": "4003851830",
            "details": [
                {
                    "id": 2824,
                    "customer_id": 616,
                    "owner_id": 163,
                    "created_at": "21-04-2022 14:09:52",
                    "updated_at": "21-04-2022 14:09:52",
                    "active": 0,
                    "owner_percent": "8.00",
                    "owner_voting_percent": "8.00",
                    "position": "real_owner",
                    "history": null,
                    "start_date": "2017-07-04",
                    "end_date": "2019-11-17",
                    "street_address": "Hasselhaven 70  8520 Lystrup",
                    "cityname": "Lystrup"
                }
            ]
        }
    ],
    "queries": [
        {
            "query": "select count(*) as aggregate from `owners` where exists (select * from `customers` inner join `company_owners` on `customers`.`id` = `company_owners`.`customer_id` where `owners`.`id` = `company_owners`.`owner_id` and `customers`.`id` = ? and `position` = ?)",
            "bindings": [
                "616",
                "real_owner"
            ],
            "time": 0.53
        },
        {
            "query": "select * from `owners` where exists (select * from `customers` inner join `company_owners` on `customers`.`id` = `company_owners`.`customer_id` where `owners`.`id` = `company_owners`.`owner_id` and `customers`.`id` = ? and `position` = ?)",
            "bindings": [
                "616",
                "real_owner"
            ],
            "time": 0.37
        },
        {
            "query": "select * from `company_owners` where `company_owners`.`owner_id` in (160, 161, 162, 163)",
            "bindings": [],
            "time": 0.34
        }
    ],
    "input": []
}

GET All Owners Types

HTTP Request

GET /api/customers/get-all-owners-types

Parameters

Parameter Type Status Description
{
    "data": {
        "owners": {
            "real_owner": "Real Owner",
            "owner": "Legal Owner",
            "fully_responsible_participant": "Fully liable partner"
        },
        "management": {
            "daily-management": "Daily Management",
            "director": "Director",
            "accountant": "Auditor",
            "board": "Board of Directors"
        }
    }
}

Print CVR

HTTP Request

GET /api/customers/cvr/{number}/print

Parameters

Parameter Type Status Description
{
    "data": {
        "base64": "JVBERi0xLjQKJeLjz9MKMyAwIG9iago8PC9Db2xvclNwYWNlL0RldmljZUdyYXkvU3VidHlwZS9JbWFnZS9IZWlnaHQgMTE5L0ZpbHRlci9GbGF0ZURlY29kZS9UeXBlL1hPYmplY3QvV2lkdGggNTAxL0xlbmd0aCAzNDA3L0JpdHNQZXJDb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jAwMDAwMzMxNDAgMDAwMDAgbiAKdHJhaWxlcgo8PC9JbmZvIDM4IDAgUi9JRCBbPDNiNmU0MWY5MGExNWViYTFmYWY1NTViNmFhZDcwYzMzPjw2YmViYzEzNzk5ZWNiMmE2YjAwOThlOGY0MGJiYzkyYT5dL1Jvb3QgMzcgMCBSL1NpemUgMzk+PgpzdGFydHhyZWYKMzMyNjMKJSVFT0YK",
        "filData": "34194 Bytes",
        "filnavn": "39494728 - Full view.pdf"
    }
}

Chech customer has real owner

HTTP Request

GET /api/customers/{id}/has-real-owner

Parameters

Parameter Type Status Description
{
    "data": {
        "has_active_real_owner": 1
    }
}

GET Customer management

HTTP Request

GET /api/customers/{id}/management

Parameters

Parameter Type Status Description
{
    "draw": 0,
    "recordsTotal": 2,
    "recordsFiltered": 2,
    "data": [
        {
            "id": 160,
            "name": "Jeppe Dahl Andersen",
            "created_at": "21-04-2022 13:35:16",
            "updated_at": "21-04-2022 13:35:16",
            "participantnumber": "4000505709",
            "details": [
                {
                    "id": 2823,
                    "customer_id": 616,
                    "owner_id": 160,
                    "created_at": "21-04-2022 14:09:52",
                    "updated_at": "21-04-2022 14:09:52",
                    "active": 1,
                    "owner_percent": "0.00",
                    "owner_voting_percent": "0.00",
                    "position": "director",
                    "history": "{\"roles\": [{\"life\": {\"end\": \"2019-01-01\", \"start\": \"2011-08-22\", \"title\": \"Adm. dir.\"}, \"type\": \"director\"}, {\"life\": {\"end\": \"2019-02-20\", \"start\": \"2019-01-02\", \"title\": \"Direktør\"}, \"type\": \"director\"}, {\"life\": {\"end\": \"2019-02-19\", \"start\": \"2011-08-22\", \"title\": \"Bestyrelsesmedlem\", \"election_format\": \"Generalforsamling\"}, \"type\": \"board\"}, {\"life\": {\"end\": \"2019-04-01\", \"start\": \"2019-02-20\", \"title\": \"Formand\", \"election_format\": \"Generalforsamling\"}, \"type\": \"board\"}]}",
                    "start_date": "2019-04-02",
                    "end_date": null,
                    "street_address": "Sejs Søvej 36 Sejs-Svejbæk 8600 Silkeborg",
                    "cityname": "Silkeborg"
                }
            ]
        },
        {
            "id": 164,
            "name": "Daniel Høj",
            "created_at": "21-04-2022 13:58:09",
            "updated_at": "21-04-2022 13:58:09",
            "participantnumber": "4007856598",
            "details": [
                {
                    "id": 2825,
                    "customer_id": 616,
                    "owner_id": 164,
                    "created_at": "21-04-2022 14:09:52",
                    "updated_at": "21-04-2022 14:09:52",
                    "active": 0,
                    "owner_percent": "0.00",
                    "owner_voting_percent": "0.00",
                    "position": "director",
                    "history": null,
                    "start_date": "2019-01-01",
                    "end_date": "2019-04-02",
                    "street_address": "Peder Nielsens Vej 6  8600 Silkeborg",
                    "cityname": "Silkeborg"
                }
            ]
        }
    ],
    "queries": [
        {
            "query": "select count(*) as aggregate from `owners` where exists (select * from `customers` inner join `company_owners` on `customers`.`id` = `company_owners`.`customer_id` where `owners`.`id` = `company_owners`.`owner_id` and (`customers`.`id` = ? and `position` = ? or `position` = ?))",
            "bindings": [
                "616",
                "director",
                "daily-management"
            ],
            "time": 0.92
        },
        {
            "query": "select * from `owners` where exists (select * from `customers` inner join `company_owners` on `customers`.`id` = `company_owners`.`customer_id` where `owners`.`id` = `company_owners`.`owner_id` and (`customers`.`id` = ? and `position` = ? or `position` = ?))",
            "bindings": [
                "616",
                "director",
                "daily-management"
            ],
            "time": 0.57
        },
        {
            "query": "select * from `company_owners` where `company_owners`.`owner_id` in (160, 164) and `position` = ? or `position` = ?",
            "bindings": [
                "director",
                "daily-management"
            ],
            "time": 0.38
        }
    ],
    "input": []
}

Update Owner contact info

HTTP Request

POST /api/customers/owners/{id}/update-info

Parameters

Parameter Type Status Description
email string
phone numeric
{
    "data": {
        "id": 781,
        "name": "Chris Jensen",
        "email": "x1@x.com",
        "phone": "0123321",
        "created_at": "25-08-2022 08:23:37",
        "updated_at": "05-10-2022 13:26:49",
        "participantnumber": "4000036110"
    }
}

Upload Document

HTTP Request

POST /api/customers/owners/3/upload

Parameters

Parameter Type Status Description
document file required
{
    "data": {
        "message": "messages.customerIncomeDocumentUploaded",
        "data": null,
        "status_code": 200
    }
}

Download Document

HTTP Request

POST /api/customers/owners/3/download

Parameters

Parameter Type Status Description
{
    "data": {
        "message": "",
        "data": "https://leaso-new.fra1.digitaloceanspaces.com/system-files/managment/3/documents/OleAndreasenRasmussen__08-05-2022-11%3A07%3A38?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AXEMOJO3VCADITHIKG4P%2F20220508%2Ffra1.digitaloceanspaces.com%2Fs3%2Faws4_request&X-Amz-Date=20220508T090741Z&X-Amz-SignedHeaders=host&X-Amz-Expires=1800&X-Amz-Signature=8d7c314a1d7cb43b1822213e2a91d89702b66374c6ae6b72c9b276d123761f2c",
        "status_code": 200
    }
}

get all private customer

HTTP Request

GET /api/customers/owners/private-customers

Parameters

Parameter Type Status Description
owner_id integer optional
{
    "data": [
        {
            "id": 29,
            "assignee_id": 57,
            "company_name": null,
            "customer_private_or_company": "private",
            "first_name": "Kenneth1",
            "last_name": "Skelborg",
            "email": "kenneth.skelborg@gmail.com",
            "street_address": "Vejen 4",
            "zip_code": "2150",
            "city": "Nordhavn",
            "telephone": "21212121",
            "cpr_number": "2208842415",
            "cvr_number": null,
            "economic_customer_number": 796157,
            "economic_customer_contact_number": null,
            "payment_term_id": 3,
            "bank_registration": 2365,
            "bank_account_number": 12345654,
            "pbs_created": null,
            "id_received": null,
            "related_to_id": null,
            "driver_license_file_id": null,
            "social_security_file_id": null,
            "created_from_offer": 0,
            "cvr_participants_data": null,
            "company_form_id": null
        }
      ]
}

Link owner to private customer

HTTP Request

POST /api/customers/owners/{ownerid}/link-to-private

Parameters

Parameter Type Status Description
private_customer_id integer required
{
    "data": [
        {
            "id": 29,
            "assignee_id": 57,
            "company_name": null,
            "customer_private_or_company": "private",
            "first_name": "Kenneth1",
            "last_name": "Skelborg",
            "email": "kenneth.skelborg@gmail.com",
            "street_address": "Vejen 4",
            "zip_code": "2150",
            "city": "Nordhavn",
            "telephone": "21212121",
            "cpr_number": "2208842415",
            "cvr_number": null,
            "economic_customer_number": 796157,
            "economic_customer_contact_number": null,
            "payment_term_id": 3,
            "bank_registration": 2365,
            "bank_account_number": 12345654,
            "pbs_created": null,
            "id_received": null,
            "related_to_id": null,
            "driver_license_file_id": null,
            "social_security_file_id": null,
            "created_from_offer": 0,
            "cvr_participants_data": null,
            "company_form_id": null
        }
      ]
}

DMR

Get DMR Vehicles Search

HTTP Request

POST /api/vehicle/dmr/{search}

Parameters

Parameter Type Status Description
search required in Url search by vin or license plate (WDC2539641F345965 , CZ81433)

Example response:

{
    "registration": "CZ81433",
    "vin": "WDC2539641F345965",
    "type": "Personbil",
    "brand": "MERCEDES-BENZ",
    "model": "AMG GLC 43",
    "version": "3,0 4Matic Biturbo",
    "fuel_type": "Benzin",
    "registration_status": "Registreret",
    "registration_status_updated_date": "2021-04-01",
    "first_registration_date": "2017-09-22",
    "expire_date": null,
    "status_updated_date": "2021-04-01",
    "model_year": null,
    "total_weight": 2460,
    "vehicle_weight": 0,
    "technical_total_weight": 2460,
    "coupling": true,
    "towing_weight": 750,
    "towing_weight_brakes": 2460,
    "minimum_weight": 1900,
    "engine_power": 270,
    "fuel_efficiency": 11.5,
    "engine_displacement": 2996,
    "engine_cylinders": 6,
    "engine_code": "276823",
    "last_inspection_date": "2021-03-26",
    "last_inspection_result": "Godkendt",
    "last_inspection_odometer": 98000,
    "type_approval_code": "e1*2001/116*0480",
    "top_speed": null,
    "doors": 4,
    "minimum_seats": 1,
    "maximum_seats": 5,
    "wheels": "1. 255/40-21  2. 285/35-21",
    "extra_equipment": "",
    "axles": "2",
    "drive_axles": "2+1",
    "leasing_period_start": "2021-04-01",
    "leasing_period_end": "2022-03-31",
    "vehicle_id": 9000000003990775,
    "use": {
        "id": 1,
        "name": "Privat personkørsel"
    },
    "color": false,
    "body_type": {
        "id": 106,
        "name": "MPV"
    },
    "vehicle_type": "Personbil",
    "vehicle_brand": "MERCEDES-BENZ",
    "vehicle_model": "AMG GLC 43",
    "engine": 270,
    "vehicle_date_of_first_registration": "2017-09-22",
    "serial_number": "WDC2539641F345965",
    "fuel": "Benzin"
}

Get DMR Vehicles Uses

HTTP Request

POST /api/vehicle/dmr/use

Parameters

Parameter Type Status Description

Example response:

{
    "data": [
        {
            "id": 0,
            "name": "Privat personkørsel"
        },
        {
            "id": 1,
            "name": "Privat personkørsel"
        },
        {
            "id": 20,
            "name": "Godstransport"
        },
        {
            "id": 21,
            "name": "Taxikørsel"
        },
        {
            "id": 22,
            "name": "Sygetransport"
        },
        {
            "id": 23,
            "name": "Ambulancekørsel"
        },
        {
            "id": 25,
            "name": "Rutekørsel"
        },
        {
            "id": 26,
            "name": "Rustvognskørsel"
        },
        {
            "id": 27,
            "name": "Mandskabs-/Materielkørsel"
        },
        {
            "id": 28,
            "name": "Brandsluknings-/redningskørsel"
        },
        {
            "id": 29,
            "name": "Privat buskørsel"
        },
        {
            "id": 30,
            "name": "Buskørsel"
        },
        {
            "id": 31,
            "name": "Trækkraft for sættevogn"
        },
        {
            "id": 32,
            "name": "Særlig anvendelse"
        },
        {
            "id": 33,
            "name": "Skov-, landbrug- og gartnerikørsel"
        },
        {
            "id": 34,
            "name": "Beboelse"
        },
        {
            "id": 35,
            "name": "Arbejdskørsel"
        },
        {
            "id": 38,
            "name": "Godstransport (½ OMS.)"
        },
        {
            "id": 40,
            "name": "Godstransport erhverv"
        },
        {
            "id": 41,
            "name": "Godstransport privat/erhverv"
        },
        {
            "id": 42,
            "name": "Godstransport privat"
        },
        {
            "id": 43,
            "name": "Kun godkendt til skov-, landbrug og gartneri"
        },
        {
            "id": 44,
            "name": "Kun godkendt til rutekørsel"
        },
        {
            "id": 45,
            "name": "Særtransport"
        },
        {
            "id": 46,
            "name": "Limousinekørsel"
        },
        {
            "id": 47,
            "name": "Kørsel for offentlig myndighed"
        }
    ]
}

Get DMR Registration Status

HTTP Request

POST /api/vehicle/dmr/registration-status

Parameters

Parameter Type Status Description

Example response:

{
    "data": [
        {
            "name": "AdministrativOprettelse"
        },
        {
            "name": "Afmeldt"
        },
        {
            "name": "DelvistOprettet"
        },
        {
            "name": "Eksporteret"
        },
        {
            "name": "HarGennemførtRegistreringssyn"
        },
        {
            "name": "Oprettet"
        },
        {
            "name": "Registreret"
        },
        {
            "name": "Skrottet"
        },
        {
            "name": "Slettet"
        },
        {
            "name": "UnderOprettelse"
        }
    ]
}

Get DMR Last Inspection

HTTP Request

POST /api/vehicle/dmr/last-inspection

Parameters

Parameter Type Status Description

Example response:

{
    "data": [
        {
            "name": "Godkendt"
        },
        {
            "name": "IkkeFuldstaendigtSyn"
        },
        {
            "name": "IkkeGodkendt"
        },
        {
            "name": "IkkeGodkendtKanGenfremstilles"
        },
        {
            "name": "KanGodkendesVedOmsynAfOmsynsvirksomhed"
        },
        {
            "name": "KanGodkendesVedOmsynAfSynsvirksomhed"
        }
    ]
}

Get DMR Vehicles body Types

HTTP Request

POST /api/vehicle/dmr/body-types

Parameters

Parameter Type Status Description

Example response:

{
    "data": [
        {
            "id": 101,
            "name": "Stationcar"
        },
        {
            "id": 102,
            "name": "Coupe"
        },
        {
            "id": 103,
            "name": "Cabriolet"
        },
        {
            "id": 104,
            "name": "Hatchback"
        },
        {
            "id": 105,
            "name": "Sedan"
        },
        {
            "id": 106,
            "name": "MPV"
        },
        {
            "id": 301,
            "name": "3-hjulet, åben"
        },
        {
            "id": 302,
            "name": "3-hjulet, lukket"
        },
        {
            "id": 303,
            "name": "Stationcar-pickup"
        },
        {
            "id": 304,
            "name": "Uden karrosseri"
        }
    ]
}

Get DMR history

HTTP Request

POST /api/vehicle/dmr/{id}/history

Parameters

Parameter Type Status Description

Example response:

{
    "draw": 0,
    "recordsTotal": 1,
    "recordsFiltered": 1,
    "data": [
        {
            "vehicle_id": 463,
            "leasing_period_start": "23-08-2021",
            "leasing_period_end": "09-02-2022",
            "updated_date": "04-07-2022"
        }
    ],
    "queries": [
        {
            "query": "select count(*) as aggregate from (select * from `vehicle_dmr_histories` where `vehicle_id` = ? order by `created_at` desc) count_row_table",
            "bindings": [
                "463"
            ],
            "time": 0.41
        },
        {
            "query": "select * from `vehicle_dmr_histories` where `vehicle_id` = ? order by `created_at` desc",
            "bindings": [
                "463"
            ],
            "time": 0.26
        }
    ],
    "input": []
}

update DMR Vehicle by id

HTTP Request

POST /api/vehicle/dmr/by-id/{id}

Parameters

Parameter Type Status Description

Example response:

{
    "message": "messages.vehicleupdated",
        "data": {
            "id": 5,
            "vehicle_type_id": 2,
            "vehicle_type_string": "Personbil",
            "vehicle_brand_id": 127,
            "vehicle_brand_string": "MERCEDES-BENZ",
            "vehicle_model_string": "AMG GLC 43",
            "vehicle_serial_number": "WDC2539641F345965",
            "vehicle_used_vat": null,
            "vehicle_date_of_first_registration": "22-09-2017",
            "fuel": "Benzin",
            "transmission": "Manuelt",
            "engine": "270",
            "car_type": "100000",
            "version": "3,0 4Matic Biturbo",
            "ekstra": "Fxchgjhgjfj",
            "description": "mjfghjfghjjj",
            "gears": "3",
            "wheel_size": "100000",
            "wheel_type": "100000",
            "interior_colour": "100000",
            "interior_type": "100000",
            "sunroof": true,
            "show_on_front_page": false,
            "main_image_file_id": null,
            "state": 2,
            "color": false,
            "vehicle_condition_id": 15,
            "euro_ncap": null,
            "abs": true,
            "customs_inpsections": true,
            "price_as_new_cents": 100000,
            "km_per_litre": 100000,
            "num_airbags": false,
            "num_seat_belts": false,
            "num_integrated_children_seats": false,
            "created_at": "11-04-2016",
            "updated_at": "08-08-2021"
        },
        "status_code": 200
    }
}

Questionnaire

Lookup Categories

Key Value Lookup
customer_types Customer Types private_customer, company_customer, both
question_statuses Question Status Types required, optional
question_types Question Types numeric, toggle, Multiple Choice - Single Select, multiple_choice_multiple_select

List Questionnaires

HTTP Request

GET /api/questionnaire

{
  "data": [
    {
      "name": "questionnaire name",
      "code": "questionnaire_code",
      "description": "questionnaire description",
      "questions": [
        {
          "id": 76,
          "questionnaire_id": 2,
          "text": "multi answers question",
          "type_id": 390,
          "status_id": 427,
          "created_at": "14-11-2021 05:00:55",
          "updated_at": "14-11-2021 08:54:32"
        },
        {
          "id": 77,
          "questionnaire_id": 2,
          "text": "multi answers question",
          "type_id": 390,
          "status_id": 427,
          "created_at": "14-11-2021 08:54:48",
          "updated_at": "14-11-2021 08:54:48"
        }
      ]
    },
    {
      "name": "questionnaire name",
      "code": "questionnaire_code",
      "description": "questionnaire description",
      "questions": []
    }
  ]
}

Show Questionnaire

HTTP Request

GET api/questionnaire/{id}

Parameters

Parameter Type Status Description
id integer questionnaire id
{
  "data": {
    "name": "questionnaire name",
    "code": "questionnaire_code",
    "description": "questionnaire description"
  }
}

Delete Questionnaire

HTTP Request

DELETE api/questionnaire/{id}

Parameters

Parameter Type Status Description
id integer questionnaire id
{
  "data": {
    "message": "Questionnaire deleted successfully",
    "data": null,
    "status_code": 200
  }
}

Update Questionnaire

HTTP Request

PUT api/questionnaire

Parameters

Parameter Type Status Description
name string
questions[0][questionnaire_id] int
questions[0][text] string
questions[0][type_id] integer
questions[0][status_id] integer
questions[0][has_text] required 0 , 1 ,true , false
questions[0][id] integer
questions[0][is_risk] bool
questions[0][level_id] integer
questions[0][answers] array
questions[0][choice][0][choice] string
questions[0][choice][0][id] integer
questions[1][document_type_id] integer

Filter Keys

Key Description
customer_type_id filter questionnaire by customer type (private/company)
{
  "data": {
    "message": "Question Stored Successfully",
    "data": {
      "id": 76,
      "questionnaire_id": "2",
      "text": "multi answers question",
      "type_id": "390",
      "status_id": "427",
      "created_at": "14-11-2021 05:00:55",
      "updated_at": "14-11-2021 08:54:32"
    },
    "status_code": 200
  }
}

Questionnaire Questions

List Questions

HTTP Request

GET /api/question

{
  "data": [
    {
      "text": "Questionnaire Question",
      "questionnaire_id": 9,
      "type_id": 383,
      "status_id": 382
    }
  ]
}

Show Question

HTTP Request

GET api/question/{id}

Parameters

Parameter Type Status Description
id integer question id
{
  "data": {
    "text": "Questionnaire Question",
    "questionnaire_id": 9,
    "type_id": 383,
    "status_id": 382
  }
}

Delete Question

HTTP Request

DELETE api/question/{id}

Parameters

Parameter Type Status Description
id integer question id
{
  "data": {
    "message": "QuestionnaireQuestion deleted successfully",
    "data": null,
    "status_code": 200
  }
}

Questionnaire Expiration

Show Questionnaire Expiration Date

HTTP Request

GET /api/questionnaire-expiration/{id}

Parameters

Parameter Type Status Description
id integer questionnaire expiration id
{
  "data": {
    "questionnaire_id": 10,
    "num_days": 5,
    "num_months": 7
  }
}

Update Questionnaire

HTTP Request

PUT /api/questionnaire-expiration/{id}

Parameters

Parameter Type Status Description
questionnaire_id integer
num_days integer
num_months integer
id integer questionnaire expiration id in url
{
  "data": {
    "message": "Expiration date added successfully",
    "data": {
      "id": 18,
      "questionnaire_id": 1,
      "num_days": "5",
      "num_months": "1",
      "created_at": "21-11-2021 09:04:07",
      "updated_at": "21-11-2021 09:04:42"
    },
    "status_code": 200
  }
}

List Questionnaire Expiration Dates

HTTP Request

GET /api/questionnaire-expiration

{
  "data": [
    {
      "questionnaire_id": 1,
      "num_days": 3,
      "num_months": 1
    },
    {
      "questionnaire_id": 1,
      "num_days": 3,
      "num_months": 1
    },
    {
      "questionnaire_id": 1,
      "num_days": 5,
      "num_months": 1
    }
  ]
}

Leasing Types

List Leasing Types

HTTP Request

GET api/leasing/types

{
  "data": {
    "leasingTypes": [
      {
        "id": 6,
        "code": "auto_loan",
        "name": "Billån",
        "value": null,
        "model_type": "App\\Models\\Leasing\\LeasingContract",
        "extra_details": {
          "status": 1
        },
        "category_id": 2,
        "is_active": 1,
        "is_system": 1,
        "created_at": "03-03-2021 12:39:09",
        "updated_at": "23-11-2021 23:36:40",
        "is_visible": 0
      },
      {
        "id": 4,
        "code": "financial",
        "name": "Finansiel",
        "value": null,
        "model_type": "App\\Models\\Leasing\\LeasingContract",
        "extra_details": null,
        "category_id": 2,
        "is_active": 1,
        "is_system": 1,
        "created_at": "03-03-2021 12:39:09",
        "updated_at": "03-03-2021 12:39:09",
        "is_visible": 0
      },
      ...
    ]
  }
}

Update Leasing Type

HTTP Request

PUT api/leasing/types/{id}

Parameters

Parameter Type Status Description
status integer required, integer lookup id with lookup_category code = leasing_types_status
{
  "data": {
    "message": "Leasing types updated successfully",
    "data": null,
    "status_code": 200
  }
}

Print AML

HTTP Request

POST /api/template_providers/aml

Parameters

Parameter Type Status Description
customer_type_id integer required, integer lookup id with lookup_category code = customer_types
provider_code string required, integer lookup id with lookup_category code = template_providers
template_type_id integer required, integer lookup id with lookup_category code = aml_template_types
aspose_word_template file required
{
  "data": {
    "message": "AML Template added successfully",
    "data": null,
    "status_code": 200
  }
}

List Print AML

HTTP Request

GET /api/template_providers/aml provider_code

{
  "draw": 0,
  "recordsTotal": 1,
  "recordsFiltered": 1,
  "data": [
    {
      "id": 1,
      "provider_template_details_id": 409,
      "customer_type": "Private Customer",
      "template_type": "Customer info",
      "provider_template_name": "Leaso_aml_402211638927307.docx"
    }
  ],
  "input": []
}

List AML Template Types

HTTP Request

GET api/aml/template/types

{
  "data": {
    "templateTypes": [
      {
        "id": 434,
        "code": "customer_info",
        "name": "Customer info",
        "value": null,
        "model_type": "App\\Models\\Leasing\\AMLTemplate",
        "extra_details": null,
        "category_id": 34,
        "is_active": 1,
        "is_system": 1,
        "created_at": "08-12-2021 01:28:59",
        "updated_at": "08-12-2021 01:28:59",
        "is_visible": 0
      },
      {
        "id": 435,
        "code": "kyc_view",
        "name": "KYC View",
        "value": null,
        "model_type": "App\\Models\\Leasing\\AMLTemplate",
        "extra_details": null,
        "category_id": 34,
        "is_active": 1,
        "is_system": 1,
        "created_at": "08-12-2021 01:28:59",
        "updated_at": "08-12-2021 01:28:59",
        "is_visible": 0
      }
    ]
  }
}

Create Customer Questionnaire

HTTP Request

POST api/customer-questionnaire

Parameters

Parameter Type Status Description
customer_id integer required, integer
questionnaire_id integer required, integer
status_id integer required, integer
has_text integer required
answer.*.question_id integer required, integer
answer.*.answer mixed sometimes
answer.*.reason text nullable
answer.*.answers_as_string array send selected answers on array
{
  "data": {
    "message": "Customer questionnaire created / Updated successfully",
    "data": {
      "customer_id": "45",
      "questionnaire_id": 3,
      "status_id": 434,
      "assignee_id": 2,
      "updated_by": "Admin admin",
      "updated_at": "22-02-2022",
      "created_at": "22-02-2022",
      "id": 66,
      "customer": null,
      "customer_type": "private",
      "status_code": "submitted_to_review",
      "status": "Indsendt til anmeldelse",
      "assignee": {
        "id": 2,
        "first_name": "Admin",
        "last_name": "admin",
        "email": "hello@b5digital.dk",
        "organization_id": 1,
        "state": true,
        "created_at": null,
        "updated_at": "13-12-2021 18:26:39",
        "last_active_at": null,
        "profile_picture_path": "78f7564f643ba8f23139170c3b45a95b"
      },
      "aml_responsible": null,
      "customer_questionnaire_questions": [
        {
          "id": 1220,
          "text": "multi select multi select multi select",
          "type_id": 424,
          "status_id": 426,
          "question_choices": [
            {
              "id": 1580,
              "choice": "choice 1",
              "questionnaire_question_id": 1220
            },
            {
              "id": 1581,
              "choice": "choice 2",
              "questionnaire_question_id": 1220
            },
            {
              "id": 1582,
              "choice": "choice 3",
              "questionnaire_question_id": 1220
            },
            {
              "id": 1583,
              "choice": "choice 4",
              "questionnaire_question_id": 1220
            },
            {
              "id": 1584,
              "choice": "choice 5",
              "questionnaire_question_id": 1220
            }
          ],
          "questionnaire_id": 3,
          "question_documents": "",
          "question_answer": [
            {
              "id": 1587,
              "customer_questionnaire_id": 66,
              "question_id": 1220,
              "answer": null,
              "created_at": "22-02-2022",
              "updated_at": "22-02-2022",
              "reason": null
            },
            {
              "id": 1588,
              "customer_questionnaire_id": 66,
              "question_id": 1220,
              "answer": null,
              "created_at": "22-02-2022",
              "updated_at": "22-02-2022",
              "reason": null
            }
          ]
        },
        {
          "id": 1221,
          "text": "toggle switch toggle switch toggle",
          "type_id": 422,
          "status_id": 427,
          "question_choices": [],
          "questionnaire_id": 3,
          "question_documents": "",
          "question_answer": [
            {
              "id": 1589,
              "customer_questionnaire_id": 66,
              "question_id": 1221,
              "answer": "1",
              "created_at": "22-02-2022",
              "updated_at": "22-02-2022",
              "reason": "Reason of choice"
            }
          ]
        }
      ]
    }
  }
}

Update Customer Questionnaire

HTTP Request

PUT api/customer-questionnaire/{id}

Parameters

Parameter Type Status Description
status_id integer required, integer
answer.*.question_id integer required, integer
answer.*.reason text nullable
has_text integer required
{
    "data": {
        "message": "Customer questionnaire created / Updated successfully",
        "data": {
            "id": 62,
            "customer_id": 45,
            "questionnaire_id": 3,
            "assignee_id": 2,
            "aml_responsible_id": null,
            "status_id": 433,
            "approved_at": null,
            "rating": "",
            "expiration_date": null,
            "comments": null,
            "reminder_sent": 0,
            "created_at": "21-02-2022",
            "updated_at": "22-02-2022",
            "updated_by": "Admin admin",
            "file_document_id": null,
            "customer": null,
            "customer_type": "private",
            "status_code": "drafted",
            "status": "Hvervet",
            "assignee": {
                "id": 2,
                "first_name": "Admin",
                "last_name": "admin",
                "email": "hello@b5digital.dk",
                "organization_id": 1,
                "state": true,
                "created_at": null,
                "updated_at": "13-12-2021 18:26:39",
                "last_active_at": null,
                "profile_picture_path": "78f7564f643ba8f23139170c3b45a95b"
            },
            "aml_responsible": null,
            "customer_questionnaire_questions": [
                {
                    "id": 1217,
                    "text": "multi select multi select multi select",
                    "type_id": 424,
                    "status_id": 426,
                    "question_choices": [
                        {
                            "id": 1580,
                            "choice": "choice 1",
                            "questionnaire_question_id": 1217
                        },
                        {
                            "id": 1581,
                            "choice": "choice 2",
                            "questionnaire_question_id": 1217
                        },
                        {
                            "id": 1582,
                            "choice": "choice 3",
                            "questionnaire_question_id": 1217
                        },
                        {
                            "id": 1583,
                            "choice": "choice 4",
                            "questionnaire_question_id": 1217
                        },
                        {
                            "id": 1584,
                            "choice": "choice 5",
                            "questionnaire_question_id": 1217
                        }
                    ],
                    "questionnaire_id": 3,
                    "question_documents": "",
                    "question_answer": [
                        {
                            "id": 1590,
                            "customer_questionnaire_id": 62,
                            "question_id": 1217,
                            "answer": "1583",
                            "created_at": "22-02-2022",
                            "updated_at": "22-02-2022",
                            "reason": "reason"
                        },
                        {
                            "id": 1591,
                            "customer_questionnaire_id": 62,
                            "question_id": 1217,
                            "answer": "1582",
                            "created_at": "22-02-2022",
                            "updated_at": "22-02-2022",
                            "reason": null
                        },
                        {
                            "id": 1592,
                            "customer_questionnaire_id": 62,
                            "question_id": 1217,
                            "answer": "1581",
                            "created_at": "22-02-2022",
                            "updated_at": "22-02-2022",
                            "reason": null
                        },
                        {
                            "id": 1593,
                            "customer_questionnaire_id": 62,
                            "question_id": 1217,
                            "answer": "1584",
                            "created_at": "22-02-2022",
                            "updated_at": "22-02-2022",
                            "reason": null
                        }
                    ]
                }
            ]
        },
        "status_code": 200
    }
}

Get Customer Questionnaire

HTTP Request

GET api/customer-questionnaire/{id}

{
  "data": {
    "id": 62,
    "customer_id": 45,
    "questionnaire_id": 3,
    "assignee_id": 2,
    "aml_responsible_id": null,
    "status_id": 433,
    "approved_at": null,
    "rating": "",
    "expiration_date": null,
    "comments": null,
    "reminder_sent": 0,
    "created_at": "21-02-2022",
    "updated_at": "22-02-2022",
    "updated_by": "Admin admin",
    "file_document_id": null,
    "customer": null,
    "customer_type": "private",
    "status_code": "drafted",
    "status": "Hvervet",
    "assignee": {
      "id": 2,
      "first_name": "Admin",
      "last_name": "admin",
      "email": "hello@b5digital.dk",
      "organization_id": 1,
      "state": true,
      "created_at": null,
      "updated_at": "13-12-2021 18:26:39",
      "last_active_at": null,
      "profile_picture_path": "78f7564f643ba8f23139170c3b45a95b"
    },
    "aml_responsible": null,
    "customer_questionnaire_questions": [
      {
        "id": 1217,
        "text": "multi select multi select multi select",
        "type_id": 424,
        "status_id": 426,
        "question_choices": [
          {
            "id": 1580,
            "choice": "choice 1",
            "questionnaire_question_id": 1217
          },
          {
            "id": 1581,
            "choice": "choice 2",
            "questionnaire_question_id": 1217
          },
          {
            "id": 1582,
            "choice": "choice 3",
            "questionnaire_question_id": 1217
          },
          {
            "id": 1583,
            "choice": "choice 4",
            "questionnaire_question_id": 1217
          },
          {
            "id": 1584,
            "choice": "choice 5",
            "questionnaire_question_id": 1217
          }
        ],
        "questionnaire_id": 3,
        "question_documents": "",
        "question_answer": [
          {
            "id": 1590,
            "customer_questionnaire_id": 62,
            "question_id": 1217,
            "answer": "1583",
            "created_at": "22-02-2022",
            "updated_at": "22-02-2022",
            "reason": "reason"
          },
          {
            "id": 1591,
            "customer_questionnaire_id": 62,
            "question_id": 1217,
            "answer": "1582",
            "created_at": "22-02-2022",
            "updated_at": "22-02-2022",
            "reason": null
          },
          {
            "id": 1592,
            "customer_questionnaire_id": 62,
            "question_id": 1217,
            "answer": "1581",
            "created_at": "22-02-2022",
            "updated_at": "22-02-2022",
            "reason": null
          },
          {
            "id": 1593,
            "customer_questionnaire_id": 62,
            "question_id": 1217,
            "answer": "1584",
            "created_at": "22-02-2022",
            "updated_at": "22-02-2022",
            "reason": null
          }
        ]
      }
    ]
  }
}

Get Customer Questionnaire risk

HTTP Request

GET api/customer-questionnaire/get-risk/{id}

{
    "data": [
        4,
        5,
        6,
        7,
        8,
        9,
        10
    ]
}

Get Customer Questionnaire uploaded documents

HTTP Request

GET api/customer-questionnaire/customer/{customer_id}/has-documents

{
    "data": {
        "director": {
            "social_security": true
        },
        "real_owner": {
            "social_security": true
        }
    }
}

Print AML data

HTTP Request

GET api/customer-questionnaire/{customer_questionnaire_id}/aml/info/download/

Document downloaded

Lock contract

HTTP Request

PUT api/customer-questionnaire/lock-contract/{id}

Parameters

Parameter Type Status Description
lock_contract boolean optional
block_under_guardianship boolean optional
from_rate integer required if lock_contract, integer
to_rate integer required if lock_contract, integer
{
  "data": {
    "message": "messages.LockContractRating have created successfully",
    "data": {
      "questionnaire_id": "17",
      "from_rate": "1",
      "to_rate": "5",
      "lock_contract": "1",
      "updated_at": "28-02-2022",
      "created_at": "28-02-2022",
      "id": 2
    },
    "status_code": 200
  }
}

Lock contract details

HTTP Request

GET api/customer-questionnaire/lock-contract/{id}

{
  "data": {
    "message": "Lås kontrakthandlinger detaljer.",
    "data": {
      "id": 2,
      "questionnaire_id": 17,
      "lock_contract": 1,
      "from_rate": 1,
      "to_rate": 5,
      "created_at": "28-02-2022",
      "updated_at": "28-02-2022"
    },
    "status_code": 200
  }
}

Get questionnaire logs

HTTP Request

GET api/customer-questionnaire/{id}/logs

{
    "draw": 0,
    "recordsTotal": 2,
    "recordsFiltered": 2,
    "data": [
        {
            "id": 1,
            "customer_questionnaire_id": 216,
            "status_id": 165,
            "date_of_change": "2022-08-02 12:25:00",
            "reason": null,
            "user_id": 57,
            "created_at": "02-08-2022 12:25:00",
            "updated_at": "02-08-2022 12:25:00",
            "status_code": "submitted_to_review",
            "updatedBy": "Alex Mansour"
        },
        {
            "id": 2,
            "customer_questionnaire_id": 216,
            "status_id": 166,
            "date_of_change": "2022-08-02 12:35:36",
            "reason": "Reaching the expiration date",
            "user_id": null,
            "created_at": "02-08-2022 12:35:36",
            "updated_at": "02-08-2022 12:35:36",
            "status_code": "expired",
            "updatedBy": null
        }
    ],
    "input": []
}

Suppliers

Get Suppliers Groups

HTTP Request

GET api/supplier/list-supplier-groups

{
    "data": [
        {
            "id": 499,
            "code": "Diverse",
            "name": "Diverse",
            "value": "1",
            "model_type": "App\\Models\\Supplier\\SupplierGroup",
            "extra_details": null,
            "category_id": 33,
            "is_active": 1,
            "is_system": 0,
            "created_at": "07-03-2022 15:20:17",
            "updated_at": "07-03-2022 15:20:17",
            "is_visible": 0
        },
        {
            "id": 500,
            "code": "Supplier Name",
            "name": "Supplier Name",
            "value": "2",
            "model_type": "App\\Models\\Supplier\\SupplierGroup",
            "extra_details": null,
            "category_id": 33,
            "is_active": 1,
            "is_system": 0,
            "created_at": "07-03-2022 15:20:17",
            "updated_at": "07-03-2022 15:20:17",
            "is_visible": 0
        }
    ]
}

Get Suppliers

HTTP Request

GET api/supplier/data/{type}

{
    "draw": 0,
    "recordsTotal": 18,
    "recordsFiltered": 18,
    "data": [
        {
            "id": 134,
            "name": "København Startup Tech",
            "cvr": 41529792,
            "supplier_group_id": 1,
            "address": "Clematisvænget 24",
            "zip": "1200",
            "city": "København",
            "email": "kobenhavn@1902.com",
            "phone": "19029632",
            "payment_term_id": 2,
            "external_supplier_id": 41529792,
            "vat_zone": "1",
            "currency": "DKK",
            "created_at": "07-03-2022 15:28:22",
            "updated_at": "07-03-2022 15:28:22",
            "supplier_group": {
                "id": 1,
                "code": "private",
                "name": "Privat",
                "value": null,
                "model_type": "App\\Models\\Contract\\LeasingContract",
                "extra_details": null,
                "category_id": 1,
                "is_active": 1,
                "is_system": 1,
                "created_at": "03-03-2021 12:39:09",
                "updated_at": "03-03-2021 12:39:09",
                "is_visible": 0
            }
        }
    ]
}

Add Suppliers

HTTP Request

POST api/supplier

{
    "data": {
        "message": "Supplier added successfully",
        "data": {
            "external_supplier_id": 333255,
            "currency": "DKK",
            "name": "maro",
            "payment_term_id": 1,
            "supplier_group_id": "1",
            "vat_zone": "Domestic",
            "address": "address",
            "cvr": "12345651",
            "email": "maro@m.com",
            "city": "alex",
            "phone": "01112312",
            "updated_at": "07-03-2022 15:18:37",
            "created_at": "07-03-2022 15:18:37",
            "id": 79
        },
        "status_code": 200
    }
}

Parameters

Parameter Type Status Description
name required alpha min:2 max:255,
payment_term_id required integer,
supplier_group_id required,
vat_zone_id required integer,
address sometimes,
cvr required digits:8 unique:suppliers,
email sometimes email,
zip sometimes numeric,
city required alpha,
phone required numeric

Update Suppliers

HTTP Request

PUT api/supplier/{id}

{
    "data": {
        "message": "messages.Supplier updated successfully",
        "data": {
            "id": 134,
            "name": "maro",
            "cvr": "12345651",
            "supplier_group_id": "1",
            "address": "address",
            "zip": "123",
            "city": "alex",
            "email": "maro@m.com",
            "phone": "01112312",
            "payment_term_id": "1",
            "external_supplier_id": 41529792,
            "vat_zone": "1",
            "currency": null,
            "created_at": "07-03-2022 15:28:22",
            "updated_at": "08-03-2022 08:57:12"
        },
        "status_code": 200
    }
}

Parameters

Parameter Type Status Description
name required alpha min:2 max:255,
payment_term_id required integer,
supplier_group_id required,
vat_zone_id required integer,
address sometimes,
cvr required digits:8 unique:suppliers,
email sometimes email,
zip sometimes numeric,
city required alpha,
phone required numeric

Sync Suppliers

HTTP Request

POST api/supplier/sync-suppliers

{
    "data": {
        "message": "Suppliers synced successfully",
        "data": {
            "success": true,
            "status_code": 200,
            "body": [
                {
                    "supplierNumber": 1,
                    "name": "Heidensleben Consulting ApS",
                    "currency": "DKK",
                    "paymentTerms": {
                        "paymentTermsNumber": 2,
                        "self": "https://restapi.e-conomic.com/payment-terms/2"
                    },
                    "vatZone": {
                        "vatZoneNumber": 1,
                        "self": "https://restapi.e-conomic.com/vat-zones/1"
                    },
                    "supplierGroup": {
                        "supplierGroupNumber": 1,
                        "self": "https://restapi.e-conomic.com/supplier-groups/1"
                    },
                    "corporateIdentificationNumber": "41529792",
                    "email": "",
                    "address": "Gøngehusvej 280",
                    "zip": "2970",
                    "city": "Hørsholm",
                    "phone": "",
                    "defaultInvoiceText": "",
                    "contacts": "https://restapi.e-conomic.com/suppliers/1/contacts",
                    "layout": {
                        "layoutNumber": 19,
                        "self": "https://restapi.e-conomic.com/layouts/19"
                    },
                    "metaData": {
                        "delete": {
                            "description": "Delete this supplier.",
                            "href": "https://restapi.e-conomic.com/suppliers/1",
                            "httpMethod": "delete"
                        }
                    },
                    "self": "https://restapi.e-conomic.com/suppliers/1"
                },

            ]
        },
        "status_code": 200
    }
}

Sync Suppliers Groups

HTTP Request

POST api/supplier/sync-supplier-groups

{
    "data": {
        "message": "Supplier groups synced successfully",
        "data": {
            "success": true,
            "status_code": 200,
            "body": [
                {
                    "supplierGroupNumber": 1,
                    "name": "Diverse",
                    "account": {
                        "accountNumber": 6800,
                        "self": "https://restapi.e-conomic.com/accounts/6800"
                    },
                    "self": "https://restapi.e-conomic.com/supplier-groups/1"
                },
                {
                    "supplierGroupNumber": 2,
                    "name": "Supplier Name",
                    "account": {
                        "accountNumber": 6750,
                        "self": "https://restapi.e-conomic.com/accounts/6750"
                    },
                    "self": "https://restapi.e-conomic.com/supplier-groups/2"
                }
            ]
        },
        "status_code": 200
    }
}

Get Payment term

HTTP Request

GET api/supplier/payment-term/{id}

{
    "data": {
        "paymentTermsNumber": 1,
        "daysOfCredit": 8,
        "name": "Netto 8 dage",
        "paymentTermsType": "net",
        "self": "https://restapi.e-conomic.com/payment-terms/1"
    }
}

Get vat zone

HTTP Request

GET api/supplier/vat-zone/{id}

{
    "data": {
        "name": "Domestic",
        "vatZoneNumber": 1,
        "enabledForCustomer": true,
        "enabledForSupplier": true,
        "self": "https://restapi.e-conomic.com/vat-zones/1"
    }
}

Get Transactions Categories

HTTP Request

GET api/lookups/getAll?category_code=transaction_category

{
    "data": [
        {
            "id": 505,
            "code": "finansiel",
            "name": "finansiel",
            "value": null,
            "model_type": "App\\Models\\Transaction\\TransactionCategory",
            "extra_details": null,
            "category_id": 34,
            "is_active": 1,
            "is_system": 1,
            "created_at": "08-03-2022 13:59:31",
            "updated_at": "08-03-2022 13:59:31",
            "is_visible": 0
        },
        {
            "id": 506,
            "code": "customer",
            "name": "Kunde",
            "value": null,
            "model_type": "App\\Models\\Transaction\\TransactionCategory",
            "extra_details": null,
            "category_id": 34,
            "is_active": 1,
            "is_system": 1,
            "created_at": "08-03-2022 13:59:31",
            "updated_at": "08-03-2022 13:59:31",
            "is_visible": 0
        },
        {
            "id": 507,
            "code": "supplier",
            "name": "Leverandør",
            "value": null,
            "model_type": "App\\Models\\Transaction\\TransactionCategory",
            "extra_details": null,
            "category_id": 34,
            "is_active": 1,
            "is_system": 1,
            "created_at": "08-03-2022 13:59:31",
            "updated_at": "08-03-2022 13:59:31",
            "is_visible": 0
        }
    ]
}