Payment links
Use 0Base payment-link objects for shareable merchant payment flows where enabled.
Payment links are reusable merchant payment surfaces for cases where a full cart checkout is unnecessary: a one-off service fee, a published product link, a donation-style amount, or a repeatable invoice collection path. A link should still produce payment intent records and reconciliation evidence when customers pay through it.
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: Create link -> Share URL -> Customer opens -> Payment intent created -> Status tracked -> Transactions reconciled. 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 |
|---|---|---|
| Link identity | Store title, description, amount, currency, crypto currency, active state, and client reference. | The link must be supportable after it is shared. |
| Activation state | Use active/inactive state deliberately. | Prevents stale public links from collecting payments. |
| Transaction listing | Join link transactions to payment intents. | A reusable link can produce many customer payment records. |
| Metadata hygiene | Do not encode private customer data in public link text. | Shared URLs can travel beyond the original audience. |
| Reporting | Reconcile link payments by link id and intent id. | Finance can group payments without losing individual status. |
Status and state handling
| State | What it means | Developer action |
|---|---|---|
| Active | Public link may be presented. | Customers can use it. |
| Inactive | Merchant disabled collection. | Do not show as payable. |
| Failed | Link cannot be used as expected. | Route to support or recreate. |
| Intent state | Each payment created from the link has its own lifecycle. | Fulfill per intent, not per link. |
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 payment links. 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.
{
"payment_link_id": "lnk_live_456",
"title": "June service fee",
"amount": "49.00",
"currency": "EUR",
"crypto_currency": "USDT",
"status": "active",
"transactions": [
"pi_live_a",
"pi_live_b"
],
"reconciliation_group": "service_fees_2026_06"
}Operational scenario
A consulting business can publish a payment link for a fixed onboarding fee. The link may remain active for a campaign, but each customer payment still creates a separate intent, event trail, and ledger row.
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 |
|---|---|
| A link was treated as one payment. | A link is a reusable entry point that can produce many payment intents. |
| Old links stayed live forever. | Active state and lifecycle review control public collection. |
| Finance grouped by amount alone. | Finance groups by link id and reconciles by intent id. |
| Support could not identify which link customer used. | Every transaction is joined back to the link id. |
Evidence to keep
| Evidence | What to store |
|---|---|
| Link record | Payment link id, title, description, amount, currency, status. |
| Publication record | Where the link was shared, campaign, owner, activation date. |
| Transaction record | Intent id, customer reference where available, status, created timestamp. |
| Change log | Who changed title, description, active state, or amount. |
| Report group | Link id, period, transaction count, succeeded amount, failed amount. |
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 |
|---|---|
| Link shared after deactivation | Show inactive state and create a replacement link if needed. |
| Customer pays twice | Treat each intent separately and follow merchant duplicate policy. |
| Amount needs to change | Create a new link or update only if customer expectations remain clear. |
| Transaction list misses a recent payment | Read payment intent status and check webhook delivery logs. |
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_links | Create reusable link. |
PATCH /payment_links/{id} | Update active state and metadata. |
GET /payment_links/{id}/transactions | List link transactions. |
GET /reports/transactions | Reconcile resulting intents. |
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
Payment links lower the barrier for small merchants, service providers, and platforms to collect approved digital payments without building a full cart. The link still needs object-level tracking so every customer payment is supportable.
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_links \
-H "Authorization: Bearer $OBIT_SECRET_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: ord_100045:base:v1" \
-d '
{
"amount": "49.00",
"currency": "EUR",
"cryptoCurrency": "USDT",
"clientReference": "link_service_fee",
"title": "Service fee",
"description": "June service fee"
}'Example response shape:
{
"payment_link_id": "lnk_test_123",
"status": "active",
"amount": "49.00",
"currency": "EUR",
"crypto_currency": "USDT",
"link_url": "https://checkout.0bit.app/l/lnk_test_123"
}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 links so support can identify them.
- Keep public descriptions clean of sensitive data.
- Record every link activation and deactivation.
- Reconcile transactions by intent id.
- Do not fulfill from link open events.
- Review active links before launch and periodically after launch.