Opens in a new tab
Deliver toTennessee
0 0 0Cart
Get a Project Quote

Athenian Fulfillment Platform

v0.1.0 October 6, 2026
A modular fulfillment, inventory, inbound, warehouse, and shipping foundation for WooCommerce operations.

Overview

Product overview

Document version: 1.0 Plugin version: 0.1.0 Plugin slug: athenian-fulfillment-platform PHP namespace: Athenian\FulfillmentPlatform REST namespace: athfp/v1

Catalog, inventory, inbound, lot, warehouse, and shipping services.
REST v1, authentication, idempotency, webhook, and audit surfaces.
Admin workspace, CLI, WooCommerce product, and stock-projection integration.
A baseline for later authenticated inventory and fulfillment-flow verification.

Use cases

  • Warehouse operations
  • Inventory control
  • Inbound receiving
  • Fulfillment orchestration

Developer

Developer starting point

This baseline documents the Fulfillment Platform architecture. It does not claim that a live inventory write, inbound receipt, warehouse action, carrier request, or fulfillment event has been exercised.

3. Architectural decisions

3.1 Inventory authority

The ATHFP client-scoped ledger is authoritative for physical inventory. WooCommerce stock is a derived sales-channel projection.

For a mapped item:

Woo sellable stock = sellable on hand in active allocatable bins - active reservations

The following quantities do not contribute to WooCommerce stock:

  • accepted units still in RECEIVING;
  • quarantined units;
  • damaged units;
  • rejected units;
  • inventory in inactive or non-allocatable bins;
  • incoming quantities that have not been physically received.

This rule prevents WooCommerce product metadata, client systems, and carrier integrations from becoming competing inventory authorities.

3.2 Tenant boundary

Every client-owned operational record includes client_id. Bearer credentials resolve directly to a client context, and the caller cannot replace that tenant with a request parameter.

Physical receiving and putaway are different trust boundaries. They require an authenticated WordPress operator with the appropriate ATHFP capability and an explicit client selection. Client API credentials may declare and submit inbound shipments, but they cannot claim that physical inventory has arrived.

3.3 Standalone core with optional adapters

ATHFP does not call classes from Athenian Platform Core or Athenian WC Dropship as hard dependencies. It exposes:

  • a versioned REST API;
  • WordPress actions and filters;
  • a capability advertisement bridge;
  • signed client webhooks;
  • WooCommerce shipping-rate integration points.

This keeps the warehouse ledger deployable on its own while allowing a dropship storefront or platform service to connect through a stable contract.

3.4 WooCommerce compatibility

WooCommerce products and variations remain the catalog records. ATHFP stores tenant ownership and warehouse attributes separately and maps each active item to one Woo product or variation.

The plugin declares compatibility with WooCommerce High-Performance Order Storage and Cart/Checkout Blocks. Version 0.1.0 does not yet create outbound WooCommerce orders; later order work is designed to use WooCommerce CRUD APIs rather than direct order-table access.

4. Component architecture

flowchart LR
    Client["Client storefront or ERP"] -->|"Bearer API"| REST["ATHFP REST API"]
    Operator["Warehouse operator"] -->|"WordPress session"| Admin["Fulfillment workspace"]
    Admin --> Services["Application services"]
    REST --> Services
    Services --> Ledger["Inventory operations and immutable ledger"]
    Services --> Workflow["Inbound, receipt, lot, and putaway workflow"]
    Ledger --> Balances["Materialized balances"]
    Balances --> Projector["Woo stock projector"]
    Projector --> Woo["WooCommerce products and variations"]
    Services --> Outbox["Event outbox"]
    Outbox --> Webhooks["Signed client webhooks"]
    Woo --> Rates["Woo shipping methods"]
    Rates --> REST
    Carrier["Carrier adapter"] -->|"athfp_shipping_rate_quotes"| Rates

Primary code areas

| Area | Responsibility | | --- | --- | | includes/Activation | Schema installation, upgrades, seeded defaults, capabilities, and lifecycle behavior | | includes/API/Auth | Bearer credentials, client context, cookie operator context, scopes, and tenant enforcement | | includes/API/REST/V1 | Versioned inventory, inbound, task, rate, webhook, health, and identity routes | | includes/Application | Catalog mapping, inventory mutations, inbound workflow, rates, audit, idempotency, and webhook delivery | | includes/Infrastructure/Database | Table naming and repositories for clients, items, lots, balances, ledger entries, and warehouse workflows | | includes/Infrastructure/WooCommerce | Product-editor controls, stock projection, and reconciliation | | includes/Infrastructure/Integrations | Optional Athenian capability and inventory-provider bridge | | includes/Admin | Operator workspace for clients, items, inbounds, receiving, tasks, and diagnostics | | includes/CLI | Health, schema, inventory, projection, and reconciliation commands |

Dependencies are registered in a small internal service container. Source files use the Athenian\FulfillmentPlatform namespace and path-based autoloading.

5. Data model

Activation creates 28 prefixed InnoDB tables. Actual names use the active WordPress database prefix followed by athfp_.

Tenancy and catalog

| Table suffix | Purpose | | --- | --- | | clients | House Account and external fulfillment clients | | client_users | WordPress user membership and client role | | credentials | Hashed bearer secrets, scopes, status, IP restrictions, and usage timestamps | | items | Client SKU ownership and Woo product or variation mapping | | warehouses | Fulfillment origins and address settings | | bins | Receiving, storage, quarantine, damaged, returns, staging, and packing locations | | lots | Client item lot code, expiration, and lot status |

Inventory and inbound operations

| Table suffix | Purpose | | --- | --- | | inventory_operations | Idempotent business operation header | | inventory_ledger | Append-only quantity deltas and post-operation balances | | inventory_balances | Current balance by client, item, warehouse, bin, condition, and lot | | reservations | Schema foundation for outbound allocation | | inbounds | Client-declared inbound shipment header and state | | inbound_lines | Expected and received quantities by item | | receipts | One idempotent physical receiving session | | receipt_lines | Accepted, damaged, quarantined, and rejected results | | workflow_tasks | Warehouse work queue header | | workflow_task_lines | Putaway and future execution lines |

Outbound-ready and integration records

| Table suffix | Purpose in 0.1.0 | | --- | --- | | fulfillment_orders | Reserved for the outbound order phase | | fulfillment_order_lines | Reserved for outbound item execution | | shipping_quotes | Trusted, expiring rate results and opaque quote tokens | | shipments | Reserved for outbound shipment execution | | shipment_items | Reserved for shipped-line quantities | | packages | Reserved for dimensions, labels, and provider references | | idempotency | Request hash, processing state, and response replay | | webhook_subscriptions | Client endpoint, event selection, encrypted signing secret, and status | | outbox_events | Durable event envelope and retry state | | webhook_deliveries | Per-subscription attempt evidence | | audit_log | Actor, action, entity, request, and before/after context |

9. REST API surface

The base route is:

/wp-json/athfp/v1

The API currently provides:

  • public minimal health status;
  • authenticated identity, tenant, scopes, and capabilities;
  • warehouse and bin discovery;
  • client item mapping and item inventory details;
  • inbound creation, listing, detail, and submission;
  • operator receiving and putaway;
  • workflow-task listing;
  • shipping-rate calculation and persisted quote tokens;
  • webhook subscription creation, listing, and revocation.

See [api-v1.md](api-v1.md) for the route table, payloads, authentication rules, and examples.

11. Events and integration hooks

Committed events are published through the outbox and WordPress hooks. Current event families include item mapping, inbound creation and submission, receipt recording, inventory operations, putaway completion, and webhook administration.

Primary extension points:

| Hook | Purpose | | --- | --- | | athfp_domain_event | Receive every published ATHFP event | | athfp/{domain}/{event} | Receive a specific slash-form event action | | athfp_shipping_rate_quotes | Add carrier or logistics rate results | | athfp_woo_product_inventory | Resolve ATHFP inventory for a Woo product | | athfp_capabilities | Add or inspect ATHFP feature capabilities | | athenian_platform_capabilities | Advertise fulfillment support to Athenian Platform Core | | athfp/integrations/ready | Discover the active plugin version, API namespace, and capabilities |

13. Installation and first validation

  1. Back up the WordPress database.
  2. Install and activate WooCommerce.
  3. Upload and activate ATHFP.
  4. Open Fulfillment > Diagnostics and verify all 28 tables, InnoDB engines, required bins, cryptography, queue availability, and zero negative balances.
  5. Create a test client.
  6. Map a non-production WooCommerce product.
  7. Create and submit an inbound for that item.
  8. Receive accepted and exception quantities.
  9. Confirm Receiving inventory is not yet sellable.
  10. Complete putaway into an allocatable bin.
  11. Confirm ATHFP available inventory and WooCommerce stock agree.
  12. Retry the receiving request with the original idempotency key and confirm no duplicate stock.

The complete validation procedure is available in [live-test-checklist.md](live-test-checklist.md).

14. Data retention and recovery

Deactivation stops scheduled work but does not delete operational data. Uninstall also preserves clients, mappings, inventory, receipts, ledger entries, audit history, and integration evidence. This is intentional: warehouse records should not disappear because plugin code was temporarily removed.

Database backups must include all athfp_ tables together with the WordPress and WooCommerce records they reference. WordPress authentication salts are also required to decrypt existing webhook signing secrets after a restore.

Install

Source and dependencies
  • Reviewed source folder: athenian-fulfillment-platform
  • Plugin version reviewed: 0.1.0
  • Local source inventory: 44 files (temporary, test, and Git metadata excluded).
  • GitHub baseline: https://github.com/Athenian-Brands/athenian-fulfillment-platform at baseline/devdocs-0.1.0-20261006f / 1cffba4ded415afa8211f1114d691d7ca02771be.
  • WordPress and WooCommerce.
  • Warehouse data, credentials, carrier rates, webhooks, stock writes, and downstream fulfillment effects require separate authenticated verification.

Configuration

Implementation reference sections
  • Technical overview — see the linked technical reference excerpt.
  • 1. Purpose — see the linked technical reference excerpt.
  • 2. Runtime requirements — see the linked technical reference excerpt.
  • 3. Architectural decisions — see the linked technical reference excerpt.
  • 4. Component architecture — see the linked technical reference excerpt.
  • 5. Data model — see the linked technical reference excerpt.
  • 6. Inbound inventory lifecycle — see the linked technical reference excerpt.
  • 7. Transaction and retry safety — see the linked technical reference excerpt.
  • 8. Authentication and authorization — see the linked technical reference excerpt.
  • 9. REST API surface — see the linked technical reference excerpt.
  • 10. Shipping-rate design — see the linked technical reference excerpt.
  • 11. Events and integration hooks — see the linked technical reference excerpt.
  • 12. Administration and operations — see the linked technical reference excerpt.
  • 13. Installation and first validation — see the linked technical reference excerpt.

Usage

Detected extension surface
  • Shortcodes detected in local PHP source: 0
  • Static action/filter hooks detected in local PHP source: 18
  • REST route registrations detected in local PHP source: 14

Shortcodes

Detected shortcodes
  • No static add_shortcode registrations were detected by the baseline scanner.

REST Endpoints

Detected REST routes
  • /health — includes/API/REST/V1/Controller.php
  • /inbounds/(?P<id>\d+)/lines/(?P<line_id>\d+)/receive — includes/API/REST/V1/Controller.php
  • /inbounds/(?P<id>\d+)/submit — includes/API/REST/V1/Controller.php
  • /inbounds/(?P<id>\d+) — includes/API/REST/V1/Controller.php
  • /inbounds — includes/API/REST/V1/Controller.php
  • /items/(?P<id>\d+)/inventory — includes/API/REST/V1/Controller.php
  • /items — includes/API/REST/V1/Controller.php
  • /me — includes/API/REST/V1/Controller.php
  • /rates — includes/API/REST/V1/Controller.php
  • /tasks/(?P<id>\d+)/lines/(?P<line_id>\d+)/putaway — includes/API/REST/V1/Controller.php
  • /tasks — includes/API/REST/V1/Controller.php
  • /warehouses — includes/API/REST/V1/Controller.php
  • /webhooks/(?P<id>\d+) — includes/API/REST/V1/Controller.php
  • /webhooks — includes/API/REST/V1/Controller.php

Hooks

Detected hooks
  • admin_enqueue_scripts — includes/Admin/Workspace.php
  • admin_menu — includes/Admin/Workspace.php
  • admin_notices — athenian-fulfillment-platform.php
  • admin_post_athfp_action — includes/Admin/Workspace.php
  • athenian_platform_capabilities — includes/Infrastructure/Integrations/PlatformBridge.php
  • athfp_capabilities — includes/Infrastructure/Integrations/PlatformBridge.php
  • athfp_deliver_outbox_event — includes/Plugin.php
  • athfp_project_item_stock — includes/Infrastructure/WooCommerce/StockProjector.php
  • athfp_reconcile_inventory — includes/Infrastructure/WooCommerce/StockProjector.php
  • athfp_woo_product_inventory — includes/Infrastructure/Integrations/PlatformBridge.php
  • before_woocommerce_init — athenian-fulfillment-platform.php
  • init — includes/Infrastructure/Integrations/PlatformBridge.php
  • plugins_loaded — athenian-fulfillment-platform.php
  • rest_api_init — includes/API/REST/V1/Controller.php
  • woocommerce_admin_process_product_object — includes/Infrastructure/WooCommerce/ProductPanel.php
  • woocommerce_product_options_inventory_product_data — includes/Infrastructure/WooCommerce/ProductPanel.php
  • woocommerce_save_product_variation — includes/Infrastructure/WooCommerce/ProductPanel.php
  • woocommerce_variation_options_inventory — includes/Infrastructure/WooCommerce/ProductPanel.php

Data Model

Persistence and integration boundary
  • 5. Data model — described in the local technical reference.
  • 11. Events and integration hooks — described in the local technical reference.
  • 14. Data retention and recovery — described in the local technical reference.

API Reference

Source inventory and provenance
  • Local source digest: 787eee5d3426f43cca9c9340a92448795eca9616e4f1551a522c6905791da2e1
  • Repository URL: https://github.com/Athenian-Brands/athenian-fulfillment-platform
  • Repository reference: baseline/devdocs-0.1.0-20261006f
  • Repository commit: 1cffba4ded415afa8211f1114d691d7ca02771be
  • Source files include: README.md, assets/css/admin.css, athenian-fulfillment-platform.php, dist/athenian-fulfillment-platform-0.1.0.zip, docs/api-v1.md, docs/athenian-fulfillment-platform-implementation-plan.md, docs/live-test-checklist.md, docs/marketing-overview.md, docs/technical-overview.md, includes/API/Auth/Authenticator.php, includes/API/Auth/ClientContext.php, includes/API/Auth/CredentialService.php, includes/API/REST/V1/Controller.php, includes/Activation/Installer.php, includes/Admin/Workspace.php, includes/Application/AuditService.php, includes/Application/Catalog/ItemService.php, includes/Application/EventPublisher.php, includes/Application/IdempotencyService.php, includes/Application/Inbounds/InboundService.php, includes/Application/Inventory/InventoryService.php, includes/Application/Shipping/ShippingRateService.php, includes/Application/WebhookService.php, includes/CLI/Commands.php, includes/Container.php, includes/Domain/Shared/DomainException.php, includes/Infrastructure/Database/ClientRepository.php, includes/Infrastructure/Database/Connection.php, …

Troubleshooting

Baseline review boundary
  • This baseline documents the Fulfillment Platform architecture. It does not claim that a live inventory write, inbound receipt, warehouse action, carrier request, or fulfillment event has been exercised.

  • Confirm the deployed plugin version, active dependencies, and current repository tree before using implementation details as a release contract.
  • Treat payment, carrier, vendor, shipment, inventory, account, credential, tax, AI, and external-provider behavior as integration-dependent until exercised in the target environment.

FAQ

What is this page intended to establish?

A versioned, product-linked starting point for iterative developer documentation. It combines the local implementation reference with a detected-code inventory and a committed GitHub baseline.

Is the linked repository baseline verified?

Yes. The repository URL, ref, and commit recorded on this page were verified from the clean GitHub baseline prepared for this documentation pass. That does not by itself prove fleet deployment parity.

What remains for release-grade documentation?

Reconcile the recorded source baseline with the deployed plugin version, then exercise the relevant authenticated, store, provider, payment, tax, carrier, or generated-artifact paths in the target environment.

Changelog

0.1.0 2026-10-06