dezrez / DezrezCoreAPI

Resources relating to the Dezrez Core API
7 stars 3 forks source link

General problem using UAT API #45

Closed ewanmceachran closed 7 years ago

ewanmceachran commented 7 years ago

Hi,

I haven't been working on this for a few months, and have just returned to my test code, which now doesn't work. The authentication stuff seems fine, but none of the API calls work. An example:

https://core-api-uat.dezrez.com/api/role/4687103/vendors?agencyID=125

{"Message":"An error has occurred. If this persists please contact us","ErrorReference":"7c3b9d09-0787-4a01-9bb1-a423e76d3af1","Details":"Error occured whilst invoking action Vendors on controller RoleController. This error has been logged.","OwningTeam":null,"ErrorType":null,"ValidationErrors":null}

Apologies if I've missed a communication or am just doing something stupid.

rjmacarthy commented 7 years ago

HI @ewanmceachran

Please can you try to specify a branchId in the query string for this request and see if this helps.

If still a problem, let us know.

Thanks

ewanmceachran commented 7 years ago

I didn't know what branchId to use, so I went with branchId=1. This did not help.

rjmacarthy commented 7 years ago

HI @ewanmceachran you can get a list of branch ids from /agency endpoint.

Alternatively, I have looked up a branch Id for you of: 2336007

Please let me know if this helps.

Richard.

ewanmceachran commented 7 years ago

Nope, that didn't help, sorry.

dendle commented 7 years ago

I have AgencyID 125 as deleted on UAT.

is that the right agencyID?

Cheers, Matt

ewanmceachran commented 7 years ago

That's the agency ID I've always used, yes. Perhaps it got deleted from lack of use?

rjmacarthy commented 7 years ago

Hi @ewanmceachran is this resolved for you now?

ewanmceachran commented 7 years ago

Yup, thanks