Electronic Web Interface

Interface your Focus database with your eCommerce website.

By using intermediate XML and CSV files, the Electronic Web Interface module provides a batch mode interface, subject to basic assumptions, between your eCommerce website and the Focus Advanced Publishing software database.

Incoming Feeds: The Electronic Web Interface enables you to receive / process sales orders and customers feeds from the web directly into the sales order processing (SOP) system, provided the feeds have been activated.

Outgoing Feeds: The Electronic Web Interface enables you to create / send customers, stock, including book blurbs, order tracking, stock availability, author, contributor and associated title feeds, to the web, provided the feeds have been activated.

Operations: The Electronic Web Interface enables you to

Setup: Before you can send/receive feeds you have to



Operations

Create Outbox files

  1. Select Publishinge-Commerce > Web Interface
  2. Click the Create Outbox files button to create the following feeds to the outbox folder

customers | stock availability | order tracking | stock | author | contributor | associated title 

Send/Receive feeds

To Send/Receive global feeds

  1. Go to Publishinge-Commerce > Web Interface
  2. Click the Send/Receive All button to
    1. send all outbox feeds to the web and
    2. receive inbox feeds from the web

To Send/Receive individual feeds

  1. Go to Publishinge-Commerce > Web Interface
  2. Select ToolsSend/Receive > By Sections
  3. Select one of the feeds to Send/Receive

Process Inbox files

  1. Go to Publishinge-Commerce > Web Interface
  2. Click the Process Inbox files button to process the following feeds

sales orders | customers feed

Forward file to email

Select Tools > Forward to forward a feed to an email address


Schedule e-Commerce operation

To schedule e-Commerce operations, do the following

  1. select Tools > Schedule …
  2. select the operations you want to schedule. You are able to schedule the following operation on either a single database or multiple databases: send/receive, create outbox files, process inbox files, select Single or Multiple database processing
  1. select schedule settings – time, date, frequency
  2. click ‘OK, Schedule Now’

Setup

Setup Inbox/Outbox folders

To setup the inbox and outbox folders

  1. Go to ToolsOptions
  2. Select the GeneralSettings tab
  3. Click OKto finish

Setup FTP Directory

To setup the FTP Directory, do the following

  1. Go to Tools> Options
  2. Select the GeneralFTP Protocol tab
  3. Click OKto finish

Activate feeds

To activate a feed type

  1. Go to ToolsOptions
  2. Select the Feedstab
  3. Tick the feed type you want to activate and setup the File Naming Convention and Criteria (if applicable)
  4. Click OKto finish

Basic assumptions

The ecommerce module assumes the following:
  1. Your website is trading in your local currency (e.g. GBP for the United Kingdom) therefore it will automatically attach price1 to every customer.
  2. The tax code should have already been determined when the customer was placing the order to reflect their tax status and this should be in the web-orders feed coming back to focus.
  3. The ecommerce module does not pass the override from the website to focus as this is not required for web related customers.

Incoming feeds


Sales Orders

This file should contain orders for newly created and existing customers. File Format:      xml File Prefix:         ATF File Name:       OD[6-digit sequential number].xml
Sample Record
Receive Sales Orders

To receive sales orders, do the following

  1. click Tools
  2. select Send/Receive
  3. select By Sections
  4. select Customer Feed
  5. select Receive Only
Process Sales Orders

To process sales orders, do the following

  1. click Tools
  2. Process Inbox Files
  3. select By Sections
  4. select Sales Orders
Schedule Sales Orders

To schedule Sales Orders, do the following

  1. select Tools > Schedule …
  2. select the operations you want to schedule. You are able to schedule the following operation on either a single database or multiple databases
  3. send/receive
  4. process inbox files
  5. select Single or Multiple database processing
  6. select schedule settings – time, date, frequency
  7. click ‘OK, Schedule Now’ 
Feed Structure

XML tag nameField DescriptionData SizeComment
WEBACCAccount Number50 charFocus will reuse and maintain the same account number per customer
WEBORDNO Order numberNumber (0 Decimal)Please insert the unique order number allocated to this purchase. Focus will copy the reference into the customer reference field of each order.
DELADDCHGDelivery address changeBOLEANIf the delivery address is not the same as recorded in customer’s account, please answer (YES). This is to ensure that our address consolidation routine retains such changes, otherwise if multiple orders, it will merge per account number.
NAMECompany/ Name 50 char
DELADDR1Delivery Address Line 150 char
DELADDR2Delivery Address Line 250 char
DELADDR3Delivery Address Line 350 char
DELADDR4Delivery Address Line 450 char
DELADDR5Delivery Address Line 550 char
EMAILEmail50 char This will update the default email address for the customer
PHONEPhone50 char
PAYMTPaymentMoney or 2 DecimalsAmount collected as payment for goods, this will post as payment into the nominated bank account
TOTNETNet order valueMoney or 2 Decimal This is a control line for cross checking completeness of the detail lines. The value should be (Order value – discount + postage + VAT). NOT MANDATORY
WORLDPAYREFWORLDPAY reference
REQBYDATERequired by date
SOURCESource
FOOTNOTEFoot note
CARRIERCarrier
SALETYPESale type
DELIVERY_ZONEDelivery zone
TYPEE-book type2 charHC = Hard Copy book, EV = Electronic View, EP = Electronic Print 
ISBN ISBN50 char
QTYOrder Quantity (a)Integer
PRICESelling Price (b)Money or 2 Decimal
DISCRDiscount Rate (c)2 Decimal
DISCADiscount Amount (d)2 DecimalGross Amount =(a * b) * (c/100)
GROSSGross Amount2 Decimal Gross Amount =(a * b) – d
POSTAGEPostage and Packing2 Decimal
TAX VAT Code2 charT0 = Zero rated tax, T1= standard tax of 17.50%
VAT VAT Amount2 Decimal
NET02 Decimal
CUSTREF
CAMPAIGN
LOCATION


Customer Feed (Incoming)

This should contain only new customers created on the web.

File Format:      xml
File Prefix:         ATF
File Name:       WC[6-digit sequential number].xml

Sample Record
Receive Customer Feed

To receive customer feed, do the following

  1. click Tools
  2. select Send/Receive
  3. select By Sections
  4. select Customer Feed
  5. select Receive Only
Process Customer Feed

To process customer feed, do the following

  1. click Tools
  2. select Process Inbox Files
  3. select By Sections
  4. select Customer Feed
Schedule Customer Feed

To schedule Customer Feed, do the following

  1. select Tools > Schedule …
  2. select the operations you want to schedule. You are able to schedule the following operation on either a single database or multiple databases
  3. send/receive
  4. process inbox files
  5. select Single or Multiple database processing
  6. select schedule settings – time, date, frequency
  7. click ‘OK, Schedule Now’
Feed Structure

XML tag nameField DescriptionData SizeComment
ADDR1Address Line 150 char
ADDR2Address Line 250 char
AGERANGEAge Range50 chare.g. Primary, Secondary or Other
COMPANYCompany name
COUNTRYCountry
COUNTYCounty/State50 char
CUSTTYPECustomer Type50 char
DEPTDepartment
EMAILEmail50 char
FAXFax50 char
HO_CODEHead office code
INTERESTInterest Code50 char
IS_HOIs Head office
OTHNAMESOther Names50 char
PHONEPhone50 char
POSITIONPosition
POSTCODEPostcode/Zip50 char
SCHOOLTYPESchool Type50 chare.g. Independent
SORTKEY5Sort code
SURNAMESurname50 char
TITLETitle50 char
TOWNTown50 char
WEBACCAccount Number50 charFocus will reuse and maintain the same account number per customer
WEBSITEWebsite50 char


Outgoing feeds


Customer Feed (Outgoing)

This should contain only new customers that were locally created (i.e. in the office).

File Format:      xml
File Prefix:         ATF
File Name:       LC[6-digit sequential number].xml

Sample Record
Create customer feed

To create customer feed, do the following

  1. click Tools
  2. select Create Outbox Files 
  3. select By Sections
  4. select Customer Feed
Send customer feed

To send customer feed, do the following

  1. click Tools
  2. select Send/Receive
  3. select By Sections
  4. select Customer Feed
  5. select Send Only
Schedule Customer Feed

To schedule Customer Feed, do the following

  1. select Tools > Schedule …
  2. select the operations you want to schedule. You are able to schedule the following operation on either a single database or multiple databases
  3. send/receive
  4. create outbox files
  5. select Single or Multiple database processing
  6. select schedule settings – time, date, frequency
  7. click ‘OK, Schedule Now’
Feed Structure

XML tag nameField DescriptionData SizeComment
WEBACCAccount Number50 charFocus will reuse and maintain the same account number per customer
TITLETitle50 char
OTHNAMESOther Names50 char
SURNAMESurname50 char
COMPANY
ADDR1Address Line 150 char
ADDR2Address Line 250 char
TOWNTown50 char
COUNTYCounty/State50 char
POSTCODEPostcode/Zip50 char
EMAILEmail50 char
PHONEPhone50 char
FAXFax50 char
WEBSITEWebsite50 char
CUSTTYPECustomer Type50 char
SCHOOLTYPESchool Type50 chare.g. Independent
DEPT
POSITION
IS_HO
HO_CODE
SORTKEY5


Stock Feed

This is the primary stock record. The “Code” is the primary key. The file structure is user definable.

File Format:      xml
File Prefix:         SF

Sample Record
Create stock feed

To create stock feed, do the following

  1. click Tools
  2. select Create Outbox Files
  3. select By Sections
  4. select stock Feed
Send stock feed

To send stock feed, do the following

  1. click Tools
  2. select Send/Receive
  3. select By Sections
  4. select stock Feed
  5. select Send Only
Schedule stock Feed

To schedule stock Feed, do the following

  1. select Tools > Schedule …
  2. select the operations you want to schedule. You are able to schedule the following operation on either a single database or multiple databases
  3. send/receive
  4. create outbox files
  5. select Single or Multiple database processing
  6. select schedule settings – time, date, frequency
  7. click ‘OK, Schedule Now’
Feed Structure

The structure of the stock feed is user definable. CODE (Links to Code in Stock_Rec Table).

To define the structure of the stock feed, do the following

  1. select Tools > Options …
  2. select the Feeds tab
  3. tick the Stock feed
  4. select the Feed Setup tab in the bottom panel
  5. click OK to finish

Tracking Feed

This file will contain individual tracking record for each title ordered. Each tracking record contains information about the progress of an order through the back office accounting and distribution system.

File Format:      xml
File Prefix:         ATF

Sample Record
Create tracking feed

To create tracking feed, do the following

  1. click Tools
  2. select Create Outbox Files
  3. select By Sections
  4. select Tracking Feed
Send tracking feed

To send Tracking feed, do the following

  1. click Tools
  2. select Send/Receive
  3. select By Sections
  4. select Tracking Feed
  5. select Send Only
Schedule tracking Feed

To schedule Tracking Feed, do the following

  1. select Tools > Schedule …
  2. select the operations you want to schedule. You are able to schedule the following operation on either a single database or multiple databases
  3. send/receive
  4. create outbox files
  5. select Single or Multiple database processing
  6. select schedule settings – time, date, frequency
  7. click ‘OK, Schedule Now’
Feed Structure

XML tag nameField DescriptionData SizeComment
WEBACCCustomer Account50 Char
FOCORDNOFocus order Number50 char
CUSTREFCustomer ReferenceThis the web order reference number
DATEDate50 char
TIMETime50 char
STKCODEStock Code50 char
TITLETitle150 char
QTYQuantityNumber 2 dec
EMAILEmail Address50 char
ORDSTATUSOrder Status50 char
DESPATCHDATEDespatch Date50 char
PARCELNOSNo of Parcels50 char
DESPATCHMETHODCarrier & Service Type50 char
SENTTOCUSTSent to Customer FlagBooleanTo be updated when a customer has been notified of the record. Not included in XML message
SENTTOWEBSent to website FlagBooleanTo be updated when a WEBSITE has been notified of the record. Not included in XML message

Configure Status Notes

To configure tracking status notes, do the following

  1. select Tools > Options …
  2. select the Feeds tab
  3. tick the Order Tracking feed
  4. select the Status Notes tab in the bottom panel
  5. click OK to finish

Availability Feed

This feed presents the daily stock quantity to confirm the availability status of each stock record.

As Focus is a multi-location system, the stock quantity presented in the Stock feed is a total for all locations. However, in practice there is usually a pre-designated location for web stock.  This can be presented in this Availability feed.

The Availability feed file contains absolute figures of the stock balances. By replacing this file each time it is uploaded, it provides a perpetual refreshment of the location quantities, of only stock that recorded any kind of change on the web.

File Format:      CSV
File Prefix:         AVF

Sample Record
Feed Structure

Field DescriptionComment
stock_codeLinks to Code in Stock_Rec Table
Quantity

Create availability feed

To create availability feed, do the following

  1. click Tools
  2. select Create Outbox Files
  3. select By Sections
  4. select availability Feed
Send availability feed

To send availability feed, do the following

  1. click Tools
  2. select Send/Receive
  3. select By Sections
  4. select availability Feed
  5. select Send Only
Schedule availability feed

To schedule availability feed, do the following

  1. select Tools > Schedule …
  2. select the operations you want to schedule. You are able to schedule the following operation on either a single database or multiple databases
  3. send/receive
  4. create outbox files
  5. select Single or Multiple database processing
  6. select schedule settings – time, date, frequency
  7. click ‘OK, Schedule Now’

Author Feed

This feed contains the blurb or bibliography of each author.  The “Account” field is the primary key.

File Format:      xml
File Prefix:         AF

Feed Structure

Account (Links to Code in Dealers Table) name

Sample Record
Create author feed

To create author feed, do the following

  1. click Tools
  2. select Create Outbox Files
  3. select By Sections
  4. select author Feed
Send author feed

To send author feed, do the following

  1. click Tools
  2. select Send/Receive
  3. select By Sections
  4. select author Feed
  5. select Send Only
Schedule author feed

To schedule author feed, do the following

  1. select Tools > Schedule …
  2. select the operations you want to schedule. You are able to schedule the following operation on either a single database or multiple databases
  3. send/receive
  4. create outbox files
  5. select Single or Multiple database processing
  6. select schedule settings – time, date, frequency
  7. click ‘OK, Schedule Now’

Contributors Feed

This feed holds the relationship between the stock record and the author (s) of the stock records. The “stock” in the feed, links to the primary stock record and the “account” links to the Author Feed (AF).

File Format:      xml
File Prefix:         CF

Feed Structure

Field DescriptionXML tag nameComment
accountRECORDLinks to Code in Dealers Table
stockRECORDLinks to Code in Stock_Rec Table

Sample Record
Create contributors feed

To create author feed, do the following

  1. click Tools
  2. select Create Outbox Files
  3. select By Sections
  4. select author Feed
Send contributors feed

To send author feed, do the following

  1. click Tools
  2. select Send/Receive
  3. select By Sections
  4. select author Feed
  5. select Send Only
Schedule contributors feed

To schedule author feed, do the following

  1. select Tools > Schedule …
  2. select the operations you want to schedule. You are able to schedule the following operation on either a single database or multiple databases
  3. send/receive
  4. create outbox files
  5. select Single or Multiple database processing
  6. select schedule settings – time, date, frequency
  7. click ‘OK, Schedule Now’

Associated Title Feed

This feed holds the relationship between the parent stock and the associated (child) stock. Both codes link back to the stock records.

File Format:      xml
File Prefix:         ATF

Feed Structure

Field DescriptionXML tag nameComment
associatedRECORDLinks to Code in Stock_Rec Table
stockRECORDLinks to Code in Stock_Rec Table

Sample Record
Create associated title feed

To create author feed, do the following

  1. click Tools
  2. select Create Outbox Files
  3. select By Sections
  4. select author Feed
Send associated title feed

To send author feed, do the following

  1. click Tools
  2. select Send/Receive
  3. select By Sections
  4. select author Feed
  5. select Send Only
Schedule associated title feed

To schedule author feed, do the following

  1. select Tools > Schedule …
  2. select the operations you want to schedule. You are able to schedule the following operation on either a single database or multiple databases
  3. send/receive
  4. create outbox files
  5. select Single or Multiple database processing
  6. select schedule settings – time, date, frequency
  7. click ‘OK, Schedule Now’