PUT
/
v2
/
merchant-accounts
/
{id}
curl --request PUT \
--url https://sandbox.hyperswitch.io/v2/merchant-accounts/{id} \
--header 'Content-Type: application/json' \
--header 'api-key: <api-key>' \
--data '{
"merchant_details": {
"primary_contact_person": "John Doe",
"primary_email": "example@company.com"
}
}'
{
  "id": "y3oqhf46pyzuxjbcn2giaqnb44",
  "merchant_name": "NewAge Retailer",
  "merchant_details": {
    "primary_contact_person": "John Doe",
    "primary_phone": "999999999",
    "primary_email": "johndoe@test.com",
    "secondary_contact_person": "John Doe2",
    "secondary_phone": "999999988",
    "secondary_email": "johndoe2@test.com",
    "website": "www.example.com",
    "about_business": "Online Retail with a wide selection of organic products for North America",
    "address": {
      "city": "New York",
      "country": "AF",
      "line1": "123, King Street",
      "line2": "Powelson Avenue",
      "line3": "Bridgewater",
      "zip": "08807",
      "state": "New York",
      "first_name": "John",
      "last_name": "Doe"
    }
  },
  "publishable_key": "AH3423bkjbkjdsfbkj",
  "metadata": {},
  "organization_id": "org_q98uSGAYbjEwqs0mJwnz",
  "recon_status": "not_requested",
  "product_type": "orchestration"
}

Authorizations

api-key
string
header
required

Admin API keys allow you to perform some privileged actions such as creating a merchant account and Connector account.

Path Parameters

id
string
required

The unique identifier for the merchant account

Body

application/json

Response

200
application/json

Merchant Account Updated

The response is of type object.