Docs
Primitives
Two of Swords is built from a small set of connected primitives. Each one does a single job, and each one references the others instead of copying them.
The relationships are a foundation, not a script. A business does not have to move through every primitive, or in one fixed order. Installation, API reference, and tutorials will follow.
On this page
Opportunities
An opportunity holds what you learn about a business before it applies: lookups, notes, qualification, and who is working it.
- The opinion
- Research should not be thrown away at the start of onboarding. When an opportunity becomes an application, its context comes with it.
- Example
- A partner refers Halverson Supply Co. Your team looks up the business, marks it qualified, and opens an application that starts with that information already attached.
- Connects to
Applications
An application is the durable record of a business applying for a product. It can be saved, resumed, edited, and reviewed over time.
- The opinion
- There is one application, not one per channel. An online form, an internal user, an API client, and an authorized agent can all work on the same record.
- Example
- A merchant starts APP-2381 through an online form, your team corrects the bank details, and an integration attaches pricing through the API. Every change lands on APP-2381.
- Connects to
Documents
A document request asks for a specific supporting file and issues an upload-only link for it. Received files are stored against the request.
- The opinion
- Collecting a file and approving it are different events. A document can be received and still be waiting for review.
- Example
- Three months after approval, you request updated bank statements. The customer uses the upload-only link; the file arrives as received, and your team reviews it separately.
- Connects to
Online Forms
An online form is a configured, branded way into an application, with its own fields, steps, and attribution.
- The opinion
- Forms are entry points, not the application itself. Several forms can feed the same kind of application without duplicating the data model.
- Example
- Your direct sales team and an ISO partner each get their own form. Both create applications of the same shape, attributed to the right source.
- Connects to
Business & Ownership
Business identity holds legal name, registration, and owners once, and connects them to every application that business submits.
- The opinion
- A business is not the same as an application. One business can apply many times, for different products, without re-entering who it is.
- Example
- Halverson Supply Co. applies for card processing in March and equipment financing in June. Both applications reference the same business and owners.
- Connects to
Electronic Signatures
An envelope groups the agreements to sign, the signers, and the signing ceremony, and records its completion against the application.
- The opinion
- Signatures are their own primitive. They are not supporting documents, and they are not the PDFs you generate.
- Example
- Once pricing is set, the merchant agreement is sent to both owners. Each signs in turn, and the completed envelope is attached to the application.
- Connects to
Mapped PDFs
A mapped PDF connects the fields of a form you already use to values in the application, and fills it on demand.
- The opinion
- Keep the paperwork your partners already accept. Map to it instead of rebuilding it.
- Example
- A processor requires its own application PDF. You map its fields once, and every application can produce a filled copy.
- Connects to
Artifacts
An artifact is something the system generated: a filled PDF, an export, a report. It records what produced it and when.
- The opinion
- Generated outputs are not uploads. Keeping them separate from supporting documents makes it clear what the business sent and what you created.
- Example
- Filling the processor PDF for APP-2381 creates an artifact linked to that application and the data version it used.
- Connects to
Risk & Fraud
Verification results and evidence are attached to the business, owners, or application they concern, at the stage where they matter.
- The opinion
- Review belongs where the decision is made. Checks can run before, during, or after onboarding rather than in one fixed step.
- Example
- An identity check runs on each owner during the application; a later chargeback review pulls the same evidence alongside new documents.
- Connects to
Customers
A customer is the ongoing relationship that follows an approved application, with its history still attached.
- The opinion
- Onboarding is not the end of the record. Approval should not mean copying data into a different system and losing where it came from.
- Example
- After approval, Halverson Supply Co. becomes a customer. New document requests, reviews, and earnings connect back to the original application.
- Connects to
Residuals
Residuals track recurring revenue from each customer and the share earned by the partners attached to it.
- The opinion
- Earnings should trace back to a real customer and the partner who brought them in.
- Example
- Monthly processing volume for Halverson Supply Co. produces a residual, split with the ISO partner whose online form started the application.
- Connects to
APIs
APIs expose the same records your team uses, with the same permissions, to your systems, partners, and authorized agents.
- The opinion
- People, integrations, and agents work on one model. An API is another entry point to the same application, not a parallel copy.
- Example
- Your CRM creates opportunities, a partner portal reads application status, and an authorized agent requests a missing document, all through the same API.
- Connects to
How the records connect
Separate records. One shared history.
Each building block keeps its own status and audit trail, and every one of them points back to the same business.
- Many ways in, one record
- Forms, links, partner submissions, and converted opportunities all write to the same durable application.
- Businesses outlive applications
- One business identity can carry a first application, a second location, and a renewal—without re-keying.
- Documents are not decisions
- A received document is evidence awaiting review. Acceptance is a separate, recorded step.
- Agreements stand on their own
- Signatures, mapped PDFs, and generated artifacts relate to the application but keep their own status and history.
- Review where you choose
- Verification and risk checks attach at whichever stage your process needs—at intake, before signing, or after.
- The relationship continues
- Approval creates a customer. Residuals connect that customer to the partner who referred them.
See them working
The application explorer shows each primitive working with the same customer, Juniper Street Bakery. Select a module to see its screen and how it relates to the rest.
Shape your workflows
The same primitives can be configured into different application types, review stages, document requests, and API connections.