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

Create intake transcribe statement

Read processing figures off a merchant statement. Explicit figures win; otherwise extractedText is regex-parsed, or imageBase64/an R2 attachmentKey goes through Workers AI vision (when bound). Writes estMonthlyVolumeCents/monthly_card_volume_cents/totalFeesCents/effectiveRateBps to customFields, records a statement_ocr revenue_estimate signal, and re-ranks the merchant.

POST/workspaces/{organizationId}/intake/{customerId}/transcribe-statement
Authorization
AuthorizationBearer token · headerrequired

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

Path parameters
organizationIdstringrequired
customerIdstringrequired
Request body
application/json
attachmentKeystring
imageBase64string
extractedTextstring
monthlyVolumeCentsnumber
totalFeesCentsnumber
effectiveRateBpsnumber
avgTicketCentsnumber
processorstring
statementPeriodstring
Responses
200

Statement transcribed

customerIdstringrequired
metricsobjectrequired
Show properties
monthlyVolumeCentsnumber | nullrequired
totalFeesCentsnumber | nullrequired
effectiveRateBpsnumber | nullrequired
processorstring | nullrequired
scorenumber | nullrequired
400

Invalid request

404

Customer not found

Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X POST 'https://pile.nyc/workspaces/string/intake/string/transcribe-statement' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "attachmentKey": "string",
  "imageBase64": "string",
  "extractedText": "string",
  "monthlyVolumeCents": 0,
  "totalFeesCents": 0,
  "effectiveRateBps": 0,
  "avgTicketCents": 0,
  "processor": "string",
  "statementPeriod": "string"
}'
Response
{
  "customerId": "string",
  "metrics": {
    "monthlyVolumeCents": 0,
    "totalFeesCents": 0,
    "effectiveRateBps": 0,
    "processor": "string"
  },
  "score": 0
}

Was this page helpful?