Metadata Search Request & Response

To make the search more accurate, add one or two metadata values in the request body:

```json
POST 'https://sandbox-apigw.optum.com/medicalnetwork/attachments/status/v1/metadata' \

	{
		"submitterId": "TESTSBMTR11111",
		"transactionReceivedEndDate": "2005-05-14",
		"transactionReceivedStartDate": "2005-05-11",
		"memberId": "0000000001"
	}
```

📘

NOTE

Do not use the traceId value as a metadata search criteria.

Add more attributes in the request body to narrow the search if necessary:

```json
POST 'https://sandbox-apigw.optum.com/medicalnetwork/attachments/status/v1/metadata' \

	{
		"submitterId": "TESTSBMTR11111",
		"transactionReceivedEndDate": "2005-05-14",
		"transactionReceivedStartDate": "2005-05-11",
		"memberId": "0000000001",
		"providerId": "1760854442",
		"payerId": "9496"
	}
```

Details and Status for a single Attachment:

```json
[
    {
        "traceId": "<actual trace id of the transaction from DB>",
        "transactionDetails": {
            "submitterId": "TESTSBMTR11111",
            "memberId": "0000000001",
            "patientFirstName": "doeone",
            "patientLastName": "johnone",
            "payerId": "TESTEP01",
            "providerId": "111222333",
            "providerFirstName": null,
            "providerLastName": "happy doctors group",
            "claimStartDate": "2005-05-14",
            "claimEndDate": "2005-05-14",
            "payerName": "TEST HEALTH SYSTEM",
            "rejectionInformation": null
        },
        "status": [
            {
                "statusCode": "01",
                "statusMessage": "TRANSACTION_RECEIVED",
                "statusTimeStamp": "2021-08-19T18:27Z",
                "documents": [
                    {
                        "documentName": "rightarm.jpg",
                        "controlNumber": "123456789"
                    }
                ]
            
```

Most of the information that appears in a metadata search record is transactionDetails content that originates from the transaction. If the transaction was successful, you can expect to see a NULL value for the rejectionInformation field in the response.