Skip to content

API Reference

Base URL: https://fincobra.com

Checkout API

These endpoints are served by the checkout service and handle configuration, payment methods, invoices, payment pages, and API keys.

Configuration

MethodPathAuthDescription
GET/api/checkout/configSession/BearerGet your checkout configuration
PUT/api/checkout/configSession/BearerCreate or update configuration
POST/api/checkout/config/webhook-secret/rotateSession/BearerRotate the webhook signing secret
GET/api/checkout/config/balanceSession/BearerGet wallet balance

Payment methods

MethodPathAuthDescription
GET/api/checkout/payment-methodsSession/BearerList configured payment methods
POST/api/checkout/payment-methodsSession/BearerCreate a payment method
PUT/api/checkout/payment-methods/:idSession/BearerUpdate a payment method
DELETE/api/checkout/payment-methods/:idSession/BearerDisable a payment method

Invoices

POST /api/checkout/invoices can also return 403 when billing blocks new live invoice creation for the account.

MethodPathAuthDescription
POST/api/checkout/invoicesAPI Key or SessionCreate a new invoice
GET/api/checkout/invoicesSession/BearerList invoices (with filters)
GET/api/checkout/invoices/exportSession/BearerDownload filtered invoices as CSV
GET/api/checkout/invoices/statsSession/BearerGet invoice count by status and exception state
GET/api/checkout/invoices/:idAPI Key or SessionGet full invoice detail + QR code
GET/api/checkout/invoices/:id/paymentsSession/BearerGet normalized payment events
GET/api/checkout/invoices/:id/statusAPI Key or SessionGet invoice status (lightweight)
POST/api/checkout/invoices/:id/exception/resolveSession/BearerResolve an open invoice exception
POST/api/checkout/address-transfer-withdrawals/confirmSession/BearerConfirm a merchant-signed deterministic-address withdrawal transaction

Payment page

MethodPathAuthDescription
GET/api/checkout/pay/:idNonePublic invoice data for payment page
GET/api/checkout/pay/:id/statusNoneLightweight public status for payment-page polling
POST/api/checkout/pay/:id/sync-wallet-paymentNoneSync a submitted wallet-contract transaction into invoice state

API key management

MethodPathAuthDescription
POST/api/checkout/api-keysSession/BearerGenerate a new API key (max 3 active)
GET/api/checkout/api-keysSession/BearerList active API keys
DELETE/api/checkout/api-keys/:keyIdSession/BearerRevoke an API key

Authentication methods

MethodHeader/CookieUsed for
API KeyX-Api-Key: fc_live_...Integration-safe invoice routes
Sessionsession cookie (JWT)Browser-based dashboard access
BearerAuthorization: Bearer <jwt>Server-to-server or mobile

Common error format

All errors follow the same shape:

json
{
  "error": "Human-readable error message"
}

Validation errors may include additional detail:

json
{
  "error": "Validation failed",
  "details": { ... }
}

HTTP status codes

CodeMeaning
200Success
201Created (new invoice)
400Validation error
401Authentication failed
404Resource not found
409Conflict (duplicate payment method, duplicate external invoice ID, max keys reached)
502Upstream service error (wallet balance)

Rate limits

API key management endpoints have strict rate limits. Invoice creation and listing have moderate limits. If you exceed the limit, you'll receive a 429 Too Many Requests response.