MYOBCommunity
Partner Zone
|
|
Partner Zone

Access Denied while Accessing Company file from sandbox

Partner ali_Qazi01
1 Post
Partner
ali_Qazi01
Partner

1Posts

0Kudos

0Solutions

Access Denied while Accessing Company file from sandbox

Hi All,

 

when i try access this URL "http://localhost:8080/accountright/" the api give me the perfect response 

{
"Id": "4d3a601a-486f-4b3c-9f08-cded7b595213",
"Name": "Clearwater Pty Ltd",
"LibraryPath": "Samples\\AU\\2018.3\\Clearwater_Basics_AU.myox",
"ProductVersion": "2018.3",
"ProductLevel": {
"Code": 10,
"Name": "Basic"
},
"CheckedOutDate": null,
"CheckedOutBy": null,
"Uri": "http://localhost:8080/AccountRight/4d3a601a-486f-4b3c-9f08-cded7b595213",
"Country": "AU",
"LauncherId": null,
"SerialNumber": null
},
{
"Id": "be072204-9337-4a31-8478-495a47cb6aba",
"Name": "Clearwater Pty Ltd",
"LibraryPath": "Samples\\AU\\2018.3\\Clearwater_Plus_AU.myox",
"ProductVersion": "2018.3",
"ProductLevel": {
"Code": 30,
"Name": "Plus"
},
"CheckedOutDate": null,
"CheckedOutBy": null,
"Uri": "http://localhost:8080/AccountRight/be072204-9337-4a31-8478-495a47cb6aba",
"Country": "AU",
"LauncherId": null,
"SerialNumber": null
},
{
"Id": "ad873e0f-8c2d-480d-9e0c-3429530a2263",
"Name": "Clearwater Pty Ltd",
"LibraryPath": "Samples\\AU\\2018.3\\Clearwater_Standard_AU.myox",
"ProductVersion": "2018.3",
"ProductLevel": {
"Code": 20,
"Name": "Standard"
},
"CheckedOutDate": null,
"CheckedOutBy": null,
"Uri": "http://localhost:8080/AccountRight/ad873e0f-8c2d-480d-9e0c-3429530a2263",
"Country": "AU",
"LauncherId": null,
"SerialNumber": null
},
{
"Id": "eb5d55d0-4afc-49f2-941d-d90e107fe234",
"Name": "Clearwater Pty Ltd",
"LibraryPath": "Samples\\AU\\2018.3\\Clearwater_Premier_AU.myox",
"ProductVersion": "2018.3",
"ProductLevel": {
"Code": 50,
"Name": "Premier"
},
"CheckedOutDate": null,
"CheckedOutBy": null,
"Uri": "http://localhost:8080/AccountRight/eb5d55d0-4afc-49f2-941d-d90e107fe234",
"Country": "AU",
"LauncherId": null,
"SerialNumber": null
},
{
"Id": "cd299287-ce59-488e-bd6c-7481fa040ebf",
"Name": "Clearwater Ltd",
"LibraryPath": "Samples\\NZ\\2018.3\\Clearwater_Basics_NZ.myox",
"ProductVersion": "2018.3",
"ProductLevel": {
"Code": 10,
"Name": "Basic"
},
"CheckedOutDate": null,
"CheckedOutBy": null,
"Uri": "http://localhost:8080/AccountRight/cd299287-ce59-488e-bd6c-7481fa040ebf",
"Country": "NZ",
"LauncherId": null,
"SerialNumber": null
},
{
"Id": "a71e5715-6919-47af-b9e8-25df975c93ca",
"Name": "Clearwater Ltd",
"LibraryPath": "Samples\\NZ\\2018.3\\Clearwater_Plus_NZ.myox",
"ProductVersion": "2018.3",
"ProductLevel": {
"Code": 30,
"Name": "Plus"
},
"CheckedOutDate": null,
"CheckedOutBy": null,
"Uri": "http://localhost:8080/AccountRight/a71e5715-6919-47af-b9e8-25df975c93ca",
"Country": "NZ",
"LauncherId": null,
"SerialNumber": null
},
{
"Id": "15c842ab-7f40-40ae-ae62-0f58987e5763",
"Name": "Clearwater Ltd",
"LibraryPath": "Samples\\NZ\\2018.3\\Clearwater_Premier_NZ.myox",
"ProductVersion": "2018.3",
"ProductLevel": {
"Code": 50,
"Name": "Premier"
},
"CheckedOutDate": null,
"CheckedOutBy": null,
"Uri": "http://localhost:8080/AccountRight/15c842ab-7f40-40ae-ae62-0f58987e5763",
"Country": "NZ",
"LauncherId": null,
"SerialNumber": null
},
{
"Id": "b8f2bd93-db33-405d-a0ae-2a256b383701",
"Name": "Clearwater Ltd",
"LibraryPath": "Samples\\NZ\\2018.3\\Clearwater_Standard_NZ.myox",
"ProductVersion": "2018.3",
"ProductLevel": {
"Code": 20,
"Name": "Standard"
},
"CheckedOutDate": null,
"CheckedOutBy": null,
"Uri": "http://localhost:8080/AccountRight/b8f2bd93-db33-405d-a0ae-2a256b383701",
"Country": "NZ",
"LauncherId": null,
"SerialNumber": null
}
]

 

But when i try to access the company file http://localhost:8080/AccountRight/be072204-9337-4a31-8478-495a47cb6aba/Sale/Invoice 

{
"Message": "Access denied"

i tried using both Headers  Authorization: Basic mHwrS6VJSszzZqsowCGQgw== &&  x-myobapi-cftoken: mHwrS6VJSszzZqsowCGQgw== including x-myobapi-version: v2 at the end but no luck. can anyone help me out on 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