Skip to content

CareTaker payment endpoints

Branson Ng edited this page Nov 14, 2020 · 1 revision

GET localhost:8000/api/caretakers/payment/:email

Returns CareTakerPayment[]

Part timer example

GET localhost:8000/api/caretakers/payment/[email protected]

{
    "data": {
        "monthly_payment": [
            {
                "monthYear": "2020-09",
                "fullPay": "2173.50"
            }
        ]
    },
    "error": ""
}

Full timer example

GET localhost:8000/api/caretakers/payment/[email protected]

{
    "data": {
        "monthly_payment": [
            {
                "monthYear": "2020-09",
                "bonus": "1233.6",
                "fullPay": "4233.6"
            },
            {
                "monthYear": "2020-10",
                "bonus": "0",
                "fullPay": "3000.0"
            }
        ]
    },
    "error": ""
}