Yedpay

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

Variable
# Name Type Description
1 user_id String User's ID

Request Header

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

Body
# Name Type Description
1 stores Array Id of store(s)

Response

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

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.53.8-20220124 © The Payment Cards Group Limited. All rights reserved.