Open Commerce Architecture & Developer Platform

Build Custom Themes, Apps & ERP Integrations with UnExplores Stores API

Register independently as an Individual Developer or Software House with zero store requirements. Access scoped Bearer API keys, cryptographically signed HMAC webhooks, and publish to the UnExplores App Store.

Create Free Developer Account Explore REST Endpoints
Architecture Overview

Three Pillars of Extensibility

Headless REST API

Full programmatic access to products, orders, customers, and inventory. Ideal for custom mobile apps, POS hardware, and ERP synchronization.

Signed Webhooks

Receive instantaneous push events for order.created, order.paid, and order.fulfilled signed with HMAC-SHA256 headers.

App Store Marketplace

Publish custom payment gateways, logistics bridges, or storefront themes to thousands of active storekeepers and monetize your software.

Security & Scopes

Authenticating API Requests

Authentication is handled via Bearer tokens passed in the Authorization header. Never expose your Secret Key (sk_live_...) in client-side code.

cURL Request Header Example
Authorization: Bearer
curl -X GET "https://stores.unexplores.com/api/portal.php?action=get_products" \
  -H "Authorization: Bearer sk_live_your_secret_key_here" \
  -H "Content-Type: application/json"
API Reference

Core REST Endpoints

GET /api/portal.php?action=get_products
Scope: read_products

Fetch active products for the authenticated store, including pricing, barcode, inventory count, and media.

{
  "success": true,
  "products": [
    {
      "id": 101,
      "title": "Classic Cotton Oxford Shirt",
      "sku": "SKU-SHIRT-01",
      "price_pkr": 2499,
      "stock_quantity": 45,
      "barcode": "896400012345"
    }
  ]
}
POST /api/portal.php?action=create_order
Scope: write_orders

Create an order programmatically, trigger inventory allocation, and dispatch webhooks.

curl -X POST "https://stores.unexplores.com/api/portal.php?action=create_order" \
  -H "Authorization: Bearer sk_live_..." \
  -H "Content-Type: application/json" \
  -d '{
    "customer_name": "Tariq Mahmood",
    "customer_phone": "+923001234567",
    "customer_email": "tariq@gmail.com",
    "shipping_address": "House 14, Street 2, F-8/2, Islamabad",
    "city": "Islamabad",
    "items": [{"product_id": 101, "quantity": 1, "unit_price": 2499}],
    "payment_method": "jazzcash"
  }'
Cryptographic Webhooks

HMAC-SHA256 Signature Verification

Every webhook payload includes an X-Store-Signature header. Validate the payload using your webhook secret key before processing in production.

PHP Signature Verification Code
Verified Production Pattern
<?php
$payload = file_get_contents('php://input');
$signatureHeader = $_SERVER['HTTP_X_STORE_SIGNATURE'] ?? '';
$secretKey = 'whsec_your_registered_secret';

$computed = hash_hmac('sha256', $payload, $secretKey);
if (!hash_equals('sha256=' . $computed, $signatureHeader)) {
    http_response_code(401);
    die('Invalid HMAC signature');
}

$event = json_decode($payload, true);
// Process order.paid, order.fulfilled, or inventory.low securely!
http_response_code(200);
echo json_encode(['received' => true]);
App Store Marketplace

Publish & Keep 85% of Solution Revenue

Develop payment gateways, automated courier shipping plugins, or themes. Distribute for free or charge monthly subscriptions with automated revenue splits.

Join Developer Partner Program