API reference
The PAID API is REST-style, returns JSON, and uses standard HTTP verbs. Base URL: https://api.trustfabric.ai.
Authentication
Authenticate every request with your secret key:
Authorization: Bearer sk_live_yourkey
Endpoint catalog
PAID exposes over 2,500 production routes. The most commonly used endpoints are listed
below. The complete catalog is available at api.trustfabric.ai/openapi.json.
Checkout
| Method | Path | Description |
|---|
| POST | /v1/checkout/sessions | Create a checkout session. |
| GET | /v1/checkout/sessions/{id} | Retrieve a checkout session. |
| POST | /v1/checkout/sessions/{id}/confirm | Confirm a session and finalize the payment intent. |
Payment intents
| Method | Path | Description |
|---|
| POST | /v1/payment_intents | Create a payment intent directly. |
| GET | /v1/payment_intents | List payment intents with filters. |
| GET | /v1/payment_intents/{id} | Retrieve a payment intent. |
| POST | /v1/payment_intents/{id}/capture | Capture a previously authorized intent. |
| POST | /v1/payment_intents/{id}/cancel | Cancel an unauthorized intent. |
| POST | /v1/payment_intents/{id}/refunds | Refund a charge. |
Accounts
| Method | Path | Description |
|---|
| POST | /v1/accounts | Create a connected account. |
| GET | /v1/accounts/{id} | Retrieve account details. |
| POST | /v1/accounts/{id}/payouts | Issue a payout. |
Reconciliation
| Method | Path | Description |
|---|
| GET | /v1/reconciliation/reports | List reconciliation reports. |
| GET | /v1/reconciliation/reports/{id} | Retrieve a report and its mismatches. |
| POST | /v1/reconciliation/mismatches/{id}/resolve | Resolve a mismatch. |
Errors
| Status | Meaning |
|---|
| 400 | Validation error. Inspect the error.code for the specific field. |
| 401 | Missing or invalid API key. |
| 402 | The card was declined. error.decline_code explains why. |
| 403 | Authenticated but not permitted for this resource. |
| 404 | Resource not found. |
| 429 | Rate-limited. Back off according to the Retry-After header. |
| 5xx | Server-side. Retry idempotently with exponential backoff. |
Idempotency
Every POST endpoint accepts an Idempotency-Key header. PAID stores the response
keyed by (account, key) for 24 hours. Retrying with the same key returns the original response.