> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.one.mtxsci.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.one.mtxsci.com/_mcp/server.

# Submission

POST https://one.mtxsci.com/api/1.1/wf/submission-v2
Content-Type: application/json

## Create a submission

Create one submission containing individual samples and optional composites. Each composite has its own fields and tests and refers to individual samples by their client references.

**Request:** `POST https://one.mtxsci.com/api/1.1/wf/submission-v2`

**Success:** `200 OK` with a JSON body containing `sample_submission_id` and `status`. The recorded response media type is `text/plain;charset=utf-8`.

**Authentication:** `Authorization: Bearer <token>`, using `response.token` from **authenticate-v2**.

**Headers:** `Content-Type: application/json` and `Accept: application/json`.

**Request body:** JSON containing submission fields, individual samples, and optional composites.

### Before you submit

Obtain the lab enum supplied to the customer and the applicable catalog endpoints. The saved request uses type placeholders instead of real values. Replace them with authorized values before sending.

### Submission fields

| Field                  | Type             | Requirement    | Description                                                                                                                                                    |
| ---------------------- | ---------------- | -------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `customer_id`          | String           | Required       | Authorized customer from **customers-v2**; identifies the division or plant.                                                                                   |
| `requested_by`         | String or null   | Caller-derived | Requester identifier, such as an email address. `null` derives the requester from the authenticated caller. Arbitrary caller identities require authorization. |
| `lab`                  | String           | Required       | Exact value from the lab enum supplied to the customer.                                                                                                        |
| `po_number`            | String or null   | Optional       | Purchase order reference; preserve leading zeros.                                                                                                              |
| `submission_type`      | String           | Required       | Exactly `Product` or `Environmental`.                                                                                                                          |
| `additional_info`      | String or null   | Optional       | Submission-level information.                                                                                                                                  |
| `special_instructions` | String or null   | Optional       | Submission-level instructions.                                                                                                                                 |
| `samples`              | Array of objects | At least one   | Individual samples, declared once each.                                                                                                                        |
| `composites`           | Array of objects | Optional       | Composite definitions; omit or supply an empty array when none are needed.                                                                                     |

### Sample and composite fields

These fields apply to each object in both `samples` and `composites`. Composite values are independent of the values on their members.

| Field                | Type             | Requirement                         | Description                                                                                                                                                     |
| -------------------- | ---------------- | ----------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `client_sample_ref`  | String           | Required                            | Nonempty reference, unique across both arrays within this submission. May repeat in different submissions; store with the corresponding external sample record. |
| `description`        | String or null   |                                     | Description of this individual sample or composite.                                                                                                             |
| `product_id`         | String           | Required for samples and composites | Product ID from **product-ids-v2**.                                                                                                                             |
| `product_desc`       | String or null   |                                     | Product description. Read responses use `prodDescription` instead.                                                                                              |
| `lot`                | String or null   |                                     | Lot reference, preserved as text.                                                                                                                               |
| `collection_date`    | String or null   |                                     | Date in `YYYY-MM-DD` format, without an inferred timezone.                                                                                                      |
| `request_number`     | String or null   |                                     | Client request reference, distinct from the generated `sample_submission_id`.                                                                                   |
| `site_id`            | String or null   | Optional                            | Site **ID** from **sites-v2**, not its name. Preserve numeric-looking IDs as strings, such as `"4"`.                                                            |
| `emp_zone`           | String or null   | Optional                            | EMP zone encoded as a string, matching the saved request. Omit or use `null` when blank.                                                                        |
| `tests`              | Array of strings |                                     | Tests for this row's material, as exact test **codes** (the `code` field of **tests-v2**) rather than test descriptions.                                        |
| `client_sample_refs` | Array of strings | Required for composites             | Composite-only membership list, referencing `samples[].client_sample_ref`.                                                                                      |

Optional nullable fields may be omitted or sent as `null`.

### Environmental site and zone behavior

`site_id` and `emp_zone` are optional for both submission types. For an `Environmental` row with a supplied `site_id` and omitted or null `emp_zone`, the application looks up the zone from that site's existing information. A composite uses its own site; its zone is not inferred from its members. Neither field becomes required when no site is supplied.

### Composite membership and tests

* Declare each individual sample once in `samples`.

* Each composite has its own unique `client_sample_ref` and a nonempty `client_sample_refs` membership list.

* Members must reference individual samples in this request. Missing references, self references, composite references, and duplicate members within one composite are rejected.

* A sample may belong to several composites.

* Composite tests apply to the combined material independently of tests on individual samples and other composites. Do not add tests to constituents unless this is the desired outcome.

### Response fields

| Field                  | Type   | Description                                                                                                                                                              |
| ---------------------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `sample_submission_id` | String | Server-generated submission identifier. Store beside your internal request identifier; use it as the `sample_submission_id` filter on **samples-v2** and **results-v2**. |
| `status`               | String | `"Success"` in the saved acceptance response. Preserve the capital `S`.                                                                                                  |

The `200 OK` example is `{"sample_submission_id":"string","status":"Success"}`. Check that `status` is `"Success"` before recording acceptance. Authentication uses lowercase `"success"` in its own response.

Samples and composites are created after acceptance and can take up to five minutes to appear. Wait at least five minutes before querying with both `customer_id` and `sample_submission_id`. The response does not return per-sample identifiers. Webhook `SampleSubmissionID` refers to the submission saved from this response; correlate samples using `client_sample_ref` within that submission.

### Customer mappings

Use Matrix test codes from **tests-v2**. A customer result name is not required in the request. Maintain test mappings and Matrix test code plus analyte-to-result-name mappings in your own system, including the originally selected result name where a mapping is one-to-many.

### Errors

Inspect both the HTTP response and submission `status`. The documented malformed-payload status is `BLOCKING_ERROR`; a full error response example is not supplied. Authentication failures return `401 Unauthorized`; obtain a new token as needed. Reconcile an uncertain submission outcome before resending a creation request.

Reference: https://docs.one.mtxsci.com/ms-cp-customer-api/submission

## Authentication

- `Authorization` header (bearer token, required) — Use response.token from authenticate-v2. response.expires is the lifetime in seconds (86400 = 24 hours).

## Request

### Body (application/json)

This endpoint expects an object.

- `customer_id` (string, required) — Authorized customer from **customers-v2**; identifies the division or plant.
- `lab` (string, required) — Exact value from the lab enum supplied to the customer.
- `submission_type` (string, required) — Exactly `Product` or `Environmental`.
- `samples` (list of SubmissionV2PostRequestBodyContentApplicationJsonSchemaSamplesItems, required) — Individual samples, declared once each.
- `requested_by` (string, optional, nullable) — Requester identifier, such as an email address. `null` derives the requester from the authenticated caller. Arbitrary caller identities require authorization.
- `po_number` (string, optional, nullable) — Purchase order reference; preserve leading zeros.
- `additional_info` (string, optional, nullable) — Submission-level information.
- `special_instructions` (string, optional, nullable) — Submission-level instructions.
- `composites` (list of SubmissionV2PostRequestBodyContentApplicationJsonSchemaCompositesItems, optional) — Composite definitions; omit or supply an empty array when none are needed.

## Response

### 200

OK

## Types

### SubmissionV2PostRequestBodyContentApplicationJsonSchemaSamplesItems

- `client_sample_ref` (string, required) — Nonempty reference, unique across both arrays within this submission. May repeat in different submissions; store with the corresponding external sample record.
- `product_id` (string, required) — Product ID from **product-ids-v2**.
- `description` (string, optional, nullable) — Description of this individual sample or composite.
- `product_desc` (string, optional, nullable) — Product description. Read responses use `prodDescription` instead.
- `lot` (string, optional, nullable) — Lot reference, preserved as text.
- `collection_date` (string, optional, nullable) — Date in `YYYY-MM-DD` format, without an inferred timezone.
- `request_number` (string, optional, nullable) — Client request reference, distinct from the generated `sample_submission_id`.
- `site_id` (string, optional, nullable) — Site **ID** from **sites-v2**, not its name. Preserve numeric-looking IDs as strings, such as `"4"`.
- `emp_zone` (string, optional, nullable) — EMP zone encoded as a string, matching the saved request. Omit or use `null` when blank.
- `tests` (list of string, optional) — Tests for this row's material, as exact test **codes** (the `code` field of **tests-v2**) rather than test descriptions.

### SubmissionV2PostRequestBodyContentApplicationJsonSchemaCompositesItems

- `client_sample_ref` (string, required) — Nonempty reference, unique across both arrays within this submission. May repeat in different submissions; store with the corresponding external sample record.
- `product_id` (string, required) — Product ID from **product-ids-v2**.
- `client_sample_refs` (list of string, required) — Composite-only membership list, referencing `samples[].client_sample_ref`.
- `description` (string, optional, nullable) — Description of this individual sample or composite.
- `product_desc` (string, optional, nullable) — Product description. Read responses use `prodDescription` instead.
- `lot` (string, optional, nullable) — Lot reference, preserved as text.
- `collection_date` (string, optional, nullable) — Date in `YYYY-MM-DD` format, without an inferred timezone.
- `request_number` (string, optional, nullable) — Client request reference, distinct from the generated `sample_submission_id`.
- `site_id` (string, optional, nullable) — Site **ID** from **sites-v2**, not its name. Preserve numeric-looking IDs as strings, such as `"4"`.
- `emp_zone` (string, optional, nullable) — EMP zone encoded as a string, matching the saved request. Omit or use `null` when blank.
- `tests` (list of string, optional) — Tests for this row's material, as exact test **codes** (the `code` field of **tests-v2**) rather than test descriptions.

## Examples

**Request**

```json
{
  "customer_id": "string",
  "lab": "string",
  "submission_type": "string",
  "samples": [
    {
      "client_sample_ref": "string",
      "product_id": "string",
      "description": "string",
      "product_desc": "string",
      "lot": "string",
      "collection_date": "string",
      "request_number": "string",
      "site_id": "string",
      "emp_zone": "string",
      "tests": [
        "string",
        "string"
      ]
    },
    {
      "client_sample_ref": "string",
      "product_id": "string",
      "description": "string",
      "product_desc": "string",
      "lot": "string",
      "collection_date": "string",
      "request_number": "string",
      "site_id": "string",
      "emp_zone": "string",
      "tests": [
        "string"
      ]
    }
  ],
  "requested_by": "string",
  "po_number": "string",
  "additional_info": "string",
  "special_instructions": "string",
  "composites": [
    {
      "client_sample_ref": "string",
      "product_id": "string",
      "client_sample_refs": [
        "string",
        "string"
      ],
      "description": "string",
      "product_desc": "string",
      "lot": "string",
      "collection_date": "string",
      "request_number": "string",
      "site_id": "string",
      "emp_zone": "string",
      "tests": [
        "string"
      ]
    }
  ]
}
```

**Response**

```json
{
  "sample_submission_id": "string",
  "status": "Success"
}
```

**SDK Code**

```python submission_example
import requests

url = "https://one.mtxsci.com/api/1.1/wf/submission-v2"

payload = {
    "customer_id": "string",
    "lab": "string",
    "submission_type": "string",
    "samples": [
        {
            "client_sample_ref": "string",
            "product_id": "string",
            "description": "string",
            "product_desc": "string",
            "lot": "string",
            "collection_date": "string",
            "request_number": "string",
            "site_id": "string",
            "emp_zone": "string",
            "tests": ["string", "string"]
        },
        {
            "client_sample_ref": "string",
            "product_id": "string",
            "description": "string",
            "product_desc": "string",
            "lot": "string",
            "collection_date": "string",
            "request_number": "string",
            "site_id": "string",
            "emp_zone": "string",
            "tests": ["string"]
        }
    ],
    "requested_by": "string",
    "po_number": "string",
    "additional_info": "string",
    "special_instructions": "string",
    "composites": [
        {
            "client_sample_ref": "string",
            "product_id": "string",
            "client_sample_refs": ["string", "string"],
            "description": "string",
            "product_desc": "string",
            "lot": "string",
            "collection_date": "string",
            "request_number": "string",
            "site_id": "string",
            "emp_zone": "string",
            "tests": ["string"]
        }
    ]
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript submission_example
const url = 'https://one.mtxsci.com/api/1.1/wf/submission-v2';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"customer_id":"string","lab":"string","submission_type":"string","samples":[{"client_sample_ref":"string","product_id":"string","description":"string","product_desc":"string","lot":"string","collection_date":"string","request_number":"string","site_id":"string","emp_zone":"string","tests":["string","string"]},{"client_sample_ref":"string","product_id":"string","description":"string","product_desc":"string","lot":"string","collection_date":"string","request_number":"string","site_id":"string","emp_zone":"string","tests":["string"]}],"requested_by":"string","po_number":"string","additional_info":"string","special_instructions":"string","composites":[{"client_sample_ref":"string","product_id":"string","client_sample_refs":["string","string"],"description":"string","product_desc":"string","lot":"string","collection_date":"string","request_number":"string","site_id":"string","emp_zone":"string","tests":["string"]}]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go submission_example
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://one.mtxsci.com/api/1.1/wf/submission-v2"

	payload := strings.NewReader("{\n  \"customer_id\": \"string\",\n  \"lab\": \"string\",\n  \"submission_type\": \"string\",\n  \"samples\": [\n    {\n      \"client_sample_ref\": \"string\",\n      \"product_id\": \"string\",\n      \"description\": \"string\",\n      \"product_desc\": \"string\",\n      \"lot\": \"string\",\n      \"collection_date\": \"string\",\n      \"request_number\": \"string\",\n      \"site_id\": \"string\",\n      \"emp_zone\": \"string\",\n      \"tests\": [\n        \"string\",\n        \"string\"\n      ]\n    },\n    {\n      \"client_sample_ref\": \"string\",\n      \"product_id\": \"string\",\n      \"description\": \"string\",\n      \"product_desc\": \"string\",\n      \"lot\": \"string\",\n      \"collection_date\": \"string\",\n      \"request_number\": \"string\",\n      \"site_id\": \"string\",\n      \"emp_zone\": \"string\",\n      \"tests\": [\n        \"string\"\n      ]\n    }\n  ],\n  \"requested_by\": \"string\",\n  \"po_number\": \"string\",\n  \"additional_info\": \"string\",\n  \"special_instructions\": \"string\",\n  \"composites\": [\n    {\n      \"client_sample_ref\": \"string\",\n      \"product_id\": \"string\",\n      \"client_sample_refs\": [\n        \"string\",\n        \"string\"\n      ],\n      \"description\": \"string\",\n      \"product_desc\": \"string\",\n      \"lot\": \"string\",\n      \"collection_date\": \"string\",\n      \"request_number\": \"string\",\n      \"site_id\": \"string\",\n      \"emp_zone\": \"string\",\n      \"tests\": [\n        \"string\"\n      ]\n    }\n  ]\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby submission_example
require 'uri'
require 'net/http'

url = URI("https://one.mtxsci.com/api/1.1/wf/submission-v2")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"customer_id\": \"string\",\n  \"lab\": \"string\",\n  \"submission_type\": \"string\",\n  \"samples\": [\n    {\n      \"client_sample_ref\": \"string\",\n      \"product_id\": \"string\",\n      \"description\": \"string\",\n      \"product_desc\": \"string\",\n      \"lot\": \"string\",\n      \"collection_date\": \"string\",\n      \"request_number\": \"string\",\n      \"site_id\": \"string\",\n      \"emp_zone\": \"string\",\n      \"tests\": [\n        \"string\",\n        \"string\"\n      ]\n    },\n    {\n      \"client_sample_ref\": \"string\",\n      \"product_id\": \"string\",\n      \"description\": \"string\",\n      \"product_desc\": \"string\",\n      \"lot\": \"string\",\n      \"collection_date\": \"string\",\n      \"request_number\": \"string\",\n      \"site_id\": \"string\",\n      \"emp_zone\": \"string\",\n      \"tests\": [\n        \"string\"\n      ]\n    }\n  ],\n  \"requested_by\": \"string\",\n  \"po_number\": \"string\",\n  \"additional_info\": \"string\",\n  \"special_instructions\": \"string\",\n  \"composites\": [\n    {\n      \"client_sample_ref\": \"string\",\n      \"product_id\": \"string\",\n      \"client_sample_refs\": [\n        \"string\",\n        \"string\"\n      ],\n      \"description\": \"string\",\n      \"product_desc\": \"string\",\n      \"lot\": \"string\",\n      \"collection_date\": \"string\",\n      \"request_number\": \"string\",\n      \"site_id\": \"string\",\n      \"emp_zone\": \"string\",\n      \"tests\": [\n        \"string\"\n      ]\n    }\n  ]\n}"

response = http.request(request)
puts response.read_body
```

```java submission_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://one.mtxsci.com/api/1.1/wf/submission-v2")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"customer_id\": \"string\",\n  \"lab\": \"string\",\n  \"submission_type\": \"string\",\n  \"samples\": [\n    {\n      \"client_sample_ref\": \"string\",\n      \"product_id\": \"string\",\n      \"description\": \"string\",\n      \"product_desc\": \"string\",\n      \"lot\": \"string\",\n      \"collection_date\": \"string\",\n      \"request_number\": \"string\",\n      \"site_id\": \"string\",\n      \"emp_zone\": \"string\",\n      \"tests\": [\n        \"string\",\n        \"string\"\n      ]\n    },\n    {\n      \"client_sample_ref\": \"string\",\n      \"product_id\": \"string\",\n      \"description\": \"string\",\n      \"product_desc\": \"string\",\n      \"lot\": \"string\",\n      \"collection_date\": \"string\",\n      \"request_number\": \"string\",\n      \"site_id\": \"string\",\n      \"emp_zone\": \"string\",\n      \"tests\": [\n        \"string\"\n      ]\n    }\n  ],\n  \"requested_by\": \"string\",\n  \"po_number\": \"string\",\n  \"additional_info\": \"string\",\n  \"special_instructions\": \"string\",\n  \"composites\": [\n    {\n      \"client_sample_ref\": \"string\",\n      \"product_id\": \"string\",\n      \"client_sample_refs\": [\n        \"string\",\n        \"string\"\n      ],\n      \"description\": \"string\",\n      \"product_desc\": \"string\",\n      \"lot\": \"string\",\n      \"collection_date\": \"string\",\n      \"request_number\": \"string\",\n      \"site_id\": \"string\",\n      \"emp_zone\": \"string\",\n      \"tests\": [\n        \"string\"\n      ]\n    }\n  ]\n}")
  .asString();
```

```php submission_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://one.mtxsci.com/api/1.1/wf/submission-v2', [
  'body' => '{
  "customer_id": "string",
  "lab": "string",
  "submission_type": "string",
  "samples": [
    {
      "client_sample_ref": "string",
      "product_id": "string",
      "description": "string",
      "product_desc": "string",
      "lot": "string",
      "collection_date": "string",
      "request_number": "string",
      "site_id": "string",
      "emp_zone": "string",
      "tests": [
        "string",
        "string"
      ]
    },
    {
      "client_sample_ref": "string",
      "product_id": "string",
      "description": "string",
      "product_desc": "string",
      "lot": "string",
      "collection_date": "string",
      "request_number": "string",
      "site_id": "string",
      "emp_zone": "string",
      "tests": [
        "string"
      ]
    }
  ],
  "requested_by": "string",
  "po_number": "string",
  "additional_info": "string",
  "special_instructions": "string",
  "composites": [
    {
      "client_sample_ref": "string",
      "product_id": "string",
      "client_sample_refs": [
        "string",
        "string"
      ],
      "description": "string",
      "product_desc": "string",
      "lot": "string",
      "collection_date": "string",
      "request_number": "string",
      "site_id": "string",
      "emp_zone": "string",
      "tests": [
        "string"
      ]
    }
  ]
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp submission_example
using RestSharp;

var client = new RestClient("https://one.mtxsci.com/api/1.1/wf/submission-v2");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"customer_id\": \"string\",\n  \"lab\": \"string\",\n  \"submission_type\": \"string\",\n  \"samples\": [\n    {\n      \"client_sample_ref\": \"string\",\n      \"product_id\": \"string\",\n      \"description\": \"string\",\n      \"product_desc\": \"string\",\n      \"lot\": \"string\",\n      \"collection_date\": \"string\",\n      \"request_number\": \"string\",\n      \"site_id\": \"string\",\n      \"emp_zone\": \"string\",\n      \"tests\": [\n        \"string\",\n        \"string\"\n      ]\n    },\n    {\n      \"client_sample_ref\": \"string\",\n      \"product_id\": \"string\",\n      \"description\": \"string\",\n      \"product_desc\": \"string\",\n      \"lot\": \"string\",\n      \"collection_date\": \"string\",\n      \"request_number\": \"string\",\n      \"site_id\": \"string\",\n      \"emp_zone\": \"string\",\n      \"tests\": [\n        \"string\"\n      ]\n    }\n  ],\n  \"requested_by\": \"string\",\n  \"po_number\": \"string\",\n  \"additional_info\": \"string\",\n  \"special_instructions\": \"string\",\n  \"composites\": [\n    {\n      \"client_sample_ref\": \"string\",\n      \"product_id\": \"string\",\n      \"client_sample_refs\": [\n        \"string\",\n        \"string\"\n      ],\n      \"description\": \"string\",\n      \"product_desc\": \"string\",\n      \"lot\": \"string\",\n      \"collection_date\": \"string\",\n      \"request_number\": \"string\",\n      \"site_id\": \"string\",\n      \"emp_zone\": \"string\",\n      \"tests\": [\n        \"string\"\n      ]\n    }\n  ]\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift submission_example
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "customer_id": "string",
  "lab": "string",
  "submission_type": "string",
  "samples": [
    [
      "client_sample_ref": "string",
      "product_id": "string",
      "description": "string",
      "product_desc": "string",
      "lot": "string",
      "collection_date": "string",
      "request_number": "string",
      "site_id": "string",
      "emp_zone": "string",
      "tests": ["string", "string"]
    ],
    [
      "client_sample_ref": "string",
      "product_id": "string",
      "description": "string",
      "product_desc": "string",
      "lot": "string",
      "collection_date": "string",
      "request_number": "string",
      "site_id": "string",
      "emp_zone": "string",
      "tests": ["string"]
    ]
  ],
  "requested_by": "string",
  "po_number": "string",
  "additional_info": "string",
  "special_instructions": "string",
  "composites": [
    [
      "client_sample_ref": "string",
      "product_id": "string",
      "client_sample_refs": ["string", "string"],
      "description": "string",
      "product_desc": "string",
      "lot": "string",
      "collection_date": "string",
      "request_number": "string",
      "site_id": "string",
      "emp_zone": "string",
      "tests": ["string"]
    ]
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://one.mtxsci.com/api/1.1/wf/submission-v2")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```