Skip to content

Support "tables" in document creation #44

@tempest2023

Description

@tempest2023

I tried the API and it works, it can populate the data in my template doc with a table. The API request supports "table" in Document Creation request, for example:

curl --location 'https://api.pandadoc.com/public/v1/documents' \
--header 'Authorization: API-Key API_KEY_HERE' \
--header 'Content-Type: application/json' \
--data-raw '{
        "name": "Test Doc",
        "template_uuid": "",
        "tables": [
            {"name":"table_name", "data": {"section":[
                                                                                                {"header": [{"text": "header1"}], "rows": [[{"text":"test_text"}]]}
                        
                                                                                    ]}
            }
        ]
}'

But I reviewed this node-SDK, the DocumentCreateRequest doesn't include "table"/"tables" attribute, only has a "pricingTables".
Does it mean the SDK doesn't support adding table in Document? How can I use "table" with this node sdk.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions