← Back to EcomCentral
JOOCART REST API v1

JooCart Setup Guide

Connect your JooCart store to EcomCentral using Bearer token authentication with your API key.

About JooCart

JooCart is a Joomla-based e-commerce platform popular in Central and Eastern Europe, particularly the Czech Republic and Slovakia. Built as a Joomla component, it integrates tightly with the Joomla CMS and offers a REST API for programmatic access to orders, products, and inventory.

ℹ️ EcomCentral connects to JooCart's REST API v1 at {store_url}/api/v1. The API must be enabled and an API key generated in the JooCart administration panel before credentials will work.

Prerequisites

Enabling the REST API

  1. Log in to your Joomla administration panel
  2. Navigate to Components → JooCart → Settings
  3. Find the API or REST API section and enable it
  4. Generate a new API Key and copy it — you will need this for EcomCentral
  5. Save the settings
  6. Verify the API is reachable by visiting https://your-shop.com/api/v1/orders?per_page=1 in a browser — a 401 response confirms the endpoint is active
⚠️ If the REST API is not enabled, all EcomCentral requests will return 404 Not Found. Enable the API first, then add the connection.

Connection Credentials

  1. Note the full root URL of your JooCart store, e.g. https://shop.example.com
  2. Copy the API Key from JooCart admin → Settings → API
  3. In EcomCentral, add a new JooCart connection and fill in both fields
  4. Click ⚡ Test to verify the connection

Credentials Reference

KeyRequiredDescriptionExample
url Required Full root URL of your JooCart store. EcomCentral appends /api/v1 automatically. https://shop.example.com
api_key Required API key from the JooCart admin panel. Sent as a Bearer token on every request. abc123xyz…
✅ Alternative key names accepted: store_url for the store URL; apiKey or token for the API key.

API Endpoints Used

OperationMethodEndpoint
Test connectionGET/orders?page=1&per_page=1
List ordersGET/orders?page=P&per_page=N
Order detailGET/orders/{id}
Add trackingPUT/orders/{id} with { "tracking_number":"…", "carrier":"…", "status":"shipped" }
List productsGET/products?page=P&per_page=N
Product detailGET/products/{id}
Update stockPUT/products/{id} with { "stock": N }
ℹ️ All requests use Bearer token authentication — the API key is sent as Authorization: Bearer {api_key} on every call. List endpoints return { data:[…], total:N, page:N, per_page:N }. Single-item endpoints return the object directly without an envelope wrapper.

Order Statuses

JooCart uses lowercase status strings. EcomCentral displays them with colour-coded badges.

StatusBadge colourMeaning
completed Green Order fully processed and complete
shipped Green Order dispatched to carrier
delivered Green Order received by customer
pending Blue Awaiting payment or processing
processing / new / confirmed Blue Order received and being prepared
on_hold / waiting Amber Order paused, awaiting action
cancelled Red Order cancelled
refunded Red Order refunded
failed Red Payment or processing failed

Supported Features

FeatureSupportedNotes
View orders (paginated)Order ID, reference number, date, status, total + currency
View order detailCustomer info, billing & shipping addresses, line items, current tracking
Add tracking numberSets tracking_number, carrier, and status via PUT /orders/{id}
View products (paginated)Product ID, SKU, name, price, stock quantity
View product detailFull product with description (HTML stripped), weight, status, first image
Update stock quantityBy product_id via PUT /products/{id} with stock
Test connectionHits GET /orders?per_page=1 — success confirms API key is valid

Troubleshooting

401 Unauthorized

The API key is wrong or has been revoked. Go to JooCart admin → Settings → API, regenerate the key, and update your EcomCentral connection credentials. Make sure you copy the full key without any leading or trailing whitespace.

404 Not Found on all requests

The JooCart REST API endpoint is not enabled or the store URL is incorrect. Go to Components → JooCart → Settings → API and ensure the REST API is enabled. Also verify the store URL is correct and does not include a trailing path like /api/v1 — EcomCentral appends that automatically.

SSL / certificate errors

EcomCentral requires a valid SSL certificate on the store. Self-signed certificates will be rejected. Use a certificate from a trusted CA (e.g. Let's Encrypt) or contact your hosting provider to enable HTTPS.

🔧 Quick sanity check — visit https://your-shop.com/api/v1/orders?per_page=1 in a browser. A 401 response means the API is active (check your key). A 404 means the API is not enabled or the URL is wrong.