Forum Discussion

kjm's avatar
kjm
Trusted Cover User
3 years ago

How do I populate the following fields using the API?

The following fields do not seem to be accessable from the API to populate

Cards -> Payroll Details -> Taxes -> Income Type

Cards -> Payroll Details -> Standard Pay -> Jobs

 

How can I populate these fields using the API? or is it not possible?

 

attached screenshots

 

  • Hi kjm 

     

    Goto developer.myob.com/api  - 

     

    Job Endpoint - Contact - EmployeeStandardPay - PayrollCategories[] - Job  

     

    Type - Contact - EmployeePayrollDetails - tax - taxCategory - type

     

    The Doc

  • The_Doc's avatar
    The_Doc
    Ultimate Cover User

    Hi kjm 

     

    Goto developer.myob.com/api  - 

     

    Job Endpoint - Contact - EmployeeStandardPay - PayrollCategories[] - Job  

     

    Type - Contact - EmployeePayrollDetails - tax - taxCategory - type

     

    The Doc

    • kjm's avatar
      kjm
      Trusted Cover User

      Hi,

       

      EDIT: this does actually work. My fault. Thanks The_Doc  - I havent tried the taxcategory for Income Type yet but the job endpoint did work :)

       

      EDIT2: The income type does not exist in th API as far as I can tell. From your solution you are referring to the Tax Category...in my example below -  PAYG Witholding

      ---------------------

       

      The_Doc thanks for reply but neither of these make sense to me. 

       

      the following populates the Tax category not the Income Type. In the screenshot below you can see that is populating the category "PAYG Witholding"

      Type - Contact - EmployeePayrollDetails - tax - taxCategory - type

       

      the following does not exist. I cannot see any contact under the job end point n the API...

      Job Endpoint - Contact - EmployeeStandardPay - PayrollCategories[] - Job  

       

       

      am I missing something ?

       

       

    • kjm's avatar
      kjm
      Trusted Cover User

      The  

      Income Type

      field though does not seem to exist

      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"
              }
          },

      The_Doc