Forum Discussion

kjm's avatar
kjm
Trusted Cover User
3 years ago

Unable to populate Income Type using API

The  Income Type field does not seem to exist in the API under EmployeePayrollDetails. I want to set it to Salary and Wages

when querying in postman I get this as a result in the EmployeePayrollDetails

 

using 

/Contact/EmployeePayrollDetails/701a2fe3-de5b-47f7-866c-7ce1a8b91914

it returns. The tax category does not seem to relate to the Income Type

 "Tax": {
        "TaxFileNumber": "xxx xxx xxx",
        "TaxTable": {
            "UID": "67d45c9f-41fd-4fc7-89f1-d27d4fb577cf",
            "Name": "Tax Free Threshold",
            "URI": "http://myob-server:8080/AccountRight/6123f68f-aa73-4737-a26e-390362664d0a/Payroll/PayrollCategory/TaxTable/67d45c9f-41fd-4fc7-89f1-d27d4fb577cf"
        },
        "WithholdingVariationRate": 0.000000,
        "TotalRebatesPerYear": 0.000,
        "ExtraTaxPerPay": 0.000,
        "TaxCategory": {
            "UID": "47dc880e-f8bd-4bf7-a070-359e61b5f152",
            "Name": "PAYG Withholding",
            "Type": "Tax",
            "URI": "http://myob-server:8080/AccountRight/6123f68f-aa73-4737-a26e-390362664d0a/Payroll/PayrollCategory/Tax/47dc880e-f8bd-4bf7-a070-359e61b5f152"
        }
    },

Is it not available to populate? 

  • Han-Solo's avatar
    Han-Solo
    MYOB Moderator

    Hi kjm,

     

    Thanks for reaching out, Unfortunately this field is not available via the API and would need to be setup from the front end of the program. I have passed this on to our development team as a feature request.