Preview Leffel Consulting Payments is in active development and migrating to Finix — the API isn't publicly live yet, and some examples still reflect the outgoing build. Request early access →

API Reference

API reference

A versioned REST API returning JSON. All requests are authenticated with your API key over HTTPS.

Base URL

All endpoints are relative to the versioned base URL. The /v1 surface is stable — breaking changes ship under a new version prefix.

Authentication

Send your key in the X-Api-Key header (or Authorization: Bearer <key>). Keys look like lc_live_…. A missing or invalid key returns 401. Keep keys server-side — never expose them in a browser.

Idempotency

Send an Idempotency-Key header when creating a payment. Retrying with the same key and body returns the original response; reusing it with a different body returns 409.

Conventions

  • Amounts are integer cents (e.g. 4999 = $49.99).
  • Errors are application/problem+json (RFC 7807).
  • A traceId accompanies failures (also in X-Correlation-Id).

Base URL

https://payments.leffelconsulting.com/v1
Authenticated request
curl https://payments.leffelconsulting.com/v1/payments/lcpay_9f2c... \
  -H "X-Api-Key: lc_live_XXXXXXXXXXXXXXXXXXXX"

Resources