{
    "name": "CertaCal to QuickBooks: invoices",
    "flow": [
        {
            "id": 1,
            "module": "gateway:CustomWebHook",
            "version": 1,
            "parameters": {
                "hook": null,
                "maxResults": 1
            },
            "mapper": {},
            "metadata": {
                "designer": {
                    "x": 0,
                    "y": 0,
                    "name": "CertaCal: invoice ready"
                }
            }
        },
        {
            "id": 2,
            "module": "http:ActionSendData",
            "version": 3,
            "parameters": {
                "handleErrors": false,
                "useNewZLibDeCompress": true
            },
            "mapper": {
                "url": "https://YOUR-COMPANY.certacal.net/api/v1/quickbooks/documents/",
                "method": "post",
                "headers": [
                    {
                        "name": "Authorization",
                        "value": "Api-Key PASTE-YOUR-CERTACAL-KEY"
                    }
                ],
                "qs": [],
                "bodyType": "raw",
                "contentType": "application/json",
                "data": "{\"job\": {{1.data.job}}, \"type\": \"{{1.data.type}}\", \"quickbooks_id\": \"MAP: Id from Create an invoice\", \"number\": \"MAP: Doc number from Create an invoice\", \"total\": \"MAP: Total amount from Create an invoice\", \"balance\": \"MAP: Balance from Create an invoice\", \"customer_quickbooks_id\": \"MAP: the QuickBooks customer Id\"}",
                "parseResponse": true,
                "shareCookies": false,
                "serializeUrl": false,
                "followRedirect": true,
                "useQuerystring": false,
                "gzip": true,
                "rejectUnauthorized": true,
                "followAllRedirects": false,
                "timeout": ""
            },
            "metadata": {
                "designer": {
                    "x": 1500,
                    "y": 0,
                    "name": "CertaCal: write back"
                }
            }
        }
    ],
    "metadata": {
        "instant": true,
        "version": 1,
        "scenario": {
            "roundtrips": 1,
            "maxErrors": 3,
            "autoCommit": true,
            "autoCommitTriggerLast": true,
            "sequential": true,
            "confidential": false,
            "dataloss": false,
            "dlq": true,
            "freshVariables": false
        },
        "designer": {
            "orphans": []
        }
    }
}
