All POST API endpoints returning empty response

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.
agwidarsito
4 Posts
User

4Posts

0Kudos

0Solutions

All POST API endpoints returning empty response

Hello,

 

So it appears that the POST endpoints for customer, invoice and job no longer return a response body. They work, in a sense that customers, jobs and invoices are indeed created, and a response code of 201 is sent back. But the response has a content-length of zero and an empty body, which is not valid JSON (it used to be).

 

Is anyone else having this issue? It can easily be reproduced below:

 

POST /accountright/ID_HERE/Contact/Customer
HTTP/1.1
Host: api.myob.com
Authorization: Bearer TOKEN_HERE
x-myobapi-key: KEY_HERE
x-myobapi-version: v2
Content-Type: application/json
Accept: application/json
Content-Length: 648

{"CompanyName":"Vokke Test 12","Addresses":[{"Location":"1","Street":"12 Fairweather Pde","City":"Officer","State":"VIC","PostCode":"3809","Country":"Australia","Phone1":null,"Email":"adrian@test.com.au","ContactName":"Adrian Gray"}],"IsIndividual":false,"SellingDetails":{"ABN":null,"TaxCode":{"UID":"bd0f9821-4437-4ec2-9c95-c1bdbdd26c7b"},"FreightTaxCode":{"UID":"bd0f9821-4437-4ec2-9c95-c1bdbdd26c7b"},"IncomeAccount":{"UID":"82efbb1a-56e4-4bca-825c-283c8fcb4163"},"Terms":{"PaymentIsDue":"CashOnDelivery","DiscountDate":0,"BalanceDueDate":0,"DiscountForEarlyPayment":0,"MonthlyChargeForLatePayment":0,"VolumeDiscount":0},"Credit":{"Limit":0}}}
 
Again, this works but the response is empty. Confirmed via PostMan.
2 REPLIES 2
Hannah_B
MYOB Moderator
142 Posts
MYOB Moderator
Australia
MYOB Moderator

142Posts

33Kudos

25Solutions

Re: All POST API endpoints returning empty response

Hi @agwidarsito

 

Thanks for reaching out, Would you please be able to create a support request with us HERE so we can have a more in-depth look into what is causing this to occur. 

 

Many Thanks,


Thanks,
@Hannah_B


MYOB API Specialist


MYOB API Support Centre|MYOB App Marketplace|MYOB AccountRight API Endpoint Doc's



Did my answer help?


Mark it as a Solution

JodieW24
1 Post
Cover User
Australia
Cover User

1Posts

0Kudos

0Solutions

Re: All POST API endpoints returning empty response

We have the same issue however invoices are not being created either.

 

Would love a solution ASAP as we can't do any bank reconciliations.

 

 

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