Rehocode Developers

Partner Sandbox Integration Guide

Local prototype — not publicly available. The operations described below have been validated in isolated test components. Production credentials, external payment rails and live webhook delivery are not enabled.

1. Payment creation

Test-only operation: POST /partner/v1/payment-intents. Partner authentication and a unique idempotency key are required.

Authorization: Bearer <sandbox-token>
Idempotency-Key: <unique-request-key>

{
  "amount_minor": 250000,
  "currency": "NGN",
  "merchant_reference": "ORDER-1001",
  "description": "Merchant payment"
}

For NGN, 250000 minor units represents ₦2,500.00. Creation is not proof of settlement or customer authorization.

2. Payment status

Test-only operation: GET /partner/v1/payment-intents/{id}. The isolated status gateway checks partner credentials, maps the public payment ID to the existing backend, and reads status from its dedicated test database. Other partners' payments are not accessible.

3. Sandbox events

The prototype can create a payment_intent.created event for a pending sandbox payment. The event does not indicate a successful transfer or settled funds.

Signature header: X-Rehocode-Signature: t=...,v1=.... The v1 signature uses HMAC-SHA256 over the timestamp, a period, and the exact raw event body.

Receiving systems should verify signatures within the allowed five-minute window and durably deduplicate received event IDs.

4. Delivery and retries

A local SQLite outbox and a test-only retry queue support persistent delivery state, bounded exponential backoff, delivery leases, acknowledgements and dead-letter states. Delivery currently uses an injected test transport. An automatic worker service and external HTTPS webhook delivery are not yet available.

5. Before partner onboarding

Required work includes approved partner credentials, merchant authorization, persistent credential management, production-grade API security, webhook destination verification, monitoring, reconciliation, incident procedures and regulatory/payment-rail approvals.

API reference

Draft OpenAPI Specification

This is a prototype contract, not a live API.

View sandbox OpenAPI specification