- Previous: Insurance Services
- Up: Insurance Services
- Next: List of Insurance Program
Insurance Management
This service is used for enabling or disabling an insurance program.
Code example
Click on the buttons to view code snippet:
curl -X PATCH \
https://apitest.network.ae/cards/:card_identifier_id/insurances/:code?card_identifier_type=EXID \
-H 'authorization: Bearer tzhhqun37x69bspsbfbz9ek9' \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \
-H 'Unique-Reference-Code: EXID' \
-H 'Financial-Id: EXID' \
-H 'Channel-Id: EXID' \
-d '{
"is_active": "CANCELLED",
"requested_by": "CARDHOLDER"
}'
import requests
url = "https://apitest.network.ae/cards/:card_identifier_id/insurances/:code?card_identifier_type=EXID"
payload = "{\n \"is_active\": \"CANCELLED\",\n \"requested_by\": \"CARDHOLDER\"\n}"
headers = {
'Unique-Reference-Code': 'EXID',
'Financial-Id': 'EXID',
'Channel-Id': 'EXID'
}
response = requests.request("PATCH", url, headers=headers, data=payload)
print(response.text)
setUrl('https://apitest.network.ae/cards/:card_identifier_id/insurances/:code?card_identifier_type=EXID');
$request->setMethod('PATCH');
$request->setConfig(array(
'follow_redirects' => TRUE
));
$request->setHeader(array(
'Unique-Reference-Code' => 'EXID',
'Financial-Id' => 'EXID',
'Channel-Id' => 'EXID',
'Content-Type' => 'application/json',
'Accept' => 'application/json'
));
$request->setBody('{\n "is_active": "CANCELLED",\n "requested_by": "CARDHOLDER"\n}');
try {
$response = $request->send();
if ($response->getStatus() == 200) {
echo $response->getBody();
}
else {
echo 'Unexpected HTTP status: ' . $response->getStatus() . ' ' .
$response->getReasonPhrase();
}
}
catch(HTTP_Request2_Exception $e) {
echo 'Error: ' . $e->getMessage();
}
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n \"is_active\": \"CANCELLED\",\n \"requested_by\": \"CARDHOLDER\"\n}");
Request request = new Request.Builder()
.url("https://apitest.network.ae/cards/:card_identifier_id/insurances/:code?card_identifier_type=EXID")
.method("PATCH", body)
.addHeader("Unique-Reference-Code", "EXID")
.addHeader("Financial-Id", "EXID")
.addHeader("Channel-Id", "EXID")
.addHeader("Content-Type", "application/json")
.addHeader("Accept", "application/json")
.build();
Response response = client.newCall(request).execute();
Request Parameters:
HTTP | Key | Type | Max | Description | Remarks |
header | Unique-Reference-Code | A/N | 12 |
Unique Reference Code for identification of each request sent to API |
Mandatory |
Channel-Id | String | 10 | Requesting channel e.g. “IB” or "IVR" etc. Might change. | Mandatory | |
Financial-Id | String | 4 | Source Bank Id e.g. “NIC” | Mandatory | |
path | card_identifier_id | String | Min – 16 Max - 19 | Unique Identifier for Card | Mandatory |
query | card_identify_type | String | 15 | Identifier Type for Card (default EXID) | Optional |
body | is_active | String | 32 | CANCELLED/ACTIVE | Mandatory |
requested_by | String | 32 | null/CARDHOLDER/UNDERWRITER | Mandatory |
Request Json
{
"is_active": "CANCELLED",
"requested_by": "CARDHOLDER"
}
Response Parameters:
Response Code | Description |
200 | Ok |
403 | Insurance Program Not Allowed |
404 | Insurance Program Not Found. |
- Previous: Insurance Services
- Up: Insurance Services
- Next: List of Insurance Program
Docs Navigation
- API Security
- Falcon Services
- Card Services
- BETA
- Version 1.0
- Card Balance Enquiry
- Card Activation
- Card Set Pin
- Card Change PIN
- Card PIN Verification
- Card Status Update
- Card Limit Update
- Card Details
- Customer Details
- List Of Cards
- Customer Demographic Update
- Card Used Limits
- Card Statement Summary
- Card Transaction
- Utility Payments
- Account Create
- Account Update
- Account Closure
- Card Create
- Card Update
- Card Replacement
- Client Create
- Client Update
- Transaction Details
- PIN Retries Counter Reset
- Digital Status Chnage
- Get CVV2 Service
- Card Link Delink
- Card Insurance Products
- Card Change Insurance Product Status
- Card Direct Debit
- Update Card Direct Debit
- Card Balance Conversion Enquiry
- Card Balance Conversion
- Card Transaction Eligibility
- Card Transaction EPP Conversion
- Card Replacement Embossing
- Card NMON Transactions
- Retail Banking Transactions
- Appendix 1
- Appendix 2
- Appendix 3
- Appendix 4
- HTTP Codes
- Error Codes
- Version 2.0
- Lookup Card Identifier
- List Of Cards
- Card Activation
- Card Set PIN
- Card Change PIN
- Card Status Update
- Client Create
- Account Create
- Card Create
- Customer Demographic Update
- Account Update
- Card Update
- Card Replacement
- Customer Details
- Card Details
- Client Update
- Card Balance Enquiry
- Card Transaction
- Card Limit Update
- Card PIN Verification
- PIN Retried Counter Reset
- Get CVV2 Service
- Card Verification
- Card Transaction Details
- Get Encryption Certificate
- Get Dictionaries MCC
- Get Account Balance
- Card Insurance Product
- Card Insurance Product Update
- Card Direct Debit Update
- Card Direct Debit
- P2P Transfer
- Account Transaction
- Account Status Change
- Card Statement Summary
- Account Transaction Details
- Card Contact Details
- List of Accounts
- Account Hierarchy
- Notification Service
- Appendix 1
- Appendix 2
- Appendix 3
- Appendix 4
- HTTP Codes
- Error Codes
- Buy Now Pay Later
- Card Limits
- Insurance Services
- Webhook Services
- Switch Services
- Card Control Services
- Merchant Digital Onboarding
- Notification Service
- SMS Security Services
- Terms and Condition
0 Comments
Please sign in to post a comment.