AccountRight .NET API insert payroll category

4 REPLIES
MYOB Staff Post DeveloperJack
65 Posts
MYOB Staff Post
Australia
DeveloperJack
MYOB Staff Post

65Posts

21Kudos

7Solutions

Re: AccountRight .NET API insert payroll category

Hi there @s_wool,

If you're getting a 401 error then it suggests that the user you've logged in as via the API (i.e. the x-myobapi-cftoken header) may not have permissions to access payroll. I'd recommend checking the user's role in the file.

If that doesn't fix it, best to log the full HTTP message you're sending to the API and contact the support team via developers@myob.com so we can take a closer look at the specific request.

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/
Experienced Partner s_wool
11 Posts
Experienced Partner
s_wool
Experienced Partner

11Posts

11Kudos

1Solutions

Re: AccountRight .NET API insert payroll category

hi Jack,

Thanks for your response. I just noticed that expense, entitlement and deduction categories are read only, but the wage category allows you to POST and PUT (at leas according to the PayrollCategoryWage documentation). so i'm trying to post a wage category but I get a 401 unauthorised response message however i have no trouble inserting items or cards. Is this related to payroll categories being read only or am I allowed to insert new wage categories and there's something else wrong? your help is greatly appreciated,

 

regards,

s_wool

ratna
4 Posts
User
ratna
User

4Posts

0Kudos

0Solutions

Re: AccountRight .NET API insert payroll category

.

MYOB Staff Post DeveloperJack
65 Posts
MYOB Staff Post
Australia
DeveloperJack
MYOB Staff Post

65Posts

21Kudos

7Solutions

Re: AccountRight .NET API insert payroll category

Hi there @s_wool,

Unfortunately, the PayrollCategory endpoint is a read-only endpoint. You or your client will need to setup payroll categories in AccountRight before using them via the API - the linked pages will help direct you to the respective documentation on how to do so.

Hope this helps!

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/
Experienced Partner s_wool
11 Posts
Experienced Partner
s_wool
Experienced Partner

11Posts

11Kudos

1Solutions

AccountRight .NET API insert payroll category

Hi,

what is the method which allows us to insert a payroll category similar to the ServiceInvoiceService.Insert() method? I'm using the .NET API and couldn't see a method for a readable range service unless I'm mistaken.

 

thanks Smiley Happy

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