Creates a new Policy record.
curl --request POST \
--url http://claimsdesk.runasp.net/api/v1/Policies \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--header 'X-App-Id: <api-key>' \
--data '
{
"organizationId": 123,
"memberId": 123,
"policyNumber": "<string>",
"coverageType": "<string>",
"sumInsured": 500000000,
"deductibleAmount": 500000000,
"premiumAmount": 500000000,
"startDate": "2023-11-07T05:31:56Z",
"endDate": "2023-11-07T05:31:56Z",
"currencyCode": "<string>"
}
'import requests
url = "http://claimsdesk.runasp.net/api/v1/Policies"
payload = {
"organizationId": 123,
"memberId": 123,
"policyNumber": "<string>",
"coverageType": "<string>",
"sumInsured": 500000000,
"deductibleAmount": 500000000,
"premiumAmount": 500000000,
"startDate": "2023-11-07T05:31:56Z",
"endDate": "2023-11-07T05:31:56Z",
"currencyCode": "<string>"
}
headers = {
"X-App-Id": "<api-key>",
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-App-Id': '<api-key>',
'X-Api-Key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
organizationId: 123,
memberId: 123,
policyNumber: '<string>',
coverageType: '<string>',
sumInsured: 500000000,
deductibleAmount: 500000000,
premiumAmount: 500000000,
startDate: '2023-11-07T05:31:56Z',
endDate: '2023-11-07T05:31:56Z',
currencyCode: '<string>'
})
};
fetch('http://claimsdesk.runasp.net/api/v1/Policies', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "http://claimsdesk.runasp.net/api/v1/Policies",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'organizationId' => 123,
'memberId' => 123,
'policyNumber' => '<string>',
'coverageType' => '<string>',
'sumInsured' => 500000000,
'deductibleAmount' => 500000000,
'premiumAmount' => 500000000,
'startDate' => '2023-11-07T05:31:56Z',
'endDate' => '2023-11-07T05:31:56Z',
'currencyCode' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Api-Key: <api-key>",
"X-App-Id: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://claimsdesk.runasp.net/api/v1/Policies"
payload := strings.NewReader("{\n \"organizationId\": 123,\n \"memberId\": 123,\n \"policyNumber\": \"<string>\",\n \"coverageType\": \"<string>\",\n \"sumInsured\": 500000000,\n \"deductibleAmount\": 500000000,\n \"premiumAmount\": 500000000,\n \"startDate\": \"2023-11-07T05:31:56Z\",\n \"endDate\": \"2023-11-07T05:31:56Z\",\n \"currencyCode\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-App-Id", "<api-key>")
req.Header.Add("X-Api-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("http://claimsdesk.runasp.net/api/v1/Policies")
.header("X-App-Id", "<api-key>")
.header("X-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"organizationId\": 123,\n \"memberId\": 123,\n \"policyNumber\": \"<string>\",\n \"coverageType\": \"<string>\",\n \"sumInsured\": 500000000,\n \"deductibleAmount\": 500000000,\n \"premiumAmount\": 500000000,\n \"startDate\": \"2023-11-07T05:31:56Z\",\n \"endDate\": \"2023-11-07T05:31:56Z\",\n \"currencyCode\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://claimsdesk.runasp.net/api/v1/Policies")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["X-App-Id"] = '<api-key>'
request["X-Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"organizationId\": 123,\n \"memberId\": 123,\n \"policyNumber\": \"<string>\",\n \"coverageType\": \"<string>\",\n \"sumInsured\": 500000000,\n \"deductibleAmount\": 500000000,\n \"premiumAmount\": 500000000,\n \"startDate\": \"2023-11-07T05:31:56Z\",\n \"endDate\": \"2023-11-07T05:31:56Z\",\n \"currencyCode\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": 123,
"organizationId": 123,
"organizationName": "<string>",
"memberId": 123,
"memberNumber": "<string>",
"memberFullName": "<string>",
"policyNumber": "<string>",
"coverageType": "<string>",
"sumInsured": 123,
"deductibleAmount": 123,
"premiumAmount": 123,
"currencyCode": "<string>",
"paymentFrequency": 1,
"startDate": "2023-11-07T05:31:56Z",
"endDate": "2023-11-07T05:31:56Z",
"status": 1,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}Insurance & Underwriting
Creates a new Policy record.
POST
/
api
/
v1
/
Policies
Creates a new Policy record.
curl --request POST \
--url http://claimsdesk.runasp.net/api/v1/Policies \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--header 'X-App-Id: <api-key>' \
--data '
{
"organizationId": 123,
"memberId": 123,
"policyNumber": "<string>",
"coverageType": "<string>",
"sumInsured": 500000000,
"deductibleAmount": 500000000,
"premiumAmount": 500000000,
"startDate": "2023-11-07T05:31:56Z",
"endDate": "2023-11-07T05:31:56Z",
"currencyCode": "<string>"
}
'import requests
url = "http://claimsdesk.runasp.net/api/v1/Policies"
payload = {
"organizationId": 123,
"memberId": 123,
"policyNumber": "<string>",
"coverageType": "<string>",
"sumInsured": 500000000,
"deductibleAmount": 500000000,
"premiumAmount": 500000000,
"startDate": "2023-11-07T05:31:56Z",
"endDate": "2023-11-07T05:31:56Z",
"currencyCode": "<string>"
}
headers = {
"X-App-Id": "<api-key>",
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-App-Id': '<api-key>',
'X-Api-Key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
organizationId: 123,
memberId: 123,
policyNumber: '<string>',
coverageType: '<string>',
sumInsured: 500000000,
deductibleAmount: 500000000,
premiumAmount: 500000000,
startDate: '2023-11-07T05:31:56Z',
endDate: '2023-11-07T05:31:56Z',
currencyCode: '<string>'
})
};
fetch('http://claimsdesk.runasp.net/api/v1/Policies', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "http://claimsdesk.runasp.net/api/v1/Policies",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'organizationId' => 123,
'memberId' => 123,
'policyNumber' => '<string>',
'coverageType' => '<string>',
'sumInsured' => 500000000,
'deductibleAmount' => 500000000,
'premiumAmount' => 500000000,
'startDate' => '2023-11-07T05:31:56Z',
'endDate' => '2023-11-07T05:31:56Z',
'currencyCode' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Api-Key: <api-key>",
"X-App-Id: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://claimsdesk.runasp.net/api/v1/Policies"
payload := strings.NewReader("{\n \"organizationId\": 123,\n \"memberId\": 123,\n \"policyNumber\": \"<string>\",\n \"coverageType\": \"<string>\",\n \"sumInsured\": 500000000,\n \"deductibleAmount\": 500000000,\n \"premiumAmount\": 500000000,\n \"startDate\": \"2023-11-07T05:31:56Z\",\n \"endDate\": \"2023-11-07T05:31:56Z\",\n \"currencyCode\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-App-Id", "<api-key>")
req.Header.Add("X-Api-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("http://claimsdesk.runasp.net/api/v1/Policies")
.header("X-App-Id", "<api-key>")
.header("X-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"organizationId\": 123,\n \"memberId\": 123,\n \"policyNumber\": \"<string>\",\n \"coverageType\": \"<string>\",\n \"sumInsured\": 500000000,\n \"deductibleAmount\": 500000000,\n \"premiumAmount\": 500000000,\n \"startDate\": \"2023-11-07T05:31:56Z\",\n \"endDate\": \"2023-11-07T05:31:56Z\",\n \"currencyCode\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://claimsdesk.runasp.net/api/v1/Policies")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["X-App-Id"] = '<api-key>'
request["X-Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"organizationId\": 123,\n \"memberId\": 123,\n \"policyNumber\": \"<string>\",\n \"coverageType\": \"<string>\",\n \"sumInsured\": 500000000,\n \"deductibleAmount\": 500000000,\n \"premiumAmount\": 500000000,\n \"startDate\": \"2023-11-07T05:31:56Z\",\n \"endDate\": \"2023-11-07T05:31:56Z\",\n \"currencyCode\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": 123,
"organizationId": 123,
"organizationName": "<string>",
"memberId": 123,
"memberNumber": "<string>",
"memberFullName": "<string>",
"policyNumber": "<string>",
"coverageType": "<string>",
"sumInsured": 123,
"deductibleAmount": 123,
"premiumAmount": 123,
"currencyCode": "<string>",
"paymentFrequency": 1,
"startDate": "2023-11-07T05:31:56Z",
"endDate": "2023-11-07T05:31:56Z",
"status": 1,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}Authorizations
App ID authentication. Enter your App ID below.
API Key authentication. Enter your key below.
Body
application/jsontext/jsonapplication/*+json
Required string length:
1 - 50Required string length:
1 - 100Required range:
0 <= x <= 1000000000Required range:
0 <= x <= 1000000000Required range:
0 <= x <= 1000000000Maximum string length:
10Available options:
1, 2, 3, 4, 5 Available options:
1, 2, 3, 4, 5 Response
OK
Available options:
1, 2, 3, 4, 5 Available options:
1, 2, 3, 4, 5 
