{"info":{"_postman_id":"11ac03d6-46d7-4fa1-8c3a-749918c1ba67","name":"Pillar Pingtree API","description":"<html><head></head><body><p>Use this API to submit leads to the Pillar API for consideration.</p>\n<p><strong>Authentication</strong></p>\n<p>Your account manager will send you a secret key which needs to be added to the <code>secret_key</code> header of the request in order to authenticate the API request.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"18637422","collectionId":"11ac03d6-46d7-4fa1-8c3a-749918c1ba67","publishedId":"VUr1FsMM","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"000000"},"publishDate":"2022-09-15T10:23:31.000Z"},"item":[{"name":"Submit Lead","event":[{"listen":"prerequest","script":{"id":"2570626a-b7ee-46c6-8579-bffadb33ce33","exec":[""],"type":"text/javascript"}}],"id":"13c68a50-affc-48f5-890e-514f4a745912","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"public_key"},{"key":"value","value":"<value>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"product","value":"pillarMonitor","type":"text","description":"<p>(<strong>Required</strong>) Product name provided by your account manager</p>\n"},{"key":"leadSource","value":"pingyo","type":"text","description":"<p>(<strong>Required</strong>) Your unique source ID provided by your account manager</p>\n"},{"key":"leadTierPrice","value":"0.50","type":"text","description":"<p>(<strong>Required</strong>) The agreed tier price</p>\n"},{"key":"leadTierType","value":"CPL","type":"text","description":"<p>(<strong>Required</strong>) Tier type - <code>CPL</code> for per accept, <code>CPF</code> for per funded account</p>\n"},{"key":"leadUniqueIdentifier","value":"abc123","type":"text","description":"<p>(<strong>Required</strong>) The unique identifier for the lead in your system</p>\n"},{"key":"leadPublisherId","value":"192","type":"text","description":"<p>(<strong>Required</strong>) The source ID of your lead</p>\n"},{"key":"leadSubPublisherId","value":"","type":"text","description":"<p>An optional additional level for source ID</p>\n"},{"key":"leadCampaignId","value":"","type":"text","description":"<p>For specific campaigns - can be used in any way</p>\n"},{"key":"leadSubCampaignId","value":"","type":"text","description":"<p>For specific campaigns - can be used in any way</p>\n"},{"key":"leadCustomId1","value":"","type":"text","description":"<p>For any other information</p>\n"},{"key":"leadCustomId2","value":"","type":"text"},{"key":"leadCustomId3","value":"","type":"text"},{"key":"leadCustomId4","value":"","type":"text"},{"key":"leadCustomId5","value":"","type":"text"},{"key":"leadWebsiteUrl","value":"http://example.com","type":"text","description":"<p>The website where the lead applied</p>\n"},{"key":"leadReferrerUrl","value":"http://example.com","type":"text","description":"<p>The referring website</p>\n"},{"key":"leadUserAgent","value":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36","type":"text","description":"<p>(<strong>Required</strong>) The full user agent of the lead</p>\n"},{"key":"leadIpAddress","value":"1.1.1.1","type":"text","description":"<p>(<strong>Required</strong>) The IP address of the lead</p>\n"},{"key":"firstName","value":"John","type":"text","description":"<p>(<strong>Required</strong>)</p>\n"},{"key":"lastName","value":"Smith","type":"text","description":"<p>(<strong>Required</strong>)</p>\n"},{"key":"emailAddress","value":"johnsdf1doe@gmail.com","type":"text","description":"<p>(<strong>Required</strong>)</p>\n"},{"key":"phoneNo","value":"+447123446181","type":"text","description":"<p>(<strong>Required</strong>) Must be a valid phone number in E.164 format</p>\n"},{"key":"dateOfBirth","value":"31/12/1963","type":"text","description":"<p>(<strong>Required</strong>) Date of birth in format <code>dd/mm/yyyy</code></p>\n"},{"key":"address[current][subBuilding]","value":"Flat 3","type":"text","description":"<p>One of <code>subBuilding</code>, <code>buildingNo</code>, <code>buildingName</code> or <code>streetName</code> is required</p>\n"},{"key":"address[current][buildingNo]","value":"1a","type":"text"},{"key":"address[current][buildingName]","value":"Big House","type":"text"},{"key":"address[current][streetName]","value":"Baker Street","type":"text","description":"<p>(<strong>Required</strong>)</p>\n"},{"key":"address[current][city]","value":"London","type":"text","description":"<p>(<strong>Required</strong>)</p>\n"},{"key":"address[current][postCode]","value":"N1 1NA","type":"text","description":"<p>(<strong>Required</strong>)</p>\n"},{"key":"address[current][moveInDate]","value":"01/01/2021","type":"text"},{"key":"address[previous][subBuilding]","value":"","type":"text","disabled":true},{"key":"address[previous][buildingNo]","value":"","type":"text","disabled":true},{"key":"address[previous][buildingName]","value":"Big House","type":"text","disabled":true},{"key":"address[previous][streetName]","value":"Dukes Way","type":"text","description":"<p>(<strong>Required</strong>)</p>\n","disabled":true},{"key":"address[previous][city]","value":"London","type":"text","description":"<p>(<strong>Required</strong>)</p>\n","disabled":true},{"key":"address[previous][postCode]","value":"NW1 3DP","type":"text","description":"<p>(<strong>Required</strong>)</p>\n","disabled":true},{"key":"address[previous][moveInDate]","value":"01/01/2012","type":"text","disabled":true},{"key":"bankAccountNumber","value":"11111111","type":"text","description":"<p>(<strong>Required</strong>)</p>\n"},{"key":"bankSortCode","value":"309897","type":"text","description":"<p>(<strong>Required</strong>) Please remove any <code>-</code> from the sortcode</p>\n"},{"key":"usesOnlineBanking","value":"true","type":"text"},{"key":"marketingConsentEmails","value":"true","type":"text","description":"<p>(<strong>Required</strong>) Whether the lead has consented to email marketing</p>\n"},{"key":"marketingConsentSms","value":"true","type":"text","description":"<p>(<strong>Required</strong>)</p>\n"},{"key":"marketingConsentPhone","value":"true","type":"text","description":"<p>(<strong>Required</strong>)</p>\n"},{"key":"employmentStatus","value":"employedFullTime","type":"text","description":"<p>(<strong>Required</strong>) Must be one of the following values:\n<code>employedFullTime</code>, <code>employedPartTime</code>, <code>unemployed</code>, <code>disabilityBenefits</code>, <code>retired</code>, <code>selfEmployed</code>, <code>benefits</code></p>\n"},{"key":"employmentIndustry","value":"Finance","type":"text"},{"key":"employerName","value":"Tesco Bank","type":"text","description":"<p>(<strong>Required</strong>)</p>\n"},{"key":"employerStartDate","value":"31/01/2020","type":"text"},{"key":"homePhoneNumber","value":"+442037287649","type":"text"},{"key":"jobTitle","value":"Example Job","type":"text"},{"key":"loanAmount","value":"1200","type":"text","description":"<p>(<strong>Required</strong>)</p>\n"},{"key":"numberOfRecentLoans","value":"0","type":"text"},{"key":"nextPayDate","value":"31/05/2023","type":"text"},{"key":"netMonthlyIncome","value":"2100","type":"text","description":"<p>(<strong>Required</strong>)</p>\n"},{"key":"monthlyBenefitsAmount","value":"100","type":"text"},{"key":"monthlyPensionAmount","value":"0","type":"text"},{"key":"monthlyOtherIncomeAmount","value":"0","type":"text"},{"key":"payFrequency","value":"monthly","type":"text"},{"key":"residentialStatus","value":"homeowner","type":"text"},{"key":"loanTermInMonths","value":"0","type":"text"},{"key":"workPhoneNumber","value":"+448009187466","type":"text"},{"key":"monthlyMortgageRent","value":"200","type":"text"},{"key":"monthlyCredit","value":"0","type":"text"},{"key":"monthlyOther","value":"0","type":"text"},{"key":"monthlyTransport","value":"0","type":"text"},{"key":"monthlyFood","value":"0","type":"text"},{"key":"monthlyUtilities","value":"0","type":"text"},{"key":"monthlyAlcoholTobacco","value":"0","type":"text"},{"key":"monthlyHealthBeauty","value":"0","type":"text"},{"key":"monthlyRecreation","value":"0","type":"text"},{"key":"monthlyRestaurants","value":"0","type":"text"},{"key":"monthlyEducation","value":"0","type":"text"},{"key":"monthlyClothing","value":"0","type":"text"},{"key":"monthlyHouseholdGoods","value":"0","type":"text"},{"key":"monthlyEntertainment","value":"0","type":"text"},{"key":"monthlyTax","value":"0","type":"text"},{"key":"maritalStatus","value":"married","type":"text"},{"key":"financialDependents","value":"2","type":"text"},{"key":"householdAdults","value":"0","type":"text"},{"key":"householdAnnualIncome","value":"3000","type":"text"}]},"url":"https://staging.api.hellopillar.com/api/v1/pingtree/application","description":"<p>Our API will accept either <code>x-www-form-urlencoded</code> values or raw <code>json</code>.</p>\n<p><strong>Addresses</strong></p>\n<p>The addresses are parsed as json objects like this:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>address: {\n    current: {\n        subBuilding: 'Flat 1'\n        ...\n    },\n    previous: {\n        subBuilding: 'Flat 1'\n        ...\n    }\n}\n</code></pre><p>But if using <code>x-www-form-urlencoded</code> you can pass each value in as an individual value like this: <code>address[current][subBuilding]</code></p>\n<p><strong>Responses</strong></p>\n<p>Example reject request:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"data\": {\n        \"result\": \"REJECTED\",\n        \"reason\": \"DUPLICATE\",\n        \"redirectUrl\": null\n    },\n    \"meta\": {\n        \"code\": 200,\n        \"message\": \"Lead rejected as a duplicate\"\n    },\n    \"logId\": \"JKNSejFKuEG4N1SL4Hsm77a4ICQ3raliLbX4YQMR3zJxLVp05cnQgxiiW4f2qad6\"\n}\n</code></pre><p>Example accept request:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"data\": {\n        \"result\": \"ACCEPTED\",\n        \"reason\": null,\n        \"redirectUrl\": \"https://affinitech-web-onboarding.firebaseapp.com/lead/accept/FQfItQ1TlBhSDB1AMjZ8\"\n    },\n    \"meta\": {\n        \"code\": 200,\n        \"message\": \"Lead accepted, please redirect to the redirectUrl\"\n    },\n    \"logId\": \"Tz7F0zUvG4g6y4nWRehbWwfv563shcijz4FsrpOKLfDrFIig9YbyFoF55fUSAj3l\"\n}\n</code></pre><p>Example validation error:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"data\": null,\n    \"meta\": {\n        \"code\": 400,\n        \"message\": \"emailAddress must be a valid email\"\n    },\n    \"logId\": \"o71Y3dbpJSycJYeVb6wVRcp1GXyuA6x9pBxNHknV5f0XVZUaoo3AN6XonthDxgPv\"\n}\n</code></pre>","urlObject":{"protocol":"https","path":["api","v1","pingtree","application"],"host":["staging","api","hellopillar","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"13c68a50-affc-48f5-890e-514f4a745912"}],"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"public_key"},{"key":"value","value":"<value>"}]}},"event":[{"listen":"prerequest","script":{"id":"66850b7d-2070-43a8-b54f-f30de0588bf0","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"c3fb377e-f3b0-4a33-bf4c-397230558480","type":"text/javascript","exec":[""]}}]}