API reference
Order any Infoden service from your own website, app or CRM, and follow every step by webhook. Version 2.0.0.
Getting started
- Apply to become a partner. Once approved, open your partner dashboard → API & webhooks and create a key.
- Send it on every request:
Authorization: Bearer ick_live_…(orick_test_…to try things safely). - Base URL:
https://infodenconsultancy.com/api/v1 - Start with
GET /partner/catalogue(every service with your price), thenPOST /orders.
curl -X POST "https://infodenconsultancy.com/api/v1/orders" \
-H "Authorization: Bearer ick_test_..." \
-H "Idempotency-Key: my-order-1001" \
-H "Content-Type: application/json" \
-d '{"services":[{"code":"tax_clearance","qty":1}],"reference":"1001"}'Test mode
A test key (ick_test_...) works against a sandbox. Orders are validated and priced exactly like live, but nothing real is created: no company, no invoice, no wallet charge, and Infoden staff are not notified.
Test keys see only test orders and test events, and live keys only live ones. A webhook endpoint created with a test key receives only test events. The same Idempotency-Key can be used once in each environment.
POST /orders/{id}/simulate with action advance | reject_names | action_needed | add_document moves a test order along and sends the same webhooks a live order would (data.livemode = false).
test_insufficient_fundsreturns the live 402 insufficient_fundstest_credit_limitreturns the live 402 credit_limit_reachedTest orders have no files to download, and uploads to them are validated but not stored. Every event carries data.livemode.
Webhooks
POST { id, event_type, created_at, data } to the registered url. 10s timeout on our side.
order.createdorder.paidstage.startedstage.completedstage.delayedstage.notestage.action_neededstage.rejectednames.rejectedorder.registeredorder.completedorder.cancelledorder.status_changedorder.priceddocument.addedwallet.topped_upwallet.topup_reversedX-ICI-Event-IdThe event's UUID — use this to de-duplicate; the same event may be delivered more than once (at-least-once delivery).
X-ICI-TimestampUnix seconds the request was signed at.
X-ICI-Signaturesha256=<hex HMAC-SHA256 of ${timestamp}.${raw_request_body}, keyed with your webhook secret>.
Reject any request where |now - X-ICI-Timestamp| > 300 seconds (5 minutes), in addition to verifying the signature.
Verify a signature (Node.js)
const crypto = require('crypto');
function verify(rawBody, timestamp, signatureHeader, secret) {
const [, sig] = signatureHeader.split('sha256=');
const expected = crypto.createHmac('sha256', secret).update(`${timestamp}.${rawBody}`).digest('hex');
const fresh = Math.abs(Date.now() / 1000 - Number(timestamp)) <= 300;
return fresh && crypto.timingSafeEqual(Buffer.from(sig), Buffer.from(expected));
}Verify a signature (Python)
import hmac, hashlib, time
def verify(raw_body: bytes, timestamp: str, signature_header: str, secret: str) -> bool:
sig = signature_header.split('sha256=')[-1]
expected = hmac.new(secret.encode(), f'{timestamp}.{raw_body.decode()}'.encode(), hashlib.sha256).hexdigest()
fresh = abs(time.time() - float(timestamp)) <= 300
return fresh and hmac.compare_digest(sig, expected)2xx = delivered. Anything else retries with backoff 1m, 5m, 30m, 2h, 12h (5 attempts total); after the 5th failed attempt the delivery is marked dead. If an endpoint accumulates 20 consecutive dead deliveries it is automatically set inactive (disabled_reason='auto_disabled_failures') — re-enable by deleting and re-creating the endpoint.
