Update a Sub-account

Update a sub-account Information

Method and URL

PUT [BASE_URL]/v1/sub-merchants/{uuid}

uuid from the response body whenever you create a Sub-account

Request

Request Body

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

Detail Parameter Request

Parameter
Data Type
Character limit
Requirement
Description

name

String

1-255

O

Name of the Sub-account

description

String

1-255

O

Description of the Sub-account

logo

String

1-255

O

cloud storage URL of the Sub-account logo

merchantEmail

String

0-255

O

Email Address of the Sub-account

merchantPhone

String

1-255

O

Phone Number of the Sub-account

address

String

1-254

O

Full Address of Sub-account's Company

postCode

String

1-20

O

Postal code of the Sub-account company address

Response

Response Body

{
  "code": "00",
  "message": "Success",
  "data": {
    "uuid": "d8361719-290b-4b80-8e75-8329321a4000",
    "name": "Reforza Corporation LTD",
    "shortName": "RCI5",
    "description": "Technologia Company",
    "address": "Menteng, Jakarta Pusat",
    "postCode": "60271",
    "logo": "some-url/company-logo.png",
    "merchantEmail": "reforza@corp.id",
    "merchantPhone": "081299996666",
    "picEmail": "admin@corp.inc",
    "picPhone": "081299996666",
    "picName": "Reforza",
    "picJobTitle": "owner",
    "businessType": "COMPANY",
    "businessStructure": "PERSEROAN TERBATAS",
    "businessCountry": "ID",
    "parentIndustry": "Airlines",
    "childIndustry": "Airlines, Air Carriers",
    "mcc": "4511",
    "countryOfEntity": "ID",
    "digitalStatus": "Digital",
    "parentId": "e485e01b-ff59-4a47-bb7d-9b39064f3388",
    "subAccountStatus": "CREATED"
  }
}

Detail Parameter Response

Parameter
Data Type
Requirement
Description

code

String

M

Response Code from Pivot

message

String

M

Human readable message that represent response from Pivot

data

Object

M

Response Data from Pivot contains Sub-accounts Object

Last updated