post
https://api.pandadoc.com/public/v1/documents//linked-objects//refresh
Pull the latest data from a CRM object linked to the document. This is the same as clicking Refresh in the document editor.
The refresh updates the document's variables and merge fields with data from the linked CRM object. For HubSpot, Pipedrive, and Salesforce, it also pulls the object's line items into quote blocks and pricing tables, and applies the template's Merge Rules to them.
Use List Linked Objects to get the linked_object_id, or Create Linked Object to link one first.
Requirements
- The document must be in the
document.draftstatus. Otherwise, the endpoint returns403.- The API user must be able to edit the document's content.
- Only one refresh can run on a document at a time. A second request returns
409until the first one finishes.
If the refresh can't fetch line items from a CRM that supports them, the endpoint returns502with theproducts_fetch_errorcode. Variables and merge fields may already be updated. Retry the request.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests⦠| |||
Loadingā¦
204The document was refreshed with data from the linked CRM object.
