Proposed API contract

API reference

Version 1 is a proposed design contract. No endpoint on this page processes live funds.

Authentication

Proposed: Bearer test keys, scoped per merchant and environment. Never embed secret keys in a browser or mobile bundle.

Errors and limits

Proposed responses: 400 invalid input, 401 invalid key, 409 idempotency conflict, 429 rate limit, 503 provider unavailable. Final limits remain to be defined.

Payment states

CREATED, PROCESSING, PENDING, SUCCEEDED, FAILED, EXPIRED, UNKNOWN. Expiry is terminal only after confirmation that no debit occurred.

POST /v1/paymentsProposed API contract
curl https://sandbox.infinistack.example/v1/payments \
  -H "Authorization: Bearer sk_test_example" \
  -H "Idempotency-Key: order_sample_01" \
  -H "Content-Type: application/json" \
  -d '{
  "amount": 10000,
  "currency": "XAF",
  "country": "TD",
  "reference": "order_sample_01",
  "payment_method": "airtel",
  "customer": {
    "phone": "+23566000000"
  }
}'

Use test credentials only. Access is issued after review.

POST /v1/paymentsPlanned

GET /v1/payments/{id}Planned

POST /v1/payment-linksPlanned

GET /v1/payment-methodsPlanned

POST /v1/refundsPlanned

GET /v1/settlementsPlanned

POST /v1/webhook-endpointsPlanned