Skip to content

Merchant_User_Update

Request

For an external partner to create/update a user. Fields provided will be checked against the Momnt database to ensure permissions and accounts exist. Users are created in Merchants; therefore, a merchant must exist. Users are created by Admin users; therefore, one must exist. To that end: A successful merchant onboarding workflow should have been created before this endpoint can't be used effectively.

Requirements:

  • request_user_id: There must be a user ID in our system for this POST request to succeed. That user must have permission to create subsequent users, in this specific merchant/sponsor. This user ID should have been established in previous interactions, such as pre-onboarding. Therefore, this field should be in the partner's database as well as Momnt.
Security
basicAuth
Body
request_user_idstring, <= 255 characters
user_idstring, <= 255 characters
first_namestring, <= 255 characters
last_namestring, <= 255 characters
emailstring, (email)
is_activeboolean
phone_numberstring
user_typestringwrite-only
  • Admin - Admin
  • Salesperson - Salesperson
  • Salesmanager - Salesmanager
  • Salesrep - Salesrep
Enum:"Admin""Salesperson""Salesmanager""Salesrep"
external_org_idsArray of strings
curl -i -X PATCH \
  -u '<username>:<password>' \
  https://momnt-api-docs.redocly.app/_mock/docs/openapi/sponsor_merchant_v1/api/v1/sponsor/merchants/users/ \
  -H 'Content-Type: application/json' \
  -d '{
    "request_user_id": "string",
    "user_id": "string",
    "first_name": "string",
    "last_name": "string",
    "email": "user@example.com",
    "is_active": true,
    "phone_number": "string",
    "user_type": "Admin",
    "external_org_ids": [
      "string"
    ]
  }'

Responses

Bodyapplication/json
first_namestringread-onlyrequired
last_namestringread-onlyrequired
emailstringread-onlyrequired
phone_numberstringread-onlyrequired
user_typestringread-onlyrequired
is_activebooleanread-onlyrequired
user_idstringread-onlyrequired
reward_idstringread-onlyrequired
Response
{ "first_name": "string", "last_name": "string", "email": "string", "phone_number": "string", "user_type": "string", "is_active": true, "user_id": "string", "reward_id": "string" }