EDI / B2B Integration Hub — Overview & module guide

Module: EDI / B2B Integration Hub v1.4.0

Enterprise EDI and B2B integration hub for BIXCRM — trading partners, connections, document exchange, and message tracking

Screen-by-screen guides (each tab explained)

Click a menu item below for step-by-step instructions on that EDI / B2B Integration Hub screen:

How to use in BIXCRM (daily operations)

  1. Sign in to the admin area with a role that includes EDI / B2B Integration Hub permissions.
  2. Open Edi B2b Hub (sidebar) or search for EDI / B2B Integration Hub in the admin menu.
  3. Start on the Dashboard (if available) to see open tasks, pending approvals, and KPIs.
  4. Review Settings after upgrades — new options may need defaults for your company.
  5. Create or import master data first; most modules block transactions until masters exist.
  6. Run the main business flow (create → submit → approve → post/complete) using the screens listed in Admin menu below.
  7. Use Reports / Analytics screens to reconcile stock, finance, compliance, or SLA metrics.
  8. For integrations (API, EDI, gateways, tax), confirm credentials in Settings and monitor logs or webhook delivery screens.
  9. Train staff with role-based access — give approvers approve permissions only, operators create/edit on their area.
  10. If something fails overnight, check BIXCRM cron ran and open the module log / failed queue screen if present.

Admin menu — where to work

Open the EDI / B2B Integration Hub section in the admin sidebar. Screens your staff may use (depending on role):

  • API Keys
  • Bulk Import
  • Connections
  • Ebh Field Mappings
  • EDI Hub
  • EDI Messages
  • Integration Dashboard
  • Messages
  • Settings
  • Trading Partners
  • Webhooks
  • When invoice is paid
  • When invoice is sent (unpaid)

Detailed guide — features, workflows, API & FAQ

Phase 1 — Foundation ✅

FeatureDescription
----------------------
Trading PartnersCRUD with ISA/GS IDs, CRM client linking
ConnectionsSFTP, AS2, REST API, Email, FTP, Local folder profiles
Document TypesPre-seeded X12 types (850, 810, 856, 997, etc.)
Message LogTrack inbound/outbound EDI messages with status workflow
DashboardStats, charts, recent messages
SettingsHub enable, default standard, retention, file paths

Phase 2 — Parsing & Mapping ✅

FeatureDescription
----------------------
X12 ParserSegment/element parsing, 850/810/856 structure extraction
EDIFACT ParserBasic UNB/UNH envelope support
Field MappingsPartner + document type → CRM field mapping UI
Inbound ProcessorAuto-process on save + BIXCRM cron batch
ReprocessRe-parse failed or updated messages
Parse PreviewTest raw EDI before saving
Validation RulesRequired envelope segments (ISA, GS, ST, SE, GE, IEA)

Phase 3 — Outbound & CRM Integration ✅

FeatureDescription
----------------------
X12 GeneratorBuild 810, 850, 856, 997 transaction sets
Invoice → 810Auto-generate when invoice is sent or paid
PO → 850Cron sync for approved purchase orders
Shipment → 856Auto-generate on WMS shipment completion
997 Auto-AckFunctional acknowledgment for processed inbound docs
Entity LinkingMessages linked to invoice, PO, shipment, or client
Outbound FilesWritten to configured outbound path

Phase 4 — Transport Connectors ✅

FeatureDescription
----------------------
SFTPInbound poll, outbound upload, connection test
FTPInbound poll, outbound upload, passive mode
Local FolderWatch folder inbound, outbound drop
AS2HTTPS delivery with optional signing, MDN capture
Transport CronPoll inbound + push outbound on BIXCRM cron
Connection TestLive test button on connection form
Transport Statuspending / sent / failed per outbound message

Phase 5 — API & Enterprise ✅

FeatureDescription
----------------------
REST APIList partners/messages, submit documents (/edi_b2b_hub/api)
API KeysAdmin-managed tokens with read/write scopes and rate limits
WebhooksHMAC-signed callbacks: message.received, message.processed, message.failed
Partner PortalClient-area EDI message status for linked trading partners
Bulk ImportCSV upload (partner_code, raw_payload, optional direction/doc code)

Database Tables

TablePurpose
----------------
ebh_trading_partnersB2B partner master
ebh_connectionsTransport/protocol configuration
ebh_document_typesEDI document catalog
ebh_messagesMessage/transaction log
ebh_field_mappingsSegment → CRM field maps
ebh_validation_rulesParse validation rules
ebh_activity_logsAudit trail
ebh_api_keysREST API authentication tokens
ebh_webhooksOutbound webhook subscriptions
ebh_webhook_deliveriesWebhook delivery log and retry queue
ebh_import_batchesBulk CSV import history

Permissions

FeatureCapabilities
----------------------
ebh_dashboardview
ebh_trading_partnersview, create, edit, delete
ebh_connectionsview, create, edit, delete
ebh_messagesview, create, edit, delete, reprocess
ebh_field_mappingsview, create, edit, delete
ebh_settingsview, edit
ebh_apiview, create, delete
ebh_webhooksview, create, edit, delete
ebh_importview, create

Processing Flow

  1. Create inbound message with raw X12/EDIFACT payload
  2. Processor parses → validates → applies field mappings
  3. parsed_payload JSON stores structure + mapped CRM fields
  4. Cron processes pending queue when Auto-process Inbound is enabled

Roadmap

All planned phases (1–5) are complete. See [docs/ROADMAP.md](docs/ROADMAP.md) for details.

Version

  • Module: 1.4.0
  • DB version: 104 (option ebh_db_version)

Features

Enterprise EDI and B2B integration hub for BIXCRM — trading partners, connections, document exchange, and message tracking

  • Module: **1.4.0**
  • DB version: **104** (option `ebh_db_version`)

Permissions

Granular staff capabilities are registered on activation. Assign them under Setup → Staff → Roles for the EDI / B2B Integration Hub capability group.

Typical capabilities include view, create, edit, delete, plus module-specific actions (approve, export, settings, API access).

Cron Jobs

Background tasks (if enabled) run through BIXCRM's main cron. Example crontab (every 5 minutes):

* * * * * php /path/to/bixcrm/index.php cron/index > /dev/null 2>&1

Check module settings for scheduled jobs (alerts, sync, reports, retention).

After activation — configuration checklist

  1. Go to Setup → Modules and activate EDI / B2B Integration Hub.
  2. If prompted, click Upgrade Database or reload admin — migrations run automatically.
  3. Assign permissions under Setup → Staff → Roles.
  4. Open the module menu and configure settings.
  5. BIXCRM 3.0+
  6. PHP 7.4+ (8.1+ recommended)
  7. MySQL 5.7+ / MariaDB 10.3+ (InnoDB)
  8. PHP extensions: mysqli, json, mbstring, curl, fileinfo

Staff permissions (from module)

Assign under Setup → Staff → Roles. Each feature can expose different actions:

FeatureActions
Integration Dashboard
ebh_dashboard
view
Trading Partners
ebh_trading_partners
view, create, edit, delete
Connections
ebh_connections
view, create, edit, delete
Messages
ebh_messages
view, create, edit, delete, reprocess
Ebh Field Mappings
ebh_field_mappings
view, create, edit, delete
Settings
ebh_settings
view, edit
API Keys
ebh_api
view, create, delete
Webhooks
ebh_webhooks
view, create, edit, delete
Bulk Import
ebh_import
view, create

One-time setup (first time only)

  1. Setup → Modules → activate EDI / B2B Integration Hub.
  2. Setup → Staff → Roles → assign EDI / B2B Integration Hub permissions (view, create, edit, delete, approve, export, settings as needed).
  3. Open EDI / B2B Integration Hub → Settings and complete company defaults, prefixes, integrations, and notification options.
  4. Create master data (warehouses, products, templates, accounts, routes, etc.) before processing live transactions.
  5. Enable BIXCRM cron (php /path/to/bixcrm/index.php cron/index) for sync, retries, alerts, and scheduled jobs.
  6. Optionally enable REST API / webhooks in module settings if you integrate external systems.

BIXCRM Knowledge Base — usage guide generated from module README and documentation.

Did you find this article useful?