Paradise Gateway provides a RESTful JSON API that works with any HTTP client. While there is no mandatory SDK, using a typed client library can reduce boilerplate, handle authentication, and provide IDE autocompletion.
Every endpoint in the Paradise Gateway API accepts standard JSON over HTTPS. You can integrate using any language's built-in HTTP client:
| Language | Recommended HTTP client |
|---|---|
| Python | requests or httpx |
| JavaScript / TypeScript | fetch (built-in) or axios |
| C# | HttpClient (System.Net.Http) |
| Java | java.net.http.HttpClient (JDK 11+) |
| Go | net/http (stdlib) |
| PHP | curl or guzzlehttp/guzzle |
| Ruby | net/http (stdlib) or faraday |
All SDK examples assume you store your API key in an environment variable.
import os
import requests
API_KEY = os.environ["PARADISE_API_KEY"]
BASE_URL = os.environ.get("PARADISE_BASE_URL", "https://api.dev.paradisegateway.net")
session = requests.Session()
session.headers.update({
"Content-Type": "application/json",
"APIKEY": API_KEY,
})
resp = session.get(f"{BASE_URL}/v1/transactions?take=5")
print(resp.json())The Paradise Gateway API is described by an OpenAPI 3.1 specification. You can use it to:
- Generate typed clients with tools like openapi-generator or openapi-typescript
- Import into API platforms like Postman, Insomnia, or Bruno
- Validate requests in your CI/CD pipeline
# TypeScript client
npx openapi-typescript apis/openapi.yaml -o src/api-types.ts
# Python client
openapi-generator-cli generate \
-i apis/openapi.yaml \
-g python \
-o ./paradise-client-python
# Java client
openapi-generator-cli generate \
-i apis/openapi.yaml \
-g java \
-o ./paradise-client-javaImport the OpenAPI spec directly into Postman:
- Open Postman and select Import.
- Choose the
apis/openapi.yamlfile or paste the spec URL. - Postman generates a collection with all endpoints, example payloads, and authentication pre-configured.
- Set the
APIKEYvariable in your environment.
- Store API keys in environment variables — never hard-code them in source files.
- Set a base URL variable — switch between sandbox and production without code changes.
- Handle errors consistently — check
response_statusandresponse_codeon every response. - Use the
correlation_id— log it for every request; include it in support tickets. - Implement retry logic — retry on
5xxerrors with exponential backoff. See Integration best practices.
- Quickstart — make your first API call
- Quick reference — endpoint cheat sheet and test data