Forum Discussion

Stuart_W's avatar
Stuart_W
MYOB Staff
7 days ago

Developer Communication - New MYOB Business API endpoint / Inventory / PriceLevels

 

Hello, everybody. To coincide with the release of AccountRight 2024.8 Public API, as of 19/09/2024 we will be introducing a new Price Levels endpoint to the API. Now, when you rename custom Price Levels in AccountRight, the updated names can be retrieved through our Public API. This new endpoint, located at {cf_uri}/Inventory/PriceLevels, will allow GET requests only, and provide developers a way to GET a list of the current price levels as well as their associated labels. An example of a typical JSON response can be found below:

 

Endpoint: /{cf_uri}/Inventory/PriceLevels

Supported Methods: GET Only

 

 

{
"Items": [
{
"Name": "PriceLevelA",
"Value": "My BFFs",
"RowVersion": "-3710391048371961856"
},
{
"Name": "PriceLevelB",
"Value": "2nd Level BFFs",
"RowVersion": "-3638333454334033920"
},
{
"Name": "PriceLevelC",
"Value": "My C group",
"RowVersion": "-3566275860296105984"
},
{
"Name": "PriceLevelD",
"Value": "My D group",
"RowVersion": "-3494218266258178048"
},
{
"Name": "PriceLevelE",
"Value": "My E group",
"RowVersion": "-3422160672220250112"
},
{
"Name": "PriceLevelF",
"Value": "My F group",
"RowVersion": "-3350103078182322176"
}
],
"NextPageLink": null,
"Count": 6
}

 

We are working to have the API endpoint documentation updated as soon as possible and will provide a link in the apisupport.myob.com article below as soon as that is available. In the meantime, if you have any questions, log a ticket with the Customisation & Integration Team.

 

https://apisupport.myob.com/hc/en-us/articles/10723318338191-New-endpoint-PriceLevels

  • Trish_Lee's avatar
    Trish_Lee
    Experienced User

    Hi Stuart_W 

    This is a great addition of an endpoint to the API. A lot of our Clients have asked about this in the past, so well done :-) Trish