Explain one year of a member's allowance
curl --request GET \
--url https://api.absentify.com/api/v1/members/{member_id}/allowance-breakdown \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.absentify.com/api/v1/members/{member_id}/allowance-breakdown"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://api.absentify.com/api/v1/members/{member_id}/allowance-breakdown', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.absentify.com/api/v1/members/{member_id}/allowance-breakdown",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.absentify.com/api/v1/members/{member_id}/allowance-breakdown"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-KEY", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.absentify.com/api/v1/members/{member_id}/allowance-breakdown")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.absentify.com/api/v1/members/{member_id}/allowance-breakdown")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"legacy_unmigrated": true,
"no_allowance_for_year": true,
"member_allowance_id": "<string>",
"fiscal_year_start_month": 0,
"active_rule": {
"name": "<string>",
"amount": 123,
"cycle": "<string>"
},
"allowance": 123,
"raw_allowance": 123,
"rounding_increment": 123,
"rounding_mode": "increment",
"rounding_delta": 123,
"adjustments": 123,
"brought_forward": 123,
"overwrite_brought_forward": true,
"taken": 123,
"remaining": 123,
"will_expire": 123,
"expired": 123,
"expiration": 123,
"carry_forward_deadline": "<string>",
"next_credit_expiry": "<string>",
"credit_expiration_past": 123,
"credit_expiration_future": 123,
"monthly_accruals": [
{
"month": 0,
"amount": 123,
"earned": true,
"ruleName": "<string>"
}
],
"negative_balance_resets": [
{
"date": "<string>",
"amount": 123
}
],
"carry_forward_detail": {
"previous_remaining": 123,
"carried": 123,
"expired": 123,
"deadline": "<string>",
"expiry_months": 123,
"max_carry_forward": 123,
"kept_after_expiry": 123,
"computed_carried": 123,
"negative_balance_not_carried": 123
},
"deductions": [
{
"date": "<string>",
"amount": 123,
"request_id": "<string>",
"leave_type_id": "<string>",
"leave_type_name": "<string>",
"request_start": "<string>",
"request_end": "<string>"
}
],
"adjustment_details": [
{
"id": 123,
"amount": 123,
"date": "<string>",
"expiry_date": "<string>",
"comment": "<string>",
"is_expired": true,
"is_overtime": true,
"created_by": {
"name": "<string>",
"email": "<string>"
}
}
]
}{
"code": "BAD_REQUEST",
"message": "Invalid input data",
"issues": []
}{
"code": "UNAUTHORIZED",
"message": "Authorization not provided",
"issues": []
}{
"code": "FORBIDDEN",
"message": "Insufficient access",
"issues": []
}{
"code": "NOT_FOUND",
"message": "Not found",
"issues": []
}{
"code": "INTERNAL_SERVER_ERROR",
"message": "Internal server error",
"issues": []
}Allowance Management
Explain one year of a member's allowance
How the figures of one fiscal year came about: which rule was active, what accrued month by month, what was carried over, what expired and what was booked. This is the calculation the app shows in the ledger.
GET
/
members
/
{member_id}
/
allowance-breakdown
Explain one year of a member's allowance
curl --request GET \
--url https://api.absentify.com/api/v1/members/{member_id}/allowance-breakdown \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.absentify.com/api/v1/members/{member_id}/allowance-breakdown"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://api.absentify.com/api/v1/members/{member_id}/allowance-breakdown', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.absentify.com/api/v1/members/{member_id}/allowance-breakdown",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.absentify.com/api/v1/members/{member_id}/allowance-breakdown"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-KEY", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.absentify.com/api/v1/members/{member_id}/allowance-breakdown")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.absentify.com/api/v1/members/{member_id}/allowance-breakdown")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"legacy_unmigrated": true,
"no_allowance_for_year": true,
"member_allowance_id": "<string>",
"fiscal_year_start_month": 0,
"active_rule": {
"name": "<string>",
"amount": 123,
"cycle": "<string>"
},
"allowance": 123,
"raw_allowance": 123,
"rounding_increment": 123,
"rounding_mode": "increment",
"rounding_delta": 123,
"adjustments": 123,
"brought_forward": 123,
"overwrite_brought_forward": true,
"taken": 123,
"remaining": 123,
"will_expire": 123,
"expired": 123,
"expiration": 123,
"carry_forward_deadline": "<string>",
"next_credit_expiry": "<string>",
"credit_expiration_past": 123,
"credit_expiration_future": 123,
"monthly_accruals": [
{
"month": 0,
"amount": 123,
"earned": true,
"ruleName": "<string>"
}
],
"negative_balance_resets": [
{
"date": "<string>",
"amount": 123
}
],
"carry_forward_detail": {
"previous_remaining": 123,
"carried": 123,
"expired": 123,
"deadline": "<string>",
"expiry_months": 123,
"max_carry_forward": 123,
"kept_after_expiry": 123,
"computed_carried": 123,
"negative_balance_not_carried": 123
},
"deductions": [
{
"date": "<string>",
"amount": 123,
"request_id": "<string>",
"leave_type_id": "<string>",
"leave_type_name": "<string>",
"request_start": "<string>",
"request_end": "<string>"
}
],
"adjustment_details": [
{
"id": 123,
"amount": 123,
"date": "<string>",
"expiry_date": "<string>",
"comment": "<string>",
"is_expired": true,
"is_overtime": true,
"created_by": {
"name": "<string>",
"email": "<string>"
}
}
]
}{
"code": "BAD_REQUEST",
"message": "Invalid input data",
"issues": []
}{
"code": "UNAUTHORIZED",
"message": "Authorization not provided",
"issues": []
}{
"code": "FORBIDDEN",
"message": "Insufficient access",
"issues": []
}{
"code": "NOT_FOUND",
"message": "Not found",
"issues": []
}{
"code": "INTERNAL_SERVER_ERROR",
"message": "Internal server error",
"issues": []
}Path Parameters
Query Parameters
Response
Successful response
Was this page helpful?