get https://sandbox.link.kiban.com/api/v1/nip/send?itemsPerPage=&page=&from=&to=
History of nips sent
Intro
With this API you can get all the executions made to the Send Nip service. You will only retrieve the executions without seeing the details of each one. To view the details, you must access the get by id service.
Important Points
Pagination Parameters
The next two pagination parameters are mandatory to do the request.
- itemsPerPage, number of items by page, should be an integer between [1, 1000]
- page, the page index, should be an integer greater than 0
The next two parameters are required if you want to filter by a period:
- from
- to
Both parameters are a string date and the format must comply with format ISO 8601.
Errors
The next errors can be returned if there is a problem with the request body or the execution of this service:
Errors by required field:
{
"itemsPerPage": "ERROR_QUERY_PARAM_EMPTY",
"page": "ERROR_QUERY_PARAM_EMPTY"
}
Errors by an incorrect format:
{
"itemsPerPage": "ERROR_QUERY_PARAM_FORMAT; should be integer value, [1, 1000]",
"page": "ERROR_QUERY_PARAM_FORMAT; should be integer value, > 0",
"from": "FORMAT_ERROR; Invalid date format. The format must comply with format ISO 8601",
"to": "FORMAT_ERROR; Invalid date format. The format must comply with format ISO 8601"
}
Response
Kiban will return a list of items with the next structure:
{
"currentPage": 1,
"hasNextPage": false,
"items": [
{
"id": "652024288bff92c9ca4ac0aa",
"createdAt": "2023-10-06T15:13:44.168Z",
"finishedAt": "2023-10-06T15:13:44.168Z",
"duration": 143572,
"status": "SUCCESS"
},
{
"id": "6520236b8bff92c9ca4ac0a6",
"createdAt": "2023-10-06T15:10:35.16Z",
"finishedAt": "2023-10-06T15:10:35.163Z",
"duration": 3411840,
"status": "SUCCESS"
},
{
"id": "6503d138f922b3da9ba56764",
"createdAt": "2023-09-15T03:36:24.992Z",
"finishedAt": "2023-09-15T03:36:24.996Z",
"duration": 4217796,
"status": "SUCCESS"
},
{
"id": "6503ab068f1592f5a17f625c",
"createdAt": "2023-09-15T00:53:26.859Z",
"finishedAt": "2023-09-15T00:53:26.863Z",
"duration": 3470165,
"status": "SUCCESS"
},
{
"id": "65039d8b054dbe98e4a99182",
"createdAt": "2023-09-14T23:55:55.24Z",
"finishedAt": "2023-09-14T23:55:55.244Z",
"duration": 3245336,
"status": "SUCCESS"
},
{
"id": "64fbbecfeae344cdba16ef40",
"createdAt": "2023-09-09T00:39:43.846Z",
"finishedAt": "2023-09-09T00:39:43.854Z",
"duration": 7893533,
"status": "SUCCESS"
},
{
"id": "6494f339a63a8326b82930c0",
"createdAt": "2023-06-23T01:19:53.246Z",
"finishedAt": "2023-06-23T01:19:53.254Z",
"duration": 8038376,
"status": "SUCCESS"
},
{
"id": "6462b6e99c3b97dc82067aae",
"createdAt": "2023-05-15T22:49:13.566Z",
"finishedAt": "2023-05-15T22:49:13.566Z",
"duration": 104789,
"status": "SUCCESS"
}
]
}
- currentPage, the actual page returned
- hasNextPage, indicate if there are more pages
- items, list of items in the request
- id, identifier of the request.
- createdAt, date time with the exact moment of creation.
- finishedAt, date time with the exact moment of finalization.
- duration, indicates how long it took to execute the service.
- status, status of the request