Attach Multiple Files to a Transaction

Use the serviceLines object to contain two or more sub-objects in the JSON request body, each representing an attachment file. Each attached document requires its own record as part of the transaction (you cannot just list the filenames under attachmentDetails). For Unsolicited Attachments transactions, each attachment must have a unique providerAttachmentControlNumber value.

```json
    "serviceLines": [{
      "providerAttachmentControlNumber": "123456789",
      "serviceLineDateInformation" : {
          "submissionDate" : "20050514"
      },
      "attachmentDetails": {
        "name": "rightarm.jpg"
      }
    }
    {
      "providerAttachmentControlNumber": "123456788",
      "serviceLineDateInformation" : {
          "submissionDate" : "20050514"
      },
      "attachmentDetails": {
        "name": "rightscapula.jpg"
      }
    }]
```

For Unsolicited Attachments transactions, each attachment must have a unique providerAttachmentControlNumber value.

For Solicited Attachments transactions, use the payerClaimControlNumber in the JSON request body and use the same payerClaimControlNumber value in each document record:

```json
    "serviceLines": [{
      "payerClaimControlNumber": "123412341",
      "serviceLineDateInformation" : {
          "submissionDate" : "20050514"
      },
      "attachmentDetails": {
        "name": "rightarm.jpg"
      }
    }
    {
      "payerClaimControlNumber": "123412341",
      "serviceLineDateInformation" : {
          "submissionDate" : "20050514"
      },
      "attachmentDetails": {
        "name": "rightscapula.jpg"
      }]
  }
```