Require Bearer Authentication.
Authorization: Bearer <token>
To get a token - use Account API with Basic authorization header
`GET /v1/Account/token
GET /v1/customer
Result example:
[
{
"Email": "demokunde@infact.no",
"OrganizationNo": "123456",
"Address": "",
"City": "City 1",
"Zip": "5678",
"ContactName": "Kunde Demo",
"Name": "Demo Kunde",
"Id": 1
},
{
"Email": "emptycustomer@gmail.com",
"OrganizationNo": "",
"Address": "",
"City": "",
"Zip": "",
"ContactName": "Empty Customer",
"Name": "Test Customer",
"Id": 2
},
{
"Email": "testcustomer@example.com",
"OrganizationNo": "",
"Address": "",
"City": "",
"Zip": "",
"ContactName": "",
"Name": "Test Customer",
"Id": 14
},
{
"Email": "testcustomer2@example.com",
"OrganizationNo": "",
"Address": "",
"City": "",
"Zip": "",
"ContactName": "",
"Name": "Empty Customer 2",
"Id": 15
},
{
"Email": "marcus.sun@for.se",
"OrganizationNo": "",
"Address": "",
"City": "",
"Zip": "",
"ContactName": "Marcus Sund",
"Name": "For Nordic AB",
"Id": 18
},
{
"Email": "ds@infact.no",
"OrganizationNo": "",
"Address": "",
"City": "",
"Zip": "",
"ContactName": "",
"Name": "ds@infact.no",
"Id": 21
},
{
"Email": "iryna.lazorenko@npstest.com",
"OrganizationNo": "",
"Address": "",
"City": "",
"Zip": "",
"ContactName": "",
"Name": "NPS Mid",
"Id": 35
},
{
"Email": "brandtforimporttest@gmail.com",
"OrganizationNo": "",
"Address": "",
"City": "",
"Zip": "",
"ContactName": "",
"Name": "Brandt For",
"Id": 44
}
]
GET /v1/customer/{customerId}
Result example:
{
"Email": "demokunde@infact.no",
"OrganizationNo": "123456",
"Address": "",
"City": "City 1",
"Zip": "5678",
"ContactName": "Kunde Demo",
"Name": "Demo Kunde",
"Id": 1
}
GET /v1/customer/{customerId}/form
Result example:
[
{
"Id": 207,
"Name": "0062490100 Programmere styreenheter/Instr.panel-23/01/2023-16:14:32"
},
{
"Id": 222,
"Name": "1"
}
]
GET /v1/customer/{customerId}/form/{formId}/fields
Result example:
[
{
"Id": 973,
"Name": "Name"
},
{
"Id": 974,
"Name": "lastname"
},
{
"Id": 975,
"Name": "phone"
},
{
"Id": 976,
"Name": "streetname"
}
]
GET /v1/customer/{customerId}/form/{formId}/data
Result example:
[
{
"Name": null,
"lastname": null,
"phone": "+4791901360",
"streetname": null,
"RecordId": "1",
"Time": "2022-09-22 09:23:46"
},
{
"Name": null,
"lastname": null,
"phone": "+4799570406",
"streetname": null,
"RecordId": "2",
"Time": "2022-09-23 08:27:43"
},
{
"Name": "API Test1",
"lastname": "API Test1",
"phone": "+4791901360",
"streetname": "Ukrainky",
"RecordId": "4",
"Time": "2023-11-22 14:29:13"
}
]
POST /v1/customer/{customerId}/form/{formId}/data
Body example:
{
"Name": "API Test1",
"lastname": "API Test1",
"phone": "+4791901360",
"streetname": "Ukrainky"
}
GET /v1/customer/{customerId}/form/{formId}/data/count
Result example:
3
GET /v1/customer/{customerId}/form/{formId}/data/{itemId}
Result example:
{
"Name": null,
"lastname": null,
"phone": "+47919017777",
"streetname": null
}
PUT /v1/customer/{customerId}/form/{formId}/data/{itemId}
Body example:
{
"Name": "API Test1",
"lastname": "API Test1",
"phone": "+4791901777",
"streetname": "Ukrainky"
}
DELETE/v1/customer/{customerId}/form/{formId}/data/{itemId}