KeldroveOpen dashboard
Keldrove / Developer reference

Invoice API reference

A crypto payment API connects an order in your store to a payment request addressed to your wallet. Keldrove proposes one invoice resource for supported networks, including Monero. The reference below describes the Pro and Business integration contract, including retries and invoice status changes.

By the Published · Updated

Which side creates the invoice?

Take the amount from the order your server has already priced. Imagine a buyer has applied a coupon to a $60 basket and the order now totals $48. The browser can tell the store which order the buyer wants to pay.

The store retrieves the $48 total, checks that this buyer may pay that order, selects an allowed currency and freezes that version of the basket. A later edit to shipping or tax needs a new quote.

Keep a short, nonpersonal order reference that a support agent can recognize. Send that reference on the API request. Keep the customer’s name, email, delivery address and item list in the store. The invoice needs enough information to show the amount and match the payment. Passing a complete cart as an order identifier would put personal details in logs and customer-visible receipts.

Create a request once

The proposed method is POST /v1/invoices. An authorized store key supplies a scope and an environment. The explicit store_id gives the server a second check that the caller intended to work in that store. Supply the price as a USD decimal string with two places. Specify both the asset and the network.

In the example the customer selected USDC on Ethereum. USDC issued on another network would be a different payment.

POST /v1/invoices
Authorization: Bearer <store-scoped-secret>
Idempotency-Key: checkout-407-attempt-1
Content-Type: application/json

{
  "store_id": "store_example",
  "order_ref": "order-407",
  "price": {"currency": "USD", "amount": "48.00"},
  "asset": "USDC",
  "network": "ethereum"
}

A store should store its idempotency key alongside the initial request before the network call. Consider a worker that sends this body and then loses its connection before receiving headers. The receiver might already have created the invoice. Repeating the same body with the same key would return the original resource. Reusing that key after changing the order amount would produce a conflict. A fresh key after every timeout could leave a customer holding two payable links.

Read the invoice your customer actually received

Save the invoice ID returned by the server together with your own order reference. When the customer contacts support, retrieve that invoice and compare the asset, network, quote and expiry with the checkout they saw. A fresh quote could describe a different payment.

{
  "id": "inv_example",
  "store_id": "store_example",
  "order_ref": "order-407",
  "status": "open",
  "revision": 1,
  "price": {"currency": "USD", "amount": "48.00"},
  "asset": "USDC",
  "network": "ethereum",
  "amount_crypto": "48.000031",
  "checkout_url": "https://checkout.example.invalid/i/example",
  "expires_at": "2026-11-27T12:30:00Z"
}

The URL and figures are examples. The checkout would present the receiving address, network, precise payable quantity and expiry together. The customer must see the complete amount. On an account-based network, rounding the fractional portion to a display currency’s two decimal places destroys information used to distinguish invoices. Save the invoice ID and checkout URL alongside the attempt. Keep any stale attempt for accounting even after you offer a replacement.

Which errors can the store retry?

Retry an interrupted request only after deciding whether the original attempt may have succeeded. Keep its original key and payload for an identical retry. Authentication failures, an invalid asset pair and temporary node trouble call for different responses by the store and its operator.

Planned invoice responses and the next action for the store
ResponseWhat to do
401 or 403Check store credentials, scope, environment and plan access. Keep the customer order intact.
409Inspect the stable error code. A different body under an existing key, an already open attempt or a volume limit needs a different remedy.
422Correct invalid fields or choose a supported asset and network before requesting a quote.
429 or 503Queue a bounded retry respecting any retry instructions. Preserve the original attempt and key.

Record a public diagnostic reference, HTTP status and local order reference. Avoid logging the authorization header or the full hosted link. Someone with a hosted link could observe payment details intended for one customer. On an unexpected failure, tell the buyer which order to reopen and give your support staff a way to find the uncertain attempt.

Decide whether the order can ship

After a valid event, the server should read GET /v1/invoices/{id} using its store key. Match the store, invoice, commercial price, currency and order reference to the persisted attempt. Check the latest revision and state. Only a confirmed result that passes those checks should enqueue fulfillment.

Use the original order as the unique delivery key, even if the customer received a replacement invoice.

A hosted checkout return can arrive before a payment is visible on-chain. A customer can also pay successfully, close their browser and never visit the return page. A confirmation screen should show the store’s current order state and offer a refresh. The server-side read and the merchant’s delivery ledger should work in either browser scenario.

Compare invoice semantics before changing providers

BitPay documents its own invoice fields, fixed-rate window and fulfillment states. Its meanings do not automatically carry over to a Keldrove adapter. For example, a field called “paid” in one service might describe detection while another store expects a final fulfillment decision.

Map each source state to an explicit internal action and keep its original value for support. BitPay invoice reference.

Before evaluating a live provider, write a fixture for the $48 order, a duplicate creation request, a delayed confirmation and an expired quote. The proposed Keldrove interface can be reviewed against these fixtures today. Credentials, production endpoints and merchant checkout are pending. If a launch decision depends on measured latency or network-specific thresholds, use the published acceptance results once they exist.

For acceptance, keep a copy of the request, response and authenticated status read with test credentials removed. Have a second engineer reconstruct which invoice belongs to which order using those records. If the only link between them exists in a browser session, a gateway outage or customer device change can strand a legitimate purchase.

Questions merchants ask

Does Starter include API keys?

The proposed Starter tier covers hosted invoices and payment links. Programmatic invoice creation and signed callbacks are planned for Pro and Business.

How should I store crypto amounts?

Keep the decimal value exactly as delivered for display. Use integer atomic units or an exact decimal type for comparisons and arithmetic, with precision tied to the selected asset.

What if two stores use the same order number?

Scope order and idempotency references to the store and environment. Keep the provider’s invoice ID as an additional independent identifier.

Merchant terms at a glance
Subscription currencies
BTC, LTC, ETH, SOL, USDC on Ethereum, USDT on Ethereum or Tron, and Monero (XMR).
Account
Register with an email and password or a private account code. No identity document is requested.
Price on 2026-11-27
$25 for Starter per 30 days. Keldrove charges only the subscription, with 0% transaction fees on every plan. The subscription funding minimum is $25. Customer invoices have separate network limits.
Activation
Create an order at checkout. Activation follows payment verification.
Compare three published gateway fee models
Provider pricing checked November 27, 2026, excluding network costs
ProviderService fee basis
CryptAPI1% in the entry volume band.
BitPay2% plus 25¢ per transaction under $500,000 monthly volume. Higher-risk industries may pay more.
BTCPay Server0% software processing fee. Operating or renting a server carries separate costs.