The request body is of type AddReferenceDocumentToRequest.
Request Body Parameters
| Name | Description | Data Type |
| pstr_APICode | The API code of the site. This can be found through your Sertifi web interface under Administration -> Account Settings. | xml:string |
| pstr_FileID | The id of the relevant file. | xml:string |
| pbyt_File | Reference document you wish to add to the file. | xml:base64Binary |
| pstr_FileName | The name of the reference document as it appears on the uploading computer. | xml:string |
| pstr_Title | The name the document will appear with to signers. | xml:string |
| returnId | Whether or not to return the Id of the document in the file. (It will be different from the Library Id and specific to the version in this file.) | xml:boolean |
| permissions | Permissions on who can view the reference document. | ArrayOfReferenceDocumentPermission |
| customMetadataXML | Note that it is not possible to prefill data on a reference document. | xml:string |

The response body is of type AddReferenceDocumentToRequestResponse.
Response Body Parameters
| Name | Description | Data Type |
| AddReferenceDocumentToRequestResult | Id of the reference document for the file, "SUCESS" or an error message. | xml:string |
