MYOBCommunity
Partner Zone
|
|
Partner Zone

PUT API request return 404 not found

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.
3 REPLIES
MYOB Staff Post DeveloperJack
141 Posts
MYOB Staff Post
Australia
DeveloperJack
MYOB Staff Post

141Posts

31Kudos

21Solutions

Re: PUT API request return 404 not found

Hi there @Quynh,

You'll need to first retrieve the customers from the API (potentially using oData filters to search for a name or ID) and then PUT the whole resource with your updated fields back to the API.

I note below that it looks like you're using our V1 API which was deprecated a few years ago - best double check that you're using x-myobapi-version: v2 in your headers.

If you need some further help with this feel free to reach out to support via developers@myob.com.

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 Quynh
18 Posts
Experienced Partner
Quynh
Experienced Partner

18Posts

1Kudos

0Solutions

Re: PUT API request return 404 not found

Hi, I am trying to update a customer record but don't know how to retreive {UI} for that particular customer, I can find RowVersion with GET method only.

 

>array(33) {
 ["ABN"]=>
 string(0) ""
 ["ABNBranch"]=>
 string(0) ""
 ["PriceLevelId"]=>
 NULL
 ["CreditLimit"]=>
 float(0)
 ["OnHold"]=>
 bool(false)
 ["VolumeDiscount"]=>
 float(0)
 ["IncomeAccountId"]=>
 NULL
 ["UseCustomerTaxCode"]=>
 bool(false)
 ["Memo"]=>
 string(0) ""
 ["SaleLayoutId"]=>
 string(7) "Service"
 ["HourlyBillingRate"]=>
 float(0)
 ["PrintedForm"]=>
 string(0) ""
 ["SaleComment"]=>
 NULL
 ["ShippingMethod"]=>
 NULL
 ["TaxIdNumber"]=>
 string(0) ""
 ["TermsId"]=>
 NULL
 ["SalesPersonId"]=>
 NULL
 ["TaxCodeId"]=>
 string(3) "GST"
 ["FreightTaxCodeId"]=>
 string(3) "GST"
 ["CoLastName"]=>
 string(4) "Pham"
 ["FirstName"]=>
 string(8) "Customer"
 ["IsIndividual"]=>
 bool(true)
 ["EnteredId"]=>
 string(8) "88888888"
 ["IsActive"]=>
 bool(true)
 ["Addresses"]=>
 array(0) {
 }
 ["Description"]=>
 string(0) ""
 ["Tags"]=>
 string(0) ""
 ["CustomLists"]=>
 NULL
 ["CustomFields"]=>
 NULL
 ["CurrentBalance"]=>
 float(0)
 ["Uri"]=>
 string(92) "https://ar1.api.myob.com/accountright/30f3396c-02e9-4a86-99e6-3bb2e832cb3d/Customer/88888888"
 ["Id"]=>
 string(8) "88888888"
 ["RowVersion"]=>
 string(19) "2543705857208614912"
 }
MYOB Moderator HelenB
274 Posts
MYOB Moderator
HelenB
MYOB Moderator

274Posts

213Kudos

62Solutions

Accepted Solution Solved Solution

Re: PUT API request return 404 not found

Hi @Dataport

 

Thanks for reaching out to us and Welcome to the Community forum. When using the PUT method to update a record via the API, you need to include the record UID in the URL as well. For example:

 

https://api.myob.com/accountright/{CDF_UID}/Contact/Customer/{UID}

Hope that helps. 

 

Thanks

Helen

@HelenB
Helen Brophy
MYOB Developer Support Liaison

Are you a developer? Check out http://developer.myob.com
Looking for an Add-on? Check out http://myob.com/addons/
MYOB API Support Centre - https://apisupport.myob.com
Highlighted
Partner Dataport
4 Posts
Partner
Dataport
Partner

4Posts

0Kudos

0Solutions

Solved: Go to Solution

PUT API request return 404 not found

I cannot access to the following endpoint with PUT method only

and it returns 404 not found.

 

 

https://api.myob.com/accountright/{{guid}}/Contact/Customer

https://api.myob.com/accountright/{{guid}}/Sale/Invoice/Service

 

My environment is AccountRight Plus(version 2017.2)

 

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