How do I populate the following fields using the API?

This thread is now closed to new comments.
Some of the links and information provided in this thread may no longer be available or relevant.
If you have a question please start a new post.
kjm
Trusted Cover User
160 Posts
Trusted Cover User
Australia
Trusted Cover User

160Posts

14Kudos

2Solutions

Solved: Go to Solution

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

 

job.JPG
income-type.JPG
3 REPLIES 3
The_Doc
Ultimate Partner
1,537 Posts
Ultimate Partner
Australia
Ultimate Partner

1,537Posts

165Kudos

162Solutions

Accepted Solution Solved

Re: How do I populate the following fields using the API?

Hi @kjm 

 

Goto developer.myob.com/api  - 

 

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

 

Type - Contact - EmployeePayrollDetails - tax - taxCategory - type

 

The Doc

kjm
Trusted Cover User
160 Posts
Trusted Cover User
Australia
Trusted Cover User

160Posts

14Kudos

2Solutions

Re: How do I populate the following fields using the API?

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 Smiley Happy

 

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 ?

 

 

income tax category.JPG
job1.JPG
kjm
Trusted Cover User
160 Posts
Trusted Cover User
Australia
Trusted Cover User

160Posts

14Kudos

2Solutions

Re: How do I populate the following fields using the API?

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 

income tax category.JPG

Didn't find your answer here?

Try using advanced search to find a post more easily Advanced Search
or
Get the conversation started and make a new post Start a Post