WebShopService - API Guide (1214 onwards)

Created by Migration Bot, Modified on Wed, 21 Oct at 12:28 PM by Migration Bot

Originally written by John Hardwick, last updated Aug 14, 2026, on the Swan Retail knowledge base (FRS).


Webshop services require a licence to use and configuration for your database.

An NDA will be required for both the retailer and any third party solution providers requiring access.

Please contact your Swan Account Manager for details.

This document describes the WebShopService SOAP API, which exposes FRS customer, product, stock, sales order and payment functionality for integration with external websites and third party systems.

Overview

WebShopService is a SOAP 1.1 / 1.2 web service (ASMX) hosted as part of the FRS web tier. It is consumed by external e-commerce websites to look up customers, products and stock, and to raise sales orders and payments back into FRS.

All operations are exposed via a single SOAP port (WebShopServiceSoap). There is no REST equivalent - all calls are SOAP envelopes posted to the endpoint above with the appropriate SOAPAction header.

Operations are grouped below by functional area: Customers, Products & Stock, Product Options, Sales Orders, Payments, and Reference & Utility data.


Customers

Operation

Parameters

Returns

GetCustomer

CustomerID (int)

Customer

GetCustomers

EmailAddress (string)

ArrayOfCustomer

GetCustomersModifiedSinceDate

ModifiedSinceDate (dateTime), SkipResultCount (int), MaximumResultCount (int)

ArrayOfCustomer

InsertCustomer

Title, Initials, Surname, PhoneNumber, DaytimePhoneNumber, MobilePhoneNumber, EmailAddress (string); AcceptsEmailMailshots, AcceptsPostalMailshots, AcceptsTelemarketing (boolean); Instruction, Comments (string); HouseNumber, HouseName, FlatNumber, AddressLine1-6, Postcode (string)

Customer

UpdateCustomer

CustomerID (int); Title, Initials, Surname, PhoneNumber, DaytimePhoneNumber, MobilePhoneNumber, EmailAddress (string); AcceptsEmailMailshots, AcceptsPostalMailshots, AcceptsTelemarketing (boolean); Instruction, Comments (string)

Customer

GetCustomerDeliveryAddress

CustomerID (int)

Address

GetCustomerInvoiceAddress

CustomerID (int)

Address

UpdateCustomerHomeAddress

CustomerID (int); HouseNumber, HouseName, FlatNumber, AddressLine1-6, Postcode (string)

Customer

UpdateCustomerDeliveryAddress

CustomerID (int); HouseNumber, HouseName, FlatNumber, AddressLine1-6, Postcode (string)

Address

UpdateCustomerInvoiceAddress

CustomerID (int); HouseNumber, HouseName, FlatNumber, AddressLine1-6, Postcode (string)

Address


Products & Stock

Each product/stock lookup has four variants: a plain paged list, a list filtered by ModifiedSinceDate (for incremental sync), a list filtered by SKUSearchString, and a combination of both. All paged variants take SkipResultCount and MaximumResultCount (int) for paging.

Operation family

Variants

Returns

GetProducts

GetProducts, GetProductsModifiedSinceDate, GetProductsForSKUSearchString, GetProductsModifiedSinceDateForSKUSearchString

ArrayOfProduct

GetBaseProducts

GetBaseProducts, GetBaseProductsModifiedSinceDate, GetBaseProductsForSKUSearchString, GetBaseProductsModifiedSinceDateForSKUSearchString

ArrayOfBaseProduct

GetProductStock

GetProductStock, GetProductStockModifiedSinceDate, GetProductStockForSKUSearchString, GetProductStockModifiedSinceDateForSKUSearchString

ArrayOfProductStock

GetStockItemsMarkedForWeb

GetStockItemsMarkedForWeb, GetStockItemsMarkedForWebModifiedSinceDate, GetStockItemsMarkedForWebForSKUSearchString, GetStockItemsMarkedForWebModifiedSinceDateForSKUSearchString

ArrayOfStockItem

Quantity lookups for base products with option/variant combinations:

Operation

Parameters

Returns

GetProductGroupQuantities

BaseProductID (int), OptionParameters (ArrayOfOptionParameter)

ArrayOfProductGroupQuantities

GetStockQuantities

BaseProductID (int), OptionParameters (ArrayOfOptionParameter)

ArrayOfStockQuantities

GetStockItemQuantities

BaseProductID (int), OptionParameters (ArrayOfOptionParameter), ShowStockItemsWithFullyMatchedOptionsOnly (boolean)

ArrayOfStockItemQuantities


Product Options

Operation

Parameters

Returns

GetOptionQuestions

BaseProductID (int), PromotionID (int)

ArrayOfOptionQuestion

GetNestedOptionQuestions

BaseProductID (int), OptionID (int), PromotionID (int)

ArrayOfOptionQuestion

GetOptionQuestionsWithHierarchy

BaseProductID (int), PromotionID (int)

ArrayOfOptionQuestionWithHierarchy

GetNestedOptionQuestionsWithHierarchy

BaseProductID (int), OptionID (int), PromotionID (int), Hierarchy (string)

ArrayOfOptionQuestionWithHierarchy


Sales Orders

A sales order is built up across several calls within one session: add order lines, then insert the sales order, then add payments. Abandon, ClearAddedOrderLines and ClearAddedPayments (see Session Control below) reset this in-progress state.

Operation

Parameters

Returns

AddOrderLine

ProductID (int), OptionCode (string), Quantity (int), SellingPrice (decimal), VATID (int), VATAmount (decimal), TakeFromStock (boolean), LeadTime (int), PromotionID (int)

-

AddOrderLineForBaseProduct

BaseProductID (int), OptionAnswers (ArrayOfOptionAnswer), Quantity (int), BaseSellingPrice (decimal), VATID (int), TakeFromStock (boolean), LeadTime (int), PromotionID (int)

-

AddOrderLineForStockItem

StockID (int), Quantity (int), SellingPrice (decimal), VATID (int), LeadTimeDaysForOrderingFromSupplier (int), PromotionID (int)

-

InsertSalesOrder

CustomerID (int), WebsiteOrderReference (string), SalesOrderDate (dateTime), DeliveryDateRequested (dateTime), AcceptPartDelivery (boolean), AcceptEarlyDelivery (boolean), SourceOfBusinessID (int), CreatePurchaseOrders (boolean), IsClickAndCollect (boolean), ClickAndCollectCollectionBranchID (int)

SalesOrder

InsertSalesOrderSimple

As InsertSalesOrder, plus IsClickAndCollectCollectionBranchIDSet (boolean)

SalesOrder

InsertSalesOrderForOrderBranchAndSalesperson

As InsertSalesOrder, plus OrderBranchId (int), SalespersonId (int)

SalesOrder

InsertSalesOrderForOrderBranchAndSalespersonSimple

As InsertSalesOrderForOrderBranchAndSalesperson, plus IsClickAndCollectCollectionBranchIDSet (boolean)

SalesOrder

GetSalesOrder

SalesOrderID (int)

SalesOrder

GetSalesOrdersModifiedSinceDate

ModifiedSinceDate (dateTime), SkipResultCount (int), MaximumResultCount (int)

ArrayOfSalesOrder

UpdateSalesOrderBalance

SalesOrderID (int)

-

InsertDeliverySlotForSalesOrder

SalesOrderID (int), DeliveryDate (dateTime), DeliveryNotes (string)

-


Payments

Operation

Parameters

Returns

AddPayment

TenderTypeID (int), Amount (decimal), Reference (string), IsFinanceApproved (boolean)

-

InsertPayment

SalesOrderID (int), TenderTypeID (int), Amount (decimal), Reference (string), PaymentDate (dateTime), IsFinanceApproved (boolean)

Payment

InsertPaymentForLocationAndWorkstation

As InsertPayment, plus IsRefund (boolean), LocationID (int), WorkstationID (int)

Payment


Reference & Utility Data

Operation

Parameters

Returns

GetFlags

-

string

GetVersionNumber

-

string

IsReachable

-

boolean

GetShowroomBranches

-

ArrayOfBranch

GetWorkstations

-

ArrayOfWorkstation

GetSourcesOfBusiness

-

ArrayOfSourceOfBusiness

GetTenderTypes

-

ArrayOfTenderType

Session Control

These operations reset in-progress order-building state and take no parameters:

ABANDON  CLEARADDEDORDERLINES  CLEARADDEDPAYMENTS


Example Request

Sample SOAP 1.1 request body for GetCustomer:

<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xmlns:xsd="http://www.w3.org/2001/XMLSchema"
               xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetCustomer xmlns="http://swanretail.co.uk/">
      <CustomerID>12345</CustomerID>
    </GetCustomer>
  </soap:Body>
</soap:Envelope>

This page lists operation names, parameters and return types only. For the full XML schema (element ordering, nullability and complex type definitions such as Customer, Product, SalesOrder) always refer to the live WSDL, as this is the source of truth and may move ahead of this document.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article