Claims API

API change history

Claims

This service contains information on claims that the logged in user has access to as the issuer of the claim. In the case of test users, random data is created when logging in for first time and continues to be used after that. The user also updates the data through their own actions and the data is retained between sessions.

The information is comparable to the data which users have access to via Arion Online Banking and Arion Bank’s B2B solutions, and there for not available working with identifiers, claimants and other operations at the moment.

/claims - GET

Returns a list of claims belonging to the claimant used to make the API request.

Try it

Request

Request URL

Request parameters

  • (optional)
    integer

    The page parameter defines the page number of the result set to return the data. For example, if your query returns 500 records, you can specify pageCount as 50 to return 50 records in a page, which implies that you’ll have 10 pages of data (50 records * 10 pages = 500). Now, if you want to return records 100-150, specify the page value as 3

  • (optional)
    integer

    The perPage parameter defines the number of records to return per page.

  • (optional)
    string

    The kennitala of the claimant whose data is being queried. If empty, data will be returned for all claimants linked to the authenticated user.

  • (optional)
    string

    The unique identifier of the claimant used to filter the query. If empty, data will be returned for all identifiers.

  • (optional)
    string

    Payor's kennitala.

  • (optional)
    string

    Status of the claim.

  • (optional)
    string

    State of the claim. Indicates the collections state the claim is in.

  • (optional)
    string

    Reference date for the datespan of the query.

  • (optional)
    string

    Date from inclusive.

  • (optional)
    string

    Date to inclusive.

Request headers

  • (optional)
    string

    Used to send a valid subscription key.

  • string
    Subscription key which provides access to this API. Found in your Profile.
  • string
    OAuth 2.0 access token obtained from IdentityServer3-sandbox. Supported grant types: Implicit.

Request body

Responses

200 OK

OK

Representations

{
  "claim": [
    {
      "amount": "string",
      "billNumber": "string",
      "billPresentmentSystem": {
        "parameters": "string",
        "type": "string"
      },
      "cancellationDate": "string",
      "claimID": "string",
      "claimKey": {
        "account": "string",
        "claimantKennitala": "string",
        "dueDate": "string"
      },
      "currencyInformation": {
        "currency": "string",
        "currencyInformationPaymentRate": "dueDateRate",
        "currencyInformationReferenceRate": "exchangeRate"
      },
      "customerNumber": "string",
      "defaultCharge": {
        "firstDefaultCharge": {
          "days": 0.0,
          "value": 0.0
        },
        "referenceDate": "dueDate",
        "secondDefaultCharge": {
          "days": 0.0,
          "value": 0.0
        }
      },
      "defaultInterest": {
        "defaultInterestRule": "noDefaultInterest",
        "percentage": 0.0,
        "specialCode": "string"
      },
      "discount": {
        "firstDiscount": {
          "amount": 0.0,
          "days": 0.0
        },
        "isPostRefDate": true,
        "referenceDate": "dueDate",
        "secondDiscount": {
          "amount": 0.0,
          "days": 0.0
        }
      },
      "finalDueDate": "string",
      "identifier": "string",
      "isPartialPaymentAllowed": true,
      "noticeAndPaymentFee": {
        "paperless": 0.0,
        "printing": 0.0
      },
      "otherCosts": 0.0,
      "otherDefaultCosts": 0.0,
      "payorKennitala": "string",
      "permitOutOfSequencePayment": true,
      "printing": {
        "claimantAddress": {
          "addressLine1": "string",
          "addressLine2": "string",
          "city": "string",
          "country": "string",
          "name": "string",
          "postalCode": "string",
          "region": "string"
        },
        "comments": [
          "string"
        ],
        "itemRows": {
          "itemRow": [
            {
              "amount": 0.0,
              "text": "string"
            }
          ]
        },
        "payorAddress": {
          "addressLine1": "string",
          "addressLine2": "string",
          "city": "string",
          "country": "string",
          "name": "string",
          "postalCode": "string",
          "region": "string"
        }
      },
      "reference": "string",
      "state": "primary",
      "status": "unpaid"
    }
  ],
  "paging": {
    "totalPages": 0,
    "totalRecords": 0
  }
}
{
  "properties": {
    "claim": {
      "items": {
        "description": "Claim",
        "properties": {
          "amount": {
            "description": "Amount of claim. Can't be changed after a partial payment has been made.",
            "type": "string"
          },
          "billNumber": {
            "description": "Billnumber, optional. Information provided by claimant.",
            "type": "string"
          },
          "billPresentmentSystem": {
            "description": "Indicates the bill presentment system to which the claim pertains.",
            "properties": {
              "parameters": {
                "description": "Parameters and values needed to display a unique document from a bill presentment system. (URL style)",
                "type": "string"
              },
              "type": {
                "description": "Which bill presentment system.",
                "type": "string"
              }
            },
            "type": "object"
          },
          "cancellationDate": {
            "description": "Date of cancellation, how long should the claim be valid in the system.",
            "type": "string"
          },
          "claimID": {
            "description": "The ID of the claim. Consists of claimantKennitala + dueDate + account. e.g. 660612998020160414032366000001",
            "type": "string"
          },
          "claimKey": {
            "properties": {
              "account": {
                "description": "The branch number of the claim, ledger number (66) and number of claim. ",
                "type": "string"
              },
              "claimantKennitala": {
                "description": "Claimant's kennitala.",
                "type": "string"
              },
              "dueDate": {
                "description": "Due date of the claim.",
                "type": "string"
              }
            },
            "required": [
              "claimantKennitala",
              "account",
              "dueDate"
            ],
            "type": "object"
          },
          "currencyInformation": {
            "description": "For claims which are linked to a foreign currency.",
            "properties": {
              "currency": {
                "type": "string"
              },
              "currencyInformationPaymentRate": {
                "enum": [
                  "dueDateRate",
                  "paymentDateRate"
                ]
              },
              "currencyInformationReferenceRate": {
                "enum": [
                  "exchangeRate",
                  "noteRate",
                  "centralBankMidRate",
                  "centralBankStatutoryRate"
                ]
              }
            },
            "type": "object"
          },
          "customerNumber": {
            "description": "Customer number, optional key used by claimant to identify payor. Necessary if payor is to be able to enable automotic debiting of claims.",
            "type": "string"
          },
          "defaultCharge": {
            "description": "Default charge that claims incur when they default, either a percentage or fixed amount",
            "properties": {
              "firstDefaultCharge": {
                "description": "First default charge.",
                "properties": {
                  "days": {
                    "description": "Indicates the number of days relative to reference date when rule takes effect.",
                    "type": "number"
                  },
                  "value": {
                    "description": "Amount or percentage of default charge.",
                    "type": "number"
                  }
                },
                "required": [
                  "days",
                  "value"
                ],
                "type": "object"
              },
              "referenceDate": {
                "description": "Indicates which date is used as basis for calculation.",
                "enum": [
                  "dueDate",
                  "finalDueDate"
                ]
              },
              "secondDefaultCharge": {
                "description": "Second default charge.",
                "properties": {
                  "days": {
                    "description": "Indicates the count of days relative to reference date when rule takes effect.",
                    "type": "number"
                  },
                  "value": {
                    "description": "Amount or percentage of default charge.",
                    "type": "number"
                  }
                },
                "required": [
                  "days",
                  "value"
                ],
                "type": "object"
              }
            },
            "required": [
              "firstDefaultCharge",
              "secondDefaultCharge",
              "referenceDate"
            ],
            "type": "object"
          },
          "defaultInterest": {
            "description": "Rule for calculating default interest.",
            "properties": {
              "defaultInterestRule": {
                "description": "Determines if the claim should incur default interests after the reference date and if so, how it should be calculated. noDefaultInterest = No default interest. defaultInterestAmount = Default interests are calculations are based on claim amount. defaultInterestAmountAndDefaultCharge = Default interests are calculations are based on claim amount and default charge.",
                "enum": [
                  "noDefaultInterest",
                  "defaultInterestAmount",
                  "defaultInterestAmountAndDefaultCharge"
                ]
              },
              "percentage": {
                "description": "If used, default interest on a claim is calculated based on this percentage and not on the default interest period, as in the case of Central Bank default interest. Not specifying the percentage ensures that the Central Bank default interest is used, and interest is compounded every twelve months, i.e. the default interest is added to the principal.",
                "type": "number"
              },
              "specialCode": {
                "description": "Sending in a special code is the only way to set certain interest rules that map to RB Penalty interest rules. Further documentation can be found in RB documentation.",
                "type": "string"
              }
            },
            "required": [
              "defaultInterestRule",
              "percentage"
            ],
            "type": "object"
          },
          "discount": {
            "description": "Two amount or percentage fields can be attached to a claim base, the first and second discount, which are used to reduce the payment if made before a fixed date.",
            "properties": {
              "firstDiscount": {
                "description": "First discount",
                "properties": {
                  "amount": {
                    "description": "Base for discount or default charge.",
                    "type": "number"
                  },
                  "days": {
                    "description": "Indicates the count of days relative to reference date when rule takes effect.",
                    "type": "number"
                  }
                },
                "required": [
                  "days",
                  "amount"
                ],
                "type": "object"
              },
              "isPostRefDate": {
                "description": "Indicates whether number of days is before or after reference date.",
                "type": "boolean"
              },
              "referenceDate": {
                "description": "Indicates which date is used as basis for calculation.",
                "enum": [
                  "dueDate",
                  "finalDueDate"
                ],
                "type": "integer"
              },
              "secondDiscount": {
                "description": "Second discount.",
                "properties": {
                  "amount": {
                    "description": "Base for discount or default charge.",
                    "type": "number"
                  },
                  "days": {
                    "description": "Indicates the count of days relative to reference date when rule takes effect.",
                    "type": "number"
                  }
                },
                "required": [
                  "days",
                  "amount"
                ],
                "type": "object"
              }
            },
            "required": [
              "firstDiscount",
              "secondDiscount",
              "referenceDate"
            ],
            "type": "object"
          },
          "finalDueDate": {
            "description": "Final due date of claim.",
            "type": "string"
          },
          "identifier": {
            "description": "Three letter unique identifier of the claimant that the claim relates to. Indicates which of claimant's accounts the system should use. e.g. 001",
            "type": "string"
          },
          "isPartialPaymentAllowed": {
            "description": "Indicates whether partial payment is permitted.",
            "type": "boolean"
          },
          "noticeAndPaymentFee": {
            "description": "Charge for calculation and printout of payment slip and sending to payer.",
            "properties": {
              "paperless": {
                "description": "Charge used if claim is not printed.",
                "type": "number"
              },
              "printing": {
                "description": "Charge used if claim is printed.",
                "type": "number"
              }
            },
            "required": [
              "printing",
              "paperless"
            ],
            "type": "object"
          },
          "otherCosts": {
            "description": "Other cost, for special charges to be paid by the payer of the claim.",
            "type": "number"
          },
          "otherDefaultCosts": {
            "description": "For special charges, e.g. secondary collection charge, to be paid by the payer of the claim.",
            "type": "number"
          },
          "payorKennitala": {
            "description": "Payor's kennitala.",
            "type": "string"
          },
          "permitOutOfSequencePayment": {
            "description": "Payment of claim allowed if earlier due date is unpaid.",
            "type": "boolean"
          },
          "printing": {
            "description": "Contains information used for displaying and printing the claim. Changing this info on a claim that has already been created will not result in it being printed again.",
            "properties": {
              "claimantAddress": {
                "description": "Alternate address for claimant if address from the National Register should not be used.",
                "properties": {
                  "addressLine1": {
                    "description": "First part of address.",
                    "type": "string"
                  },
                  "addressLine2": {
                    "description": "First part of address.",
                    "type": "string"
                  },
                  "city": {
                    "description": "Place of residence, be it city, town, etc.",
                    "type": "string"
                  },
                  "country": {
                    "description": "Country.",
                    "type": "string"
                  },
                  "name": {
                    "description": "Name of resident/recipient.",
                    "type": "string"
                  },
                  "postalCode": {
                    "description": "Postal code.",
                    "type": "string"
                  },
                  "region": {
                    "description": "The country region where the person lives.",
                    "type": "string"
                  }
                },
                "required": [
                  "name",
                  "addressLine1",
                  "addressLine2",
                  "postalCode",
                  "city",
                  "region",
                  "country"
                ],
                "type": "object"
              },
              "comments": {
                "description": "Comments that are displayed on the lower half of the payment slip.",
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "itemRows": {
                "description": "Breakdown of items that a claim consists of.",
                "properties": {
                  "itemRow": {
                    "description": "Breakdown items that a claim consists of.",
                    "items": {
                      "description": "A sub-item of a claim, used for printing.",
                      "properties": {
                        "amount": {
                          "description": "The amount of the item.",
                          "type": "number"
                        },
                        "text": {
                          "description": "Item text.",
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "type": "array"
                  }
                },
                "type": "object"
              },
              "payorAddress": {
                "description": "Alternate address for payor if address from the National Register should not be used.",
                "properties": {
                  "addressLine1": {
                    "description": "First part of address.",
                    "type": "string"
                  },
                  "addressLine2": {
                    "description": "First part of address.",
                    "type": "string"
                  },
                  "city": {
                    "description": "Place of residence, be it city, town, etc.",
                    "type": "string"
                  },
                  "country": {
                    "description": "Country.",
                    "type": "string"
                  },
                  "name": {
                    "description": "Name of resident/recipient.",
                    "type": "string"
                  },
                  "postalCode": {
                    "description": "Postal code.",
                    "type": "string"
                  },
                  "region": {
                    "description": "The country region where the person lives.",
                    "type": "string"
                  }
                },
                "required": [
                  "name",
                  "addressLine1",
                  "addressLine2",
                  "postalCode",
                  "city",
                  "region",
                  "country"
                ],
                "type": "object"
              }
            },
            "required": [
              "claimantAddress",
              "payorAddress"
            ],
            "type": "object"
          },
          "reference": {
            "description": "Refence determined by claimant. Alphanumeric, maximum 16 letters.",
            "type": "string"
          },
          "state": {
            "description": "State of the claim. Indicates the collections state the claim is in.",
            "enum": [
              "primary",
              "secondary",
              "legal"
            ]
          },
          "status": {
            "description": "Status of the claim.",
            "enum": [
              "unpaid",
              "paid",
              "cancelled",
              "invalid"
            ]
          }
        },
        "required": [
          "claimID",
          "payorKennitala",
          "cancellationDate",
          "identifier",
          "amount",
          "reference",
          "finalDueDate",
          "billNumber",
          "customerNumber"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "paging": {
      "description": "Contains information on paging on the claim overview.",
      "properties": {
        "totalPages": {
          "description": "Total pages",
          "type": "integer"
        },
        "totalRecords": {
          "description": "Total number of claims during period",
          "type": "integer"
        }
      },
      "type": "object"
    }
  },
  "required": [
    "paging"
  ],
  "type": "object"
}

Code samples

@ECHO OFF

curl -v -X GET "https://arionapi-sandbox.azure-api.net/claims/v1/claims?page=1&perPage=10&claimantKennitala={string}&identifier={string}&payorKennitala={string}&status={string}&state={string}&referenceDate={string}&dateFrom={string}&dateTo={string}"
-H "Ocp-Apim-Subscription-Key: "
-H "Ocp-Apim-Subscription-Key: {subscription key}"
-H "Authorization: {access token}"

--data-ascii "{body}" 
using System;
using System.Net.Http.Headers;
using System.Text;
using System.Net.Http;
using System.Web;

namespace CSHttpClientSample
{
    static class Program
    {
        static void Main()
        {
            MakeRequest();
            Console.WriteLine("Hit ENTER to exit...");
            Console.ReadLine();
        }
        
        static async void MakeRequest()
        {
            var client = new HttpClient();
            var queryString = HttpUtility.ParseQueryString(string.Empty);

            // Request headers
            client.DefaultRequestHeaders.Add("Ocp-Apim-Subscription-Key", "");
            client.DefaultRequestHeaders.Add("Ocp-Apim-Subscription-Key", "{subscription key}");
            client.DefaultRequestHeaders.Add("Authorization", "{access token}");

            // Request parameters
            queryString["page"] = "1";
            queryString["perPage"] = "10";
            queryString["claimantKennitala"] = "{string}";
            queryString["identifier"] = "{string}";
            queryString["payorKennitala"] = "{string}";
            queryString["status"] = "{string}";
            queryString["state"] = "{string}";
            queryString["referenceDate"] = "{string}";
            queryString["dateFrom"] = "{string}";
            queryString["dateTo"] = "{string}";
            var uri = "https://arionapi-sandbox.azure-api.net/claims/v1/claims?" + queryString;

            var response = await client.GetAsync(uri);
        }
    }
}	
// // This sample uses the Apache HTTP client from HTTP Components (http://hc.apache.org/httpcomponents-client-ga/)
import java.net.URI;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.utils.URIBuilder;
import org.apache.http.impl.client.HttpClients;
import org.apache.http.util.EntityUtils;

public class JavaSample 
{
    public static void main(String[] args) 
    {
        HttpClient httpclient = HttpClients.createDefault();

        try
        {
            URIBuilder builder = new URIBuilder("https://arionapi-sandbox.azure-api.net/claims/v1/claims");

            builder.setParameter("page", "1");
            builder.setParameter("perPage", "10");
            builder.setParameter("claimantKennitala", "{string}");
            builder.setParameter("identifier", "{string}");
            builder.setParameter("payorKennitala", "{string}");
            builder.setParameter("status", "{string}");
            builder.setParameter("state", "{string}");
            builder.setParameter("referenceDate", "{string}");
            builder.setParameter("dateFrom", "{string}");
            builder.setParameter("dateTo", "{string}");

            URI uri = builder.build();
            HttpGet request = new HttpGet(uri);
            request.setHeader("Ocp-Apim-Subscription-Key", "");
            request.setHeader("Ocp-Apim-Subscription-Key", "{subscription key}");
            request.setHeader("Authorization", "{access token}");


            // Request body
            StringEntity reqEntity = new StringEntity("{body}");
            request.setEntity(reqEntity);

            HttpResponse response = httpclient.execute(request);
            HttpEntity entity = response.getEntity();

            if (entity != null) 
            {
                System.out.println(EntityUtils.toString(entity));
            }
        }
        catch (Exception e)
        {
            System.out.println(e.getMessage());
        }
    }
}

<!DOCTYPE html>
<html>
<head>
    <title>JSSample</title>
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
</head>
<body>

<script type="text/javascript">
    $(function() {
        var params = {
            // Request parameters
            "page": "1",
            "perPage": "10",
            "claimantKennitala": "{string}",
            "identifier": "{string}",
            "payorKennitala": "{string}",
            "status": "{string}",
            "state": "{string}",
            "referenceDate": "{string}",
            "dateFrom": "{string}",
            "dateTo": "{string}",
        };
      
        $.ajax({
            url: "https://arionapi-sandbox.azure-api.net/claims/v1/claims?" + $.param(params),
            beforeSend: function(xhrObj){
                // Request headers
                xhrObj.setRequestHeader("Ocp-Apim-Subscription-Key","");
                xhrObj.setRequestHeader("Ocp-Apim-Subscription-Key","{subscription key}");
                xhrObj.setRequestHeader("Authorization","{access token}");
            },
            type: "GET",
            // Request body
            data: "{body}",
        })
        .done(function(data) {
            alert("success");
        })
        .fail(function() {
            alert("error");
        });
    });
</script>
</body>
</html>
#import <Foundation/Foundation.h>

int main(int argc, const char * argv[])
{
    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
    
    NSString* path = @"https://arionapi-sandbox.azure-api.net/claims/v1/claims";
    NSArray* array = @[
                         // Request parameters
                         @"entities=true",
                         @"page=1",
                         @"perPage=10",
                         @"claimantKennitala={string}",
                         @"identifier={string}",
                         @"payorKennitala={string}",
                         @"status={string}",
                         @"state={string}",
                         @"referenceDate={string}",
                         @"dateFrom={string}",
                         @"dateTo={string}",
                      ];
    
    NSString* string = [array componentsJoinedByString:@"&"];
    path = [path stringByAppendingFormat:@"?%@", string];

    NSLog(@"%@", path);

    NSMutableURLRequest* _request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:path]];
    [_request setHTTPMethod:@"GET"];
    // Request headers
    [_request setValue:@"" forHTTPHeaderField:@"Ocp-Apim-Subscription-Key"];
    [_request setValue:@"{subscription key}" forHTTPHeaderField:@"Ocp-Apim-Subscription-Key"];
    [_request setValue:@"{access token}" forHTTPHeaderField:@"Authorization"];
    // Request body
    [_request setHTTPBody:[@"{body}" dataUsingEncoding:NSUTF8StringEncoding]];
    
    NSURLResponse *response = nil;
    NSError *error = nil;
    NSData* _connectionData = [NSURLConnection sendSynchronousRequest:_request returningResponse:&response error:&error];

    if (nil != error)
    {
        NSLog(@"Error: %@", error);
    }
    else
    {
        NSError* error = nil;
        NSMutableDictionary* json = nil;
        NSString* dataString = [[NSString alloc] initWithData:_connectionData encoding:NSUTF8StringEncoding];
        NSLog(@"%@", dataString);
        
        if (nil != _connectionData)
        {
            json = [NSJSONSerialization JSONObjectWithData:_connectionData options:NSJSONReadingMutableContainers error:&error];
        }
        
        if (error || !json)
        {
            NSLog(@"Could not parse loaded json with error:%@", error);
        }
        
        NSLog(@"%@", json);
        _connectionData = nil;
    }
    
    [pool drain];

    return 0;
}
<?php
// This sample uses the Apache HTTP client from HTTP Components (http://hc.apache.org/httpcomponents-client-ga/)
require_once 'HTTP/Request2.php';

$request = new Http_Request2('https://arionapi-sandbox.azure-api.net/claims/v1/claims');
$url = $request->getUrl();

$headers = array(
    // Request headers
    'Ocp-Apim-Subscription-Key' => '',
    'Ocp-Apim-Subscription-Key' => '{subscription key}',
    'Authorization' => '{access token}',
);

$request->setHeader($headers);

$parameters = array(
    // Request parameters
    'page' => '1',
    'perPage' => '10',
    'claimantKennitala' => '{string}',
    'identifier' => '{string}',
    'payorKennitala' => '{string}',
    'status' => '{string}',
    'state' => '{string}',
    'referenceDate' => '{string}',
    'dateFrom' => '{string}',
    'dateTo' => '{string}',
);

$url->setQueryVariables($parameters);

$request->setMethod(HTTP_Request2::METHOD_GET);

// Request body
$request->setBody("{body}");

try
{
    $response = $request->send();
    echo $response->getBody();
}
catch (HttpException $ex)
{
    echo $ex;
}

?>
########### Python 2.7 #############
import httplib, urllib, base64

headers = {
    # Request headers
    'Ocp-Apim-Subscription-Key': '',
    'Ocp-Apim-Subscription-Key': '{subscription key}',
    'Authorization': '{access token}',
}

params = urllib.urlencode({
    # Request parameters
    'page': '1',
    'perPage': '10',
    'claimantKennitala': '{string}',
    'identifier': '{string}',
    'payorKennitala': '{string}',
    'status': '{string}',
    'state': '{string}',
    'referenceDate': '{string}',
    'dateFrom': '{string}',
    'dateTo': '{string}',
})

try:
    conn = httplib.HTTPSConnection('arionapi-sandbox.azure-api.net')
    conn.request("GET", "/claims/v1/claims?%s" % params, "{body}", headers)
    response = conn.getresponse()
    data = response.read()
    print(data)
    conn.close()
except Exception as e:
    print("[Errno {0}] {1}".format(e.errno, e.strerror))

####################################

########### Python 3.2 #############
import http.client, urllib.request, urllib.parse, urllib.error, base64

headers = {
    # Request headers
    'Ocp-Apim-Subscription-Key': '',
    'Ocp-Apim-Subscription-Key': '{subscription key}',
    'Authorization': '{access token}',
}

params = urllib.parse.urlencode({
    # Request parameters
    'page': '1',
    'perPage': '10',
    'claimantKennitala': '{string}',
    'identifier': '{string}',
    'payorKennitala': '{string}',
    'status': '{string}',
    'state': '{string}',
    'referenceDate': '{string}',
    'dateFrom': '{string}',
    'dateTo': '{string}',
})

try:
    conn = http.client.HTTPSConnection('arionapi-sandbox.azure-api.net')
    conn.request("GET", "/claims/v1/claims?%s" % params, "{body}", headers)
    response = conn.getresponse()
    data = response.read()
    print(data)
    conn.close()
except Exception as e:
    print("[Errno {0}] {1}".format(e.errno, e.strerror))

####################################
require 'net/http'

uri = URI('https://arionapi-sandbox.azure-api.net/claims/v1/claims')

query = URI.encode_www_form({
    # Request parameters
    'page' => '1',
    'perPage' => '10',
    'claimantKennitala' => '{string}',
    'identifier' => '{string}',
    'payorKennitala' => '{string}',
    'status' => '{string}',
    'state' => '{string}',
    'referenceDate' => '{string}',
    'dateFrom' => '{string}',
    'dateTo' => '{string}'
})

if uri.query && uri.query.length > 0
    uri.query += '&' + query
else
    uri.query = query
end

request = Net::HTTP::Get.new(uri.request_uri)
# Request headers
request['Ocp-Apim-Subscription-Key'] = ''
# Request headers
request['Ocp-Apim-Subscription-Key'] = '{subscription key}'
# Request headers
request['Authorization'] = '{access token}'
# Request body
request.body = "{body}"

response = Net::HTTP.start(uri.host, uri.port, :use_ssl => uri.scheme == 'https') do |http|
    http.request(request)
end

puts response.body