Introduction

Authentication

Test cards

Establishments

Users

Customers

Cards

Payment links

Error codes

Payment Split

Products

Discount Coupons

Sales

Signatures

Webhooks

Financial


On this page:


PUT Edit user

https://api.premepay.com/v1/stores/:id/users/:id

List of Parameters

Parameter Type Description Required
name string Nome Yes
username email Email Yes
password string Password Yes
permission object Permission No
entityId int Identifier Yes
entityType string Store or Business Yes
role int Permission level Yes

Role: is related to the user's access level and accepts the following integer values:

EntityId: is the ID of the Store or Business where the user will have access.

Role Permission level
0 Owner
1 Administrator
2 Agent
3 ViewOnly
4 API

Example of a request for updating a Store type user

This is an example of how your request should look like for updating a Store type user.

Responses

Related Content

<aside> <img src="https://s3-us-west-2.amazonaws.com/secure.notion-static.com/e3aeb85f-a7e2-40f4-b805-7e883e3d72e2/DELETE.png" alt="https://s3-us-west-2.amazonaws.com/secure.notion-static.com/e3aeb85f-a7e2-40f4-b805-7e883e3d72e2/DELETE.png" width="40px" /> DELETE - Delete user

</aside>

<aside> <img src="https://s3-us-west-2.amazonaws.com/secure.notion-static.com/a22a31f7-bd92-40af-8042-7685c0c0859a/GET.png" alt="https://s3-us-west-2.amazonaws.com/secure.notion-static.com/a22a31f7-bd92-40af-8042-7685c0c0859a/GET.png" width="40px" /> GET - Get user

</aside>