The Ordering Workflow
Unlike some APIs that return keys directly in the purchase response, Erysta uses a two-step fulfillment pattern to ensure data integrity and support asynchronous processing.Place the Order
Send a
POST request to /place-order with your list of items. Erysta verifies your Balance + Credit Limit and confirms real-time stock availability.Receive Order ID
If the transaction is successful, the API returns a unique
order_id (e.g., ord_507f1f...). At this point, funds are reserved or deducted from your account.Fetch Keys
Use the
order_id to call GET /orders/{order_id}/keys. This is where you retrieve the actual digital content (activation keys, image links, or text-based codes).Delivery Timing & Performance:
- Average: Content delivery usually occurs within a few seconds.
- Edge Cases: Depending on the original source of the product, processing may take between 15 to 20 minutes.
Fulfillment Statuses
When polling for keys, you should monitor thestatus field. Your integration should continue polling as long as the status is PENDING or PROCESSING.
| Status | Description |
|---|---|
PENDING | The order has been received and is currently in the queue for processing. |
PROCESSING | Our stock controllers are actively fetching your keys from the source. |
COMPLETED | All requested items have been successfully delivered and are ready for retrieval. |
PARTIAL_COMPLETED | Some items were delivered, but others failed. |
FAILED | A critical error occurred; the order was not fulfilled. No funds deducted. |
REFUNDED | The order was cancelled after payment; funds were returned to your balance. |
Key Concepts
Atomic Bulk Operations
The/place-order endpoint accepts an array of items. If any item in the array is unavailable or if your funds are insufficient for the total amount, the entire transaction will fail. This prevents “partial orders” that would complicate your accounting and inventory management.
Reference IDs
We strongly recommend providing areference_id (your own internal database ID). This allows you to reconcile orders with your own systems and search for specific transactions in the Erysta Dashboard.
Multimodal Content Delivery
Our delivery system supports different formats. Depending on the product, thevalue returned in the keys array can be:
- Text: A standard alphanumeric key (e.g., Steam, Epic, PSN).
- Image: A Data URL (base64) for products delivered as QR codes or scanned vouchers. You can inject this value directly into an
<img src="..." />tag.