Packet APIs
This section details about the service APIs in the Packet modules
Packet Rejection Reasons Master API
POST /packetrejectionreasons/reasoncategory
This service will create the list of Packet Rejection Reasons which are used in the MOSIP platform.
Resource URL
POST /packetrejectionreasons/reasoncategory
POST /packetrejectionreasons/reasoncategory
Resource details
Response format
JSON
Requires Authentication
Yes
Parameters
code
Yes
Code of the reason category
name
Yes
Name of the reason category
description
Yes
description for the reason category
isActive
Yes
whether the reason category is in use
langCode
Yes
language code of the reason category
Example Request
Example Response
Response codes
201
Description : Created
400
Description: Bad request
401
Description: Unauthorized
403
Description: Forbidden
POST /packetrejectionreasons/reasonlist
This service will create the list of Packet Rejection Reasons which are used in the MOSIP platform.
Resource URL
POST /packetrejectionreasons/reasonlist
POST /packetrejectionreasons/reasonlist
Resource details
Response format
JSON
Requires Authentication
Yes
Parameters
code
Yes
Code of the reason category
name
Yes
Name of the reason category
description
Yes
description for the reason category
rsnCatCode
Yes
foreign key reference from reason category code
isActive
Yes
whether the reason category is in use
langCode
Yes
language code of the reason category
Example Request
Example Response
Response codes
201
Description : Created
400
Description: Bad request
401
Description: Unauthorized
403
Description: Forbidden
GET /packetrejectionreasons
Master data is required across the platform.
This service will provides the service for the List of Packet Rejection Reasons.
Resource URL
GET /packetrejectionreasons
GET /packetrejectionreasons
Resource details
Response format
JSON
Requires Authentication
Yes
Parameters
NA
Example Response
200
Description: Success
400
Description: Bad request
401
Description: Unauthorized
404
Description: Not Found
GET /packetrejectionreasons/{reasoncategorycode}/{languagecode}
This service will provides the service for the List of Packet Rejection Reasons.
Resource URL
GET /packetrejectionreasons/{reasoncategorycode}/{languagecode}
GET /packetrejectionreasons/{reasoncategorycode}/{languagecode}
Resource details
Response format
JSON
Requires Authentication
Yes
Parameters
NA
Example Response
200
Description: Success
400
Description: Bad request
401
Description: Unauthorized
404
Description: Not Found
GET /packetrejectionreasons/{id}/{languagecode}/{locationcode}
This service will provides the service for the List of Packet Rejection Reasons based on id, language and location code.
Resource URL
GET /packetrejectionreasons/{id}/{languagecode}/{locationcode}
GET /packetrejectionreasons/{id}/{languagecode}/{locationcode}
Resource details
Response format
JSON
Requires Authentication
Yes
Parameters
packetrejectionreasonid
Yes
Code of the language
packetrejectionreasondesc
Yes
Name of the language
Example Response
200
Description: Success
400
Description: Bad request
401
Description: Unauthorized
404
Description: Not Found
Failure Response
Failure details
KER-MSD-035
Error occurred while fetching Reasons
Fetch Issue
KER-MSD-057
Error occurred while inserting reason details
Insertion Issue
KER-MSD-036
Reason not found
Data Not Found
KER-MSD-058
Error occurred while inserting reason details
List Insertion Issue
Packet On-hold Reasons Master API
POST /packetonholdreasons
This service will create the list of Packet On-hold Reasons which are used in the MOSIP platform.
Resource URL
POST /packetonholdreasons
POST /packetonholdreasons
Resource details
Response format
JSON
Requires Authentication
Yes
Parameters
packetonholdreasondesc
Yes
Name of the packet rejection reason
Example Request
Example Response
Response codes
202
Description: Accepted
400
Description: Bad request
401
Description: Unauthorized
403
Description: Forbidden
GET /packetonholdreasons
Master data is required across the platform.
This service will provides the service for the List of Packet On-hold Reasons.
Resource URL
GET /packetonholdreasons
GET /packetonholdreasons
Resource details
Response format
JSON
Requires Authentication
Yes
Parameters
packetonholdreasonid
Yes
Code of the language
packetonholdreasondesc
Yes
Name of the language
Example Response
200
Description: Success
400
Description: Bad request
401
Description: Unauthorized
404
Description: Not Found
GET /packetonholdreasons/{id}/{languagecode}
This service will provides the service for the List of Packet On-hold Reasons.
Resource URL
GET /packetonholdreasons/{id}/{languagecode}
GET /packetonholdreasons/{id}/{languagecode}
Resource details
Response format
JSON
Requires Authentication
Yes
Parameters
packetonholdreasonid
Yes
Code of the language
packetonholdreasondesc
Yes
Name of the language
Example Response
200
Description: Success
400
Description: Bad request
401
Description: Unauthorized
404
Description: Not Found
Failure Response
Last updated