MYOBCommunity
Partner Zone
|
|
Partner Zone

EmployeePayrollDetails API Error

This thread is now closed to new comments.
Some of the links provided in this thread may no longer be available or relevant.
If you have a question please start a new post.
1 REPLY
MYOB Staff Post DeveloperJack
141 Posts
MYOB Staff Post
Australia
DeveloperJack
MYOB Staff Post

141Posts

31Kudos

21Solutions

Re: EmployeePayrollDetails API Error

Hi there @Cybertron,

Just a quick note - I can see we're also assisting this via developers@myob.com; we'll keep an eye out for any replies there so we can dig into your specific case.

Cheers!

Jack

Jack Skinner
MYOBapi Evangelist

Are you a developer? Check out http://developer.myob.com
Looking for an Add-on? Check out http://myob.com/addons/
Partner Cybertron
2 Posts
Partner
Cybertron
Partner

2Posts

0Kudos

0Solutions

EmployeePayrollDetails API Error

Hi,

 

On updating employee payroll details with API, i am getting following errors : -

stdClass Object
(
    [Errors] => Array
        (
            [0] => stdClass Object
                (
                    [Name] => EmployeeMustBeLinkedToBaseSalary
                    [Message] => Salaried employees must be linked to Base Salary wage category
                    [AdditionalDetails] => Wage.WageCategories
                    [ErrorCode] => 35000
                    [Severity] => Error
                    [LearnMore] => 
                )

            [1] => stdClass Object
                (
                    [Name] => ValidationError
                    [Message] => EmployeePayrollDetails_PayPeriodHoursDecimalMinValue
                    [AdditionalDetails] => WeeklyPayPeriodHoursSmiley SadEmployeePayrollDetails)
                    [ErrorCode] => 4863
                    [Severity] => Error
                    [LearnMore] => 
                )

            [2] => stdClass Object
                (
                    [Name] => ValidationError
                    [Message] => EmployeePayrollDetails_TaxTableIdDoesNotExist
                    [AdditionalDetails] => TaxTableIdSmiley SadEmployeePayrollDetails)
                    [ErrorCode] => 4862
                    [Severity] => Error
                    [LearnMore] => 
                )

        )

    [Information] => Warning, error messages have not been finalised in this release and may change
)


Here is my employee payroll detail -
[UID] => 5383d13f-1bd3-41fc-9924-74a1297b709f
                    [Employee] => stdClass Object
                        (
                            [UID] => b39c065e-a8de-42e4-ad6a-dc5f36d36c52
                            [Name] => Test Name
                            [URI] => https://ar1.api.myob.com/accountright/377a1687-408c-4647-a390-1b4c2ea1ff9d/Contact/Employee/b39c065e-a8de-42e4-ad6a-dc5f36d36c52
                        )

                    [DateOfBirth] => 
                    [Gender] => 
                    [StartDate] => 
                    [TerminationDate] => 
                    [EmploymentBasis] => Individual
                    [EmploymentCategory] => Permanent
                    [EmploymentStatus] => FullTime
                    [EmploymentClassification] => 
                    [PaySlipDelivery] => ToBePrinted
                    [PaySlipEmail] => 
                    [Wage] => stdClass Object
                        (
                            [PayBasis] => Salary
                            [AnnualSalary] => 0
                            [HourlyRate] => 0
                            [PayFrequency] => Weekly
                            [HoursInWeeklyPayPeriod] => 38
                            [WagesExpenseAccount] => stdClass Object
                                (
                                    [UID] => 518be54f-3bd5-4deb-bae0-6942ee96f504
                                    [Name] => Wages & Salaries Expenses
                                    [DisplayID] => 6-4100
                                    [URI] => https://ar1.api.myob.com/accountright/377a1687-408c-4647-a390-1b4c2ea1ff9d/GeneralLedger/Account/518be54f-3bd5-4deb-bae0-6942ee96f504
                                )

                            [WageCategories] => Array
                                (
                                    [0] => stdClass Object
                                        (
                                            [UID] => b9921ecc-49cc-44c2-b501-b39d55b374f9
                                            [Name] => Base Salary
                                            [Type] => Wage
                                            [URI] => https://ar1.api.myob.com/accountright/377a1687-408c-4647-a390-1b4c2ea1ff9d/Payroll/PayrollCategory/Wage/b9921ecc-49cc-44c2-b501-b39d55b374f9
                                        )

                                )

                        )

                    [Superannuation] => stdClass Object
                        (
                            [SuperannuationFund] => stdClass Object
                                (
                                    [UID] => a04ba1ff-018c-46a1-9c7c-0a86b5d347c6
                                    [Name] => Spectrum Super
                                    [URI] => https://ar1.api.myob.com/accountright/377a1687-408c-4647-a390-1b4c2ea1ff9d/Payroll/SuperannuationFund/a04ba1ff-018c-46a1-9c7c-0a86b5d347c6
                                )

                            [EmployeeMembershipNumber] => 
                            [SuperannuationCategories] => Array
                                (
                                )

                        )

                    [Entitlements] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [EntitlementCategory] => stdClass Object
                                        (
                                            [UID] => be17a416-1f22-4e83-966c-1d9d30517cf5
                                            [Name] => Annual Leave Accrual
                                            [Type] => Entitlement
                                            [URI] => https://ar1.api.myob.com/accountright/377a1687-408c-4647-a390-1b4c2ea1ff9d/Payroll/PayrollCategory/Entitlement/be17a416-1f22-4e83-966c-1d9d30517cf5
                                        )

                                    [IsAssigned] => 
                                    [CarryOver] => 0
                                    [YearToDate] => 0
                                    [Total] => 0
                                )

                            [1] => stdClass Object
                                (
                                    [EntitlementCategory] => stdClass Object
                                        (
                                            [UID] => 286850cd-bcd1-46e7-ae09-db7475829b97
                                            [Name] => Personal Leave Accrual
                                            [Type] => Entitlement
                                            [URI] => https://ar1.api.myob.com/accountright/377a1687-408c-4647-a390-1b4c2ea1ff9d/Payroll/PayrollCategory/Entitlement/286850cd-bcd1-46e7-ae09-db7475829b97
                                        )

                                    [IsAssigned] => 
                                    [CarryOver] => 0
                                    [YearToDate] => 0
                                    [Total] => 0
                                )

                        )

                    [Deductions] => Array
                        (
                        )

                    [EmployerExpenses] => Array
                        (
                        )

                    [Tax] => stdClass Object
                        (
                            [TaxFileNumber] => 
                            [TaxTable] => stdClass Object
                                (
                                    [UID] => a0070357-ff80-4f21-a954-3796fcf7511b
                                    [Name] => Tax Free Threshold
                                    [URI] => https://ar1.api.myob.com/accountright/377a1687-408c-4647-a390-1b4c2ea1ff9d/Payroll/PayrollCategory/TaxTable/a0070357-ff80-4f21-a954-3796fcf7511b
                                )

                            [WithholdingVariationRate] => 0
                            [TotalRebatesPerYear] => 0
                            [ExtraTaxPerPay] => 0
                            [TaxCategory] => stdClass Object
                                (
                                    [UID] => 93ae2a5e-29cd-43c3-87df-16f6035fd07b
                                    [Name] => PAYG Withholding
                                    [Type] => Tax
                                    [URI] => https://ar1.api.myob.com/accountright/377a1687-408c-4647-a390-1b4c2ea1ff9d/Payroll/PayrollCategory/Tax/93ae2a5e-29cd-43c3-87df-16f6035fd07b
                                )

                        )

                    [TimeBilling] => stdClass Object
                        (
                            [EmployeeBillingRateExcludingTax] => 0
                            [CostPerHour] => 0
                        )

                    [EmployeePaymentSummary] => 
                    [URI] => https://ar1.api.myob.com/accountright/377a1687-408c-4647-a390-1b4c2ea1ff9d/Contact/EmployeePayrollDetails/5383d13f-1bd3-41fc-9924-74a1297b709f
                    [RowVersion] => 2084057220240113664


What is to be done to resolve this?
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