keyper.Covid.Backend (2021-03-31)
Download OpenAPI specification:Download
Public API for keyper's Health Protection Services.
Testsystem
Please use https://api.c19t.net/v1 for the test system and as JWT audience.
Create a new account
Request Body schema: application/json
| name required | string |
| language | string or null |
string or null | |
| phone | string or null |
object (CreateIdentityDto) | |
object (CreateIdentityDto) |
Responses
Request samples
- Payload
{- "name": "string",
- "language": "string",
- "email": "string",
- "phone": "string",
- "initialIdentity": {
- "type": "Undefined",
- "identity": "string",
- "key": "string"
}, - "otherIdentity": {
- "type": "Undefined",
- "identity": "string",
- "key": "string"
}
}Response samples
- 201
- 409
{- "accountKey": "a1ba9121-91cb-4c1e-a87d-5728c28cdd30",
- "account_key": "8d097bc0-5265-47eb-90ab-cc8e3a1e4f74",
- "name": "string",
- "email": "string",
- "phone": "string",
- "language": "string",
- "identities": [
- {
- "type": "Undefined",
- "identity": "string",
- "key": "string",
- "visualIdentity": "string",
- "activated": true,
- "createdAt": "2019-08-24T14:15:22Z"
}
], - "verificationLevel": "unverified"
}Response samples
- 200
- 409
{- "accountKey": "a1ba9121-91cb-4c1e-a87d-5728c28cdd30",
- "account_key": "8d097bc0-5265-47eb-90ab-cc8e3a1e4f74",
- "name": "string",
- "email": "string",
- "phone": "string",
- "language": "string",
- "identities": [
- {
- "type": "Undefined",
- "identity": "string",
- "key": "string",
- "visualIdentity": "string",
- "activated": true,
- "createdAt": "2019-08-24T14:15:22Z"
}
], - "verificationLevel": "unverified"
}Update account's profile
Request Body schema: application/json
| name | string or null |
string or null | |
| phone | string or null |
| language | string or null |
Responses
Request samples
- Payload
{- "name": "string",
- "email": "string",
- "phone": "string",
- "language": "string"
}Response samples
- 201
- 409
{- "accountKey": "a1ba9121-91cb-4c1e-a87d-5728c28cdd30",
- "account_key": "8d097bc0-5265-47eb-90ab-cc8e3a1e4f74",
- "name": "string",
- "email": "string",
- "phone": "string",
- "language": "string",
- "identities": [
- {
- "type": "Undefined",
- "identity": "string",
- "key": "string",
- "visualIdentity": "string",
- "activated": true,
- "createdAt": "2019-08-24T14:15:22Z"
}
], - "verificationLevel": "unverified"
}Add a new notification subscription for an account
Request Body schema:
| endpoint required | string <email> |
| topics required | Array of strings (AccountNotificationTopicEnum) non-empty Items Value: "test_not_checked_in" |
Responses
Request samples
- Payload
{- "endpoint": "user@example.com",
- "topics": [
- "test_not_checked_in"
]
}Response samples
- 201
- 409
{- "subscriptionArn": "string",
- "endpoint": "string",
- "topics": [
- "test_not_checked_in"
]
}Update an existing notification subscription for an account
Request Body schema:
| subscriptionArn required | string |
| topics required | Array of strings (AccountNotificationTopicEnum) non-empty Items Value: "test_not_checked_in" |
Responses
Request samples
- Payload
{- "subscriptionArn": "string",
- "topics": [
- "test_not_checked_in"
]
}Response samples
- 200
- 409
{- "subscriptionArn": "string",
- "endpoint": "string",
- "topics": [
- "test_not_checked_in"
]
}Delete an existing notification subscription for an account
Request Body schema:
| subscriptionArn required | string |
Responses
Request samples
- Payload
{- "subscriptionArn": "string"
}Response samples
- 409
{- "type": "string",
- "title": "string",
- "status": 0,
- "detail": "string",
- "instance": "string",
- "property1": null,
- "property2": null
}Verify an account
Request Body schema: application/json
| level required | string (AccountVerificationLevelEnum) Enum: "unverified" "person" |
object (FieldsDto) |
Responses
Request samples
- Payload
{- "level": "unverified",
- "fields": {
- "firstName": "string",
- "lastName": "string"
}
}Response samples
- 200
- 409
{- "currentLevel": "unverified",
- "levels": [
- {
- "level": "unverified",
- "timestamp": "2019-08-24T14:15:22Z"
}
]
}Get upcoming appointments
Get a list of the upcoming 25 appointments for the currently logged in organization.If a search parameter is applied, then the search happens for all upcoming appointments of the current day.
query Parameters
| search | string |
Responses
Response samples
- 200
- 409
{- "appointments": [
- {
- "appointmentId": "string",
- "appointmentCode": "string",
- "startsAt": "2019-08-24T14:15:22Z",
- "endsAt": "2019-08-24T14:15:22Z",
- "customerName": "string"
}
]
}Response samples
- 200
- 409
{- "state": "Unknown",
- "externalReference": "string",
- "test": {
- "type": "string",
- "hexColor": "string",
- "validationRegex": "string"
}, - "pii": {
- "salutation": "string",
- "title": "string",
- "firstName": "string",
- "lastName": "string",
- "gender": "string",
- "emailAddress": "string",
- "phoneNumber": "string",
- "dateOfBirth": "2019-08-24T14:15:22Z",
- "insuranceCardNumber": "string",
- "idNumber": "string",
- "language": "string",
- "address": {
- "city": "string",
- "postalCode": "string",
- "street": "string",
- "country": "string"
}
}, - "service": {
- "name": "string",
- "id": "string",
- "test": {
- "type": "unknown",
- "manufacturer": "unknown",
- "material": "unknown"
}, - "info": "string",
- "scopedOrganizationId": "string"
}, - "metadata": {
- "paidOnline": true,
- "paymentRequired": true,
- "markedAsPaid": true,
- "questionnaireResult": "string"
}
}Update appointment
path Parameters
| appointmentID required | string |
Request Body schema: application/json
object (UpdateBookingAppointmentPiiDto) | |
object (UpdateBookingAppointmentServiceDto) |
Responses
Request samples
- Payload
{- "pii": {
- "first_name": "string",
- "last_name": "string",
- "date_of_birth": "string",
- "id_number": "string",
- "insurance_card_number": "string",
- "email_address": "string",
- "phone_number": "string"
}, - "service": {
- "id": "string"
}
}Response samples
- 409
{- "type": "string",
- "title": "string",
- "status": 0,
- "detail": "string",
- "instance": "string",
- "property1": null,
- "property2": null
}Set the payment state of an appointment. This doesn´t influence the online payment state.
path Parameters
| appointmentID required | string |
Request Body schema: application/json
| markedAsPaid required | boolean |
Responses
Request samples
- Payload
{- "markedAsPaid": true
}Response samples
- 409
{- "type": "string",
- "title": "string",
- "status": 0,
- "detail": "string",
- "instance": "string",
- "property1": null,
- "property2": null
}Get services (test types) from booking system
query Parameters
| useDefaultServices | boolean Default: false |
Responses
Response samples
- 200
- 409
{- "services": [
- {
- "name": "string",
- "id": "string",
- "test": {
- "type": "unknown",
- "manufacturer": "unknown",
- "material": "unknown"
}, - "info": "string",
- "scopedOrganizationId": "string"
}
]
}Response samples
- 200
- 409
{- "valid": true,
- "pii": {
- "name": "string",
- "year_of_birth": "string",
- "date_of_birth": "2019-08-24T14:15:22Z"
}, - "certificates": [
- {
- "name": "string",
- "extra_data": "string",
- "issuer": "string",
- "issuer_ids": [
- "string"
], - "owner": "string",
- "revoked": true,
- "test_created_at": "2019-08-24T14:15:22Z",
- "test_code": "string"
}
]
}Request samples
- Payload
{- "value": "string"
}Response samples
- 200
- 409
{- "valid": true,
- "pii": {
- "name": "string",
- "year_of_birth": "string",
- "date_of_birth": "2019-08-24T14:15:22Z"
}, - "certificates": [
- {
- "name": "string",
- "extra_data": "string",
- "issuer": "string",
- "issuer_ids": [
- "string"
], - "owner": "string",
- "revoked": true,
- "test_created_at": "2019-08-24T14:15:22Z",
- "test_code": "string"
}
]
}Get an organizations events
Events are logged whenever something interesting happens in the system for the organization (e.g. test checkin, result entered, etc.)
query Parameters
| limit | integer <int32> [ 1 .. 50 ] |
| starting_after | string |
| starting_at | string |
| topic | string |
Responses
Response samples
- 200
- 409
{- "events": [
- {
- "event_id": "string",
- "topic": "string",
- "api_version": "string",
- "payload": null,
- "created_at": "2019-08-24T14:15:22Z",
- "account": {
- "account_key": "8d097bc0-5265-47eb-90ab-cc8e3a1e4f74",
- "name": "string"
}
}
], - "next_event_id": "string"
}Response samples
- 200
- 409
{- "events": [
- {
- "event_id": "string",
- "topic": "string",
- "api_version": "string",
- "payload": null,
- "created_at": "2019-08-24T14:15:22Z",
- "account": {
- "account_key": "8d097bc0-5265-47eb-90ab-cc8e3a1e4f74",
- "name": "string"
}
}
], - "next_event_id": "string"
}Perform a check-in for a test
Request Body schema: application/json
| externalReference required | string |
| encodedService required | string |
object (CreateCheckInIdentityDto) | |
Array of objects or null (CreateCommunicationChannelInParameter) | |
| suppressCustomerNotification | boolean or null |
| organizationID | string or null |
| timestamp | string or null <date-time> |
| testCode required | string <= 100 characters |
Responses
Request samples
- Payload
{- "externalReference": "string",
- "encodedService": "string",
- "identity": {
- "type": "unknown",
- "description": "string",
- "verificationLevel": "user"
}, - "communicationChannels": [
- {
- "type": "phone",
- "language": "string",
- "target": "string"
}
], - "suppressCustomerNotification": true,
- "organizationID": "string",
- "timestamp": "2019-08-24T14:15:22Z",
- "testCode": "string"
}Response samples
- 201
- 409
{- "externalReference": "string",
- "encodedService": "string",
- "identity": {
- "type": "unknown",
- "description": "string",
- "verificationLevel": "user"
}, - "communicationChannels": [
- {
- "type": "phone",
- "language": "string",
- "target": "string"
}
], - "suppressCustomerNotification": true,
- "organizationID": "string",
- "timestamp": "2019-08-24T14:15:22Z",
- "testCode": "string"
}Perform test check-in / create new test execution Deprecated
path Parameters
| testCode required | string |
Request Body schema:
| external_reference required | string |
| test_code required | string |
object (SaveTestExecutionIdentityDto) | |
| test_type required | string |
Array of objects or null (CreateCommunicationChannelInParameter) | |
| suppress_customer_notification | boolean or null |
Responses
Request samples
- Payload
{- "external_reference": "string",
- "test_code": "string",
- "identity": {
- "identity_type": "unknown",
- "description": "string",
- "verification_level": "user"
}, - "test_type": "string",
- "communication_channels": [
- {
- "type": "phone",
- "language": "string",
- "target": "string"
}
], - "suppress_customer_notification": true
}Get test check-in state / execution state
Please note: the permission check for this call works differnt to the check of other calls.It´s possible to get the test execution state of every test the account has access to and not only of the currently logged in organization!
path Parameters
| testCode required | string |
Responses
Response samples
- 200
- 409
{- "test_code": "string",
- "test_type": "unknown",
- "test": {
- "type": "unknown",
- "manufacturer": "unknown",
- "material": "unknown"
}, - "created_at": "2019-08-24T14:15:22Z",
- "state": "not_started",
- "result": "unknown",
- "external_reference": "string",
- "flags": {
- "suppress_customer_notification": {
- "show": true,
- "checked": true
}, - "suppress_health_authority_notification": {
- "show": true,
- "checked": true
}
}, - "result_options": [
- "unknown"
], - "projectName": "string",
- "projectType": "string",
- "certificateInfo": {
- "certifiedBy": "string",
- "co2E": 0.1,
- "timePeriod": {
- "start": "2019-08-24T14:15:22Z",
- "end": "2019-08-24T14:15:22Z"
}, - "metafields": {
- "property1": null,
- "property2": null
}
}, - "projectInfo": {
- "organizationReference": "string",
- "name": "string",
- "operator": "string",
- "type": "string",
- "certifiedBy": "string",
- "startDate": "2019-08-24T14:15:22Z",
- "updates": "string",
- "address": {
- "street": "string",
- "city": "string",
- "postalCode": "string",
- "countryCode": "string"
}, - "metafields": {
- "property1": null,
- "property2": null
}
}, - "organizationInfo": {
- "name": "string",
- "uid": "string",
- "phone": "string",
- "mail": "string"
}
}Perform a check-in and enter result of vaccination
Request Body schema: application/json
| externalReference required | string |
| encodedService required | string |
object (CreateCheckInIdentityDto) | |
Array of objects or null (CreateCommunicationChannelInParameter) | |
| suppressCustomerNotification | boolean or null |
| organizationID | string or null |
| timestamp | string or null <date-time> |
| numberOfDoses required | integer <int32> |
| totalNumberOfDoses required | integer <int32> |
| vaccinationDate | string or null <date> |
| countryOfVaccination | string or null <= 2 characters |
| batchNumber | string or null |
| isConfirmation | boolean or null |
Responses
Request samples
- Payload
{- "externalReference": "string",
- "encodedService": "string",
- "identity": {
- "type": "unknown",
- "description": "string",
- "verificationLevel": "user"
}, - "communicationChannels": [
- {
- "type": "phone",
- "language": "string",
- "target": "string"
}
], - "suppressCustomerNotification": true,
- "organizationID": "string",
- "timestamp": "2019-08-24T14:15:22Z",
- "numberOfDoses": 0,
- "totalNumberOfDoses": 0,
- "vaccinationDate": "2019-08-24",
- "countryOfVaccination": "st",
- "batchNumber": "string",
- "isConfirmation": true
}Response samples
- 201
- 409
{- "externalReference": "string",
- "encodedService": "string",
- "identity": {
- "type": "unknown",
- "description": "string",
- "verificationLevel": "user"
}, - "communicationChannels": [
- {
- "type": "phone",
- "language": "string",
- "target": "string"
}
], - "suppressCustomerNotification": true,
- "organizationID": "string",
- "timestamp": "2019-08-24T14:15:22Z",
- "numberOfDoses": 0,
- "totalNumberOfDoses": 0,
- "vaccinationDate": "2019-08-24",
- "countryOfVaccination": "st",
- "batchNumber": "string",
- "isConfirmation": true
}Response samples
- 200
- 409
{- "groupName": "unknown",
- "backgroundColor": "string",
- "mainColor": "string",
- "mainDarkColor": "string",
- "mainLightColor": "string",
- "mainLightest": "string",
- "orangeColor": "string",
- "orangeBackground": "string",
- "textColor": "string",
- "textOrange": "string",
- "linkedText": "string",
- "textMidColor": "string",
- "logoUrl": "string",
- "createdDate": "2019-08-24T14:15:22Z",
- "updatedDate": "2019-08-24T14:15:22Z"
}Login an account by an identity
Request Body schema:
| type | string (IdentityType) Enum: "Undefined" "IDCard" "UsernamePassword" "Microsoft" "ApiKey" "Keycloak" |
| identity | string or null |
| key | string or null |
Responses
Request samples
- Payload
{- "type": "Undefined",
- "identity": "string",
- "key": "string"
}Login the default app account for an organization
Request Body schema:
| appId required | string |
| organizationId required | string |
| secretKey required | string |
| scope required | string |
Responses
Request samples
- Payload
{- "appId": "string",
- "organizationId": "string",
- "secretKey": "string",
- "scope": "string"
}Response samples
- 401
Create a new app
Request Body schema:
| name required | string |
| apiVersion required | string |
| iconUrl | string or null |
| scopes required | Array of strings (AppScopeEnum) Items Enum: "test.read" "test.write" "pii.read" "test-execution.read" "test-execution.write" "organization.read" "organization.write" "booking.read" "booking.write" "test.pool.manage" "test.result.write" |
Responses
Request samples
- Payload
{- "name": "string",
- "apiVersion": "string",
- "iconUrl": "string",
- "scopes": [
- "test.read"
]
}/organization
Request Body schema:
| name required | string |
| keyperApiKey required | string |
| timezone required | string |
| groupName required | string (GroupTypeEnum) Enum: "unknown" "cov19" "co2" "edu" "doc" "vaccine" "plastic" |
| gln | string or null |
| contactPhone | string or null |
| contactEmail | string or null |
| website | string or null <uri> |
| mainColor | string or null |
object (SaveOrganizationAddressDto) | |
| requiredVerificationLevel | string (AccountVerificationLevelEnum) Enum: "unverified" "person" |
object (SaveOrganizationFeatureDto) |
Responses
Request samples
- Payload
{- "name": "string",
- "keyperApiKey": "string",
- "timezone": "string",
- "groupName": "unknown",
- "gln": "string",
- "contactPhone": "string",
- "contactEmail": "string",
- "mainColor": "string",
- "address": {
- "countryCode": "string",
- "postalCode": "string",
- "city": "string",
- "street": "string",
- "additionalAddress": "string"
}, - "requiredVerificationLevel": "unverified",
- "features": {
- "enableAppointmentList": true,
- "useNewBarcodeLibrary": true
}
}/organization/{organizationID}
path Parameters
| organizationID required | string |
Request Body schema:
| name required | string |
| timezone required | string |
| gln | string or null |
| contactPhone | string or null |
| contactEmail | string or null |
| website | string or null |
| mainColor | string or null |
object (SaveOrganizationAddressDto) | |
| requiredVerificationLevel | string (AccountVerificationLevelEnum) Enum: "unverified" "person" |
object (SaveOrganizationFeatureDto) |
Responses
Request samples
- Payload
{- "name": "string",
- "timezone": "string",
- "gln": "string",
- "contactPhone": "string",
- "contactEmail": "string",
- "website": "string",
- "mainColor": "string",
- "address": {
- "countryCode": "string",
- "postalCode": "string",
- "city": "string",
- "street": "string",
- "additionalAddress": "string"
}, - "requiredVerificationLevel": "unverified",
- "features": {
- "enableAppointmentList": true,
- "useNewBarcodeLibrary": true
}
}/organization/{organizationID}/communication-options
path Parameters
| organizationID required | string |
Request Body schema:
required | Array of objects (SaveCommunicationOptionDto) | ||||||
Array
| |||||||
Responses
Request samples
- Payload
{- "options": [
- {
- "id": "email",
- "disabled": true,
- "selected": true
}
]
}Get all accounts that are linked to the organization.
path Parameters
| organizationID required | string |
query Parameters
| search | string |
| role | Array of strings |
| communicationChannel | Array of strings (CommunicationChannelTypeEnum) Items Enum: "phone" "email" |
| offset | integer <int32> |
| limit | integer <int32> |
Responses
Response samples
- 200
- 409
{- "accounts": [
- {
- "accountKey": "a1ba9121-91cb-4c1e-a87d-5728c28cdd30",
- "account_key": "8d097bc0-5265-47eb-90ab-cc8e3a1e4f74",
- "name": "string",
- "email": "string",
- "phone": "string",
- "language": "string",
- "identities": [
- {
- "type": "Undefined",
- "identity": "string",
- "key": "string",
- "visualIdentity": "string",
- "activated": true,
- "createdAt": "2019-08-24T14:15:22Z"
}
], - "verificationLevel": "unverified",
- "roles": [
- "test.checkin.write"
], - "identityCount": 0,
- "identity_count": 0,
- "organizations": [
- {
- "organizationId": "string",
- "organization_id": "string",
- "name": "string",
- "timezone": "string",
- "groupName": "unknown",
- "gln": "string",
- "contactPhone": "string",
- "contactEmail": "string",
- "website": "string",
- "mainColor": "string",
- "address": {
- "countryCode": "string",
- "postalCode": "string",
- "city": "string",
- "street": "string",
- "additionalAddress": "string"
}, - "requiredVerificationLevel": "unverified",
- "features": {
- "enableAppointmentList": true,
- "useNewBarcodeLibrary": true
}
}
]
}
], - "totalNumber": 0
}Create a new account and link in to the organization.
path Parameters
| organizationID required | string |
Request Body schema:
| name required | string |
| language | string or null |
string or null | |
| phone | string or null |
object (CreateIdentityDto) | |
object (CreateIdentityDto) | |
| roles required | Array of strings (RoleEnum) Items Enum: "test.checkin.write" "test.result.write" "organization.manage" "cfp.read" "apps.read" "apps.manage" "vaccination.checkin.write" "organization.test.manage" "support" "security.token.exchange" "test.label.generate" "organization.write" "roles.unspecified" |
| additionalOrganizations | Array of strings or null |
Responses
Request samples
- Payload
{- "name": "string",
- "language": "string",
- "email": "string",
- "phone": "string",
- "initialIdentity": {
- "type": "Undefined",
- "identity": "string",
- "key": "string"
}, - "otherIdentity": {
- "type": "Undefined",
- "identity": "string",
- "key": "string"
}, - "roles": [
- "test.checkin.write"
], - "additionalOrganizations": [
- "string"
]
}Response samples
- 201
- 409
{- "accountKey": "a1ba9121-91cb-4c1e-a87d-5728c28cdd30",
- "account_key": "8d097bc0-5265-47eb-90ab-cc8e3a1e4f74",
- "name": "string",
- "email": "string",
- "phone": "string",
- "language": "string",
- "identities": [
- {
- "type": "Undefined",
- "identity": "string",
- "key": "string",
- "visualIdentity": "string",
- "activated": true,
- "createdAt": "2019-08-24T14:15:22Z"
}
], - "verificationLevel": "unverified",
- "roles": [
- "test.checkin.write"
], - "identityCount": 0,
- "identity_count": 0,
- "organizations": [
- {
- "organizationId": "string",
- "organization_id": "string",
- "name": "string",
- "timezone": "string",
- "groupName": "unknown",
- "gln": "string",
- "contactPhone": "string",
- "contactEmail": "string",
- "website": "string",
- "mainColor": "string",
- "address": {
- "countryCode": "string",
- "postalCode": "string",
- "city": "string",
- "street": "string",
- "additionalAddress": "string"
}, - "requiredVerificationLevel": "unverified",
- "features": {
- "enableAppointmentList": true,
- "useNewBarcodeLibrary": true
}
}
]
}Get a single linked accounts data.
path Parameters
| accountKey required | string <uuid> |
| organizationID required | string |
Responses
Response samples
- 200
- 409
{- "accountKey": "a1ba9121-91cb-4c1e-a87d-5728c28cdd30",
- "account_key": "8d097bc0-5265-47eb-90ab-cc8e3a1e4f74",
- "name": "string",
- "email": "string",
- "phone": "string",
- "language": "string",
- "identities": [
- {
- "type": "Undefined",
- "identity": "string",
- "key": "string",
- "visualIdentity": "string",
- "activated": true,
- "createdAt": "2019-08-24T14:15:22Z"
}
], - "verificationLevel": "unverified",
- "roles": [
- "test.checkin.write"
], - "identityCount": 0,
- "identity_count": 0,
- "organizations": [
- {
- "organizationId": "string",
- "organization_id": "string",
- "name": "string",
- "timezone": "string",
- "groupName": "unknown",
- "gln": "string",
- "contactPhone": "string",
- "contactEmail": "string",
- "website": "string",
- "mainColor": "string",
- "address": {
- "countryCode": "string",
- "postalCode": "string",
- "city": "string",
- "street": "string",
- "additionalAddress": "string"
}, - "requiredVerificationLevel": "unverified",
- "features": {
- "enableAppointmentList": true,
- "useNewBarcodeLibrary": true
}
}
]
}Remove an account from an organization. The account will NOT be deleted!
path Parameters
| accountKey required | string <uuid> |
| organizationID required | string |
Responses
Response samples
- 204
- 409
{- "accountKey": "a1ba9121-91cb-4c1e-a87d-5728c28cdd30",
- "account_key": "8d097bc0-5265-47eb-90ab-cc8e3a1e4f74",
- "name": "string",
- "email": "string",
- "phone": "string",
- "language": "string",
- "identities": [
- {
- "type": "Undefined",
- "identity": "string",
- "key": "string",
- "visualIdentity": "string",
- "activated": true,
- "createdAt": "2019-08-24T14:15:22Z"
}
], - "verificationLevel": "unverified",
- "roles": [
- "test.checkin.write"
], - "identityCount": 0,
- "identity_count": 0,
- "organizations": [
- {
- "organizationId": "string",
- "organization_id": "string",
- "name": "string",
- "timezone": "string",
- "groupName": "unknown",
- "gln": "string",
- "contactPhone": "string",
- "contactEmail": "string",
- "website": "string",
- "mainColor": "string",
- "address": {
- "countryCode": "string",
- "postalCode": "string",
- "city": "string",
- "street": "string",
- "additionalAddress": "string"
}, - "requiredVerificationLevel": "unverified",
- "features": {
- "enableAppointmentList": true,
- "useNewBarcodeLibrary": true
}
}
]
}Link an existing account to an organization.
path Parameters
| accountKey required | string <uuid> |
| organizationID required | string |
Request Body schema:
| roles | Array of strings or null (RoleEnum) Enum: "test.checkin.write" "test.result.write" "organization.manage" "cfp.read" "apps.read" "apps.manage" "vaccination.checkin.write" "organization.test.manage" "support" "security.token.exchange" "test.label.generate" "organization.write" "roles.unspecified" |
Responses
Request samples
- Payload
{- "roles": [
- "test.checkin.write"
]
}Response samples
- 201
- 409
{- "accountKey": "a1ba9121-91cb-4c1e-a87d-5728c28cdd30",
- "account_key": "8d097bc0-5265-47eb-90ab-cc8e3a1e4f74",
- "name": "string",
- "email": "string",
- "phone": "string",
- "language": "string",
- "identities": [
- {
- "type": "Undefined",
- "identity": "string",
- "key": "string",
- "visualIdentity": "string",
- "activated": true,
- "createdAt": "2019-08-24T14:15:22Z"
}
], - "verificationLevel": "unverified",
- "roles": [
- "test.checkin.write"
], - "identityCount": 0,
- "identity_count": 0,
- "organizations": [
- {
- "organizationId": "string",
- "organization_id": "string",
- "name": "string",
- "timezone": "string",
- "groupName": "unknown",
- "gln": "string",
- "contactPhone": "string",
- "contactEmail": "string",
- "website": "string",
- "mainColor": "string",
- "address": {
- "countryCode": "string",
- "postalCode": "string",
- "city": "string",
- "street": "string",
- "additionalAddress": "string"
}, - "requiredVerificationLevel": "unverified",
- "features": {
- "enableAppointmentList": true,
- "useNewBarcodeLibrary": true
}
}
]
}Update an accounts roles in the organization.
path Parameters
| accountKey required | string <uuid> |
| organizationID required | string |
Request Body schema:
| roles | Array of strings or null (RoleEnum) Enum: "test.checkin.write" "test.result.write" "organization.manage" "cfp.read" "apps.read" "apps.manage" "vaccination.checkin.write" "organization.test.manage" "support" "security.token.exchange" "test.label.generate" "organization.write" "roles.unspecified" |
Responses
Request samples
- Payload
{- "roles": [
- "test.checkin.write"
]
}Response samples
- 200
- 409
{- "accountKey": "a1ba9121-91cb-4c1e-a87d-5728c28cdd30",
- "account_key": "8d097bc0-5265-47eb-90ab-cc8e3a1e4f74",
- "name": "string",
- "email": "string",
- "phone": "string",
- "language": "string",
- "identities": [
- {
- "type": "Undefined",
- "identity": "string",
- "key": "string",
- "visualIdentity": "string",
- "activated": true,
- "createdAt": "2019-08-24T14:15:22Z"
}
], - "verificationLevel": "unverified",
- "roles": [
- "test.checkin.write"
], - "identityCount": 0,
- "identity_count": 0,
- "organizations": [
- {
- "organizationId": "string",
- "organization_id": "string",
- "name": "string",
- "timezone": "string",
- "groupName": "unknown",
- "gln": "string",
- "contactPhone": "string",
- "contactEmail": "string",
- "website": "string",
- "mainColor": "string",
- "address": {
- "countryCode": "string",
- "postalCode": "string",
- "city": "string",
- "street": "string",
- "additionalAddress": "string"
}, - "requiredVerificationLevel": "unverified",
- "features": {
- "enableAppointmentList": true,
- "useNewBarcodeLibrary": true
}
}
]
}Update an accounts name in the organization.
path Parameters
| accountKey required | string <uuid> |
| organizationID required | string |
Request Body schema:
| updatedName required | string |
Responses
Request samples
- Payload
{- "updatedName": "string"
}Response samples
- 200
- 409
{- "accountKey": "a1ba9121-91cb-4c1e-a87d-5728c28cdd30",
- "account_key": "8d097bc0-5265-47eb-90ab-cc8e3a1e4f74",
- "name": "string",
- "email": "string",
- "phone": "string",
- "language": "string",
- "identities": [
- {
- "type": "Undefined",
- "identity": "string",
- "key": "string",
- "visualIdentity": "string",
- "activated": true,
- "createdAt": "2019-08-24T14:15:22Z"
}
], - "verificationLevel": "unverified",
- "roles": [
- "test.checkin.write"
], - "identityCount": 0,
- "identity_count": 0,
- "organizations": [
- {
- "organizationId": "string",
- "organization_id": "string",
- "name": "string",
- "timezone": "string",
- "groupName": "unknown",
- "gln": "string",
- "contactPhone": "string",
- "contactEmail": "string",
- "website": "string",
- "mainColor": "string",
- "address": {
- "countryCode": "string",
- "postalCode": "string",
- "city": "string",
- "street": "string",
- "additionalAddress": "string"
}, - "requiredVerificationLevel": "unverified",
- "features": {
- "enableAppointmentList": true,
- "useNewBarcodeLibrary": true
}
}
]
}Update an accounts organizations in the organization.
path Parameters
| accountKey required | string <uuid> |
| organizationID required | string |
Request Body schema:
| updatedOrganizations | Array of strings or null |
| isDeleted | boolean |
Responses
Request samples
- Payload
{- "updatedOrganizations": [
- "string"
], - "isDeleted": true
}Response samples
- 200
- 409
{- "accountKey": "a1ba9121-91cb-4c1e-a87d-5728c28cdd30",
- "account_key": "8d097bc0-5265-47eb-90ab-cc8e3a1e4f74",
- "name": "string",
- "email": "string",
- "phone": "string",
- "language": "string",
- "identities": [
- {
- "type": "Undefined",
- "identity": "string",
- "key": "string",
- "visualIdentity": "string",
- "activated": true,
- "createdAt": "2019-08-24T14:15:22Z"
}
], - "verificationLevel": "unverified",
- "roles": [
- "test.checkin.write"
], - "identityCount": 0,
- "identity_count": 0,
- "organizations": [
- {
- "organizationId": "string",
- "organization_id": "string",
- "name": "string",
- "timezone": "string",
- "groupName": "unknown",
- "gln": "string",
- "contactPhone": "string",
- "contactEmail": "string",
- "website": "string",
- "mainColor": "string",
- "address": {
- "countryCode": "string",
- "postalCode": "string",
- "city": "string",
- "street": "string",
- "additionalAddress": "string"
}, - "requiredVerificationLevel": "unverified",
- "features": {
- "enableAppointmentList": true,
- "useNewBarcodeLibrary": true
}
}
]
}Send a delete warning to the list of accounts in the organization.
path Parameters
| organizationID required | string |
Request Body schema:
Array of objects or null (AccountInParameter) | |||
Array
| |||
Responses
Request samples
- Payload
{- "accounts": [
- {
- "accountKey": "a1ba9121-91cb-4c1e-a87d-5728c28cdd30"
}
]
}Response samples
- 409
{- "type": "string",
- "title": "string",
- "status": 0,
- "detail": "string",
- "instance": "string",
- "property1": null,
- "property2": null
}Get all organization's accounts that should be deleted
path Parameters
| organizationID required | string |
query Parameters
| daysToWait | integer <int32> Default: 7 |
Responses
Response samples
- 200
- 409
{- "accounts": [
- {
- "accountKey": "a1ba9121-91cb-4c1e-a87d-5728c28cdd30"
}
], - "totalNumber": 0
}Remove a list of accounts in the organization.
path Parameters
| organizationID required | string |
Request Body schema:
Array of objects or null (AccountInParameter) | |||
Array
| |||
Responses
Request samples
- Payload
{- "accounts": [
- {
- "accountKey": "a1ba9121-91cb-4c1e-a87d-5728c28cdd30"
}
]
}Response samples
- 409
{- "type": "string",
- "title": "string",
- "status": 0,
- "detail": "string",
- "instance": "string",
- "property1": null,
- "property2": null
}Create a personal access token
path Parameters
| organizationID required | string |
Request Body schema:
| tokenName | string or null |
| expireDate | string <date-time> |
| roles | Array of strings or null (RoleEnum) Enum: "test.checkin.write" "test.result.write" "organization.manage" "cfp.read" "apps.read" "apps.manage" "vaccination.checkin.write" "organization.test.manage" "support" "security.token.exchange" "test.label.generate" "organization.write" "roles.unspecified" |
Responses
Request samples
- Payload
{- "tokenName": "string",
- "expireDate": "2019-08-24T14:15:22Z",
- "roles": [
- "test.checkin.write"
]
}Response samples
- 201
- 409
{- "token": "string"
}Get all organizations that are linked to the account with role admin
path Parameters
| accountKey required | string <uuid> |
| organizationID required | string |
Responses
Response samples
- 200
- 409
[- {
- "organizationId": "string",
- "organization_id": "string",
- "name": "string",
- "timezone": "string",
- "groupName": "unknown",
- "gln": "string",
- "contactPhone": "string",
- "contactEmail": "string",
- "website": "string",
- "mainColor": "string",
- "address": {
- "countryCode": "string",
- "postalCode": "string",
- "city": "string",
- "street": "string",
- "additionalAddress": "string"
}, - "requiredVerificationLevel": "unverified",
- "features": {
- "enableAppointmentList": true,
- "useNewBarcodeLibrary": true
}
}
]Update an organizations appointment fields
path Parameters
| organizationID required | string |
Request Body schema: application/json
| fields required | Array of strings non-empty |
Responses
Request samples
- Payload
{- "fields": [
- "string"
]
}Response samples
- 200
- 409
{- "fields": [
- "string"
]
}Create certificate connection
Register a new person and company (for the provided organization) on the CFP blockchain.
path Parameters
| organizationID required | string |
Request Body schema:
| person_name required | string |
| person_email required | string |
| organization_name required | string |
| organization_legal_id required | string |
| self_service_url | string or null |
| test_types required | Array of strings (TestTypeEnum) Items Enum: "unknown" "cov19.antigen" "cov19.pcr" "cov19.pool_pcr" "cov19.antibody" "cov19.vaccine" "co2.org" "co2.project" "co2.cert" "co2.model" "co2.container" "plastic.cert" "plastic.container" |
Responses
Request samples
- Payload
{- "person_name": "string",
- "person_email": "string",
- "organization_name": "string",
- "organization_legal_id": "string",
- "self_service_url": "string",
- "test_types": [
- "unknown"
]
}Response samples
- 409
{- "type": "string",
- "title": "string",
- "status": 0,
- "detail": "string",
- "instance": "string",
- "property1": null,
- "property2": null
}Create new communication text
path Parameters
| organizationID required | string |
Request Body schema: application/json
| type required | string (CommunicationChannelTypeEnum) Enum: "phone" "email" |
| eventType required | string |
| testType | string (TestTypeEnum) Enum: "unknown" "cov19.antigen" "cov19.pcr" "cov19.pool_pcr" "cov19.antibody" "cov19.vaccine" "co2.org" "co2.project" "co2.cert" "co2.model" "co2.container" "plastic.cert" "plastic.container" |
| result required | string (TestResultEnum) Enum: "unknown" "positive" "negative" "invalid" "done" "complex" "verified" |
| title | string or null |
| body required | string |
Array of objects or null (EventCommunicationTextTranslationDto) |
Responses
Request samples
- Payload
{- "type": "phone",
- "eventType": "string",
- "testType": "unknown",
- "result": "unknown",
- "title": "string",
- "body": "string",
- "translations": [
- {
- "language": "string",
- "type": "phone",
- "title": "string",
- "body": "string"
}
]
}Response samples
- 201
- 409
{- "id": 0,
- "type": "phone",
- "testType": "unknown",
- "result": "unknown",
- "title": "string",
- "body": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "translations": [
- {
- "language": "string",
- "title": "string",
- "body": "string"
}
]
}Response samples
- 200
- 409
{- "eventCommunicationTexts": [
- {
- "id": 0,
- "type": "phone",
- "testType": "unknown",
- "result": "unknown",
- "title": "string",
- "body": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "translations": [
- {
- "language": "string",
- "title": "string",
- "body": "string"
}
]
}
]
}Update a communication text
path Parameters
| organizationID required | string |
| id required | integer <int64> |
Request Body schema: application/json
| type required | string (CommunicationChannelTypeEnum) Enum: "phone" "email" |
| eventType required | string |
| testType | string (TestTypeEnum) Enum: "unknown" "cov19.antigen" "cov19.pcr" "cov19.pool_pcr" "cov19.antibody" "cov19.vaccine" "co2.org" "co2.project" "co2.cert" "co2.model" "co2.container" "plastic.cert" "plastic.container" |
| result required | string (TestResultEnum) Enum: "unknown" "positive" "negative" "invalid" "done" "complex" "verified" |
| title | string or null |
| body required | string |
Array of objects or null (EventCommunicationTextTranslationDto) |
Responses
Request samples
- Payload
{- "type": "phone",
- "eventType": "string",
- "testType": "unknown",
- "result": "unknown",
- "title": "string",
- "body": "string",
- "translations": [
- {
- "language": "string",
- "type": "phone",
- "title": "string",
- "body": "string"
}
]
}Response samples
- 200
- 409
{- "id": 0,
- "type": "phone",
- "testType": "unknown",
- "result": "unknown",
- "title": "string",
- "body": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "translations": [
- {
- "language": "string",
- "title": "string",
- "body": "string"
}
]
}Delete a communication text
path Parameters
| organizationID required | string |
| id required | integer <int64> |
query Parameters
| language | string |
Responses
Response samples
- 409
{- "type": "string",
- "title": "string",
- "status": 0,
- "detail": "string",
- "instance": "string",
- "property1": null,
- "property2": null
}Create or update translation of a communication text
path Parameters
| organizationID required | string |
| id required | integer <int64> |
| language required | string |
Request Body schema: application/json
| language | string or null |
| type | string (CommunicationChannelTypeEnum) Enum: "phone" "email" |
| title | string or null |
| body | string or null |
Responses
Request samples
- Payload
{- "language": "string",
- "type": "phone",
- "title": "string",
- "body": "string"
}Response samples
- 200
- 409
{- "eventCommunicationTexts": [
- {
- "id": 0,
- "type": "phone",
- "testType": "unknown",
- "result": "unknown",
- "title": "string",
- "body": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "translations": [
- {
- "language": "string",
- "title": "string",
- "body": "string"
}
]
}
]
}Delete a communication text translation.
path Parameters
| organizationID required | string |
| id required | integer <int64> |
| language required | string |
Responses
Response samples
- 409
{- "type": "string",
- "title": "string",
- "status": 0,
- "detail": "string",
- "instance": "string",
- "property1": null,
- "property2": null
}Get communication text template
path Parameters
| organizationID required | string |
query Parameters
| testType | string |
| type required | string |
| result required | string (TestResultEnum) Enum: "unknown" "positive" "negative" "invalid" "done" "complex" "verified" |
| locale | string |
Responses
Response samples
- 200
- 409
{- "body": "string",
- "title": "string"
}Response samples
- 200
- 409
{- "otpValidTill": "2019-08-24T14:15:22Z",
- "testCommunicationEvents": [
- {
- "testCode": "string",
- "messageReference": "string",
- "communicationType": "phone",
- "communicationEvents": [
- {
- "diagnostic_code": "string",
- "error_sub_type": "string",
- "error_type": "string",
- "event_type": "string",
- "feedback_reference": "string",
- "status": "string",
- "targetEmail": "string",
- "created_at": "2019-08-24T14:15:22Z"
}
]
}
], - "accountCommunicationEvents": [
- {
- "accountKey": "a1ba9121-91cb-4c1e-a87d-5728c28cdd30",
- "messageReference": "string",
- "communicationType": "phone",
- "communicationEvents": [
- {
- "diagnostic_code": "string",
- "error_sub_type": "string",
- "error_type": "string",
- "event_type": "string",
- "feedback_reference": "string",
- "status": "string",
- "targetEmail": "string",
- "created_at": "2019-08-24T14:15:22Z"
}
]
}
]
}Get DCC settings
Get an organizations currently configured settings for digital covid certificates.
path Parameters
| organizationID required | string |
Responses
Response samples
- 200
- 409
{- "organizationName": "string",
- "countryCode": "string",
- "testManufacturerCode": "string",
- "swissmedicNumber": "string",
- "otpValidTill": "2019-08-24T14:15:22Z",
- "otpUpdatedAt": "2019-08-24T14:15:22Z"
}Save DCC settings
Save settings for issuing digital covid certificates for an organization.
path Parameters
| organizationID required | string |
Request Body schema: application/json
| organizationName required | string <= 50 characters |
| countryCode required | string <= 2 characters |
| testManufacturerCode required | string |
| swissmedicNumber | string or null |
| otp | string or null |
Responses
Request samples
- Payload
{- "organizationName": "string",
- "countryCode": "st",
- "testManufacturerCode": "string",
- "swissmedicNumber": "string",
- "otp": "string"
}Response samples
- 200
- 409
{- "organizationName": "string",
- "countryCode": "string",
- "testManufacturerCode": "string",
- "swissmedicNumber": "string",
- "otpValidTill": "2019-08-24T14:15:22Z",
- "otpUpdatedAt": "2019-08-24T14:15:22Z"
}Send notification to subscribed accounts
Send a notification about a topic to all subscribed accounts of this organization.
path Parameters
| organizationID required | string |
Request Body schema:
| topic required | string (AccountNotificationTopicEnum) Value: "test_not_checked_in" |
| message required | string |
object or null |
Responses
Request samples
- Payload
{- "topic": "test_not_checked_in",
- "message": "string",
- "metafields": {
- "property1": "string",
- "property2": "string"
}
}Response samples
- 409
{- "type": "string",
- "title": "string",
- "status": 0,
- "detail": "string",
- "instance": "string",
- "property1": null,
- "property2": null
}Search for test executions
path Parameters
| organizationID required | string |
query Parameters
| search | string [ 4 .. 100 ] characters |
| date_from | string <date-time> |
| date_till | string <date-time> |
| state | string (TestExecutionStateEnum) Enum: "not_started" "pending" "finished" |
| result | string (TestResultEnum) Enum: "unknown" "positive" "negative" "invalid" "done" "complex" "verified" |
| test_type | string |
Responses
Response samples
- 200
- 409
{- "tests": [
- {
- "test_code": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "test": {
- "type": "unknown",
- "manufacturer": "unknown",
- "material": "unknown"
}, - "state": "not_started",
- "result": "unknown",
- "external_reference": "string"
}
]
}Response samples
- 200
- 409
{- "test_code": "string",
- "test": {
- "type": "unknown",
- "manufacturer": "unknown",
- "material": "unknown"
}, - "created_at": "2019-08-24T14:15:22Z",
- "state": "not_started",
- "result": "unknown",
- "result_created_at": "2019-08-24T14:15:22Z",
- "external_reference": "string",
- "mails": [
- {
- "message_reference": "string",
- "events": [
- {
- "diagnostic_code": "string",
- "error_sub_type": "string",
- "error_type": "string",
- "event_type": "string",
- "feedback_reference": "string",
- "status": "string",
- "targetEmail": "string",
- "created_at": "2019-08-24T14:15:22Z"
}
]
}
], - "history": [
- {
- "event_id": "string",
- "topic": "string",
- "api_version": "string",
- "payload": null,
- "created_at": "2019-08-24T14:15:22Z",
- "account": {
- "account_key": "8d097bc0-5265-47eb-90ab-cc8e3a1e4f74",
- "name": "string"
}
}
], - "healthAuthorityEvents": [
- {
- "testCode": "string",
- "eventType": "string",
- "message": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
}Update a test execution mail in the organization.
path Parameters
| testCode required | string |
| organizationID required | string |
Request Body schema:
| updatedMail required | string |
Responses
Request samples
- Payload
{- "updatedMail": "string"
}Response samples
- 200
- 409
{- "communicationChannelID": 0,
- "type": "phone",
- "language": "string",
- "target": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}Search for test executions in all organization
path Parameters
| organizationID required | string |
query Parameters
| search | string [ 4 .. 100 ] characters |
| date_from | string <date-time> |
| date_till | string <date-time> |
| state | string (TestExecutionStateEnum) Enum: "not_started" "pending" "finished" |
| result | string (TestResultEnum) Enum: "unknown" "positive" "negative" "invalid" "done" "complex" "verified" |
| test_type | string |
Responses
Response samples
- 200
- 409
{- "globalTests": [
- {
- "organizationID": "string",
- "organizationName": "string",
- "test_code": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "test": {
- "type": "unknown",
- "manufacturer": "unknown",
- "material": "unknown"
}, - "state": "not_started",
- "result": "unknown",
- "external_reference": "string",
- "hasPermission": true
}
]
}Create test execution for an organization
path Parameters
| organizationID required | string |
Request Body schema:
| externalReference required | string |
| encodedService required | string |
object (CreateCheckInIdentityDto) | |
Array of objects or null (CreateCommunicationChannelInParameter) | |
| suppressCustomerNotification | boolean or null |
| organizationID | string or null |
| timestamp | string or null <date-time> |
| uid | string or null |
| logoUrl | string or null |
| name | string or null |
| operator | string or null |
| certifiedBy | string or null |
| startDate | string <date-time> |
object (OrgLocation) | |
| updates | string or null |
| organizationReference | string or null |
Responses
Request samples
- Payload
{- "externalReference": "string",
- "encodedService": "string",
- "identity": {
- "type": "unknown",
- "description": "string",
- "verificationLevel": "user"
}, - "communicationChannels": [
- {
- "type": "phone",
- "language": "string",
- "target": "string"
}
], - "suppressCustomerNotification": true,
- "organizationID": "string",
- "timestamp": "2019-08-24T14:15:22Z",
- "uid": "string",
- "logoUrl": "string",
- "name": "string",
- "operator": "string",
- "certifiedBy": "string",
- "startDate": "2019-08-24T14:15:22Z",
- "location": {
- "long": 0.1,
- "lat": 0.1
}, - "updates": "string",
- "organizationReference": "string"
}Response samples
- 200
- 409
{- "test_code": "string",
- "test": {
- "type": "unknown",
- "manufacturer": "unknown",
- "material": "unknown"
}, - "created_at": "2019-08-24T14:15:22Z",
- "state": "not_started",
- "result": "unknown",
- "result_created_at": "2019-08-24T14:15:22Z",
- "external_reference": "string",
- "mails": [
- {
- "message_reference": "string",
- "events": [
- {
- "diagnostic_code": "string",
- "error_sub_type": "string",
- "error_type": "string",
- "event_type": "string",
- "feedback_reference": "string",
- "status": "string",
- "targetEmail": "string",
- "created_at": "2019-08-24T14:15:22Z"
}
]
}
], - "history": [
- {
- "event_id": "string",
- "topic": "string",
- "api_version": "string",
- "payload": null,
- "created_at": "2019-08-24T14:15:22Z",
- "account": {
- "account_key": "8d097bc0-5265-47eb-90ab-cc8e3a1e4f74",
- "name": "string"
}
}
], - "healthAuthorityEvents": [
- {
- "testCode": "string",
- "eventType": "string",
- "message": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
}Save an organizations test configuration item
With this API call you can save a single test configuration item for an organization. Depending on the test, either a new item is created or an existing one is updated. There can only be one configuration per test (e.g. cov19.antigen.., cov19.pcr..saliva, etc.)
path Parameters
| organizationID required | string |
Request Body schema: application/json
required | object (SaveTestDto) |
| hexColor | string or null <= 9 characters |
| validationRegex | string or null <= 200 characters |
Responses
Request samples
- Payload
{- "test": {
- "type": "unknown",
- "manufacturer": "unknown",
- "material": "unknown"
}, - "hexColor": "string",
- "validationRegex": "string"
}Response samples
- 200
- 409
{- "test": {
- "type": "unknown",
- "manufacturer": "unknown",
- "material": "unknown"
}, - "hexColor": "string",
- "validationRegex": "string"
}Create a new testkit
Creates a new pack of test-codes (test-kit) that can be used for check-in. Prefixes always start with 'C19' followed by the type encoding (AAP -> Antigen, Antibody, PCR | PCR -> PCR | PPC -> PCR, Pool PCR). So the prefix would look like e.g. 'C19AAP'.
path Parameters
| organizationID required | string |
Request Body schema:
| prefix | string or null |
| numberOfKits | integer or null <int32> [ 1 .. 50 ] |
| numberOfCodesPerKit | integer or null <int32> [ 1 .. 50 ] |
Responses
Request samples
- Payload
{- "prefix": "string",
- "numberOfKits": 1,
- "numberOfCodesPerKit": 1
}Response samples
- 201
- 409
{- "testKits": [
- {
- "testKitId": "string",
- "prefix": "string",
- "testCodes": [
- "string"
]
}
]
}Update the types for the organization
Update the types for the organization
path Parameters
| organizationID required | string |
Request Body schema:
| groupName | string (GroupTypeEnum) Enum: "unknown" "cov19" "co2" "edu" "doc" "vaccine" "plastic" |
| types | Array of strings or null |
| isDeleted | boolean |
Responses
Request samples
- Payload
{- "groupName": "unknown",
- "types": [
- "string"
], - "isDeleted": true
}Response samples
- 200
- 409
{- "organizationID": "string",
- "groupName": "unknown",
- "types": [
- {
- "type": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
}Get test types for organization
Get all test types for an organization
path Parameters
| organizationID required | string |
query Parameters
| group | string (GroupTypeEnum) Enum: "unknown" "cov19" "co2" "edu" "doc" "vaccine" "plastic" |
Responses
Response samples
- 201
- 409
{- "organizationID": "string",
- "groupName": "unknown",
- "types": [
- {
- "type": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
}Get standard types by group type for organization
Get all standard types by group for an organization
path Parameters
| organizationID required | string |
query Parameters
| group | string (GroupTypeEnum) Enum: "unknown" "cov19" "co2" "edu" "doc" "vaccine" "plastic" |
Responses
Response samples
- 201
- 409
[- {
- "groupName": "unknown",
- "types": [
- "string"
]
}
]Delete test type
Delete test type for a group
path Parameters
| groupType required | string (GroupTypeEnum) Enum: "unknown" "cov19" "co2" "edu" "doc" "vaccine" "plastic" |
| type required | string |
| organizationID required | string |
Responses
Response samples
- 409
{- "type": "string",
- "title": "string",
- "status": 0,
- "detail": "string",
- "instance": "string",
- "property1": null,
- "property2": null
}Get test check-in state / execution state
Please note: the permission check for this call works differnt to the check of other calls.It´s possible to get the test execution state of every test the account has access to and not only of the currently logged in organization!
path Parameters
| testCode required | string |
Responses
Response samples
- 200
- 409
{- "test_code": "string",
- "test_type": "unknown",
- "test": {
- "type": "unknown",
- "manufacturer": "unknown",
- "material": "unknown"
}, - "created_at": "2019-08-24T14:15:22Z",
- "state": "not_started",
- "result": "unknown",
- "external_reference": "string",
- "flags": {
- "suppress_customer_notification": {
- "show": true,
- "checked": true
}, - "suppress_health_authority_notification": {
- "show": true,
- "checked": true
}
}, - "result_options": [
- "unknown"
], - "projectName": "string",
- "projectType": "string",
- "certificateInfo": {
- "certifiedBy": "string",
- "co2E": 0.1,
- "timePeriod": {
- "start": "2019-08-24T14:15:22Z",
- "end": "2019-08-24T14:15:22Z"
}, - "metafields": {
- "property1": null,
- "property2": null
}
}, - "projectInfo": {
- "organizationReference": "string",
- "name": "string",
- "operator": "string",
- "type": "string",
- "certifiedBy": "string",
- "startDate": "2019-08-24T14:15:22Z",
- "updates": "string",
- "address": {
- "street": "string",
- "city": "string",
- "postalCode": "string",
- "countryCode": "string"
}, - "metafields": {
- "property1": null,
- "property2": null
}
}, - "organizationInfo": {
- "name": "string",
- "uid": "string",
- "phone": "string",
- "mail": "string"
}
}Save test result
Please note: the permission check for this call works differnt to the check of other calls.It´s possible to save the test result of every test the account has access to and not only of the currently logged in organization!
path Parameters
| testCode required | string |
Request Body schema: application/json
| test_code required | string |
| result required | string (TestResultEnum) Enum: "unknown" "positive" "negative" "invalid" "done" "complex" "verified" |
| suppress_customer_notification | boolean or null |
| suppress_health_authority_notification | boolean or null |
object (OverwriteTestDto) | |
| metafields | any or null |
| communication_options | Array of strings or null (CommunicationOptionEnum) Enum: "email" "sms" "customer_card" |
Responses
Request samples
- Payload
{- "test_code": "string",
- "result": "unknown",
- "suppress_customer_notification": true,
- "suppress_health_authority_notification": true,
- "overwrite_test": {
- "manufacturer": "unknown",
- "material": "unknown",
- "type": "unknown"
}, - "metafields": null,
- "communication_options": [
- "email"
]
}Response samples
- 409
{- "type": "string",
- "title": "string",
- "status": 0,
- "detail": "string",
- "instance": "string",
- "property1": null,
- "property2": null
}Save an intermediate test state (e.g. processing in laboratory started, etc.)
path Parameters
| testCode required | string |
Request Body schema: application/json
| suppressCustomerNotification | boolean or null |
| customMessage | string or null |
Responses
Request samples
- Payload
{- "suppressCustomerNotification": true,
- "customMessage": "string"
}Response samples
- 409
{- "type": "string",
- "title": "string",
- "status": 0,
- "detail": "string",
- "instance": "string",
- "property1": null,
- "property2": null
}