Developer documentation

Partner API Reference

Explore the proposed integration interface for Rehocode payment capabilities.

Sandbox prototype only. These routes are not publicly hosted, and external partners cannot connect yet. No production credentials are available.

API operations

POST

/partner/v1/payment-intents

Create a simulated payment intent.

Required headers: Authorization, Idempotency-Key

Example request:

{
  "amount_minor": 250000,
  "currency": "NGN",
  "merchant_reference": "DEMO-001",
  "description": "Example sandbox payment"
}
GET

/partner/v1/payment-intents/{payment_id}

Retrieve a simulated payment intent's status.

POST

/partner/v1/payment-requests

Create a simulated payment request.

Required headers: Authorization, Idempotency-Key

Example request:

{
  "amount_minor": 250000,
  "currency": "NGN",
  "merchant_reference": "DEMO-001",
  "description": "Example sandbox payment"
}

Example sandbox response

{
  "id": "pi_test_example",
  "status": "pending",
  "amount_minor": 250000,
  "currency": "NGN",
  "merchant_reference": "DEMO-001",
  "sandbox": true,
  "financial_execution": false
}

Amounts are represented in minor currency units. The example above represents ₦2,500.00. No real funds are transferred.

Integration security

Authentication

The local prototype uses temporary test bearer tokens. Production-grade credential issuance and permissions remain to be implemented.

Idempotency

Create requests require an Idempotency-Key to prevent unintended duplicate resources.

Partner isolation

The sandbox prevents one partner from retrieving another partner's resources.

Production authentication, webhooks, rate limits, audit logging and settlement integration are still under development.