POST /2024-09/users/merchant-memberships/remove

Remove a user from the specified merchant

application/json

Body Required

  • merchant_id string(uuid) Required

    The UUID of the resource.

  • user_id string(uuid) Required

    The UUID of the resource.

Responses

  • 204

    Empty response with no content

  • 401 application/json

    The request requires user authentication or the user is not authorized to access this resource.

    Hide response attribute Show response attribute object
    • message string
  • 404 application/json

    The specified resource was not found

    Hide response attribute Show response attribute object
    • message string
POST /2024-09/users/merchant-memberships/remove
curl \
 --request POST 'https://app.merchanthq.com/api/2024-09/users/merchant-memberships/remove' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"merchant_id":"1e7f0a0f-b5a9-4d1a-a2d5-d0e0c2b1c3d4","user_id":"1e7f0a0f-b5a9-4d1a-a2d5-d0e0c2b1c3d4"}'
Request examples
{
  "merchant_id": "1e7f0a0f-b5a9-4d1a-a2d5-d0e0c2b1c3d4",
  "user_id": "1e7f0a0f-b5a9-4d1a-a2d5-d0e0c2b1c3d4"
}
Response examples (401)
{
  "message": "Unauthorized"
}
Response examples (404)
{
  "message": "Not found"
}