Declined.io Developer Documentation

Integrate payment recovery automation into your billing stack. Send events when payments fail, mark recoveries when customers pay, and receive outbound webhooks as sequences progress.

Quick start

Create an API key in the dashboard under Webhooks & SDK, then send your first event:

curl
curl -X POST https://dev.declined.io/api/v1/events \
  -H "Authorization: Bearer decl_live_sk_..." \
  -H "Content-Type: application/json" \
  -d '{
    "event_id": "evt_001",
    "type": "payment_failed",
    "customer_id": "cus_123",
    "invoice_id": "inv_456",
    "amount": 24900,
    "currency": "usd",
    "provider": "stripe"
  }'

Official SDKs

Each language is published from its own GitHub repository under the declined-io organization:

  • Node.jsnpm install declined
  • Pythonpip install declined
  • Rubygem install declined
  • PHPcomposer require declined/sdk
  • Gogo get github.com/Enoros/declined-sdk/declined-go
  • JavaMaven: io.declined:declined

Core concepts

  • Authentication — Bearer API keys for live and sandbox
  • Events — Ingest billing signals (failures, recoveries, subscription changes)
  • Recoveries — Mark payments as recovered when customers pay outside Declined
  • Webhooks — Receive outbound notifications from Declined
  • REST API — Full endpoint reference