v1.0

Postman Collection

Pre-built Postman collection for testing the SmartMCA API

A ready-to-use Postman collection with all 77 API endpoints organized by resource, with example request bodies and environment variables.

Download

FileDescription
CollectionPostman Collection v2.1
EnvironmentEnvironment variables

Quick Setup

1. Import the Collection

  1. Open Postman
  2. Click Import
  3. Drag both files (collection + environment) or use the links above
  4. Select the SmartMCA API environment from the top-right dropdown

2. Set Your API Key

  1. Click the eye icon next to the environment dropdown
  2. Set the api_key value to your API key (smca_live_... or smca_test_...)
  3. Click Save

3. Start Making Requests

The collection is organized into folders matching the API reference:

FolderEndpoints
DealsList, create, get, update, update status, archive
ApplicationsList, create, get, update
MerchantsList, create, get, update
ContactsList, create, get, update, delete (under merchants)
PaymentsList, create, get (under deals)
DocumentsList, upload, get
CollectionsGet collection schedule
AnalysisUpload PDFs, submit JSON, list, get status, delete
UnderwritingList tools, select docs, trigger, get status, get results
AccountingChart of accounts, entries, 8 report types
Deal AccountingDeal entries, revenue recognition
WorkflowsList types, trigger, get executions, app actions
WebhooksCRUD, deliveries, rotate secret, test, retry

Environment Variables

The collection uses these variables β€” set them in the environment or they’ll be prompted:

VariableDefaultDescription
base_urlhttps://api.smartmca.com/api/public/v1API base URL
api_keyβ€”Your API key
idβ€”Generic entity ID
dealIdβ€”Deal ID for scoped endpoints
merchantIdβ€”Merchant ID
applicationIdβ€”Application ID
analysisIdβ€”Analysis ID
accountIdβ€”Accounting account ID
executionIdβ€”Workflow execution ID

Tip: Use Postman’s Tests tab to auto-set variables from responses:

// In the "Create deal" request Tests tab:
const data = pm.response.json().data;
pm.environment.set("dealId", data.id);

Using the Sandbox

Switch to sandbox mode by changing two variables:

VariableSandbox Value
base_urlhttps://api.smartmca.com/api/public/v1 (same URL)
api_keysmca_test_... (test key)

The sandbox uses the same API URL β€” the key prefix routes to the sandbox automatically.

Regenerating the Collection

The collection is generated from the OpenAPI spec:

cd docs-site
npx tsx scripts/generate-postman.ts

This reads public/openapi/smartmca-v1.json and outputs both files to public/postman/.