SettleFlow API
API Reference

API reference

Quick reference for the V1 (E-PRO compatible) endpoints

Endpoints

EndpointMethodSummary
/v1/payment/directPOSTAuthorize (and capture) a card payment
/v1/refund/directPOSTRefund a previously captured payment (full)
/v1/status/directPOSTQuery the current status of a transaction

Base URL

https://api.settleflow.io

Sandbox and production share the same host — the sk_test_ / sk_live_ prefix on your API key selects the environment. See Sandbox & test cards.

Common request shape

POST /v1/<action>/direct HTTP/1.1
Host: api.settleflow.io
Content-Type: application/json
epro-api-key: sk_test_...

Common response shape

Success:

{
  "Code": 0,
  "Result": {
    /* operation-specific */
  }
}

Error (HTTP 200 with a non-zero Code):

{ "Code": 206, "Error": "Invalid parameter CardNumber, check format or Luhn algorithm" }

The full catalog of codes lives on the Error codes page.

Shared result fields

Every Result envelope — payment, refund, status — exposes the following:

FieldTypeDescription
OperationTypeenumpayment, refund, credit
Statusenumauthorized, captured, failed, cancelled, pending, rejected_pw
TidstringYour transaction reference
ReferencestringSettleFlow identifier
AmountnumberAmount in major currency units
UserIdstringYour Uid supplied on the original payment
MessagestringHuman-readable outcome
DatestringYYYY-MM-DD HH:mm:ss (UTC)

On this page