API conventions
Base URL. The API origin is https://console.orangepill.cloud. Every REST path already starts with /v4, so a full URL is the
origin followed by the path, for example https://console.orangepill.cloud/v4/payment-intents. Do not add a second /v4.
Versioning. All REST paths are under /v4. Webhook payloads also carry a schema version.
Idempotency is not uniform yet. Use the mechanism that each endpoint documents:
| Endpoint | Mechanism |
|---|---|
POST /v4/checkout/sessions |
Idempotency-Key header |
POST /v4/payment-intents |
idempotencyKey in the body |
POST /v4/refunds |
idempotency_key in the body |
Errors and pagination differ between endpoints. Rely on each operation’s reference page.
Outbound webhooks
Section titled “Outbound webhooks”Each delivery carries X-Orangepill-Event, X-Orangepill-Event-Id, X-Orangepill-Delivery-Id,
X-Orangepill-Timestamp and X-Orangepill-Signature: sha256=<hex>. The signature is an HMAC over
<timestamp>.<raw body>. Reject deliveries older than 5 minutes. Failed deliveries are retried
immediately, then after 10 s, 60 s and 5 min, and are then dead-lettered.
Make your handler idempotent on X-Orangepill-Event-Id.