Users API
There are two methods available for users :
- List all users
- Return full detail on a single user
List all users
End Point: https://api.myposconnect.com/api/v2/users
Verb: GET
Example Call: https://api.myposconnect.com/api/v2/users?liPage=1&liPageSize=99999&sSortKey=UserCodeASC
Return Codes: 200 for success, with the body containing the JSON for the Users. For other possible (more general) return codes please see API Build Basics
Important: This call returns a restricted flat view of the Users. The JSON objects in the array are not full Users JSON objects as shown in the appendices of this document. If some of the deeper information is required then you will need to use the method for getting a single user object. There are several query string arguments that can be used with this call as follows (you may need to URL encode your argument values).
Filters:
liPage |
Optional Integer - defaults to 1 if not supplied |
liPageSize |
Optional Integer - defaults to 10 if not supplied |
sSortKey |
Optional String – acceptable values are the name of any returned field appended with ASC or DESC (eg “UserCodeASC” means sort the results by the code field in ascending order) |
sFieldList |
Optional String – use to limit which fields are returned. Acceptable value is the comma-separated names of any returned field (eg “UserId,UserCode”). It is a good idea to use this argument if you do not require all the fields in the returned JSON. Please note you will always receive the fields “customSortRowNumber” and “liTotalCount” which allow you to establish how many pages of results there are and where each row lies within the results. |
Return full detail on a single user by User Identifier userId
End Point: https://api.myposconnect.com/api/v2/user/{identifier}
Verb: GET
Example Call: https://api.myposconnect.com/api/v2/users/67fcefb2-fcaf-4424-98fa-7768e7025825
Return Codes: 200 for success, with the body containing the JSON for the User. For other possible (more general) return codes please see API Build Basics
Important: This call returns a view of a single user and related fields including dynamic Custom Fields tailored for individual MYPOS clients.
Example JSON Object
Single User
|
---|
Troubleshooting Ideas
As with all API connections, you will need to have acquired a bearer token and the user that acquired the token will need to be assigned access permission to this table. If you are not receiving any results send the full endpoint together with any filters and the API user to us from a valid email address and we can advise if permissions have been authorised. You might be able to see data with one table and not another if specific permissions are not applied.