API Reference

REST API Reference Overview

The rafiqPay API is organized around REST. All requests use HTTPS, expect JSON request bodies, and return JSON responses. Authentication uses Bearer tokens, and resources support idempotent operations.

Status Badging & Plan 035 Legend

Endpoints and resources are tagged with their delivery status:
In plan 035Built in plan 035 and available in the API now.
ProposedProposed: not built yet. The interface may change.

Standard HTTP Headers

Authorization: Bearer <key>

Your secret API key. Test keys begin with rp_test_sk_; live keys begin with rp_live_sk_.

x-request-id: <id>

Every response carries one. Send your own to follow a request through, and quote it when you ask for support. There is no version header: the API has one version, /v1.

Idempotency-Key: <key>

8 to 120 letters, digits or - _ : . on routes that create money movements. A retry with the same key and request returns the first answer instead of doing it twice.

Content-Type: application/json

Required on all request payloads containing POST, PATCH, or PUT body data.

All 28 API Resources

Click any resource below to inspect its schema fields, object representations, and endpoint methods.