POST
/
v1
/
connections
/
test
Test a PSP connection using supplied credentials (encryption path + basic ping)
curl --request POST \
  --url http://localhost:8081/v1/connections/test \
  --header 'Content-Type: application/json' \
  --header 'X-Org-Id: <x-org-id>' \
  --header 'X-Reevit-Key: <api-key>' \
  --data '
{
  "provider": "paystack",
  "credentials": {},
  "id": "<string>",
  "mode": "live",
  "status": "active",
  "capabilities": {},
  "routing_hints": {
    "country_preference": [
      "<string>"
    ],
    "method_bias": {},
    "fallback_only": true
  },
  "labels": [
    "<string>"
  ]
}
'
{
  "ok": true,
  "message": "<string>"
}

Authorizations

X-Reevit-Key
string
header
required

API key for server-to-server authentication

Headers

X-Org-Id
string
required

Organization identifier for multi-tenancy

Idempotency-Key
string

Idempotency key for safe retries

Body

application/json
provider
enum<string>
required
Available options:
paystack,
hubtel,
flutterwave,
monnify,
mpesa,
stripe
credentials
object
required
id
string
mode
enum<string>
default:live
Available options:
sandbox,
live
status
enum<string>
default:active
Available options:
active,
inactive
capabilities
object
routing_hints
object
labels
string[]

Up to 20 lowercase labels (letters, numbers, -, _)

Response

OK

ok
boolean
message
string