Skip to content
Pile
Esc
↑↓navigate↵open⌘Jpreview

Create intake ppp loan import

Import SBA PPP/7(a) loan rows as a free payroll-derived revenue proxy: PPP loans were sized at 2.5x monthly payroll, and payrollToRevenueRatio (default 0.30) turns that into an estimated monthly volume. Matches existing customers on externalId “sba-ppp:<loanId>” or case-insensitive business name + street address; writes loan facts and the derived figures to customFields, records a sba_ppp revenue_estimate signal, and re-ranks.

POST/workspaces/{organizationId}/intake/ppp-loans/import
Authorization
AuthorizationBearer token · headerrequired

Workspace API key (Authorization: Bearer <key>). Issue keys under Settings → Developer or POST /workspaces/{organizationId}/tokens.

Path parameters
organizationIdstringrequired
Request body
application/json
loansobject[]required
Show properties
Array of object
loanIdstring | null
businessNamestringrequired
min length 1
addressstring | null
citystring | null
statestring | null
zipstring | null
loanAmountDollarsnumber | null
loanAmountCentsnumber | null
jobsReportednumber | null
naicsCodestring | null
approvalDatestring | null
loanTypestring
Allowed:ppp7a
payrollToRevenueRationumber
max 1
Responses
200

SBA loans imported

importedintegerrequired
createdintegerrequired
updatedintegerrequired
customersobject[]required
Show properties
Array of object
idstringrequired
namestringrequired
loanAmountCentsnumber | nullrequired
estMonthlyPayrollCentsnumber | nullrequired
estMonthlyVolumeCentsnumber | nullrequired
jobsReportednumber | nullrequired
scorenumber | nullrequired
400

Invalid request

Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X POST 'https://pile.nyc/workspaces/string/intake/ppp-loans/import' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "loans": [
    {
      "loanId": "string",
      "businessName": "string",
      "address": "string",
      "city": "string",
      "state": "string",
      "zip": "string",
      "loanAmountDollars": 0,
      "loanAmountCents": 0,
      "jobsReported": 0,
      "naicsCode": "string",
      "approvalDate": "string",
      "loanType": "ppp"
    }
  ],
  "payrollToRevenueRatio": 1
}'
Response
{
  "imported": 0,
  "created": 0,
  "updated": 0,
  "customers": [
    {
      "id": "string",
      "name": "string",
      "loanAmountCents": 0,
      "estMonthlyPayrollCents": 0,
      "estMonthlyVolumeCents": 0,
      "jobsReported": 0,
      "score": 0
    }
  ]
}

Was this page helpful?