Base URL
All API requests use the same base URL for both production and sandbox:Authentication
Authenticate all API requests with your API key (created through the Orchestra Portal). Include it in theX-Api-Key header:
Choose Your Path
REST API
Direct HTTP calls for charges, refunds, tokenization. You handle card collection and UI.
Payments Library
Backend endpoints for the JavaScript library. The library handles card entry UI.
REST API Endpoints
Use these endpoints when integrating via direct HTTP calls from your backend.Payment Operations
Charge, authorize, capture, refund, and void transactions.
String Tokens
Tokenize and retrieve sensitive strings (card numbers, etc).
Payment Gateway Accounts
Store and manage your payment provider credentials.
Payments Library Endpoints
Use these endpoints when integrating via the JavaScript Payments Library. Your server calls these endpoints; the client-side library handles UI.Start Session
Create a payment session for the client-side library.
Validate Results
Verify payment results returned from the library.
Merchant Accounts
Configure accounts for Google Pay, Apple Pay, PayPal.
Response Codes
Orchestra API endpoints use two response patterns:| Pattern | Status Code | Used By | Meaning |
|---|---|---|---|
| Async | 202 Accepted | Payment operations (charge, authorize, capture, refund, void) | Request forwarded to payment gateway. Check response body for gateway result. |
| Sync | 201 Created | StringTokens (create) | Operation completed. Resource created in Orchestra. |
| Sync | 200 OK | GET operations, status checks | Operation completed successfully. |
Common Error Codes
| Code | Description |
|---|---|
400 | Bad request - invalid parameters |
401 | Not authenticated - invalid or missing API key |
404 | Resource not found |
409 | Conflict - rejected by payment gateway or validation failed |
500 | Internal server error |
503 | Temporary failure - retry with exponential backoff |
Payment operations return
202 because they’re forwarded to external gateways asynchronously. The response body contains the gateway’s result. StringTokens returns 201 because tokens are stored synchronously in Orchestra’s vault.OpenAPI Specification
Download OpenAPI Spec
OAS 3.0 format — use with Postman, client generators, or your IDE