VismaBouwsoftAPICalls.v1_GET_AssignmentMachines Method
v1_GET_AssignmentMachines() as String

This API call is used to get fields of a(n) AssignmentMachine(s)

HTTP method API version
GET v1

Don’t forget to put the Authorization field in the header

API Path: /AssignmentMachines/
or
API Path: /AssignmentMachines/{id}

You can make this API call:
* without the key field id to get a list of AssignmentMachines
* with the key field id as the path parameter (the specific id of the AssignmentMachine you want to get)

Fields

The following fields are available:

Field Name Type
id Number
assignment_id Number
actualcostmachines_id_mapping Number
date String
machine_id Number
nr String
description String
unit String
unit_localized String
quantity Number
from Number
to Number
break Number
job_id Number
job_code String
job_name String
ok Boolean
invoice_id Number
invoice_nr Number

/AssignmentMachines/

API Path: /AssignmentMachines/

If everything succeeds the HTTP response status is 200
(200 OK)

If there is something wrong with the request, the response status and code is 400
(400 Bad Request)

If you forget to send the Authorization, the response status is 401
(401 Unauthorized)

If what you sent can’t be processed, the response status is 500
(500 Internal Server Error)

For an explanation of all possible errors, please consult our section on possible answers to API calls here

Examples:

https://ra.bouwsoft.be/api/v1/AssignmentMachines

with the following parameters :

Header Parameters :
ParameterName: Clientnr, ParameterValue: 115
ParameterName: AccessToken, ParameterValue: AfbfWxfDbVzSfrbrrfzRqGDUfkPkfGbAffbkzDfAjPmGklkIIr

Query Parameters :
ParameterName: limit, ParameterValue: 5
ParameterName: sort, ParameterValue: id

Success gives statuscode 200 And the following result

{ “Content-Range”:“0–4/111”, “Records”: [
  {
    "id": 3,
    "assignment_id": 43,
    "actualcostmachines_id_mapping": 1498,
    "date": "2021–05–07",
    "machine_id": 1,
    "nr": "Caddy 01",
    "description": "Volkswagen caddy",
    "unit": "km",
    "unit_localized": "km",
    "quantity": 0,
    "from": 14,
    "to": 15,
    "break": 0,
    "job_id": 0,
    "job_code": "",
    "job_name": "",
    "ok": false,
    "invoice_id": 0,
    "invoice_nr": 0
  },
  {
    "id": 4,
    "assignment_id": 4,
    "actualcostmachines_id_mapping": 260,
    "date": "2015–04–02",
    "machine_id": 1,
    "nr": "Caddy 01",
    "description": "Volkswagen caddy",
    "unit": "km",
    "unit_localized": "km",
    "quantity": 60,
    "from": 9,
    "to": 11,
    "break": 0.25,
    "job_id": 0,
    "job_code": "",
    "job_name": "",
    "ok": true,
    "invoice_id": 3253,
    "invoice_nr": 20140138
  }
,

]
}

/AssignmentMachines/{id}

If everything succeeds the HTTP response status is 200
(200 OK)

If there is something wrong with the request, the response status and code is 400
(400 Bad Request)

If there is no record that has the requested id the HTTP response status and code is 404
(404 Not found)

If you forget to send the Authorization, the response status is 401
(401 Unauthorized)

If what you sent can’t be processed, the response status is 500
(500 Internal Server Error)

For an explanation of all possible errors, please consult our section on possible answers to API calls here

Examples:

https://ra.bouwsoft.be/api/v1/AssignmentMachines/129

with the following parameters :

Header Parameters :
ParameterName: Clientnr, ParameterValue: 115
ParameterName: AccessToken, ParameterValue: lAOfWxfGGkzSfGmUOfzRqVGUfblfkGVbfUjkzOlflkGIGDlVfO

Success gives statuscode 200 And the following result

{ “Content-Range”:“0–0/1”, “Records”: [
  {
    "id": 129,
    "assignment_id": 1294,
    "actualcostmachines_id_mapping": 1762,
    "date": "2022–10–24",
    "machine_id": 1995,
    "nr": "Machine 4844212",
    "description": "Diverse Graafmachine 3 old",
    "unit": "dag",
    "unit_localized": "Day",
    "quantity": 1,
    "from": 8,
    "to": 16,
    "break": 1,
    "job_id": 48,
    "job_code": "APIJOB",
    "job_name": "",
    "ok": true,
    "invoice_id": 0,
    "invoice_nr": 0
  }
]
}