Update Division
POST/dana/merchant/division/updateDivision.htm
This API is used to update the division information
API Type
DANA Open API
Expected Timeout
3 second
SNAP Service Code
-
Accept
application/json
Content Type
application/json
version
string
1 - 8 charactersRequiredAPI version. As per the respective API reference
function
string
1 - 128 charactersRequiredAccording to specifications defined by each business domain.
Value:
Value:
dana.merchant. division.updateDivision
clientId
string
1 - 36 charactersRequiredClient identifier which provided by DANA and used to identify partner and application system
clientSecret
string
1 - 64 charactersRequiredAs a secret key of client. Assigned client secret during registration
reqTime
string
25 charactersRequiredRequest time, in format YYYY-MM-DDTHH:mm:ss+07:00.
Time must be in GMT+7 (Jakarta time)
Time must be in GMT+7 (Jakarta time)
reqMsgId
string
1 - 64 charactersRequiredIdentify an unique system request. Each request will be assigned with a unique identifier (UUID)
reserve
string
1 - 256 charactersReserved for future implementation (Key/Value)
merchantId
string
21 charactersRequiredMerchant identifier
divisionId
string
21 charactersConditionalDivision identifier
Conditional Info
Y:= divisionIdType is
INNER_ID
divisionName
string
1 - 256 charactersRequiredDivision name
divisionAddress
json object
RequiredDivision address, refer to addressInfo
country
string
1 - 64 charactersRequiredCountry name
province
string
1 - 64 charactersRequiredProvince name
city
string
1 - 64 charactersRequiredCity name
area
string
1 - 64 charactersRequiredArea name
address1
string
1 - 256 charactersRequiredInformation of address 1
address2
string
1 - 256 charactersRequiredInformation of address 2
postcode
string
5 charactersRequiredPostcode
divisionDescription
string
1 - 1024 charactersDivision description
divisionType
string
1 - 11 charactersRequiredDivision type, refer to divisionType
REGION
string
Division type is region
SUBMERCHANT
string
Division type is sub merchant
divisionIdType
string
1 - 11 charactersRequiredDivision identifier type, refer to divisionIdType
INNER_ID
string
Division identifier is generated by DANA
EXTERNAL_ID
string
Division identifier is provided by merchant
externalDivisionId
string
1 - 64 charactersConditionalExternal division identifier
Conditional Info
Y:= divisionIdType is
EXTERNAL_ID
newExternalDivisionId
string
1 - 64 charactersRequiredNew external division identifier
logoUrlMap
array of string
Logo URL, the map keys are:
LOGO
PC_LOGO
MOBILE_LOGO
mccCodes
array of string
1 - 64 charactersRequiredMerchant category code, used to identify the type of business in which a merchant is engaged, refer to Merchant Category Code
extInfo
string
1 - 64 charactersRequiredExtend information
apiVersion
string
1 - 8 charactersConditionalAPI version. As per the respective API reference
Conditional Info
Y:= Need to add new attributes
businessDocs
array of json object
ConditionalBusiness document, refer to businessDoc
Notes:
Notes:
- BusinessEntity individu can only use businessDoc.docType
KTP
andSIM
- Other BusinessEntity can only use
SIUP
andNIB
Conditional Info
Y:= apiVersion > 2
docType
string
1 - 8 charactersRequiredBusiness document type, refer to ownerIdType
KTP
string
Use KTP as an owner identifier
SIM
string
Use SIM as an owner identifier
PASSPORT
string
Use passport as an owner identifier
NIB
string
Use Nomor Induk Berusaha (NIB) as an owner identifier
SIUP
string
Use Surat Izin Usaha Perdagangan (SIUP) as an owner identifier
docId
string
1 - 16 charactersRequiredBusiness document identifier number. The length depend on docType:
KTP
: 16SIM
: 12-14Passport
: 8NIB
: >= 13SIUP
: Free text
docFile
string (base64)
RequiredBusiness document file in base64 String, accepted file extensions: PDF, GIF, PNG
businessEntity
string
1 - 12 charactersConditionalBusiness entity, refer to businessEntity
individu
string
Business is individual
pt
string
Business entity is Perseroan Terbatas (PT)
cv
string
Business entity is Commanditaire Vennootschap/Persekutuan Komanditer (CV)
yayasan
string
Business entity is foundation
usaha_dagang
string
Business entity is market
koperasi
string
Business entity is Koperasi
Conditional Info
Y:= apiVersion > 2
businessEndDate
string
1 - 10 charactersConditionalBusiness end date, in format YYYY-MM-DD
Conditional Info
Y:= apiVersion > 2
ownerName
json object
ConditionalOwner name, refer to userName
Conditional Info
Y:= apiVersion > 2
firstName
string
1 - 64 charactersRequiredFirst name
lastName
string
1 - 64 charactersRequiredLast name
ownerPhoneNumber
json object
ConditionalOwner phone number, refer to mobileNoInfo
Conditional Info
Y:= apiVersion > 2
mobileId
string
1 - 32 charactersRequiredMobile identifier
mobileNo
string
1 - 32 charactersRequiredMobile phone number
verified
string
1 - 5 charactersRequiredFlag for verified mobile, the possible values are true or false
ownerIdType
string
1 - 8 charactersConditionalOwner identifier type, refer to ownerIdType
KTP
string
Use KTP as an owner identifier
SIM
string
Use SIM as an owner identifier
PASSPORT
string
Use passport as an owner identifier
NIB
string
Use Nomor Induk Berusaha (NIB) as an owner identifier
SIUP
string
Use Surat Izin Usaha Perdagangan (SIUP) as an owner identifier
Conditional Info
Y:= apiVersion > 2
ownerIdNo
string
1 - 16 charactersConditionalOwner identifier number. The length depend on ownerIdType:
KTP
: 16SIM
: 12-14Passport
: 8NIB
: >= 13SIUP
: Free text
Conditional Info
Y:= apiVersion > 2
ownerAddress
json object
ConditionalOwner address, refer to addressInfo
Conditional Info
Y:= apiVersion > 2
country
string
1 - 64 charactersRequiredCountry name
province
string
1 - 64 charactersRequiredProvince name
city
string
1 - 64 charactersRequiredCity name
area
string
1 - 64 charactersRequiredArea name
address1
string
1 - 256 charactersRequiredInformation of address 1
address2
string
1 - 256 charactersRequiredInformation of address 2
postcode
string
5 charactersRequiredPostcode
directorPics
array of json object
ConditionalDirector as a PIC of sub merchant, refer to businessPic
Conditional Info
Y:= apiVersion > 2
picName
string
1 - 64 charactersRequiredBusiness PIC name
picPosition
string
1 - 64 charactersRequiredBusiness PIC position
nonDirectorPics
array of json object
ConditionalNon director which become an PIC of sub merchant, refer to businessPic
Conditional Info
Y:= apiVersion > 2
picName
string
1 - 64 charactersRequiredBusiness PIC name
picPosition
string
1 - 64 charactersRequiredBusiness PIC position
sizeType
string
1 - 4 charactersConditionalSize type, refer to sizeType
UMI
string
Usaha Mikro
UKE
string
Usaha Kecil
UME
string
Usaha Menengah
UBE
string
Usaha Besar
URE
string
Usaha Reguler
Conditional Info
Y:= apiVersion > 2
pgDivisionFlag
string
1 - 5 charactersFlag if division is type PG. The possible values are
true
or false
{
"request": {
"head": {
"version": "2.0",
"function": "dana.merchant.division.updateDivision",
"clientId": "2014000014442",
"clientSecret": "2014000014442",
"reqTime": "2001-07-04T12:08:56+05:30",
"reqMsgId": "1234567asdfasdf1123fda",
"reserve": "{}"
},
"body": {
"merchantId": "21662xxx383",
"divisionId": "21665xxx385",
"divisionName": "divisionName",
"divisionAddress": {
"country": "country",
"province": "province",
"city": "city",
"area": "area",
"address1": "address1",
"address2": "address2",
"postcode": "zipcode"
},
"divisionDescription": "description",
"divisionType": "REGION",
"divisionIdType": "INNER_ID",
"externalDivisionId": "35205452Division",
"newExternalDivisionId": "35205452Division",
"logoUrlMap": {
"PC_LOGO": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg=="
},
"mccCodes": [
"90075",
"90040"
],
"extInfo": {
"key": "value"
},
"apiVersion": "3",
"businessDocs": {
"docId": "777xxxxxxxxxx111",
"docType": "KTP",
"docUrl": "https://www.test.com"
},
"businessEntity": "individu",
"businessEndDate": "2021-05-26",
"ownerName": {
"firstName": "Udin",
"lastName": "Sukiman"
},
"ownerPhoneNumber": {
"mobileId": "12xxxxx23",
"mobileNo": "62-xxxxxxxxx12",
"verified": "true"
},
"ownerIdType": "KTP",
"ownerIdNo": "31xxxxxxxxxxxx00",
"ownerAddress": {
"country": "Indonesia",
"province": "DKI Jakarta",
"city": "Kota Jakarta Selatan",
"area": "Kebayoran Lama",
"address1": "Jl. Kebayoran Lama 1 No. 2",
"address2": "Jl. Kebayoran Lama 1 No. 3",
"postcode": "14045",
"subDistrict": "test"
},
"directorPics": [{
"picName": "John",
"picPosition": "CTO"
}],
"nonDirectorPics": [{
"picName": "Ethan",
"picPosition": "CEO"
}],
"sizeType": "URE",
"pgDivisionFlag": "true"
}
},
"signature": "signature string"
}
version
string
1 - 8 charactersRequiredAPI version. As per the respective API reference
function
string
1 - 128 charactersRequiredAccording to specifications defined by each business domain.
Value:
Value:
dana.merchant.division.updateDivision
clientId
string
1 - 36 charactersRequiredClient identifier which provided by DANA and used to identify partner and application system
clientSecret
string
1 - 64 charactersRequiredAs a secret key of client. Assigned client secret during registration
respTime
string
25 charactersRequiredRequest time, in format YYYY-MM-DDTHH:mm:ss+07:00.
Time must be in GMT+7 (Jakarta time)
Time must be in GMT+7 (Jakarta time)
reqMsgId
string
1 - 64 charactersRequiredIdentify an unique system request. Each request will be assigned with a unique identifier (UUID)
reserve
string
1 - 256 charactersReserved for future implementation (Key/Value)
resultInfo
json object
RequiredDefine the detail of result information
resultStatus
string
1 charactersRequiredResult status, refer to result code list ResultStatus
The status of the request can be:
The status of the request can be:
S
: SuccessF
: FailureU
: Unknown
resultCodeId
string
1 - 16 charactersRequiredResult code identifier, refer to result code list ResultCodeId
resultCode
string
1 - 64 charactersRequiredResult code string, refer to ResultCode
resultMsg
string
1 - 256 charactersResult message, refer to result code list ResultMsg
{
"response": {
"head": {
"version":"2.0",
"function":"dana.merchant.division.updateDivision",
"clientId":"211020000000000000044",
"clientSecret": "2014000014442",
"respTime":"2001-07-04T12:08:56+05:30",
"reqMsgId":"1234567asdfasdf1123fda",
"reserve":"{}"
},
"body": {
"resultInfo": {
"resultCodeId": "00000000",
"resultCode": "SUCCESS",
"resultMsg": "SUCCESS",
"resultStatus": "S"
}
}
},
"signature": "string"
}
ResultStatus | ResultCodeId | ResultCode | ResultMessage | Partner Action |
---|---|---|---|---|
S | 00000000 | SUCCESS | success | Mark Update Division process as Success |
F | 00000004 | PARAM_ILLEGAL | parameter illegal | Mark Update Division process as Failed. Retry request with proper parameter |
F | 00000900 | SYSTEM_ERROR | system error | Mark Update Division process as Failed. Retry request periodically |
F | 12015980 | DIVISION_NOT_EXIST | division not exist | Mark Update Division process as Failed. Retry request with proper parameter |
F | 12015984 | DIVISION_NOT_AVAILABLE | division not available for update | Mark Update Division process as Failed. Retry request with proper parameter or can contact to DANA to check division configuration |