Retrieve List of Segments Associated with List of Account IDs
post
/api/1.0/segmentBatch/getSegmentCdAndAcctIdMapping
This endpoint is used to retrieve list of Segments associated with an list of Account IDs.
Request
Supported Media Types
- application/json
- application/xml
Query Parameters
-
limit(optional): integer
Limit is maximum number of records to be fetched.
-
offset(optional): integer
Offset is starting number of records to be fetched.
Header Parameters
-
appId: string
The application ID of host service.
-
branchCode: string
The branch code of requesting branch.
-
contentType(optional): string
The content type of request or response body.
-
userId: string
The user ID of requesting user.
Request Body that contains AccountIds List.
Root Schema : DmAccountIdsAndSegmentCodesCollection
Type:
object
Collection of list of Account IDs and List of Segment Codes.
Show Source
-
accountId(optional):
array accountId
List of Account IDs
-
segmentCode(optional):
array segmentCode
List of Segment Codes
Response
Supported Media Types
- application/json
- application/xml
200 Response
Returns map of accounts and Segment Code
Root Schema : DmAccountSegmentCodeMap
Type:
object
Collection of Map of Segment Code and Account.
Show Source
-
segmentCdAccountMap(optional):
array segmentCdAccountMap
List of Map of Segment Code and Account.
Nested Schema : segmentCdAccountMap
Type:
array
List of Map of Segment Code and Account.
Show Source
-
Array of:
object DmAccountSegmentCodePair
Map of Segment Code and Account ID.
Nested Schema : DmAccountSegmentCodePair
Type:
object
Map of Segment Code and Account ID.
Show Source
-
accountId(optional):
string
Account ID
-
segmentCode(optional):
array segmentCode
Segment Code
400 Response
Malformed syntax.
401 Response
Request does not have sufficient credentials.
403 Response
Request is not authorized.
405 Response
Invalid input
500 Response
Internal error