Query Division
POST/dana/merchant/division/queryDivision.htm
This API is used to obtain information of division
API Type
DANA Open API
Expected Timeout
3 second
SNAP Service Code
-
Accept
application/json
Content Type
application/json
This API is used for the following solution:
A sub merchant, also referred to as a division, represents a categorization of a merchant’s structure based on their business needs. Each division can encapsulate multiple shops, facilitating aggregated management, configuration, or operations across those shops.
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.queryDivisionclientId
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 charactersConditionalMerchant identifier
Conditional Info
Y:= divisionIdType is
EXTERNAL_IDdivisionId
string
1 - 64 charactersRequiredDivision identifier or external identifier. The length is depend on divisionIdType:
INNER_ID: 21 maxEXTERNAL_ID: 64 max
divisionIdType
string
1 - 11 charactersRequiredDivision identifier type, refer to divisionIdType
REGION
string
Division type is region
SUBMERCHANT
string
Division type is sub merchant
{
"request": {
"head": {
"version": "2.0",
"function": "dana.merchant.division.queryDivision",
"clientId": "2014000014442",
"clientSecret": "2014000014442",
"reqTime": "2001-07-04T12:08:56+05:30",
"reqMsgId": "1234567asdfasdf1123fda",
"reserve": "{}"
},
"body": {
"merchantId": "211xxxxxxxxxxxxxxx044",
"divisionId": "211xxxxxxxxxxxxxxx044",
"divisionIdType": "EXTERNAL_ID"
}
},
"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.queryDivisionclientId
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
divisionResourceInfo
json object
ConditionalDefine the detail of division resource information, refer to divisionResourceInfo
Conditional Info
Y:= Successfully processed
merchantId
string
21 charactersRequiredMerchant identifier
parentRoleType
string
1 - 17 charactersRequiredType of parent role, refer to parentRoleType
MERCHANT
string
Parent role type is merchant
DIVISION
string
Parent role type is division
EXTERNAL_DIVISION
string
Parent role type is external division
divisionName
string
1 - 256 charactersRequiredDivision name
contactAddress
json object
RequiredContact 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
divisionType
string
1 - 11 charactersRequiredDivision type, refer to divisionType
REGION
string
Division type is region
SUBMERCHANT
string
Division type is sub merchant
externalDivisionId
string
1 - 64 charactersRequiredExternal division identifier
logoUrlMap
array of string
ConditionalLogo URL, the map keys are:
LOGOPC_LOGOMOBILE_LOGO
Conditional Info
Y:= Data is exists
Note
The logo's value is the string which is the image's data encoded with base64 and image type must PNG format.
extInfo
array of string
ConditionalExtend info, the map keys are:
LOGOPC_LOGOMOBILE_LOGO
Conditional Info
Y:= Data is exists
mccCodes
array of string
1 - 64 charactersConditionalMerchant category code, used to identify the type of business in which a merchant is engaged, refer to Merchant Category Code
Conditional Info
Y:= Data is exists
divisionId
string
21 charactersRequiredDivision identifier
parentDivisionId
string
1 - 64 charactersParent division identifier. The length depend on parentRoleType:
MERCHANT: 21 maxDIVISION: 21 maxEXTERNAL_DIVISION: 64 max
pgDivisionFlag
string
1 - 5 charactersFlag if division is type PG. The possible values are
true or false{
"response": {
"head": {
"version":"2.0",
"function":"dana.merchant.division.queryDivision",
"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"
},
"divisionResourceInfo": {
"divisionId": "211xxxxxxxxxxxxxxx044",
"merchantId": "211xxxxxxxxxxxxxxx044",
"parentRoleType": "MERCHANT",
"contactAddress": {
"country": "indonesia",
"province": "province",
"city": "city",
"area": "area",
"address1": "address1",
"address2": "address2",
"postcode": "zipcode"
},
"divisionDescription": "description",
"divisionType": "REGION",
"divisionName": "Division-21",
"externalDivisionId": "35205452Division",
"pgDivisionFlag": "true"
}
}
},
"signature": "signature string"
}
| ResultStatus | ResultCodeId | ResultCode | ResultMessage | Solution |
|---|---|---|---|---|
| S | 00000000 | SUCCESS | success | Mark Query Division process as Success |
| F | 00000004 | PARAM_ILLEGAL | parameter illegal | Mark Query Division process as Failed. Retry request with proper parameter |
| F | 00000900 | SYSTEM_ERROR | system error | Mark Query Division process as Failed. Retry request periodically |