Update a Sub-account

Update a sub-account Information

Method and URL

PUT | [BASE_URL]/v1/sub-merchants/:id

Request

Example Body Request Payload

{
    "name": "Acme.inc",
    "description": "Updated Description",
    "logo": "some-url/company-logo.png",
    "merchantEmail": "admin@acme.inc",
    "merchantPhone": "08123456789",
    "address": "company address",
    "postCode": "123456"
}

Request Body Schema

Schema Path
Description
Specifications

name

Name of the sub-merchant

  • Optional

description

Description of the sub-merchant

  • Optional

logo

cloud storage URL of the sub-merchant logo

  • Optional

merchantEmail

Email Address of the sub-merchant

  • Optional

  • Unique

merchantPhone

Phone Number of the sub-merchant

  • Optional

address

Full Address of Sub-merchant's Company

  • Optional

postCode

Postal code of the sub-merchant company address

  • Optional

Response

Example Response Body

Response Data Schema

Schema Path
Description
Data Type Validation

code

Response Code from Harsya

String

message

Human readable message that represent response from Harsya

String

data

Response Data from Harsya contains sub-accounts Object

Object

Last updated