All URIs are relative to https://api.pandadoc.com
Method | HTTP request | Description |
---|---|---|
createContact | POST /public/v1/contacts | Create contact |
deleteContact | DELETE /public/v1/contacts/{id} | Delete contact by id |
detailsContact | GET /public/v1/contacts/{id} | Get contact details by id |
listContacts | GET /public/v1/contacts | List contacts |
updateContact | PATCH /public/v1/contacts/{id} | Update contact by id |
ContactDetailsResponse createContact(contactCreateRequest)
import * as pd_api from 'pandadoc-node-client';
// replace it with your API key
const API_KEY = "YOUR_API_KEY";
const configuration = pd_api.createConfiguration(
{ authMethods: {apiKey: `API-Key ${API_KEY}`} }
);
const apiInstance = new pd_api.ContactsApi(configuration);
const body:pd_api.ContactsApiCreateContactRequest = {
// ContactCreateRequest
contactCreateRequest: {
email: "[email protected]",
firstName: "John",
lastName: "Doe",
company: "John Doe Inc.",
jobTitle: "CTO",
phone: "+14842634627",
state: "Texas",
streetAddress: "1313 Mockingbird Lane",
city: "Austin",
postalCode: "75001",
},
};
apiInstance.createContact(body).then((data) => {
console.log('API called successfully. Returned data: %o', data);
}).catch((error) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
contactCreateRequest | ContactCreateRequest |
ContactDetailsResponse
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
201 | OK | - |
400 | Bad Request | - |
401 | Authentication error | - |
429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to README]
void deleteContact()
import * as pd_api from 'pandadoc-node-client';
// replace it with your API key
const API_KEY = "YOUR_API_KEY";
const configuration = pd_api.createConfiguration(
{ authMethods: {apiKey: `API-Key ${API_KEY}`} }
);
const apiInstance = new pd_api.ContactsApi(configuration);
const body:pd_api.ContactsApiDeleteContactRequest = {
// string | Contact id.
id: "SyoufNkJiHRn24LpuJ7RXb",
};
apiInstance.deleteContact(body).then((data) => {
console.log('API called successfully. Returned data: %o', data);
}).catch((error) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
id | [string] | Contact id. | defaults to undefined |
void
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
204 | OK | - |
400 | Bad Request | - |
401 | Bad Request | - |
403 | Authentication error | - |
429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to README]
ContactDetailsResponse detailsContact()
import * as pd_api from 'pandadoc-node-client';
// replace it with your API key
const API_KEY = "YOUR_API_KEY";
const configuration = pd_api.createConfiguration(
{ authMethods: {apiKey: `API-Key ${API_KEY}`} }
);
const apiInstance = new pd_api.ContactsApi(configuration);
const body:pd_api.ContactsApiDetailsContactRequest = {
// string | Contact id.
id: "SyoufNkJiHRn24LpuJ7RXb",
};
apiInstance.detailsContact(body).then((data) => {
console.log('API called successfully. Returned data: %o', data);
}).catch((error) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
id | [string] | Contact id. | defaults to undefined |
ContactDetailsResponse
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | Bad Request | - |
401 | Bad Request | - |
403 | Authentication error | - |
429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to README]
ContactListResponse listContacts()
import * as pd_api from 'pandadoc-node-client';
// replace it with your API key
const API_KEY = "YOUR_API_KEY";
const configuration = pd_api.createConfiguration(
{ authMethods: {apiKey: `API-Key ${API_KEY}`} }
);
const apiInstance = new pd_api.ContactsApi(configuration);
const body:pd_api.ContactsApiListContactsRequest = {
// string | Optional search parameter. Filter results by exact match. (optional)
email: "[email protected]",
};
apiInstance.listContacts(body).then((data) => {
console.log('API called successfully. Returned data: %o', data);
}).catch((error) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
[string] | Optional search parameter. Filter results by exact match. | (optional) defaults to undefined |
ContactListResponse
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | Bad Request | - |
401 | Bad Request | - |
403 | Authentication error | - |
429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to README]
ContactDetailsResponse updateContact(contactUpdateRequest)
import * as pd_api from 'pandadoc-node-client';
// replace it with your API key
const API_KEY = "YOUR_API_KEY";
const configuration = pd_api.createConfiguration(
{ authMethods: {apiKey: `API-Key ${API_KEY}`} }
);
const apiInstance = new pd_api.ContactsApi(configuration);
const body:pd_api.ContactsApiUpdateContactRequest = {
// string | Contact id.
id: "SyoufNkJiHRn24LpuJ7RXb",
// ContactUpdateRequest
contactUpdateRequest: {
email: "[email protected]",
firstName: "John",
lastName: "Doe",
company: "John Doe Inc.",
jobTitle: "CTO",
phone: "+14842634627",
state: "Texas",
streetAddress: "1313 Mockingbird Lane",
city: "Austin",
postalCode: "75001",
},
};
apiInstance.updateContact(body).then((data) => {
console.log('API called successfully. Returned data: %o', data);
}).catch((error) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
contactUpdateRequest | ContactUpdateRequest | ||
id | [string] | Contact id. | defaults to undefined |
ContactDetailsResponse
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | Bad Request | - |
401 | Authentication error | - |
429 | Too Many Requests | - |