Core concepts
Understand 0Base checkouts, payment intents, links, invoices, deposit addresses, refunds, and reports.
The core 0Base concepts are deliberately small: merchant order, checkout or link surface, payment intent, optional deposit-address record, webhook delivery, settlement ledger, and report. A strong integration keeps those objects distinct instead of collapsing them into one status column.
0Base availability is account-gated. Build against capabilities, merchant status, environment mode, and settlement settings instead of assuming that every payment method, asset, network, cadence, or refund path is enabled for every merchant.
0Base product docs and API details
These pages are public product guidance for merchant and platform developers. 0Base endpoint-level API pages are not published for partners yet; use this product documentation to understand the workflow, records, and launch boundaries.
End-to-end picture
This flow is intentionally shown as product infrastructure: Merchant order -> Checkout/link/invoice -> Payment intent -> Deposit address or customer payment -> Webhook delivery -> Settlement ledger. The merchant application can make the customer experience simple, but the backend should keep each step visible enough for retries, support, and finance closeout.
Production contract
| Boundary | What to build | Why it matters |
|---|---|---|
| Merchant order | Your application owns cart, invoice, subscription, deposit, or account balance logic. | 0Base should not become the source of truth for your product catalog. |
| Checkout surface | A hosted page, payment link, invoice, or payment intent collects a customer action. | Lets you choose the customer experience without changing the finance model. |
| Intent state | The payment intent tracks the payment lifecycle. | Separates order state from network and payment state. |
| Notification state | Webhook delivery records show whether your system heard about the change. | Makes asynchronous recovery auditable. |
| Settlement state | Ledger and report rows describe finance movement where enabled. | Prevents fulfillment teams and finance teams from using different facts. |
Status and state handling
| State | What it means | Developer action |
|---|---|---|
| Created/open | Object exists and the merchant can show the customer a payment path. | Do not fulfill from creation alone. |
| Payment detected | A customer payment signal exists but final state is not complete. | Show pending and preserve evidence. |
| Processing/confirming | 0Base is still moving through confirmation or settlement logic where enabled. | Keep the merchant order locked. |
| Succeeded/completed | Terminal success for the payment object. | Fulfill, ledger, and export. |
Status handling should be strict even when the customer UI is friendly. Store raw 0Base statuses, map them to customer-safe labels at the edge, and keep the merchant order state separate from the payment object state. That separation lets you change customer copy without corrupting reconciliation.
Example implementation record
This is an application-side record shape for core object model. Keep exact request and response fields aligned with your enabled account contract when 0Base API access is released for your partner account; the point of this record is to keep product, support, and finance joined in your system.
{
"merchant_order_id": "ord_concepts_001",
"checkout_id": "chk_...",
"payment_intent_id": "pi_...",
"deposit_address_id": "da_...",
"event_id": "evt_...",
"settlement_id": "set_...",
"report_period": "2026-06"
}Operational scenario
A developer should be able to answer one question from each layer: what did the customer buy, what 0Base object collected payment, what raw status does it have, which event delivered that status, and which ledger row or report confirms the finance side.
In practice, production 0Base integrations make the happy path fast while keeping exceptions predictable: retries return the same object, delayed notifications can be repaired, expired sessions do not become mystery payments, and finance exports can be traced back to the original merchant order.
Before and after
| Before 0Base | With 0Base |
|---|---|
| One table mixed order, payment, event, and payout fields. | Each concept has a durable id and a clear owner. |
| UI labels replaced backend status. | Raw status is stored and mapped to labels at the edge. |
| A payment callback became the only record. | Callbacks become event records that can be replayed and reconciled. |
| Finance used a different reference from support. | Order id, intent id, event id, and ledger id are joined. |
Evidence to keep
| Evidence | What to store |
|---|---|
| Object responsibility | Which system owns the field and who may mutate it. |
| Lifecycle timestamps | Created, updated, detected, delivered, settled, exported. |
| Raw status history | Original 0Base statuses and mapped customer labels. |
| Reference joins | Client reference, intent id, settlement id, event id. |
| Environment marker | Sandbox or live mode for every object id and export. |
This evidence is what makes the integration supportable at institutional scale. A developer should not need private operational knowledge to answer basic questions such as what the customer saw, which object owns the state, which event announced the change, and which ledger or report row closed the money movement.
Failure modes and recovery
| Failure mode | Recovery |
|---|---|
| Order cancelled while checkout remains open | Expire or cancel the payment object and keep a cancellation record. |
| Event arrives twice | Dedupe by event id and read current object state. |
| Status history is overwritten | Append status transitions instead of replacing the only evidence. |
| Ledger row appears after fulfillment | Keep finance state separate from fulfillment state. |
Recovery should be idempotent and explainable. When the system is uncertain, preserve the current raw status, read the latest object state, attach a support reference, and avoid changing fulfillment or finance state until a trusted terminal condition is present.
API adjacency
| API area | Use it for |
|---|---|
POST /checkouts | Checkout object creation. |
POST /payment_links | Reusable link object creation. |
POST /payment_intents | Payment intent object creation. |
GET /reports/transactions | Object-level reconciliation. |
For endpoint-level implementation, use the API reference as the source of truth for fields, enums, authentication, idempotency behavior, pagination, and response examples.
Why this matters for merchants and customers
Clear concepts reduce operational risk. When developers separate merchant orders, payment objects, webhook deliveries, and ledger rows, customers get clearer payment states and merchants avoid support processes built from screenshots and guesswork.
At scale, the value of 0Base is not only that a payment can be created. The value is that the payment can be explained later: what the customer saw, which account capabilities allowed it, which backend state changed, which notification delivered it, and which ledger or report row closed it.
Worked API path
The example below shows the implementation shape for this page. Use merchant-specific capabilities, account settings, and API responses in production; the ids and values here are illustrative.
curl -X GET https://base-api-sandbox.0bit.app/v1/payment_intents/pi_test_456 \
-H "Authorization: Bearer $OBIT_SECRET_KEY"Example response shape:
{
"intentId": "pi_test_456",
"status": "processing",
"amount": "89.00",
"currency": "EUR",
"cryptoCurrency": "USDT",
"clientReference": "ord_100045",
"conversionTxId": "conv_test_123",
"quotedRate": "1.08450000",
"cryptoAmount": "96.52000000"
}Implementation checkpoints:
- Store your merchant reference before calling 0Base.
- Attach the returned object id to the same business record.
- Record the request id, idempotency key, raw status, and environment.
- Use webhook and report reads to repair delayed or missed state changes.
Data join map
This join map is the reason 0Base is infrastructure rather than a payment button. A merchant can change checkout UX, support tooling, or finance exports without losing the chain from customer action to backend state and settlement evidence.
Operator runbook
| Signal | Check first | Action |
|---|---|---|
| Customer reports payment not updating | Look up merchant order id, 0Base object id, raw status, and latest webhook delivery. | Read current object state before changing fulfillment. |
| Webhook delivery failed | Check delivery id, event id, attempts, last error, and handler logs. | Fix the handler, replay once, and dedupe by event id. |
| Finance cannot match a row | Compare client reference, intent id, settlement id, report period, and export row. | Move the item to reconciliation queue instead of closing by amount/date. |
The runbook should be available to support and finance teams before launch. A developer integration is not complete if only engineering can explain the state of a customer payment.
Developer checklist
- Name the owner of each state field.
- Store raw 0Base status values.
- Keep client references unique enough for support.
- Join events to payment objects before applying business effects.
- Treat reports as reconciliation, not the only status source.
- Document which objects your product uses before launch.