Deposits and pre-orders
Use 0Base records for deposits and pre-orders only with clear settlement and refund wording.
Deposits and pre-orders are partial commitment flows: the customer pays before full fulfillment is available. 0Base can support the payment object and status evidence, while the merchant must separately track reservation, balance due, cancellation rights, and refund policy.
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: Preorder created -> Deposit amount set -> Payment object -> Payment succeeds -> Reservation state -> Final fulfillment/remaining balance. 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 |
|---|---|---|
| Business contract | Define what the deposit buys: reservation, partial payment, refundable hold, or pre-order commitment. | Payment status alone does not describe customer rights. |
| Amount policy | Store deposit amount and remaining balance separately. | Avoids treating deposit as full payment. |
| Reservation policy | Tie reservation to terminal payment success and expiry. | Prevents unpaid reservations. |
| Refund/cancel policy | Define what happens if product is unavailable or customer cancels. | Support needs clear rules. |
| Reconciliation | Join deposit payment to final order and settlement records. | Finance can separate deposits from completed sales. |
Status and state handling
| State | What it means | Developer action |
|---|---|---|
| Deposit pending | Customer has not completed deposit. | Reservation not final. |
| Deposit paid | Terminal success for deposit payment. | Reserve according to policy. |
| Balance due | Customer still owes remaining amount. | Create later payment object if needed. |
| Cancelled/refunded | Order unwound according to policy. | Record refund state where enabled. |
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 deposits and pre-orders. 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.
{
"preorder_id": "pre_2026_001",
"deposit_order_id": "ord_dep_100",
"deposit_intent_id": "pi_live_456",
"deposit_amount": "50.00",
"remaining_balance": "450.00",
"currency": "EUR",
"reservation_state": "pending_payment"
}Operational scenario
A hardware pre-order may require a 10 percent deposit today and final payment later. 0Base should track the deposit payment precisely, but the merchant product owns the pre-order terms and final fulfillment rules.
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 |
|---|---|
| Deposits were stored as generic paid orders. | Deposit and balance due are separate records. |
| Reservation happened before payment success. | Reservation waits for terminal deposit success. |
| Refund rules lived in support notes. | Refund/cancel policy is tied to deposit record. |
| Finance could not distinguish deposits from revenue. | Reports classify deposit payment ids separately. |
Evidence to keep
| Evidence | What to store |
|---|---|
| Deposit contract | Preorder id, deposit amount, remaining balance, refundability. |
| Payment evidence | Intent id, status, events, settlement ledger id. |
| Reservation evidence | Inventory/reservation id and activation timestamp. |
| Balance evidence | Remaining invoice/payment object when final payment is due. |
| Cancellation evidence | Refund id/status where enabled, support note, customer communication. |
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 |
|---|---|
| Deposit succeeds but product unavailable | Apply cancellation/refund policy and preserve ledger evidence. |
| Customer pays deposit twice | Treat second intent as duplicate and route support/refund policy. |
| Balance amount changes | Create new final payment object with updated terms. |
| Deposit expires before payment | Release reservation and allow fresh checkout if still available. |
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 /payment_intents | Create deposit payment intent. |
POST /payment_intents/{intentId}/refunds | Create refund record where enabled. |
GET /payment_intents/{intentId}/refunds | List refund records. |
GET /reports/transactions | Separate deposit transactions. |
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
Deposits and pre-orders create customer obligations before final fulfillment. 0Base helps separate deposit payment state from reservation, remaining balance, cancellation, and refund policy.
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 POST https://base-api-sandbox.0bit.app/v1/payment_intents \
-H "Authorization: Bearer $OBIT_SECRET_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: ord_100045:base:v1" \
-d '
{
"amount": "89.00",
"currency": "EUR",
"cryptoCurrency": "USDT",
"clientReference": "ord_100045",
"settlementCurrency": "USDC",
"settlementRail": "onchain"
}'Example response shape:
{
"intentId": "pi_test_456",
"status": "requires_payment",
"amount": "89.00",
"currency": "EUR",
"cryptoCurrency": "USDT",
"clientReference": "ord_100045",
"settlementCurrency": "USDC",
"settlementRail": "onchain"
}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
- Define deposit terms outside the payment object.
- Store deposit and balance separately.
- Reserve only after terminal success.
- Keep cancellation/refund evidence.
- Classify deposits in finance exports.
- Test duplicate and late deposit payments.