Skip to content
coinkun docs
Coinkun home Dashboard

API REFERENCE v1

Invoices

Checkout requests combine an amount, a receiving address and a payment lifecycle. Invoice API and payment tracking are planned, not enabled.

On this page

#Create Invoice

Planned
POST/accounts/{account}/invoices

Request

  • HTTP MethodPOST
  • Content Typeapplication/json
  • URLhttps://coinkun.com/api/v1/accounts/{account}/invoices
ParameterTypeDescriptionRequired
accountstringPublic account identifier.Yes
amountintegerRequested payment in atomic units.Yes
currencystringPayment currency identifier.Yes
lifetimeintegerExpiration interval in seconds.No
expirestringISO-8601 expiration timestamp; takes precedence over lifetime.No
callback-urlstringMerchant endpoint for invoice status notifications.No
user-dataobjectDisplay metadata including title, merchant, url, price, sub-price, items and extras.No
linkbackstringMerchant return URL.No
curl --request POST "https://coinkun.com/api/v1/accounts/${ACCOUNT_ID}/invoices" \
  --header 'Content-Type: application/json' \
  --data '{
  "amount": 250000,
  "currency": "ltc",
  "lifetime": 3600,
  "callback-url": "https://merchant.example/webhooks/coinkun",
  "user-data": {
    "title": "Order ORDER_ID",
    "merchant": "Example Store",
    "url": "https://merchant.example",
    "items": [
      {
        "name": "Example item",
        "qty": 1
      }
    ]
  },
  "linkback": "https://merchant.example/orders/ORDER_ID"
}'

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

#Public Invoice Info

Planned
GET/invoices/{invoice}

Request

  • HTTP MethodGET
  • Content Typeapplication/json
  • URLhttps://coinkun.com/api/v1/invoices/{invoice}
ParameterTypeDescriptionRequired
invoicestringPublic invoice identifier.Yes
curl --request GET "https://coinkun.com/api/v1/invoices/${INVOICE_ID}"

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

#Private Invoice Info

Planned
GET/accounts/{account}/invoices/{invoice}

Request

  • HTTP MethodGET
  • Content Typeapplication/json
  • URLhttps://coinkun.com/api/v1/accounts/{account}/invoices/{invoice}
  • Authorization
    Bearer YOUR_ACCESS_TOKEN Planned
ParameterTypeDescriptionRequired
accountstringPublic account identifier.Yes
invoicestringInvoice belonging to this account.Yes
transfer-keystringRequired without an access token.No
curl --request GET "https://coinkun.com/api/v1/accounts/${ACCOUNT_ID}/invoices/${INVOICE_ID}" \
  --header "Authorization: Bearer ${ACCESS_TOKEN}"

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

#Invoices List

Planned
GET/accounts/{account}/invoices

Request

  • HTTP MethodGET
  • Content Typeapplication/json
  • URLhttps://coinkun.com/api/v1/accounts/{account}/invoices
  • Authorization
    Bearer YOUR_ACCESS_TOKEN Planned
ParameterTypeDescriptionRequired
accountstringPublic account identifier.Yes
transfer-keystringRequired without an access token.No
qstringComma-separated filters: status, date_from and date_to.No
limitintegerPage size; reference default is 10.No
offsetintegerZero-based offset.No
curl --request GET "https://coinkun.com/api/v1/accounts/${ACCOUNT_ID}/invoices" \
  --header "Authorization: Bearer ${ACCESS_TOKEN}" \
  --get \
  --data-urlencode "limit=10" \
  --data-urlencode "offset=0"

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

#Invoice Status

Planned

These states describe the target lifecycle. The current application does not observe invoice payments or perform these transitions.

StatusMeaning
createdAwaiting a payment.
partpaidObserved payment is below the requested amount.
paidObserved payment matches the requested amount.
overpaidObserved payment exceeds the requested amount.
completedThe payment has met the confirmation policy.
expiredThe payment window has ended.
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