Get the time points behind a pending correction (user)
Returns the day's time points for the employee tied to a single pending correction, giving the validator the surrounding clock events for context. The correction must belong to an employee within the authenticated validator's correction scope; otherwise a 403 is returned. A 400 is returned when the correction has neither a new nor an old time, or its requester has no linked user.
The response is a bare array of time point objects (not wrapped in data),
each serialized by the V1 PendingCorrectionDetailsResource.
User bearer token. Default authentication for customer-facing endpoints.
Obtain a token by calling POST /login with your credentials, then send it
on every subsequent request as Authorization: Bearer <token>. The token
inherits the permissions and PBX scope of the authenticated user.
- HTTP Authorization Scheme
bearer- Bearer format
Bearer <token>
application/jsonResponses
550e8400-e29b-41d4-a716-4466554400002024-03-0108:29:07status*object
550e8400-e29b-41d4-a716-446655440001Working#FFFFFF#2E7D32la la-briefcaseSomething went wrong.Authorization Token is missingThis action is unauthorized.The given data was invalid.errorsobject
filterarray<string>
sortarray<string>
pagearray<string>
per_pagearray<string>
https://cockpit.voxbi.com/api/v1/{pbx_id}/validator/pending-corrections/{correction_id}/details
curl -X GET 'https://cockpit.voxbi.com/api/v1/{pbx_id}/validator/pending-corrections/{correction_id}/details' \
-H 'Authorization: Bearer YOUR_TOKEN'
const response = await fetch('https://cockpit.voxbi.com/api/v1/{pbx_id}/validator/pending-corrections/{correction_id}/details', {
method: 'GET',
headers: {
'Content-Type': 'application/json',
'Authorization': `Bearer ${YOUR_TOKEN}`,
},
});
const data = await response.json();
console.log(data);
import requests
response = requests.get('https://cockpit.voxbi.com/api/v1/{pbx_id}/validator/pending-corrections/{correction_id}/details',
headers={'Authorization': f'Bearer {YOUR_TOKEN}'}
)
response.raise_for_status()
data = response.json()
print(data)
<?php
$context = stream_context_create([
'http' => [
'method' => 'GET',
'header' => "Content-Type: application/json\r\nAuthorization: Bearer YOUR_TOKEN",
],
]);
$response = file_get_contents('https://cockpit.voxbi.com/api/v1/{pbx_id}/validator/pending-corrections/{correction_id}/details', false, $context);
$data = json_decode($response, true);
print_r($data);
{ … }
private, must-revalidatekeep-aliveapplication/jsonOrigin6057{ … }
"errors": { … }
"filter": [ … ],
"sort": [ … ],
"page": [ … ],
"per_page": [ … ]
private, must-revalidatekeep-aliveapplication/jsonOrigin6057