GET PlanCare2Api/Contracts?bsn={bsn}&referenceDate={referenceDate}
Fetches active contracts based on client identifier.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| bsn |
Social security number of client |
string |
Required |
| referenceDate |
Date to validate on |
date |
Required |
Body Parameters
None.
Response Information
Resource Description
List of contracts
Collection of Contract| Name | Description | Type | Additional information |
|---|---|---|---|
| Id |
Id for the contract |
integer |
None |
| StartDate |
Startdate of the contract |
date |
None |
| EndDate |
Enddate of the contract |
date |
None |
| ContractInfo |
ContractInfo specification returns the contract id, description, contracttype code, contract start date and end date |
string |
None |
| ContractType |
Contracttype specification. |
ContractType |
None |
| Debtor |
The debtor. |
Debtor |
None |
| Supplier |
The supplier. |
Supplier |
None |
| RelationCorrelationDebtorId |
The relation correlation debtor identifier. |
integer |
None |
| RelationCorrelationInvoiceReceiverId |
The relation correlation invoice receiver identifier. |
integer |
None |
Response Formats
application/json, text/json
Sample:
[
{
"$id": "1",
"Id": 1,
"StartDate": "2026-05-26T23:12:59.9326651+02:00",
"EndDate": "2026-05-26T23:12:59.9326651+02:00",
"ContractInfo": "sample string 3",
"ContractType": {
"$id": "2",
"Id": 1,
"Code": "sample string 2",
"Description": "sample string 3",
"IsActive": true,
"Source": "sample string 5"
},
"Debtor": {
"$id": "3",
"Description": "sample string 1",
"StartDate": "2026-05-26T23:12:59.9326651+02:00",
"EndDate": "2026-05-26T23:12:59.9326651+02:00",
"NumberExtern": "sample string 2",
"NumberIntern": "sample string 3"
},
"Supplier": {
"$id": "4",
"Code": "sample string 1",
"Description": "sample string 2",
"StartDate": "2026-05-26T23:12:59.9326651+02:00",
"EndDate": "2026-05-26T23:12:59.9326651+02:00"
},
"RelationCorrelationDebtorId": 1,
"RelationCorrelationInvoiceReceiverId": 1
},
{
"$ref": "1"
}
]
application/xml, text/xml
Sample:
<ArrayOfContract xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DHS.PlanCare.Web.Api.Interface">
<Contract>
<ContractInfo>sample string 3</ContractInfo>
<ContractType>
<Code>sample string 2</Code>
<Description>sample string 3</Description>
<Id>1</Id>
<IsActive>true</IsActive>
<Source>sample string 5</Source>
</ContractType>
<Debtor>
<Description>sample string 1</Description>
<EndDate>2026-05-26T23:12:59.9326651+02:00</EndDate>
<NumberExtern>sample string 2</NumberExtern>
<NumberIntern>sample string 3</NumberIntern>
<StartDate>2026-05-26T23:12:59.9326651+02:00</StartDate>
</Debtor>
<EndDate>2026-05-26T23:12:59.9326651+02:00</EndDate>
<Id>1</Id>
<RelationCorrelationDebtorId>1</RelationCorrelationDebtorId>
<RelationCorrelationInvoiceReceiverId>1</RelationCorrelationInvoiceReceiverId>
<StartDate>2026-05-26T23:12:59.9326651+02:00</StartDate>
<Supplier>
<Code>sample string 1</Code>
<Description>sample string 2</Description>
<EndDate>2026-05-26T23:12:59.9326651+02:00</EndDate>
<StartDate>2026-05-26T23:12:59.9326651+02:00</StartDate>
</Supplier>
</Contract>
<Contract>
<ContractInfo>sample string 3</ContractInfo>
<ContractType>
<Code>sample string 2</Code>
<Description>sample string 3</Description>
<Id>1</Id>
<IsActive>true</IsActive>
<Source>sample string 5</Source>
</ContractType>
<Debtor>
<Description>sample string 1</Description>
<EndDate>2026-05-26T23:12:59.9326651+02:00</EndDate>
<NumberExtern>sample string 2</NumberExtern>
<NumberIntern>sample string 3</NumberIntern>
<StartDate>2026-05-26T23:12:59.9326651+02:00</StartDate>
</Debtor>
<EndDate>2026-05-26T23:12:59.9326651+02:00</EndDate>
<Id>1</Id>
<RelationCorrelationDebtorId>1</RelationCorrelationDebtorId>
<RelationCorrelationInvoiceReceiverId>1</RelationCorrelationInvoiceReceiverId>
<StartDate>2026-05-26T23:12:59.9326651+02:00</StartDate>
<Supplier>
<Code>sample string 1</Code>
<Description>sample string 2</Description>
<EndDate>2026-05-26T23:12:59.9326651+02:00</EndDate>
<StartDate>2026-05-26T23:12:59.9326651+02:00</StartDate>
</Supplier>
</Contract>
</ArrayOfContract>