This will upload the completed signed document from PandaDoc back to BambooHR. This requires that you set the BambooHR user ids in the background through this integration: https://integrations.chiefonboarding.com/manifest/13

Manifest

{
    "form": [],
    "execute": [
        {
            "url": "https://api.pandadoc.com/public/v1/documents/{{PANDADOC_DOCUMENT_ID}}",
            "method": "GET",
            "continue_if": {
                "value": "document.completed",
                "response_notation": "status"
            }
        },
        {
            "url": "https://api.pandadoc.com/public/v1/documents/{{PANDADOC_DOCUMENT_ID}}/download",
            "method": "GET",
            "save_as_file": "contract.pdf"
        },
        {
            "url": "https://api.bamboohr.com/api/gateway.php/{{BAMBOOHR_COMPANY_ID}}/v1/employees/{{BAMBOOHR_USER_ID}}/files",
            "data": {
                "share": "yes",
                "category": "12",
                "fileName": "contract.pdf"
            },
            "files": {
                "file": "contract.pdf"
            },
            "method": "POST",
            "headers": {
                "Authorization": "Basic {{BAMBOOHR_KEY}}:x"
            },
            "cast_data_to_json": true
        }
    ],
    "headers": {
        "Accept": "application/json",
        "Content-Type": "application/json",
        "Authorization": "API-Key {{PANDADOC_KEY}}"
    },
    "initial_data_form": [
        {
            "id": "PANDADOC_KEY",
            "name": "The PandaDoc api key",
            "description": "Go to: https://app.pandadoc.com/a/#/api-dashboard/configuration to get one"
        },
        {
            "id": "BAMBOOHR_KEY",
            "name": "The BambooHR api key",
            "description": "Go to: https://<yourdomain>.bamboohr.com/settings/permissions/api.php to get one"
        },
        {
            "id": "BAMBOOHR_COMPANY_ID",
            "name": "The id of the company in BambooHR",
            "description": "When you login you get a domain like this: https://<yourdomain>.bamboohr.com/. The '<yourdomain>' is your domain name. "
        }
    ]
}

This integration will:

  1. Check if the document is compeleted (it will stop if it's not, so you can use it in multiple places if you expect multiple people to sign)

  2. Download the file from PandaDoc

  3. Upload the file to BambooHR

Comments

No comments yet.