All URIs are relative to https://api.mydatamyconsent.com
Method | HTTP request | Description |
---|---|---|
issuerIssuedoc1XmlPost | POST /issuer/issuedoc/1/xml | Digilocker compatible endpoint to issue document. |
v1IndividualsConsentRequestsGet | GET /v1/individuals/consent-requests | Get all consent requests sent to Individuals. |
v1IndividualsConsentRequestsPost | POST /v1/individuals/consent-requests | Create individual consent request. |
v1IndividualsConsentRequestsRequestIdCancelPut | PUT /v1/individuals/consent-requests/{request_id}/cancel | Cancel the Individual data request by id. |
v1IndividualsConsentRequestsRequestIdGet | GET /v1/individuals/consent-requests/{request_id} | Get Individual data consent request by id. |
v1IndividualsConsentTemplatesGet | GET /v1/individuals/consent-templates | Get the paginated list of individual consent templates. |
v1IndividualsConsentTemplatesTemplateIdGet | GET /v1/individuals/consent-templates/{template_id} | Get Individual consent template details by consent id. |
v1IndividualsConsentsConsentIdDocumentsDocumentIdDownloadGet | GET /v1/individuals/consents/{consent_id}/documents/{document_id}/download | Download Individual consented document by document id. |
v1IndividualsConsentsConsentIdDocumentsDocumentIdGet | GET /v1/individuals/consents/{consent_id}/documents/{document_id} | Get Individual consented document by document id. |
v1IndividualsConsentsConsentIdDocumentsGet | GET /v1/individuals/consents/{consent_id}/documents | Get Individual consented document by consent id. |
v1IndividualsConsentsConsentIdFinancialAccountsAccountIdGet | GET /v1/individuals/consents/{consent_id}/financial-accounts/{account_id} | Get individual consented financial account details. |
v1IndividualsConsentsConsentIdFinancialAccountsAccountIdTransactionsGet | GET /v1/individuals/consents/{consent_id}/financial-accounts/{account_id}/transactions | Get individual consented financial account transactions. |
v1IndividualsConsentsConsentIdFinancialAccountsGet | GET /v1/individuals/consents/{consent_id}/financial-accounts | Get all individual consented financial accounts. |
v1IndividualsConsentsConsentIdGet | GET /v1/individuals/consents/{consent_id} | Get Individuals consent details by consent id. |
v1IndividualsConsentsConsentIdHealthFhirBundleGet | GET /v1/individuals/consents/{consent_id}/health/fhir/bundle | Get Individual consented Health Records by consent id. |
v1IndividualsConsentsGet | GET /v1/individuals/consents | Get the paginated list of Individual consents. |
v1IndividualsDocumentsIssueIssueRequestIdUploadPost | POST /v1/individuals/documents/issue/{issue_request_id}/upload | Upload a document for issuance request of individual. |
v1IndividualsDocumentsIssuePost | POST /v1/individuals/documents/issue | Issue a new document to an individual user. |
v1IndividualsDocumentsIssuedDocumentIdGet | GET /v1/individuals/documents/issued/{document_id} | Get issued document. |
v1IndividualsDocumentsIssuedGet | GET /v1/individuals/documents/issued | Get paginated list of issued documents of given document type. |
v1IndividualsDocumentsTypesGet | GET /v1/individuals/documents/types | Get paginated list of registered document types. |
PushUriResponse issuerIssuedoc1XmlPost(pushUriRequest)
Digilocker compatible endpoint to issue document.
// Import classes:
import com.mydatamyconsent.ApiClient;
import com.mydatamyconsent.ApiException;
import com.mydatamyconsent.Configuration;
import com.mydatamyconsent.auth.*;
import com.mydatamyconsent.models.*;
import com.mydatamyconsent.api.IndividualsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.mydatamyconsent.com");
// Configure OAuth2 access token for authorization: OAuth2ClientCredentials
OAuth OAuth2ClientCredentials = (OAuth) defaultClient.getAuthentication("OAuth2ClientCredentials");
OAuth2ClientCredentials.setAccessToken("YOUR ACCESS TOKEN");
IndividualsApi apiInstance = new IndividualsApi(defaultClient);
PushUriRequest pushUriRequest = new PushUriRequest(); // PushUriRequest |
try {
PushUriResponse result = apiInstance.issuerIssuedoc1XmlPost(pushUriRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling IndividualsApi#issuerIssuedoc1XmlPost");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
pushUriRequest | PushUriRequest |
- Content-Type: application/json; charset=utf-8
- Accept: application/json; charset=utf-8
Status code | Description | Response headers |
---|---|---|
200 | - | |
400 | - | |
401 | - | |
404 | - | |
500 | - |
PaginatedListOfIndividualConsentRequestDetailss v1IndividualsConsentRequestsGet(status, fromDateTime, toDateTime, pageNo, pageSize)
Get all consent requests sent to Individuals.
// Import classes:
import com.mydatamyconsent.ApiClient;
import com.mydatamyconsent.ApiException;
import com.mydatamyconsent.Configuration;
import com.mydatamyconsent.auth.*;
import com.mydatamyconsent.models.*;
import com.mydatamyconsent.api.IndividualsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.mydatamyconsent.com");
// Configure OAuth2 access token for authorization: OAuth2ClientCredentials
OAuth OAuth2ClientCredentials = (OAuth) defaultClient.getAuthentication("OAuth2ClientCredentials");
OAuth2ClientCredentials.setAccessToken("YOUR ACCESS TOKEN");
IndividualsApi apiInstance = new IndividualsApi(defaultClient);
DataConsentStatus status = DataConsentStatus.fromValue("Pending"); // DataConsentStatus |
OffsetDateTime fromDateTime = OffsetDateTime.now(); // OffsetDateTime |
OffsetDateTime toDateTime = OffsetDateTime.now(); // OffsetDateTime |
Integer pageNo = 56; // Integer |
Integer pageSize = 56; // Integer |
try {
PaginatedListOfIndividualConsentRequestDetailss result = apiInstance.v1IndividualsConsentRequestsGet(status, fromDateTime, toDateTime, pageNo, pageSize);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling IndividualsApi#v1IndividualsConsentRequestsGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
status | DataConsentStatus | [optional] [enum: Pending, Approved, Rejected, Revoked, Expired, Timeout, Canceled] | |
fromDateTime | OffsetDateTime | [optional] | |
toDateTime | OffsetDateTime | [optional] | |
pageNo | Integer | [optional] | |
pageSize | Integer | [optional] |
PaginatedListOfIndividualConsentRequestDetailss
- Content-Type: Not defined
- Accept: application/json; charset=utf-8
Status code | Description | Response headers |
---|---|---|
200 | - | |
400 | - | |
401 | - | |
404 | - | |
500 | - |
IndividualConsentRequestDetails v1IndividualsConsentRequestsPost(createConsentRequest)
Create individual consent request.
// Import classes:
import com.mydatamyconsent.ApiClient;
import com.mydatamyconsent.ApiException;
import com.mydatamyconsent.Configuration;
import com.mydatamyconsent.auth.*;
import com.mydatamyconsent.models.*;
import com.mydatamyconsent.api.IndividualsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.mydatamyconsent.com");
// Configure OAuth2 access token for authorization: OAuth2ClientCredentials
OAuth OAuth2ClientCredentials = (OAuth) defaultClient.getAuthentication("OAuth2ClientCredentials");
OAuth2ClientCredentials.setAccessToken("YOUR ACCESS TOKEN");
IndividualsApi apiInstance = new IndividualsApi(defaultClient);
CreateConsentRequest createConsentRequest = new CreateConsentRequest(); // CreateConsentRequest |
try {
IndividualConsentRequestDetails result = apiInstance.v1IndividualsConsentRequestsPost(createConsentRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling IndividualsApi#v1IndividualsConsentRequestsPost");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
createConsentRequest | CreateConsentRequest |
IndividualConsentRequestDetails
- Content-Type: application/json; charset=utf-8
- Accept: application/json; charset=utf-8
Status code | Description | Response headers |
---|---|---|
200 | - | |
400 | - | |
401 | - | |
404 | - | |
500 | - |
Boolean v1IndividualsConsentRequestsRequestIdCancelPut(requestId)
Cancel the Individual data request by id.
// Import classes:
import com.mydatamyconsent.ApiClient;
import com.mydatamyconsent.ApiException;
import com.mydatamyconsent.Configuration;
import com.mydatamyconsent.auth.*;
import com.mydatamyconsent.models.*;
import com.mydatamyconsent.api.IndividualsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.mydatamyconsent.com");
// Configure OAuth2 access token for authorization: OAuth2ClientCredentials
OAuth OAuth2ClientCredentials = (OAuth) defaultClient.getAuthentication("OAuth2ClientCredentials");
OAuth2ClientCredentials.setAccessToken("YOUR ACCESS TOKEN");
IndividualsApi apiInstance = new IndividualsApi(defaultClient);
String requestId = "requestId_example"; // String |
try {
Boolean result = apiInstance.v1IndividualsConsentRequestsRequestIdCancelPut(requestId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling IndividualsApi#v1IndividualsConsentRequestsRequestIdCancelPut");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
requestId | String |
Boolean
- Content-Type: Not defined
- Accept: application/json; charset=utf-8
Status code | Description | Response headers |
---|---|---|
200 | - | |
400 | - | |
401 | - | |
404 | - | |
500 | - |
ConsentRequest v1IndividualsConsentRequestsRequestIdGet(requestId)
Get Individual data consent request by id.
// Import classes:
import com.mydatamyconsent.ApiClient;
import com.mydatamyconsent.ApiException;
import com.mydatamyconsent.Configuration;
import com.mydatamyconsent.auth.*;
import com.mydatamyconsent.models.*;
import com.mydatamyconsent.api.IndividualsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.mydatamyconsent.com");
// Configure OAuth2 access token for authorization: OAuth2ClientCredentials
OAuth OAuth2ClientCredentials = (OAuth) defaultClient.getAuthentication("OAuth2ClientCredentials");
OAuth2ClientCredentials.setAccessToken("YOUR ACCESS TOKEN");
IndividualsApi apiInstance = new IndividualsApi(defaultClient);
String requestId = "requestId_example"; // String |
try {
ConsentRequest result = apiInstance.v1IndividualsConsentRequestsRequestIdGet(requestId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling IndividualsApi#v1IndividualsConsentRequestsRequestIdGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
requestId | String |
- Content-Type: Not defined
- Accept: application/json; charset=utf-8
Status code | Description | Response headers |
---|---|---|
200 | - | |
400 | - | |
401 | - | |
404 | - | |
500 | - |
PaginatedListOfConsentRequestTemplates v1IndividualsConsentTemplatesGet(pageNo, pageSize)
Get the paginated list of individual consent templates.
// Import classes:
import com.mydatamyconsent.ApiClient;
import com.mydatamyconsent.ApiException;
import com.mydatamyconsent.Configuration;
import com.mydatamyconsent.auth.*;
import com.mydatamyconsent.models.*;
import com.mydatamyconsent.api.IndividualsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.mydatamyconsent.com");
// Configure OAuth2 access token for authorization: OAuth2ClientCredentials
OAuth OAuth2ClientCredentials = (OAuth) defaultClient.getAuthentication("OAuth2ClientCredentials");
OAuth2ClientCredentials.setAccessToken("YOUR ACCESS TOKEN");
IndividualsApi apiInstance = new IndividualsApi(defaultClient);
Integer pageNo = 56; // Integer |
Integer pageSize = 56; // Integer |
try {
PaginatedListOfConsentRequestTemplates result = apiInstance.v1IndividualsConsentTemplatesGet(pageNo, pageSize);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling IndividualsApi#v1IndividualsConsentTemplatesGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
pageNo | Integer | [optional] | |
pageSize | Integer | [optional] |
PaginatedListOfConsentRequestTemplates
- Content-Type: Not defined
- Accept: application/json; charset=utf-8
Status code | Description | Response headers |
---|---|---|
200 | - | |
400 | - | |
401 | - | |
404 | - | |
500 | - |
IndividualConsentRequestTemplateDetails v1IndividualsConsentTemplatesTemplateIdGet(templateId)
Get Individual consent template details by consent id.
// Import classes:
import com.mydatamyconsent.ApiClient;
import com.mydatamyconsent.ApiException;
import com.mydatamyconsent.Configuration;
import com.mydatamyconsent.auth.*;
import com.mydatamyconsent.models.*;
import com.mydatamyconsent.api.IndividualsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.mydatamyconsent.com");
// Configure OAuth2 access token for authorization: OAuth2ClientCredentials
OAuth OAuth2ClientCredentials = (OAuth) defaultClient.getAuthentication("OAuth2ClientCredentials");
OAuth2ClientCredentials.setAccessToken("YOUR ACCESS TOKEN");
IndividualsApi apiInstance = new IndividualsApi(defaultClient);
String templateId = "templateId_example"; // String |
try {
IndividualConsentRequestTemplateDetails result = apiInstance.v1IndividualsConsentTemplatesTemplateIdGet(templateId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling IndividualsApi#v1IndividualsConsentTemplatesTemplateIdGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
templateId | String |
IndividualConsentRequestTemplateDetails
- Content-Type: Not defined
- Accept: application/json; charset=utf-8
Status code | Description | Response headers |
---|---|---|
200 | - | |
400 | - | |
401 | - | |
404 | - | |
500 | - |
File v1IndividualsConsentsConsentIdDocumentsDocumentIdDownloadGet(consentId, documentId)
Download Individual consented document by document id.
// Import classes:
import com.mydatamyconsent.ApiClient;
import com.mydatamyconsent.ApiException;
import com.mydatamyconsent.Configuration;
import com.mydatamyconsent.auth.*;
import com.mydatamyconsent.models.*;
import com.mydatamyconsent.api.IndividualsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.mydatamyconsent.com");
// Configure OAuth2 access token for authorization: OAuth2ClientCredentials
OAuth OAuth2ClientCredentials = (OAuth) defaultClient.getAuthentication("OAuth2ClientCredentials");
OAuth2ClientCredentials.setAccessToken("YOUR ACCESS TOKEN");
IndividualsApi apiInstance = new IndividualsApi(defaultClient);
String consentId = "consentId_example"; // String |
String documentId = "documentId_example"; // String |
try {
File result = apiInstance.v1IndividualsConsentsConsentIdDocumentsDocumentIdDownloadGet(consentId, documentId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling IndividualsApi#v1IndividualsConsentsConsentIdDocumentsDocumentIdDownloadGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
consentId | String | ||
documentId | String |
- Content-Type: Not defined
- Accept: application/octet-stream, application/json; charset=utf-8
Status code | Description | Response headers |
---|---|---|
200 | * CONTENT-DISPOSITION - |
|
400 | - | |
401 | - | |
404 | - | |
500 | - |
ConsentedDocument v1IndividualsConsentsConsentIdDocumentsDocumentIdGet(consentId, documentId)
Get Individual consented document by document id.
// Import classes:
import com.mydatamyconsent.ApiClient;
import com.mydatamyconsent.ApiException;
import com.mydatamyconsent.Configuration;
import com.mydatamyconsent.auth.*;
import com.mydatamyconsent.models.*;
import com.mydatamyconsent.api.IndividualsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.mydatamyconsent.com");
// Configure OAuth2 access token for authorization: OAuth2ClientCredentials
OAuth OAuth2ClientCredentials = (OAuth) defaultClient.getAuthentication("OAuth2ClientCredentials");
OAuth2ClientCredentials.setAccessToken("YOUR ACCESS TOKEN");
IndividualsApi apiInstance = new IndividualsApi(defaultClient);
String consentId = "consentId_example"; // String |
String documentId = "documentId_example"; // String |
try {
ConsentedDocument result = apiInstance.v1IndividualsConsentsConsentIdDocumentsDocumentIdGet(consentId, documentId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling IndividualsApi#v1IndividualsConsentsConsentIdDocumentsDocumentIdGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
consentId | String | ||
documentId | String |
- Content-Type: Not defined
- Accept: application/json; charset=utf-8
Status code | Description | Response headers |
---|---|---|
200 | - | |
400 | - | |
401 | - | |
404 | - | |
500 | - |
List<ConsentedDocument> v1IndividualsConsentsConsentIdDocumentsGet(consentId)
Get Individual consented document by consent id.
// Import classes:
import com.mydatamyconsent.ApiClient;
import com.mydatamyconsent.ApiException;
import com.mydatamyconsent.Configuration;
import com.mydatamyconsent.auth.*;
import com.mydatamyconsent.models.*;
import com.mydatamyconsent.api.IndividualsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.mydatamyconsent.com");
// Configure OAuth2 access token for authorization: OAuth2ClientCredentials
OAuth OAuth2ClientCredentials = (OAuth) defaultClient.getAuthentication("OAuth2ClientCredentials");
OAuth2ClientCredentials.setAccessToken("YOUR ACCESS TOKEN");
IndividualsApi apiInstance = new IndividualsApi(defaultClient);
String consentId = "consentId_example"; // String |
try {
List<ConsentedDocument> result = apiInstance.v1IndividualsConsentsConsentIdDocumentsGet(consentId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling IndividualsApi#v1IndividualsConsentsConsentIdDocumentsGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
consentId | String |
- Content-Type: Not defined
- Accept: application/json; charset=utf-8
Status code | Description | Response headers |
---|---|---|
200 | - | |
400 | - | |
401 | - | |
404 | - | |
500 | - |
FinancialAccount v1IndividualsConsentsConsentIdFinancialAccountsAccountIdGet(consentId, accountId)
Get individual consented financial account details.
// Import classes:
import com.mydatamyconsent.ApiClient;
import com.mydatamyconsent.ApiException;
import com.mydatamyconsent.Configuration;
import com.mydatamyconsent.auth.*;
import com.mydatamyconsent.models.*;
import com.mydatamyconsent.api.IndividualsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.mydatamyconsent.com");
// Configure OAuth2 access token for authorization: OAuth2ClientCredentials
OAuth OAuth2ClientCredentials = (OAuth) defaultClient.getAuthentication("OAuth2ClientCredentials");
OAuth2ClientCredentials.setAccessToken("YOUR ACCESS TOKEN");
IndividualsApi apiInstance = new IndividualsApi(defaultClient);
String consentId = "consentId_example"; // String |
String accountId = "accountId_example"; // String |
try {
FinancialAccount result = apiInstance.v1IndividualsConsentsConsentIdFinancialAccountsAccountIdGet(consentId, accountId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling IndividualsApi#v1IndividualsConsentsConsentIdFinancialAccountsAccountIdGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
consentId | String | ||
accountId | String |
- Content-Type: Not defined
- Accept: application/json; charset=utf-8
Status code | Description | Response headers |
---|---|---|
200 | - | |
400 | - | |
401 | - | |
404 | - | |
500 | - |
PaginatedListOfFinancialAccountTransactions v1IndividualsConsentsConsentIdFinancialAccountsAccountIdTransactionsGet(consentId, accountId, fromDateTime, toDateTime, pageNo, pageSize)
Get individual consented financial account transactions.
// Import classes:
import com.mydatamyconsent.ApiClient;
import com.mydatamyconsent.ApiException;
import com.mydatamyconsent.Configuration;
import com.mydatamyconsent.auth.*;
import com.mydatamyconsent.models.*;
import com.mydatamyconsent.api.IndividualsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.mydatamyconsent.com");
// Configure OAuth2 access token for authorization: OAuth2ClientCredentials
OAuth OAuth2ClientCredentials = (OAuth) defaultClient.getAuthentication("OAuth2ClientCredentials");
OAuth2ClientCredentials.setAccessToken("YOUR ACCESS TOKEN");
IndividualsApi apiInstance = new IndividualsApi(defaultClient);
String consentId = "consentId_example"; // String |
String accountId = "accountId_example"; // String |
OffsetDateTime fromDateTime = OffsetDateTime.now(); // OffsetDateTime |
OffsetDateTime toDateTime = OffsetDateTime.now(); // OffsetDateTime |
Integer pageNo = 56; // Integer |
Integer pageSize = 56; // Integer |
try {
PaginatedListOfFinancialAccountTransactions result = apiInstance.v1IndividualsConsentsConsentIdFinancialAccountsAccountIdTransactionsGet(consentId, accountId, fromDateTime, toDateTime, pageNo, pageSize);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling IndividualsApi#v1IndividualsConsentsConsentIdFinancialAccountsAccountIdTransactionsGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
consentId | String | ||
accountId | String | ||
fromDateTime | OffsetDateTime | [optional] | |
toDateTime | OffsetDateTime | [optional] | |
pageNo | Integer | [optional] | |
pageSize | Integer | [optional] |
PaginatedListOfFinancialAccountTransactions
- Content-Type: Not defined
- Accept: application/json; charset=utf-8
Status code | Description | Response headers |
---|---|---|
200 | - | |
400 | - | |
401 | - | |
404 | - | |
500 | - |
List<FinancialAccount> v1IndividualsConsentsConsentIdFinancialAccountsGet(consentId)
Get all individual consented financial accounts.
// Import classes:
import com.mydatamyconsent.ApiClient;
import com.mydatamyconsent.ApiException;
import com.mydatamyconsent.Configuration;
import com.mydatamyconsent.auth.*;
import com.mydatamyconsent.models.*;
import com.mydatamyconsent.api.IndividualsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.mydatamyconsent.com");
// Configure OAuth2 access token for authorization: OAuth2ClientCredentials
OAuth OAuth2ClientCredentials = (OAuth) defaultClient.getAuthentication("OAuth2ClientCredentials");
OAuth2ClientCredentials.setAccessToken("YOUR ACCESS TOKEN");
IndividualsApi apiInstance = new IndividualsApi(defaultClient);
String consentId = "consentId_example"; // String |
try {
List<FinancialAccount> result = apiInstance.v1IndividualsConsentsConsentIdFinancialAccountsGet(consentId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling IndividualsApi#v1IndividualsConsentsConsentIdFinancialAccountsGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
consentId | String |
- Content-Type: Not defined
- Accept: application/json; charset=utf-8
Status code | Description | Response headers |
---|---|---|
200 | - | |
400 | - | |
401 | - | |
404 | - | |
500 | - |
ConsentDetails v1IndividualsConsentsConsentIdGet(consentId)
Get Individuals consent details by consent id.
// Import classes:
import com.mydatamyconsent.ApiClient;
import com.mydatamyconsent.ApiException;
import com.mydatamyconsent.Configuration;
import com.mydatamyconsent.auth.*;
import com.mydatamyconsent.models.*;
import com.mydatamyconsent.api.IndividualsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.mydatamyconsent.com");
// Configure OAuth2 access token for authorization: OAuth2ClientCredentials
OAuth OAuth2ClientCredentials = (OAuth) defaultClient.getAuthentication("OAuth2ClientCredentials");
OAuth2ClientCredentials.setAccessToken("YOUR ACCESS TOKEN");
IndividualsApi apiInstance = new IndividualsApi(defaultClient);
String consentId = "consentId_example"; // String |
try {
ConsentDetails result = apiInstance.v1IndividualsConsentsConsentIdGet(consentId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling IndividualsApi#v1IndividualsConsentsConsentIdGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
consentId | String |
- Content-Type: Not defined
- Accept: application/json; charset=utf-8
Status code | Description | Response headers |
---|---|---|
200 | - | |
400 | - | |
401 | - | |
404 | - | |
500 | - |
FhirBundleany v1IndividualsConsentsConsentIdHealthFhirBundleGet(consentId)
Get Individual consented Health Records by consent id.
// Import classes:
import com.mydatamyconsent.ApiClient;
import com.mydatamyconsent.ApiException;
import com.mydatamyconsent.Configuration;
import com.mydatamyconsent.auth.*;
import com.mydatamyconsent.models.*;
import com.mydatamyconsent.api.IndividualsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.mydatamyconsent.com");
// Configure OAuth2 access token for authorization: OAuth2ClientCredentials
OAuth OAuth2ClientCredentials = (OAuth) defaultClient.getAuthentication("OAuth2ClientCredentials");
OAuth2ClientCredentials.setAccessToken("YOUR ACCESS TOKEN");
IndividualsApi apiInstance = new IndividualsApi(defaultClient);
String consentId = "consentId_example"; // String |
try {
FhirBundleany result = apiInstance.v1IndividualsConsentsConsentIdHealthFhirBundleGet(consentId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling IndividualsApi#v1IndividualsConsentsConsentIdHealthFhirBundleGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
consentId | String |
- Content-Type: Not defined
- Accept: application/json; charset=utf-8
Status code | Description | Response headers |
---|---|---|
200 | - | |
400 | - | |
401 | - | |
404 | - | |
500 | - |
PaginatedListOfConsents v1IndividualsConsentsGet(status, fromDateTime, toDateTime, pageNo, pageSize)
Get the paginated list of Individual consents.
// Import classes:
import com.mydatamyconsent.ApiClient;
import com.mydatamyconsent.ApiException;
import com.mydatamyconsent.Configuration;
import com.mydatamyconsent.auth.*;
import com.mydatamyconsent.models.*;
import com.mydatamyconsent.api.IndividualsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.mydatamyconsent.com");
// Configure OAuth2 access token for authorization: OAuth2ClientCredentials
OAuth OAuth2ClientCredentials = (OAuth) defaultClient.getAuthentication("OAuth2ClientCredentials");
OAuth2ClientCredentials.setAccessToken("YOUR ACCESS TOKEN");
IndividualsApi apiInstance = new IndividualsApi(defaultClient);
DataConsentStatus status = DataConsentStatus.fromValue("Pending"); // DataConsentStatus |
OffsetDateTime fromDateTime = OffsetDateTime.now(); // OffsetDateTime |
OffsetDateTime toDateTime = OffsetDateTime.now(); // OffsetDateTime |
Integer pageNo = 56; // Integer |
Integer pageSize = 56; // Integer |
try {
PaginatedListOfConsents result = apiInstance.v1IndividualsConsentsGet(status, fromDateTime, toDateTime, pageNo, pageSize);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling IndividualsApi#v1IndividualsConsentsGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
status | DataConsentStatus | [optional] [enum: Pending, Approved, Rejected, Revoked, Expired, Timeout, Canceled] | |
fromDateTime | OffsetDateTime | [optional] | |
toDateTime | OffsetDateTime | [optional] | |
pageNo | Integer | [optional] | |
pageSize | Integer | [optional] |
- Content-Type: Not defined
- Accept: application/json; charset=utf-8
Status code | Description | Response headers |
---|---|---|
200 | - | |
400 | - | |
401 | - | |
404 | - | |
500 | - |
UploadDocumentResponse v1IndividualsDocumentsIssueIssueRequestIdUploadPost(issueRequestId, _file)
Upload a document for issuance request of individual.
// Import classes:
import com.mydatamyconsent.ApiClient;
import com.mydatamyconsent.ApiException;
import com.mydatamyconsent.Configuration;
import com.mydatamyconsent.auth.*;
import com.mydatamyconsent.models.*;
import com.mydatamyconsent.api.IndividualsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.mydatamyconsent.com");
// Configure OAuth2 access token for authorization: OAuth2ClientCredentials
OAuth OAuth2ClientCredentials = (OAuth) defaultClient.getAuthentication("OAuth2ClientCredentials");
OAuth2ClientCredentials.setAccessToken("YOUR ACCESS TOKEN");
IndividualsApi apiInstance = new IndividualsApi(defaultClient);
String issueRequestId = "issueRequestId_example"; // String |
File _file = new File("/path/to/file"); // File |
try {
UploadDocumentResponse result = apiInstance.v1IndividualsDocumentsIssueIssueRequestIdUploadPost(issueRequestId, _file);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling IndividualsApi#v1IndividualsDocumentsIssueIssueRequestIdUploadPost");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
issueRequestId | String | ||
_file | File |
- Content-Type: multipart/form-data
- Accept: application/json; charset=utf-8
Status code | Description | Response headers |
---|---|---|
200 | - | |
400 | - | |
401 | - | |
404 | - | |
500 | - |
DocumentIssueRequestDetails v1IndividualsDocumentsIssuePost(documentIssueRequest)
Issue a new document to an individual user.
// Import classes:
import com.mydatamyconsent.ApiClient;
import com.mydatamyconsent.ApiException;
import com.mydatamyconsent.Configuration;
import com.mydatamyconsent.auth.*;
import com.mydatamyconsent.models.*;
import com.mydatamyconsent.api.IndividualsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.mydatamyconsent.com");
// Configure OAuth2 access token for authorization: OAuth2ClientCredentials
OAuth OAuth2ClientCredentials = (OAuth) defaultClient.getAuthentication("OAuth2ClientCredentials");
OAuth2ClientCredentials.setAccessToken("YOUR ACCESS TOKEN");
IndividualsApi apiInstance = new IndividualsApi(defaultClient);
DocumentIssueRequest documentIssueRequest = new DocumentIssueRequest(); // DocumentIssueRequest |
try {
DocumentIssueRequestDetails result = apiInstance.v1IndividualsDocumentsIssuePost(documentIssueRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling IndividualsApi#v1IndividualsDocumentsIssuePost");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
documentIssueRequest | DocumentIssueRequest |
- Content-Type: application/json; charset=utf-8
- Accept: application/json; charset=utf-8
Status code | Description | Response headers |
---|---|---|
200 | - | |
400 | - | |
401 | - | |
404 | - | |
500 | - |
IssuedDocument v1IndividualsDocumentsIssuedDocumentIdGet(documentId)
Get issued document.
// Import classes:
import com.mydatamyconsent.ApiClient;
import com.mydatamyconsent.ApiException;
import com.mydatamyconsent.Configuration;
import com.mydatamyconsent.auth.*;
import com.mydatamyconsent.models.*;
import com.mydatamyconsent.api.IndividualsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.mydatamyconsent.com");
// Configure OAuth2 access token for authorization: OAuth2ClientCredentials
OAuth OAuth2ClientCredentials = (OAuth) defaultClient.getAuthentication("OAuth2ClientCredentials");
OAuth2ClientCredentials.setAccessToken("YOUR ACCESS TOKEN");
IndividualsApi apiInstance = new IndividualsApi(defaultClient);
String documentId = "documentId_example"; // String |
try {
IssuedDocument result = apiInstance.v1IndividualsDocumentsIssuedDocumentIdGet(documentId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling IndividualsApi#v1IndividualsDocumentsIssuedDocumentIdGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
documentId | String |
- Content-Type: Not defined
- Accept: application/json; charset=utf-8
Status code | Description | Response headers |
---|---|---|
200 | - | |
400 | - | |
401 | - | |
404 | - | |
500 | - |
PaginatedListOfIssuedDocuments v1IndividualsDocumentsIssuedGet(documentTypeId, fromDateTime, toDateTime, pageNo, pageSize)
Get paginated list of issued documents of given document type.
// Import classes:
import com.mydatamyconsent.ApiClient;
import com.mydatamyconsent.ApiException;
import com.mydatamyconsent.Configuration;
import com.mydatamyconsent.auth.*;
import com.mydatamyconsent.models.*;
import com.mydatamyconsent.api.IndividualsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.mydatamyconsent.com");
// Configure OAuth2 access token for authorization: OAuth2ClientCredentials
OAuth OAuth2ClientCredentials = (OAuth) defaultClient.getAuthentication("OAuth2ClientCredentials");
OAuth2ClientCredentials.setAccessToken("YOUR ACCESS TOKEN");
IndividualsApi apiInstance = new IndividualsApi(defaultClient);
String documentTypeId = "documentTypeId_example"; // String |
OffsetDateTime fromDateTime = OffsetDateTime.now(); // OffsetDateTime |
OffsetDateTime toDateTime = OffsetDateTime.now(); // OffsetDateTime |
Integer pageNo = 56; // Integer |
Integer pageSize = 56; // Integer |
try {
PaginatedListOfIssuedDocuments result = apiInstance.v1IndividualsDocumentsIssuedGet(documentTypeId, fromDateTime, toDateTime, pageNo, pageSize);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling IndividualsApi#v1IndividualsDocumentsIssuedGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
documentTypeId | String | ||
fromDateTime | OffsetDateTime | [optional] | |
toDateTime | OffsetDateTime | [optional] | |
pageNo | Integer | [optional] | |
pageSize | Integer | [optional] |
PaginatedListOfIssuedDocuments
- Content-Type: Not defined
- Accept: application/json; charset=utf-8
Status code | Description | Response headers |
---|---|---|
200 | - | |
400 | - | |
401 | - | |
404 | - | |
500 | - |
PaginatedListOfDocumentTypes v1IndividualsDocumentsTypesGet(pageNo, pageSize)
Get paginated list of registered document types.
// Import classes:
import com.mydatamyconsent.ApiClient;
import com.mydatamyconsent.ApiException;
import com.mydatamyconsent.Configuration;
import com.mydatamyconsent.auth.*;
import com.mydatamyconsent.models.*;
import com.mydatamyconsent.api.IndividualsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.mydatamyconsent.com");
// Configure OAuth2 access token for authorization: OAuth2ClientCredentials
OAuth OAuth2ClientCredentials = (OAuth) defaultClient.getAuthentication("OAuth2ClientCredentials");
OAuth2ClientCredentials.setAccessToken("YOUR ACCESS TOKEN");
IndividualsApi apiInstance = new IndividualsApi(defaultClient);
Integer pageNo = 56; // Integer |
Integer pageSize = 56; // Integer |
try {
PaginatedListOfDocumentTypes result = apiInstance.v1IndividualsDocumentsTypesGet(pageNo, pageSize);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling IndividualsApi#v1IndividualsDocumentsTypesGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
pageNo | Integer | [optional] | |
pageSize | Integer | [optional] |
- Content-Type: Not defined
- Accept: application/json; charset=utf-8
Status code | Description | Response headers |
---|---|---|
200 | - | |
400 | - | |
401 | - | |
404 | - | |
500 | - |