Skip to main content
PATCH
/
api
/
v1
/
auth
/
merchants
/
{merchant_id}
Update merchant or sub-merchant
curl --request PATCH \
  --url https://crypto.westminister.tech/api/v1/auth/merchants/{merchant_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "merchant1.branch1@gmail.com",
  "phone_number": "+254700000050",
  "first_name": "NewFirst",
  "last_name": "NewLast",
  "kyc_status": "approved",
  "is_active": true
}
'
{
  "merchant": {
    "id": "f004fba4-7b6c-423a-983b-fdc283f8a1ab",
    "email": "merchant1.branch1@gmail.com",
    "phone_number": "+254700000050",
    "first_name": "NewFirst",
    "last_name": "NewLast",
    "role": "vendor",
    "kyc_status": "approved",
    "is_active": true,
    "parent_vendor_id": "a2aeca1d-9686-4158-b4be-d0a3fd04760e"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

merchant_id
string<uuid>
required

Body

application/json
email
string<email>
phone_number
string
first_name
string
last_name
string
kyc_status
enum<string>
Available options:
pending,
approved,
rejected
is_active
boolean

Response

200 - application/json

Merchant updated

merchant
any