Skip to main content
This document provides specific details for using the Fluz Gift Card Vendor API Connector with Runa as the vendor.

Original Runa API vs Fluz API Adapter

Base URL

Authentication

Runa Base URL
  • Uses API Key Authentication with the header X-Api-Key

Fluz API Adapter

  • Uses Basic Authentication with the Authorization header (same as all vendor integrations).

API Endpoint Comparison

Request Examples

Create Order

Original Runa Request:

Fluz API Adapter Request:

The request shape is unchanged from Runa’s. Only the brand code in products.value has to change, because it is resolved against the Fluz catalog. Correlate an order using the id from the response.

Background Processing for Runa Orders

All purchase operations through the Runa integration are processed as background operations. The Fluz API Adapter provides two response modes for Runa:

Synchronous vs Asynchronous Processing Modes

  • Synchronous Mode:
    • Add header X-Execution-Mode: sync to wait for the background operation to complete
    • The API call will wait until the background purchase operation completes
    • Full operation results are returned in the response
    • Best for testing and low-volume flows, since the call stays open for the length of the purchase
  • Asynchronous Mode (Default):
    • Returns immediately with an operation reference ID
    • The purchase continues processing in the background
    • Check the status later by querying the order endpoint with the reference ID
    • Recommended for production, since your call returns immediately regardless of how long the purchase takes
Both modes rely on background processing, but they differ in how the API responds to the client.
An order is readable once its purchase has completed. Reading a reference ID before then returns an error rather than a pending status, so treat an error on a freshly created order as still processing and read again shortly. Order status values are Fluz’s: PENDING, IN_PROGRESS, COMPLETED, FAILED, CANCELED. See Connector behaviour for status values, error responses, limits, and request constraints.

Example Usage with cURL

Example 1: Get a Specific Order

Example 2: Get All Orders

Example 3: Get Balance

Example 4: Get Balance as a Single Object

Example 5: Create Order with Runa (Asynchronous Mode - Default)

Example 6: Create Order with Runa (Synchronous Mode)