All URIs are relative to https://api.pandadoc.com
| Method | HTTP request | Description |
|---|---|---|
| changeDocumentStatus | PATCH /public/v1/documents/{id}/status | Document status change |
| createDocument | POST /public/v1/documents | Create document |
| createDocumentLink | POST /public/v1/documents/{id}/session | Create a Document Link |
| createLinkedObject | POST /public/v1/documents/{id}/linked-objects | Create Linked Object |
| deleteDocument | DELETE /public/v1/documents/{id} | Delete document by id |
| deleteLinkedObject | DELETE /public/v1/documents/{id}/linked-objects/{linked_object_id} | Delete Linked Object |
| detailsDocument | GET /public/v1/documents/{id}/details | Document details |
| documentMoveToFolder | POST /public/v1/documents/{id}/move-to-folder/{folder_id} | Document move to folder |
| downloadDocument | GET /public/v1/documents/{id}/download | Document download |
| downloadProtectedDocument | GET /public/v1/documents/{id}/download-protected | Download document protected |
| listDocuments | GET /public/v1/documents | List documents |
| listLinkedObjects | GET /public/v1/documents/{id}/linked-objects | List Linked Objects |
| sendDocument | POST /public/v1/documents/{id}/send | Send Document |
| statusDocument | GET /public/v1/documents/{id} | Document status |
| transferAllDocumentsOwnership | PATCH /public/v1/documents/ownership | Transfer all documents ownership |
| transferDocumentOwnership | PATCH /public/v1/documents/{id}/ownership | Update document ownership |
| updateDocument | PATCH /public/v1/documents/{id} | Update Document only in the draft status |
changeDocumentStatus(id, documentStatusChangeRequest)
Document status change
// Import classes:
import com.pandadoc.client.ApiClient;
import com.pandadoc.client.ApiException;
import com.pandadoc.client.Configuration;
import com.pandadoc.client.auth.*;
import com.pandadoc.client.models.*;
import com.pandadoc.client.api.DocumentsApi;
import java.util.Arrays;
import java.io.File;
import java.util.List;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.pandadoc.com");
// Configure API key authorization: apiKey
ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("apiKey");
apiKey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "API-Key" (defaults to null)
//apiKey.setApiKeyPrefix("API-Key");
// Configure OAuth2 access token for authorization: oauth2
// OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
// oauth2.setAccessToken("YOUR ACCESS TOKEN");
DocumentsApi apiInstance = new DocumentsApi(defaultClient);
// String | Specify document ID.
String id = "BhVzRcxH9Z2LgfPPGXFUBa";
// DocumentStatusChangeRequest |
DocumentStatusChangeRequest documentStatusChangeRequest = new DocumentStatusChangeRequest();
try {
apiInstance.changeDocumentStatus(id, documentStatusChangeRequest);
} catch (ApiException e) {
System.err.println("Exception when calling DocumentsApi#changeDocumentStatus");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | Specify document ID. | |
| documentStatusChangeRequest | DocumentStatusChangeRequest |
null (empty response body)
- Content-Type: application/json, multipart/form-data
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 204 | No content | - |
| 401 | Authentication error | - |
| 403 | Permission error | - |
| 404 | Not found | - |
| 409 | Conflict | - |
| 429 | Too Many Requests | - |
DocumentCreateResponse createDocument(documentCreateRequest, editorVer)
Create document
// Import classes:
import com.pandadoc.client.ApiClient;
import com.pandadoc.client.ApiException;
import com.pandadoc.client.Configuration;
import com.pandadoc.client.auth.*;
import com.pandadoc.client.models.*;
import com.pandadoc.client.api.DocumentsApi;
import java.util.Arrays;
import java.io.File;
import java.util.List;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.pandadoc.com");
// Configure API key authorization: apiKey
ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("apiKey");
apiKey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "API-Key" (defaults to null)
//apiKey.setApiKeyPrefix("API-Key");
// Configure OAuth2 access token for authorization: oauth2
// OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
// oauth2.setAccessToken("YOUR ACCESS TOKEN");
DocumentsApi apiInstance = new DocumentsApi(defaultClient);
// DocumentCreateRequest | Use a PandaDoc template or an existing PDF to create a document. See the creation request examples [by template](/schemas/DocumentCreateByTemplateRequest) and [by pdf](/schemas/DocumentCreateByPdfRequest)
DocumentCreateRequest documentCreateRequest = new DocumentCreateRequest();
// String | Set this parameter as `ev1` if you want to create a document from PDF with Classic Editor when both editors are enabled for the workspace.
String editorVer = "ev2";
try {
DocumentCreateResponse result = apiInstance.createDocument(documentCreateRequest, editorVer);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DocumentsApi#createDocument");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| documentCreateRequest | DocumentCreateRequest | Use a PandaDoc template or an existing PDF to create a document. See the creation request examples by template and by pdf | |
| editorVer | String | Set this parameter as `ev1` if you want to create a document from PDF with Classic Editor when both editors are enabled for the workspace. | [optional] |
- Content-Type: application/json, multipart/form-data
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 201 | OK | - |
| 400 | Bad Request | - |
| 401 | Authentication error | - |
| 429 | Too Many Requests | - |
DocumentCreateLinkResponse createDocumentLink(id, documentCreateLinkRequest)
Create a Document Link
// Import classes:
import com.pandadoc.client.ApiClient;
import com.pandadoc.client.ApiException;
import com.pandadoc.client.Configuration;
import com.pandadoc.client.auth.*;
import com.pandadoc.client.models.*;
import com.pandadoc.client.api.DocumentsApi;
import java.util.Arrays;
import java.io.File;
import java.util.List;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.pandadoc.com");
// Configure API key authorization: apiKey
ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("apiKey");
apiKey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "API-Key" (defaults to null)
//apiKey.setApiKeyPrefix("API-Key");
// Configure OAuth2 access token for authorization: oauth2
// OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
// oauth2.setAccessToken("YOUR ACCESS TOKEN");
DocumentsApi apiInstance = new DocumentsApi(defaultClient);
// String | Document ID
String id = "ZPeAfcpzr9aiVs5vqUf6jg";
// DocumentCreateLinkRequest |
DocumentCreateLinkRequest documentCreateLinkRequest = new DocumentCreateLinkRequest();
try {
DocumentCreateLinkResponse result = apiInstance.createDocumentLink(id, documentCreateLinkRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DocumentsApi#createDocumentLink");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | Document ID | |
| documentCreateLinkRequest | DocumentCreateLinkRequest |
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 201 | OK | - |
| 400 | Bad Request | - |
| 401 | Authentication error | - |
| 403 | Permission error | - |
| 404 | Not found | - |
| 429 | Too Many Requests | - |
LinkedObjectCreateResponse createLinkedObject(id, linkedObjectCreateRequest)
Create Linked Object
// Import classes:
import com.pandadoc.client.ApiClient;
import com.pandadoc.client.ApiException;
import com.pandadoc.client.Configuration;
import com.pandadoc.client.auth.*;
import com.pandadoc.client.models.*;
import com.pandadoc.client.api.DocumentsApi;
import java.util.Arrays;
import java.io.File;
import java.util.List;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.pandadoc.com");
// Configure API key authorization: apiKey
ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("apiKey");
apiKey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "API-Key" (defaults to null)
//apiKey.setApiKeyPrefix("API-Key");
// Configure OAuth2 access token for authorization: oauth2
// OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
// oauth2.setAccessToken("YOUR ACCESS TOKEN");
DocumentsApi apiInstance = new DocumentsApi(defaultClient);
// String | Specify document ID.
String id = "ZPeAfcpzr9aiVs5vqUf6jg";
// LinkedObjectCreateRequest |
LinkedObjectCreateRequest linkedObjectCreateRequest = new LinkedObjectCreateRequest();
try {
LinkedObjectCreateResponse result = apiInstance.createLinkedObject(id, linkedObjectCreateRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DocumentsApi#createLinkedObject");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | Specify document ID. | |
| linkedObjectCreateRequest | LinkedObjectCreateRequest |
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 400 | Bad Request | - |
| 401 | Authentication error | - |
| 403 | Permission error | - |
| 404 | Not found | - |
| 429 | Too Many Requests | - |
deleteDocument(id)
Delete document by id
// Import classes:
import com.pandadoc.client.ApiClient;
import com.pandadoc.client.ApiException;
import com.pandadoc.client.Configuration;
import com.pandadoc.client.auth.*;
import com.pandadoc.client.models.*;
import com.pandadoc.client.api.DocumentsApi;
import java.util.Arrays;
import java.io.File;
import java.util.List;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.pandadoc.com");
// Configure API key authorization: apiKey
ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("apiKey");
apiKey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "API-Key" (defaults to null)
//apiKey.setApiKeyPrefix("API-Key");
// Configure OAuth2 access token for authorization: oauth2
// OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
// oauth2.setAccessToken("YOUR ACCESS TOKEN");
DocumentsApi apiInstance = new DocumentsApi(defaultClient);
// String | Document ID
String id = "BhVzRcxH9Z2LgfPPGXFUBa";
try {
apiInstance.deleteDocument(id);
} catch (ApiException e) {
System.err.println("Exception when calling DocumentsApi#deleteDocument");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | Document ID |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 204 | No content | - |
| 404 | Not found | - |
deleteLinkedObject(id, linkedObjectId)
Delete Linked Object
// Import classes:
import com.pandadoc.client.ApiClient;
import com.pandadoc.client.ApiException;
import com.pandadoc.client.Configuration;
import com.pandadoc.client.auth.*;
import com.pandadoc.client.models.*;
import com.pandadoc.client.api.DocumentsApi;
import java.util.Arrays;
import java.io.File;
import java.util.List;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.pandadoc.com");
// Configure API key authorization: apiKey
ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("apiKey");
apiKey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "API-Key" (defaults to null)
//apiKey.setApiKeyPrefix("API-Key");
// Configure OAuth2 access token for authorization: oauth2
// OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
// oauth2.setAccessToken("YOUR ACCESS TOKEN");
DocumentsApi apiInstance = new DocumentsApi(defaultClient);
// String | Specify document ID.
String id = "ZPeAfcpzr9aiVs5vqUf6jg";
// String | Specify linked object ID.
String linkedObjectId = "deb0d530-d759-4189-a422-8d2265e01b2e";
try {
apiInstance.deleteLinkedObject(id, linkedObjectId);
} catch (ApiException e) {
System.err.println("Exception when calling DocumentsApi#deleteLinkedObject");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | Specify document ID. | |
| linkedObjectId | String | Specify linked object ID. |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 204 | No content | - |
| 401 | Authentication error | - |
| 403 | Permission error | - |
| 404 | Not found | - |
| 409 | Conflict | - |
| 429 | Too Many Requests | - |
DocumentDetailsResponse detailsDocument(id)
Document details
// Import classes:
import com.pandadoc.client.ApiClient;
import com.pandadoc.client.ApiException;
import com.pandadoc.client.Configuration;
import com.pandadoc.client.auth.*;
import com.pandadoc.client.models.*;
import com.pandadoc.client.api.DocumentsApi;
import java.util.Arrays;
import java.io.File;
import java.util.List;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.pandadoc.com");
// Configure API key authorization: apiKey
ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("apiKey");
apiKey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "API-Key" (defaults to null)
//apiKey.setApiKeyPrefix("API-Key");
// Configure OAuth2 access token for authorization: oauth2
// OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
// oauth2.setAccessToken("YOUR ACCESS TOKEN");
DocumentsApi apiInstance = new DocumentsApi(defaultClient);
// String | Document ID
String id = "BhVzRcxH9Z2LgfPPGXFUBa";
try {
DocumentDetailsResponse result = apiInstance.detailsDocument(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DocumentsApi#detailsDocument");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | Document ID |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 401 | Authentication error | - |
| 403 | Permission error | - |
| 404 | Not found | - |
| 409 | Conflict | - |
| 429 | Too Many Requests | - |
documentMoveToFolder(id, folderId)
Document move to folder
// Import classes:
import com.pandadoc.client.ApiClient;
import com.pandadoc.client.ApiException;
import com.pandadoc.client.Configuration;
import com.pandadoc.client.auth.*;
import com.pandadoc.client.models.*;
import com.pandadoc.client.api.DocumentsApi;
import java.util.Arrays;
import java.io.File;
import java.util.List;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.pandadoc.com");
// Configure API key authorization: apiKey
ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("apiKey");
apiKey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "API-Key" (defaults to null)
//apiKey.setApiKeyPrefix("API-Key");
// Configure OAuth2 access token for authorization: oauth2
// OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
// oauth2.setAccessToken("YOUR ACCESS TOKEN");
DocumentsApi apiInstance = new DocumentsApi(defaultClient);
// String | Specify document ID.
String id = "ZPeAfcpzr9aiVs5vqUf6jg";
// String | Specify folder ID.
String folderId = "ZPeAfcpzr9aiVs5vqUf6jg";
try {
apiInstance.documentMoveToFolder(id, folderId);
} catch (ApiException e) {
System.err.println("Exception when calling DocumentsApi#documentMoveToFolder");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | Specify document ID. | |
| folderId | String | Specify folder ID. |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 204 | No content | - |
| 401 | Authentication error | - |
| 403 | Permission error | - |
| 404 | Not found | - |
| 429 | Too Many Requests | - |
File downloadDocument(id, watermarkColor, watermarkFontSize, watermarkOpacity, watermarkText, separateFiles)
Document download
// Import classes:
import com.pandadoc.client.ApiClient;
import com.pandadoc.client.ApiException;
import com.pandadoc.client.Configuration;
import com.pandadoc.client.auth.*;
import com.pandadoc.client.models.*;
import com.pandadoc.client.api.DocumentsApi;
import java.util.Arrays;
import java.io.File;
import java.util.List;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.pandadoc.com");
// Configure API key authorization: apiKey
ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("apiKey");
apiKey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "API-Key" (defaults to null)
//apiKey.setApiKeyPrefix("API-Key");
// Configure OAuth2 access token for authorization: oauth2
// OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
// oauth2.setAccessToken("YOUR ACCESS TOKEN");
DocumentsApi apiInstance = new DocumentsApi(defaultClient);
// String | Specify document ID.
String id = "BhVzRcxH9Z2LgfPPGXFUBa";
// String | HEX code (for example `#FF5733`).
String watermarkColor = "#FF5733";
// Integer | Font size of the watermark.
Integer watermarkFontSize = 12;
// Float | In range 0.0-1.0
Float watermarkOpacity = 0.5F;
// String | Specify watermark text.
String watermarkText = "John Doe inc.";
// Boolean | Set as `true` if you want to receive a zip file with all documents in separate when document transaction contains more than 1.
Boolean separateFiles = true;
try {
File result = apiInstance.downloadDocument(id, watermarkColor, watermarkFontSize, watermarkOpacity, watermarkText, separateFiles);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DocumentsApi#downloadDocument");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | Specify document ID. | |
| watermarkColor | String | HEX code (for example `#FF5733`). | [optional] |
| watermarkFontSize | Integer | Font size of the watermark. | [optional] |
| watermarkOpacity | Float | In range 0.0-1.0 | [optional] |
| watermarkText | String | Specify watermark text. | [optional] |
| separateFiles | Boolean | Set as `true` if you want to receive a zip file with all documents in separate when document transaction contains more than 1. | [optional] |
- Content-Type: Not defined
- Accept: application/pdf, application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 400 | Bad Request | - |
| 401 | Authentication error | - |
| 403 | Permission error | - |
| 404 | Not found | - |
| 409 | Conflict | - |
| 429 | Too Many Requests | - |
File downloadProtectedDocument(id, separateFiles)
Download document protected
Download a signed PDF of a completed document
// Import classes:
import com.pandadoc.client.ApiClient;
import com.pandadoc.client.ApiException;
import com.pandadoc.client.Configuration;
import com.pandadoc.client.auth.*;
import com.pandadoc.client.models.*;
import com.pandadoc.client.api.DocumentsApi;
import java.util.Arrays;
import java.io.File;
import java.util.List;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.pandadoc.com");
// Configure API key authorization: apiKey
ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("apiKey");
apiKey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "API-Key" (defaults to null)
//apiKey.setApiKeyPrefix("API-Key");
// Configure OAuth2 access token for authorization: oauth2
// OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
// oauth2.setAccessToken("YOUR ACCESS TOKEN");
DocumentsApi apiInstance = new DocumentsApi(defaultClient);
// String | Specify document ID.
String id = "Mebvyy3NGsGBnY2rPLkH84";
// Boolean | Set as `true` if you want to receive a zip file with all documents in separate when document transaction contains more than 1.
Boolean separateFiles = true;
try {
File result = apiInstance.downloadProtectedDocument(id, separateFiles);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DocumentsApi#downloadProtectedDocument");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | Specify document ID. | |
| separateFiles | Boolean | Set as `true` if you want to receive a zip file with all documents in separate when document transaction contains more than 1. | [optional] |
- Content-Type: Not defined
- Accept: application/pdf, application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 401 | Authentication error | - |
| 403 | Permission error | - |
| 404 | Not found | - |
| 409 | Conflict | - |
| 429 | Too Many Requests | - |
DocumentListResponse listDocuments(completedFrom, completedTo, contactId, count, createdFrom, createdTo, deleted, id, folderUuid, formId, membershipId, metadata, modifiedFrom, modifiedTo, orderBy, page, q, status, statusNe, tag, templateId)
List documents
// Import classes:
import com.pandadoc.client.ApiClient;
import com.pandadoc.client.ApiException;
import com.pandadoc.client.Configuration;
import com.pandadoc.client.auth.*;
import com.pandadoc.client.models.*;
import com.pandadoc.client.api.DocumentsApi;
import java.util.Arrays;
import java.io.File;
import java.util.List;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.pandadoc.com");
// Configure API key authorization: apiKey
ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("apiKey");
apiKey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "API-Key" (defaults to null)
//apiKey.setApiKeyPrefix("API-Key");
// Configure OAuth2 access token for authorization: oauth2
// OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
// oauth2.setAccessToken("YOUR ACCESS TOKEN");
DocumentsApi apiInstance = new DocumentsApi(defaultClient);
// String | Return results where the `date_completed` field (ISO 8601) is greater than or equal to this value.
String completedFrom = "2021-10-27T15:22:23.132757Z";
// String | Return results where the `date_completed` field (ISO 8601) is less than or equal to this value.
String completedTo = "2021-10-27T15:22:23.132757Z";
// String | Returns results where 'contact_id' is present in document as recipient or approver
String contactId = "9FeAY2NB3C9qDdtQRb4tTL";
// Integer | Specify how many document results to return. Default is 50 documents, maximum is 100 documents.
Integer count = 50;
// String | Return results where the `date_created` field (ISO 8601) is greater than or equal to this value.
String createdFrom = "2021-10-27T15:22:23.132757Z";
// String | Return results where the `date_created` field (ISO 8601) is less than this value.
String createdTo = "2021-10-27T15:22:23.132757Z";
// Boolean | Returns only the deleted documents.
Boolean deleted = true;
// String |
String id = "BhVzRcxH9Z2LgfPPGXFUBa";
// String | The UUID of the folder where the documents are stored.
String folderUuid = "BhVzRcxH9Z2LgfPPGXFUBa";
// String | Specify the form used for documents creation. This parameter can't be used with template_id.
String formId = "BhVzRcxH9Z2LgfPPGXFUBa";
// String | Returns results where 'membership_id' is present in document as owner (should be member uuid)
String membershipId = "BhVzRcxH9Z2LgfPPGXFUBa";
// List<String> | Specify metadata to filter by in the format of `metadata_{metadata-key}={metadata-value}` such as `metadata_opportunity_id=2181432`. The `metadata_` prefix is always required.
List<String> metadata = Arrays.asList();
// String | Return results where the `date_modified` field (iso-8601) is greater than or equal to this value.
String modifiedFrom = "2021-10-27T15:22:23.132757Z";
// String | Return results where the `date_modified` field (iso-8601) is less than this value.
String modifiedTo = "2021-10-27T15:22:23.132757Z";
// DocumentOrderingFieldsEnum | Specify the order of documents to return. Use `value` (for example, `date_created`) for ASC and `-value` (for example, `-date_created`) for DESC.
DocumentOrderingFieldsEnum orderBy = DocumentOrderingFieldsEnum.fromValue("name");
// Integer | Specify which page of the dataset to return.
Integer page = 1;
// String | Search query. Filter by document reference number (this token is stored on the template level) or name.
String q = "Sample Document";
// DocumentStatusRequestEnum | Specify the status of documents to return. * 0: document.draft * 1: document.sent * 2: document.completed * 3: document.uploaded * 4: document.error * 5: document.viewed * 6: document.waiting_approval * 7: document.approved * 8: document.rejected * 9: document.waiting_pay * 10: document.paid * 11: document.voided * 12: document.declined * 13: document.external_review
DocumentStatusRequestEnum status = DocumentStatusRequestEnum.fromValue("0");
// DocumentStatusRequestEnum | Specify the status of documents to return (exclude). * 0: document.draft * 1: document.sent * 2: document.completed * 3: document.uploaded * 4: document.error * 5: document.viewed * 6: document.waiting_approval * 7: document.approved * 8: document.rejected * 9: document.waiting_pay * 10: document.paid * 11: document.voided * 12: document.declined * 13: document.external_review
DocumentStatusRequestEnum statusNe = DocumentStatusRequestEnum.fromValue("0");
// String | Search tag. Filter by document tag.
String tag = "tag_1";
// String | Specify the template used for documents creation. Parameter can't be used with form_id.
String templateId = "BhVzRcxH9Z2LgfPPGXFUBa";
try {
DocumentListResponse result = apiInstance.listDocuments(completedFrom, completedTo, contactId, count, createdFrom, createdTo, deleted, id, folderUuid, formId, membershipId, metadata, modifiedFrom, modifiedTo, orderBy, page, q, status, statusNe, tag, templateId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DocumentsApi#listDocuments");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| completedFrom | String | Return results where the `date_completed` field (ISO 8601) is greater than or equal to this value. | [optional] |
| completedTo | String | Return results where the `date_completed` field (ISO 8601) is less than or equal to this value. | [optional] |
| contactId | String | Returns results where 'contact_id' is present in document as recipient or approver | [optional] |
| count | Integer | Specify how many document results to return. Default is 50 documents, maximum is 100 documents. | [optional] |
| createdFrom | String | Return results where the `date_created` field (ISO 8601) is greater than or equal to this value. | [optional] |
| createdTo | String | Return results where the `date_created` field (ISO 8601) is less than this value. | [optional] |
| deleted | Boolean | Returns only the deleted documents. | [optional] |
| id | String | [optional] | |
| folderUuid | String | The UUID of the folder where the documents are stored. | [optional] |
| formId | String | Specify the form used for documents creation. This parameter can't be used with template_id. | [optional] |
| membershipId | String | Returns results where 'membership_id' is present in document as owner (should be member uuid) | [optional] |
| metadata | List<String> | Specify metadata to filter by in the format of `metadata_{metadata-key}={metadata-value}` such as `metadata_opportunity_id=2181432`. The `metadata_` prefix is always required. | [optional] |
| modifiedFrom | String | Return results where the `date_modified` field (iso-8601) is greater than or equal to this value. | [optional] |
| modifiedTo | String | Return results where the `date_modified` field (iso-8601) is less than this value. | [optional] |
| orderBy | DocumentOrderingFieldsEnum | Specify the order of documents to return. Use `value` (for example, `date_created`) for ASC and `-value` (for example, `-date_created`) for DESC. | [optional] [enum: name, date_created, date_status_changed, date_of_last_action, date_modified, date_sent, date_completed, date_expiration, date_declined, status, -name, -date_created, -date_status_changed, -date_of_last_action, -date_modified, -date_sent, -date_completed, -date_expiration, -date_declined, -status] |
| page | Integer | Specify which page of the dataset to return. | [optional] |
| q | String | Search query. Filter by document reference number (this token is stored on the template level) or name. | [optional] |
| status | DocumentStatusRequestEnum | Specify the status of documents to return. * 0: document.draft * 1: document.sent * 2: document.completed * 3: document.uploaded * 4: document.error * 5: document.viewed * 6: document.waiting_approval * 7: document.approved * 8: document.rejected * 9: document.waiting_pay * 10: document.paid * 11: document.voided * 12: document.declined * 13: document.external_review | [optional] [enum: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13] |
| statusNe | DocumentStatusRequestEnum | Specify the status of documents to return (exclude). * 0: document.draft * 1: document.sent * 2: document.completed * 3: document.uploaded * 4: document.error * 5: document.viewed * 6: document.waiting_approval * 7: document.approved * 8: document.rejected * 9: document.waiting_pay * 10: document.paid * 11: document.voided * 12: document.declined * 13: document.external_review | [optional] [enum: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13] |
| tag | String | Search tag. Filter by document tag. | [optional] |
| templateId | String | Specify the template used for documents creation. Parameter can't be used with form_id. | [optional] |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 400 | Bad Request | - |
| 401 | Authentication error | - |
| 403 | Permission error | - |
| 429 | Too Many Requests | - |
LinkedObjectListResponse listLinkedObjects(id)
List Linked Objects
// Import classes:
import com.pandadoc.client.ApiClient;
import com.pandadoc.client.ApiException;
import com.pandadoc.client.Configuration;
import com.pandadoc.client.auth.*;
import com.pandadoc.client.models.*;
import com.pandadoc.client.api.DocumentsApi;
import java.util.Arrays;
import java.io.File;
import java.util.List;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.pandadoc.com");
// Configure API key authorization: apiKey
ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("apiKey");
apiKey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "API-Key" (defaults to null)
//apiKey.setApiKeyPrefix("API-Key");
// Configure OAuth2 access token for authorization: oauth2
// OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
// oauth2.setAccessToken("YOUR ACCESS TOKEN");
DocumentsApi apiInstance = new DocumentsApi(defaultClient);
// String | Specify document ID.
String id = "ZPeAfcpzr9aiVs5vqUf6jg";
try {
LinkedObjectListResponse result = apiInstance.listLinkedObjects(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DocumentsApi#listLinkedObjects");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | Specify document ID. |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Success response | - |
| 401 | Authentication error | - |
| 403 | Permission error | - |
| 404 | Not found | - |
| 409 | Conflict | - |
| 429 | Too Many Requests | - |
DocumentSendResponse sendDocument(id, documentSendRequest)
Send Document
// Import classes:
import com.pandadoc.client.ApiClient;
import com.pandadoc.client.ApiException;
import com.pandadoc.client.Configuration;
import com.pandadoc.client.auth.*;
import com.pandadoc.client.models.*;
import com.pandadoc.client.api.DocumentsApi;
import java.util.Arrays;
import java.io.File;
import java.util.List;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.pandadoc.com");
// Configure API key authorization: apiKey
ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("apiKey");
apiKey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "API-Key" (defaults to null)
//apiKey.setApiKeyPrefix("API-Key");
// Configure OAuth2 access token for authorization: oauth2
// OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
// oauth2.setAccessToken("YOUR ACCESS TOKEN");
DocumentsApi apiInstance = new DocumentsApi(defaultClient);
// String | Document ID
String id = "ZPeAfcpzr9aiVs5vqUf6jg";
// DocumentSendRequest |
DocumentSendRequest documentSendRequest = new DocumentSendRequest();
try {
DocumentSendResponse result = apiInstance.sendDocument(id, documentSendRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DocumentsApi#sendDocument");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | Document ID | |
| documentSendRequest | DocumentSendRequest |
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 401 | Authentication error | - |
| 403 | Permission error | - |
| 404 | Not found | - |
| 409 | Conflict | - |
| 429 | Too Many Requests | - |
DocumentStatusResponse statusDocument(id)
Document status
// Import classes:
import com.pandadoc.client.ApiClient;
import com.pandadoc.client.ApiException;
import com.pandadoc.client.Configuration;
import com.pandadoc.client.auth.*;
import com.pandadoc.client.models.*;
import com.pandadoc.client.api.DocumentsApi;
import java.util.Arrays;
import java.io.File;
import java.util.List;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.pandadoc.com");
// Configure API key authorization: apiKey
ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("apiKey");
apiKey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "API-Key" (defaults to null)
//apiKey.setApiKeyPrefix("API-Key");
// Configure OAuth2 access token for authorization: oauth2
// OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
// oauth2.setAccessToken("YOUR ACCESS TOKEN");
DocumentsApi apiInstance = new DocumentsApi(defaultClient);
// String | Specify document ID.
String id = "BhVzRcxH9Z2LgfPPGXFUBa";
try {
DocumentStatusResponse result = apiInstance.statusDocument(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DocumentsApi#statusDocument");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | Specify document ID. |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 401 | Authentication error | - |
| 403 | Permission error | - |
| 404 | Not found | - |
| 429 | Too Many Requests | - |
transferAllDocumentsOwnership(documentTransferAllOwnershipRequest)
Transfer all documents ownership
// Import classes:
import com.pandadoc.client.ApiClient;
import com.pandadoc.client.ApiException;
import com.pandadoc.client.Configuration;
import com.pandadoc.client.auth.*;
import com.pandadoc.client.models.*;
import com.pandadoc.client.api.DocumentsApi;
import java.util.Arrays;
import java.io.File;
import java.util.List;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.pandadoc.com");
// Configure API key authorization: apiKey
ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("apiKey");
apiKey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "API-Key" (defaults to null)
//apiKey.setApiKeyPrefix("API-Key");
// Configure OAuth2 access token for authorization: oauth2
// OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
// oauth2.setAccessToken("YOUR ACCESS TOKEN");
DocumentsApi apiInstance = new DocumentsApi(defaultClient);
// DocumentTransferAllOwnershipRequest |
DocumentTransferAllOwnershipRequest documentTransferAllOwnershipRequest = new DocumentTransferAllOwnershipRequest();
try {
apiInstance.transferAllDocumentsOwnership(documentTransferAllOwnershipRequest);
} catch (ApiException e) {
System.err.println("Exception when calling DocumentsApi#transferAllDocumentsOwnership");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| documentTransferAllOwnershipRequest | DocumentTransferAllOwnershipRequest |
null (empty response body)
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 204 | No content | - |
| 401 | Authentication error | - |
| 403 | Permission error | - |
| 404 | Not found | - |
| 429 | Too Many Requests | - |
transferDocumentOwnership(id, documentTransferOwnershipRequest)
Update document ownership
// Import classes:
import com.pandadoc.client.ApiClient;
import com.pandadoc.client.ApiException;
import com.pandadoc.client.Configuration;
import com.pandadoc.client.auth.*;
import com.pandadoc.client.models.*;
import com.pandadoc.client.api.DocumentsApi;
import java.util.Arrays;
import java.io.File;
import java.util.List;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.pandadoc.com");
// Configure API key authorization: apiKey
ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("apiKey");
apiKey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "API-Key" (defaults to null)
//apiKey.setApiKeyPrefix("API-Key");
// Configure OAuth2 access token for authorization: oauth2
// OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
// oauth2.setAccessToken("YOUR ACCESS TOKEN");
DocumentsApi apiInstance = new DocumentsApi(defaultClient);
// String | Specify document ID.
String id = "BhVzRcxH9Z2LgfPPGXFUBa";
// DocumentTransferOwnershipRequest |
DocumentTransferOwnershipRequest documentTransferOwnershipRequest = new DocumentTransferOwnershipRequest();
try {
apiInstance.transferDocumentOwnership(id, documentTransferOwnershipRequest);
} catch (ApiException e) {
System.err.println("Exception when calling DocumentsApi#transferDocumentOwnership");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | Specify document ID. | |
| documentTransferOwnershipRequest | DocumentTransferOwnershipRequest |
null (empty response body)
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 204 | No content | - |
| 401 | Authentication error | - |
| 403 | Permission error | - |
| 404 | Not found | - |
| 409 | Conflict | - |
| 429 | Too Many Requests | - |
updateDocument(id, documentUpdateRequest)
Update Document only in the draft status
// Import classes:
import com.pandadoc.client.ApiClient;
import com.pandadoc.client.ApiException;
import com.pandadoc.client.Configuration;
import com.pandadoc.client.auth.*;
import com.pandadoc.client.models.*;
import com.pandadoc.client.api.DocumentsApi;
import java.util.Arrays;
import java.io.File;
import java.util.List;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.pandadoc.com");
// Configure API key authorization: apiKey
ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("apiKey");
apiKey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "API-Key" (defaults to null)
//apiKey.setApiKeyPrefix("API-Key");
// Configure OAuth2 access token for authorization: oauth2
// OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
// oauth2.setAccessToken("YOUR ACCESS TOKEN");
DocumentsApi apiInstance = new DocumentsApi(defaultClient);
// String | Document ID
String id = "BhVzRcxH9Z2LgfPPGXFUBa";
// DocumentUpdateRequest |
DocumentUpdateRequest documentUpdateRequest = new DocumentUpdateRequest();
try {
apiInstance.updateDocument(id, documentUpdateRequest);
} catch (ApiException e) {
System.err.println("Exception when calling DocumentsApi#updateDocument");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | Document ID | |
| documentUpdateRequest | DocumentUpdateRequest |
null (empty response body)
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 204 | No content | - |
| 400 | Bad Request | - |
| 401 | Authentication error | - |
| 403 | Permission error | - |
| 404 | Not found | - |
| 429 | Too Many Requests | - |