Retrieve Recently Registered Devices for All Customers
This endpoint returns a list of devices that were most recently registered by customers. The results are sorted in descending order based on the registration date.
Request
GET https://openapi.willog.io/ext/v1/customers/serials/recent
Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| page | Number | false | Page number for pagination |
| limit | Number | false | Number of records per request (maximum: 100) |
Example Request
GET /ext/v1/customers/serials/recent
Authorization: Bearer token
Response
Response Body
| Name | Type | Not-null | Description |
|---|---|---|---|
| items | Array | true | List of device records |
| customerCode | String | true | Customer code associated with the device |
| serial | String | true | Device serial number |
Example Response
HTTP/1.1 200 OK
{
"items": [
{
"customerCode": "customer1",
"serial": "ab123456"
},
{
"customerCode": "customer2",
"serial": "98611235"
},
{
"customerCode": "customer1",
"serial": "ab123789"
}
]
}
Error Responses
- Unauthorized Access to Customer Data
HTTP/1.1 400 Bad Request
{
"code": "A0016"
}