Download OpenAPI specification:
API for managing orders, organizations, and products in the InstaCLEAR system.
InstaCLEAR API offers API Key authentication. To authenticate requests, include your API key in the X-API-KEY header.
Endpoint to receive updates regarding order status.
Details of the order update.
| id | string <uuid> |
| type | string Enum: "ORDER_PLACED" "ORDER_SHIPPED" "ORDER_DELIVERED" "TEST_SCHEDULED" "LAB_REVIEW" "TEST_COMPLETE" "PROCESS_FAILURE" "NOTE" |
| description | string |
| createdAt | string <date-time> |
| order_id | string <uuid> |
| organization_id | string <uuid> |
| webhook_type | string Value: "ORDER_HISTORY" |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "type": "ORDER_PLACED",
- "description": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "order_id": "93101167-9065-4b9c-b98b-5d789a3ed9fe",
- "organization_id": "7c60d51f-b44e-4682-87d6-449835ea4de6",
- "webhook_type": "ORDER_HISTORY"
}Endpoint to receive notifications when an order is complete.
Details of the order completion.
| order_id | string <uuid> Unique identifier for the order. | ||||
| organization_id | string <uuid> Unique identifier for the order organization. | ||||
| test_result | string
The result of the test. | ||||
| test_result_timestamp | string <date-time> The date and time the test result was received. | ||||
| webhook_type | string Value: "TEST_COMPLETE" |
{- "order_id": "93101167-9065-4b9c-b98b-5d789a3ed9fe",
- "organization_id": "7c60d51f-b44e-4682-87d6-449835ea4de6",
- "test_result": "string",
- "test_result_timestamp": "2019-08-24T14:15:22Z",
- "webhook_type": "TEST_COMPLETE"
}Create a new order with the given details.
Order and product identification details.
object (Order) Representation of an order within the InstaCLEAR system. | |
| product_id | string <uuid> |
| organization_id | string <uuid> |
{- "order": {
- "order_type": "SHIPPED",
- "donor": {
- "last_name": "string",
- "first_name": "string",
- "middle_name": "string",
- "mobile_phone": "string",
- "phone2": "string",
- "email": "string",
- "employer_id_number": "string",
- "date_of_birth": "2019-08-24"
}, - "ship_street1": "string",
- "ship_street2": "string",
- "ship_city": "string",
- "ship_state": "string",
- "ship_zip": "string",
- "ship_country": "string",
- "test_result": "string",
- "test_reason": "BLIND_SAMPLE",
- "notes": "string",
- "placed_by": "user@example.com",
- "organization_id": "7c60d51f-b44e-4682-87d6-449835ea4de6"
}, - "product_id": "0d012afa-f885-4e65-aeca-37e27701e2d1",
- "organization_id": "7c60d51f-b44e-4682-87d6-449835ea4de6"
}{- "order_id": "93101167-9065-4b9c-b98b-5d789a3ed9fe"
}[- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "order_type": "SHIPPED",
- "donor": {
- "last_name": "string",
- "first_name": "string",
- "middle_name": "string",
- "mobile_phone": "string",
- "phone2": "string",
- "email": "string",
- "employer_id_number": "string",
- "date_of_birth": "2019-08-24"
}, - "ship_street1": "string",
- "ship_street2": "string",
- "ship_city": "string",
- "ship_state": "string",
- "ship_zip": "string",
- "ship_country": "string",
- "ship_tracking_number": "string",
- "ship_carrier": "string",
- "specimen_number": "string",
- "product": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "sku": "string",
- "substances": [
- {
- "name": "string",
- "code": "string",
- "cutoff": "string"
}
]
}, - "product_serial_number": "string",
- "test_scheduled": "2019-08-24T14:15:22Z",
- "milestone": "ORDERED",
- "milestoneDateTime": "2019-08-24T14:15:22Z",
- "test_result": "string",
- "test_reason": "BLIND_SAMPLE",
- "notes": "string",
- "placed_by": "user@example.com",
- "history": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "type": "ORDER_PLACED",
- "description": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}
], - "files": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "file_name": "string",
- "description": "string",
- "content_type": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "url": "string"
}
], - "createdAt": "2019-08-24T14:15:22Z",
- "organization_id": "7c60d51f-b44e-4682-87d6-449835ea4de6"
}
]Retrieve details of an order by its ID.
| id required | string <uuid> Unique identifier for the order. |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "order_type": "SHIPPED",
- "donor": {
- "last_name": "string",
- "first_name": "string",
- "middle_name": "string",
- "mobile_phone": "string",
- "phone2": "string",
- "email": "string",
- "employer_id_number": "string",
- "date_of_birth": "2019-08-24"
}, - "ship_street1": "string",
- "ship_street2": "string",
- "ship_city": "string",
- "ship_state": "string",
- "ship_zip": "string",
- "ship_country": "string",
- "ship_tracking_number": "string",
- "ship_carrier": "string",
- "specimen_number": "string",
- "product": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "sku": "string",
- "substances": [
- {
- "name": "string",
- "code": "string",
- "cutoff": "string"
}
]
}, - "product_serial_number": "string",
- "test_scheduled": "2019-08-24T14:15:22Z",
- "milestone": "ORDERED",
- "milestoneDateTime": "2019-08-24T14:15:22Z",
- "test_result": "string",
- "test_reason": "BLIND_SAMPLE",
- "notes": "string",
- "placed_by": "user@example.com",
- "history": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "type": "ORDER_PLACED",
- "description": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}
], - "files": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "file_name": "string",
- "description": "string",
- "content_type": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "url": "string"
}
], - "createdAt": "2019-08-24T14:15:22Z",
- "organization_id": "7c60d51f-b44e-4682-87d6-449835ea4de6"
}Retrieve a list of order associated with a given organization ID.
| orgId required | string <uuid> Unique identifier for the organization. |
[- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "order_type": "SHIPPED",
- "donor": {
- "last_name": "string",
- "first_name": "string",
- "middle_name": "string",
- "mobile_phone": "string",
- "phone2": "string",
- "email": "string",
- "employer_id_number": "string",
- "date_of_birth": "2019-08-24"
}, - "ship_street1": "string",
- "ship_street2": "string",
- "ship_city": "string",
- "ship_state": "string",
- "ship_zip": "string",
- "ship_country": "string",
- "ship_tracking_number": "string",
- "ship_carrier": "string",
- "specimen_number": "string",
- "product": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "sku": "string",
- "substances": [
- {
- "name": "string",
- "code": "string",
- "cutoff": "string"
}
]
}, - "product_serial_number": "string",
- "test_scheduled": "2019-08-24T14:15:22Z",
- "milestone": "ORDERED",
- "milestoneDateTime": "2019-08-24T14:15:22Z",
- "test_result": "string",
- "test_reason": "BLIND_SAMPLE",
- "notes": "string",
- "placed_by": "user@example.com",
- "history": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "type": "ORDER_PLACED",
- "description": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}
], - "files": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "file_name": "string",
- "description": "string",
- "content_type": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "url": "string"
}
], - "createdAt": "2019-08-24T14:15:22Z",
- "organization_id": "7c60d51f-b44e-4682-87d6-449835ea4de6"
}
]Retrieve a list of all registered organizations.
[- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "products": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "sku": "string",
- "substances": [
- {
- "name": "string",
- "code": "string",
- "cutoff": "string"
}
]
}
]
}
]Retrieve a list of products associated with a given organization ID.
| orgId required | string <uuid> Unique identifier for the organization. |
[- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "sku": "string",
- "substances": [
- {
- "name": "string",
- "code": "string",
- "cutoff": "string"
}
]
}
]Retrieve a list of order associated with a given organization ID.
| orgId required | string <uuid> Unique identifier for the organization. |
[- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "order_type": "SHIPPED",
- "donor": {
- "last_name": "string",
- "first_name": "string",
- "middle_name": "string",
- "mobile_phone": "string",
- "phone2": "string",
- "email": "string",
- "employer_id_number": "string",
- "date_of_birth": "2019-08-24"
}, - "ship_street1": "string",
- "ship_street2": "string",
- "ship_city": "string",
- "ship_state": "string",
- "ship_zip": "string",
- "ship_country": "string",
- "ship_tracking_number": "string",
- "ship_carrier": "string",
- "specimen_number": "string",
- "product": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "sku": "string",
- "substances": [
- {
- "name": "string",
- "code": "string",
- "cutoff": "string"
}
]
}, - "product_serial_number": "string",
- "test_scheduled": "2019-08-24T14:15:22Z",
- "milestone": "ORDERED",
- "milestoneDateTime": "2019-08-24T14:15:22Z",
- "test_result": "string",
- "test_reason": "BLIND_SAMPLE",
- "notes": "string",
- "placed_by": "user@example.com",
- "history": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "type": "ORDER_PLACED",
- "description": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}
], - "files": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "file_name": "string",
- "description": "string",
- "content_type": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "url": "string"
}
], - "createdAt": "2019-08-24T14:15:22Z",
- "organization_id": "7c60d51f-b44e-4682-87d6-449835ea4de6"
}
]Retrieve a list of products associated with a given organization ID.
| orgId required | string <uuid> Unique identifier for the organization. |
[- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "sku": "string",
- "substances": [
- {
- "name": "string",
- "code": "string",
- "cutoff": "string"
}
]
}
]Generate a signed URL for a file url
File url
| file_url required | string <url> |
| expires_in | integer [ 1 .. 3600 ] Default: 120 Expiration time in seconds |
{- "file_url": "string",
- "expires_in": 120
}{- "signed_file_url": "string",
- "expiration": "2019-08-24T14:15:22Z"
}