Update Shop
POST/dana/merchant/shop/updateShop.htm
This API is used to update the shop 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.shop.updateShop
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)
shopId
string
RequiredShop identifier. The length depend on shopIdType:
-
INNER_ID
: 21 max -
EXTERNAL_ID
: 64 max
merchantId
string
21 charactersRequiredMerchant identifier
shopIdType
string
1 - 11 charactersRequiredShop identifier type, refer to shopIdType
INNER_ID
string
Shop identifier is generated by DANA
EXTERNAL_ID
string
Shop identifier is provided by merchant
mainName
string
1 - 256 charactersShop name
shopAddress
json object
RequiredShop 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
subDistrict
string
1 - 64 charactersSub district
shopDesc
string
1 - 1024 charactersShop description
newExternalShopId
string
1 - 64 charactersNew external shop identifier
mccCodes
array of string
1 - 64 charactersMerchant category code, used to identify the type of business in which a merchant is engaged, refer to [MCC]
logoUrlMap
array of string
Logo URL, the map keys are:
-
LOGO
-
PC_LOGO
-
MOBILE_LOGO
extInfo
string
1 - 64 charactersExtend information
sizeType
string
1 - 4 charactersSize type, refer to sizeType
UMI
string
Usaha Mikro
UKE
string
Usaha Kecil
UME
string
Usaha Menengah
UBE
string
Usaha Besar
URE
string
Usaha Reguler
ln
string
1 - 10 charactersLongitude of shop's location
lat
string
1 - 10 charactersLatitude of shop's location
loyalty
string
1 - 5 charactersFlag for loyalty category. The possible value are
true
or false
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
subDistrict
string
1 - 64 charactersSub district
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
ConditionalOwner identifier number. The length depend on ownerIdType:
KTP
: 16SIM
: 12-14Passport
: 8NIB
: >= 13SIUP
: Free text
Conditional Info
Y:= apiVersion > 2
deviceNumber
string
ConditionalDevice number
Conditional Info
Y:= apiVersion > 2
posNumber
string
ConditionalPos number
Conditional Info
Y:= apiVersion > 2
apiVersion
string
1 - 8 charactersConditionalAPI version. As per the respective API reference
Conditional Info
Y:= Need to add new attributes
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
shopOwning
string
1 - 12 charactersConditionalShop owning information, refer to shopOwning
DIRECT OWNED
string
Shop is owned by direct owner
FRANCHISED
string
Shop is owned by franchise
Conditional Info
Y:= apiVersion > 2
shopBizType
string
1 - 6 charactersShop business type, refer to shopBizType
OFFLINE
string
Shop location is offline
ONLINE
string
Shop location is online
businessDocs
array of json object
ConditionalBusiness document, refer to businessDoc.
Notes:
Notes:
- BusinessEntity
individu
can only use businessDoc.docTypeKTP
andSIM
- Other BusinessEntity can only use
SIUP
and 'NIB'
Conditional Info
Y:= apiVersion > 2
docType
string
1 - 8 charactersRequiredBusiness document type, refer to
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
RequiredBusiness document identifier number. The length depend on docType:
KTP
: 16SIM
:12-14-
Passport
:8 NIB
: >= 13SIUP
: Free text
docFile
string (base64)
RequiredBusiness document file in base64 String, accepted file extensions: PDF, GIF, PNG
businessEndDate
string
1 - 10 charactersConditionalBusiness end date, in format YYYY-MM-dd
Conditional Info
Y:= apiVersion > 2
taxNo
string
15 charactersTax number (NPWP)
taxAddress
json object
1 - 256 charactersTax 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
subDistrict
string
1 - 64 charactersSub district
brandName
string
1 - 256 charactersBrand name on legal name or tax name
directorPics
array of json object
ConditionalDirector as a PIC of shop, 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 shop, refer to businessPic
Conditional Info
Y:= apiVersion > 2
picName
string
1 - 64 charactersRequiredBusiness PIC name
picPosition
string
1 - 64 charactersRequiredBusiness PIC position
{
"request":{
"head":{
"version":"2.0",
"function":"dana.merchant.shop.updateShop",
"clientId":"2014000014442",
"clientSecret":"2014000014442",
"reqTime":"2001-07-04T12:08:56+05:30",
"reqMsgId":"1234567asdfasdf1123fda",
"reserve":"{}"
},
"body":{
"shopId":"216662222444445555123",
"merchantId":"216622222444445555555",
"shopIdType":"INNER_ID",
"mainName":"divisionName1",
"shopAddress":{
"country":"country",
"province":"province",
"city":"city",
"area":"area",
"address1":"address1",
"address2":"address2",
"postcode":"postcode",
"subDistrict":"subDistrict"
},
"shopDesc":"description",
"newExternalShopId":"shop1",
"mccCodes":[
"0783"
],
"logoUrlMap":{
"PC_LOGO":"base64ImageCodexxxxxxxxxxx"
},
"extInfo":{
},
"sizeType":"UMI",
"ln":"106.84513",
"lat":"-6.21462",
"loyalty":"true",
"ownerAddress":{
"country":"country",
"province":"province",
"city":"city",
"area":"area",
"address1":"address1",
"address2":"address2",
"postcode":"postcode",
"subDistrict":"subDistrict"
},
"ownerName":{
"firstName":"Jane",
"lastName":"Doe"
},
"ownerPhoneNumber":{
"mobileNo":"62800000000",
"mobileId":"mobileId",
"verified":"true"
},
"ownerIdType":"KTP",
"ownerIdNo":"3172010000000000",
"deviceNumber":"0",
"posNumber":"0",
"apiVersion":"3",
"businessEntity":"individu",
"shopOwning":"DIRECT_OWNED",
"shopBizType":"ONLINE",
"businessDocs":[
{
"docType":"KTP",
"docId":"3172010000000000",
"docFile":"stringbase64value"
}
],
"businessEndDate":"2021-05-26",
"taxNo":"123456789012345",
"taxAddress":{
"country":"Indonesia",
"province":"DKI Jakarta",
"city":"Jakarta",
"area":"area",
"address1":"address1",
"address2":"address2",
"postcode":"14123"
},
"brandName":"XXX",
"directorPics":[
{
"picName":"Agus",
"picPosition":"DIRECTOR_FINANCE"
}
],
"nonDirectorPics":[
{
"picName":"Budi",
"picPosition":"OPERATION"
}
]
}
},
"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.shop.updateShop
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.shop.updateShop",
"clientId":"211020000000000000044",
"clientSecret": "2014000014442",
"respTime":"2022-03-22T14:45:43+07:00",
"reqMsgId":"1234567asdfasdf1123fda",
"reserve":"{}"
},
"body":{
"resultInfo":{
"resultStatus":"S",
"resultCodeId":"00000000",
"resultCode":"SUCCESS",
"resultMsg":"success"
}
}
},
"signature":"signature string"
}
ResultStatus | ResultCodeId | ResultCode | ResultMessage | Partner Action |
---|---|---|---|---|
S | 00000000 | SUCCESS | success | Mark Update Shop process as Success |
F | 00000004 | PARAM_ILLEGAL | parameter illegal | Mark Update Shop process as Failed. Retry request with proper parameter |
F | 00000900 | SYSTEM_ERROR | system error | Mark Update Shop process as Failed. Retry request periodically |
F | 00000004 | SHOP_NOT_EXIST | shop not exist | Mark Update Shop process as Failed. Retry request with proper parameter |
F | 00000900 | PARENT_ID_NOT_EXIST | parent id not exist | Mark Update Shop process as Failed. Retry request with proper parameter or can contact to DANA to check parent division configuration |