Description (Assign Stores to User)
Assign Multiple Stores to User (Operator). (Post)
End Point
https://api.yedpay.com/v1/users/{{user_id}}/assign-stores
Variable
# | Name | Type | Description |
---|---|---|---|
1 | user_id | String | User's ID |
Request Header
# | Key | Value | Description |
---|---|---|---|
1 | Authorization | Bearer {{access_token}} | Login Token |
2 | Content-Type | application/x-www-form-urlencoded | x-www-form-urlencoded Format |
Body
# | Name | Type | Description |
---|---|---|---|
1 | stores | Array | Id of store(s) |
Response
# | Name | Type | Description |
---|---|---|---|
1 | success | Boolean | Result of Assign Stores |
2 | message | string | Message for Assigning Stores to User |
Example Success Response
Response for Normal User: { "success": true, "message": "Assigning Stores to User" }
Error Response - errors
# | Name | Type | Description |
---|---|---|---|
1 | success | Boolean | Result of Assign Stores |
2 | message | String | Error Message |
3 | status | Integer | HTTP Status Code |
Example Error Response
{ "success": false, "message": "Unauthenticated.", "status": 401 }
v1.61.15-20230523 © The Payment Cards Group Limited. All rights reserved.