Skip to content
coinkun docs
Coinkun home Dashboard

API REFERENCE v1

Receiving Callbacks

Receipt callbacks on the selected Litecoin network, durable retries and protected attempt logs. Workers require separate activation; network support does not establish live mainnet acceptance. Wallet, invoice and forwarding events remain deferred.

On this page

#Accounts, Wallets and Addresses

Available

New receiving-address observations create a durable notification. Integer value, address, txid, confirmations, account, currency and merchant data are delivered by POST JSON or GET query (data as JSON). The other optional product fields below remain deferred.

ParameterTypeDescriptionRequired
valueintegerObserved amount in atomic units.Yes
input_addressstringAddress that received the payment.Yes
confirmationsintegerConfirmation count at observation time.Yes
input_transaction_hashstringIncoming blockchain transaction hash.Yes
currencystringPayment currency identifier.Yes
dataobjectMerchant metadata supplied with the callback configuration.No
accountstringPublic account identifier for account-scoped events.No
walletstringPublic wallet identifier for wallet-scoped events.No
transaction_hashstringOutgoing transaction hash after forwarding.No
paymentstringOutgoing payment identifier after forwarding.No
destinationsarrayForwarded recipients and amounts.No
{
  "account": "ACCOUNT_ID",
  "currency": "ltc",
  "value": 250000,
  "input_address": "LTC_ADDRESS",
  "confirmations": 1,
  "input_transaction_hash": "TRANSACTION_HASH",
  "data": {
    "order_id": "ORDER_ID"
  }
}

Illustrative example · Replace YOUR_* and ${VARIABLES} with your own values · Never paste real keys into shared documentation.

#Acknowledgement and Retries

Available

The reference protocol acknowledges an event with HTTP 200, Content-Type text/plain and the exact body *ok*, including both asterisks.

Response partRequired value
Status200
Content-Typetext/plain
Body*ok*

#Invoices

Planned

Invoice state changes use a JSON notification sent to the configured merchant URL with POST.

ParameterTypeDescriptionRequired
accountstringPublic account identifier.Yes
invoicestringInvoice identifier.Yes
statusstringLifecycle state: created, partpaid, paid, overpaid, completed or expired.Yes
{
  "account": "ACCOUNT_ID",
  "invoice": "INVOICE_ID",
  "status": "paid"
}

Illustrative example · Replace YOUR_* and ${VARIABLES} with your own values · Never paste real keys into shared documentation.

#Simple Forwarding

Planned

The legacy forwarding contract sends notification fields as query parameters on a GET request to the merchant callback URL.

ParameterTypeDescriptionRequired
valueintegerOriginal incoming amount in atomic units.Yes
input_addressstringGenerated deposit address.Yes
confirmationsintegerIncoming transaction confirmation count.Yes
input_transaction_hashstringIncoming transaction hash.Yes
transaction_hashstringForwarded transaction hash.No
destination_addressstringMerchant destination address.No
value_forwardedintegerAmount forwarded after fees.No
{
  "value": 250000,
  "input_address": "LTC_ADDRESS",
  "confirmations": 1,
  "input_transaction_hash": "INCOMING_TRANSACTION_HASH",
  "transaction_hash": "OUTGOING_TRANSACTION_HASH",
  "destination_address": "LTC_DESTINATION_ADDRESS",
  "value_forwarded": 249000
}

Illustrative example · Replace YOUR_* and ${VARIABLES} with your own values · Never paste real keys into shared documentation.

#Verify Events Before Fulfillment

Available

Treat callbacks as potentially repeated observations. Unconfirmed transactions can disappear or be replaced; receiving a notification is not proof of final settlement.

Coinkun API v1 · Reviewed against this checkout
Contract reference: Apirone documentation. Adapted for Coinkun; implementation status is shown above.

Type to search the documentation

↑ ↓ navigate openesc closeLocal search · No data sent