WSM 5.0 Store Data API Reference
The WSM 5.0 store data API lets your own systems read and write customers, orders and products. You send an XML request to your store and get an XML reply.
XML over HTTPS, on your store's own domain.
What the API is
Every call is an HTTP POST to https://<store-domain>/api/xml/<module>/<action> on the store's own domain. The modules are customer, order and product. The reply is always XML. Every POST gets HTTP 200, even for an error, so read the status code inside the reply. A request that is not a POST gets an empty HTTP 400.
Create an API key
A store owner creates keys in the admin. Only the owner can do this.
- Open Settings (
?view=config.edit) and choose the Integrations tab. - In the group named WSM API Key, pick a type under Create API Key.
- Select Create key.
The key is shown once. After that the row shows "Saved, ends in" and the last four characters, with Regenerate and Delete on the same row.
The key types are Universal, ShipWorks, Product and Order. A store can have only one of each, except Universal, which can have several. There is no customer key type, so use a Universal key for the customer endpoints. Customer changes on an order need a Universal key; any other key gets 403.4. A key belongs to one store.
Request shape
Send the request as raw XML in a POST body with the root element request. It holds the action, the module, the key, and then the request data. Customer, order and product get and the customer and order writes put it in a params block. Product add and edit put product directly under request, and product getids puts a query block there. Other methods get an empty HTTP 400.
The action in the body decides what runs. The action in the URL only picks which schema checks the request. The module in the body must match the module in the URL, or the call fails with 403.3. Only customer/get and product add, getids and getbulk are checked against a schema.
<request>
<action>get</action>
<module>product</module>
<auth><key>YOUR_API_KEY</key></auth>
<params>
<id>2001</id>
</params>
</request>
The key is checked against the store, its type, and any IP restriction on it. Keys are not split into read and write.
Error codes
An error reply holds a status with a code and a message. A successful order edit replies with lowercase status, code and message. Every error reply shown here uses Status, Code and Message. Customer add and edit replies carry the result in CustomerCode and CustomerMessage instead. A missing key returns 403 and a wrong key returns 403.1, both with HTTP status 200.
<Response>
<Status>
<Code>403</Code>
<Message>API Authentication credentials are missing from this request.</Message>
</Status>
</Response>| Code | Meaning |
|---|---|
400.1 | The request failed schema validation. |
400.1a | A required id is missing on order edit, or the customer id is unknown on customer edit. |
400.1b | A value is not allowed, such as an unknown order status. |
400.2 | The XML is malformed. |
403 | No API key was sent. |
403.1 | The key is not valid for this store. |
403.3 | The key cannot use this module, or the module in the body does not match the URL. |
403.4 | The key type cannot make this change: customer changes on an order need a Universal key. |
404 | Unknown module or action. |
404.1a | The order or customer was not found, including an unknown order id on order edit. |
409 | The order changed while your request ran. Send it again. |
500.3 | Not found, or the reply was invalid. |
Actions
Each action lists its parameters, the fields in its reply, and one request and reply. In the examples, replace YOUR_API_KEY with your key and use your own store domain.
customer/get
Returns customers that match the filters. Use a Universal key.
Parameters
customerid: one customer by id; cannot be combined with start or endstart, end: date the customer was addedmaxcount: the only limit; there is no default cap and no offsetsortby: id, added, email, firstname, lastname; anything else sorts by last modifiedsortdir: ASC or DESC, default DESCemail, firstname, lastname, accountnumber, alternateid, birthdate: match the fieldaccountactive, accountstatus, taxexempt, invoiceonly, affirm_allowed, blockfreeshipping, enrolledinmyportal, restrictmyportal: match the flagpricegroup: by price group name
Reply
Total, ReportIP, then Customers/Customer with AccessGroups/AccessGroup, AccountActive, AccountNumber, AccountStatus, Addresses (Billing, Shipping or Other, each with AddressId, City, Company, Country, FirstName, LastName, Phone, PhoneExtension, PostalCode, State, Street, Street_2), AdminNotes, AffirmAllowed, AlternateID, BalanceDue, Birthdate, BlockFreeShipping, CustomerID, CustomerNotes, Email, EnrolledInMyPortal, FirstName, InvoiceOnly, LastName, PriceGroup, RestrictMyPortal, TaxExempt.
- Parameter names are not case sensitive.
- A customer id that does not exist returns 404.1a.
Request
<request>
<action>get</action>
<module>customer</module>
<auth><key>YOUR_API_KEY</key></auth>
<params>
<email>jane.smith@example.com</email>
<maxcount>1</maxcount>
</params>
</request>Reply example
<Response>
<Total>1</Total>
<ReportIP>203.0.113.10</ReportIP>
<Customers>
<Customer>
<AccessGroups></AccessGroups>
<AccountActive>1</AccountActive>
<AccountNumber />
<AccountStatus>Active</AccountStatus>
<Addresses />
<AdminNotes />
<AffirmAllowed>1</AffirmAllowed>
<AlternateID />
<BalanceDue>0.00</BalanceDue>
<Birthdate />
<BlockFreeShipping>0</BlockFreeShipping>
<CustomerID>1001</CustomerID>
<CustomerNotes />
<Email>jane.smith@example.com</Email>
<EnrolledInMyPortal>0</EnrolledInMyPortal>
<FirstName>Jane</FirstName>
<InvoiceOnly>0</InvoiceOnly>
<LastName>Smith</LastName>
<PriceGroup></PriceGroup>
<RestrictMyPortal>0</RestrictMyPortal>
<TaxExempt>0</TaxExempt>
</Customer>
</Customers>
</Response>customer/add
Creates one or more customers. Use a Universal key.
Parameters
customers/customer: repeat once per customeremail, firstname, lastname, accountnumber, alternateid, birthdate, adminnotes, customernotes: customer fieldsaccountstatus: Active, Probation or Holdyes or no fields: send 0 or 1pricegroup, accessgroups: price group and access groupsaddresses/billing, shipping, other: one address block each; send the second street line as street2
Reply
A Customer entry with CustomerCode (200 on success), CustomerId, CustomerMessage, Email.
- The store sets a random password on each new customer.
Request
<request>
<action>add</action>
<module>customer</module>
<auth><key>YOUR_API_KEY</key></auth>
<params>
<customers>
<customer>
<email>jane.smith@example.com</email>
<firstname>Jane</firstname>
<lastname>Smith</lastname>
<accountstatus>Active</accountstatus>
<addresses>
<billing>
<street>123 Example Street</street>
<city>Springfield</city>
<state>IL</state>
<postalcode>62701</postalcode>
<country>US</country>
</billing>
</addresses>
</customer>
</customers>
</params>
</request>Reply example
<Response>
<Customer>
<CustomerCode>200</CustomerCode>
<CustomerId>1001</CustomerId>
<CustomerMessage>Success</CustomerMessage>
<Email>jane.smith@example.com</Email>
</Customer>
</Response>customer/edit
Changes an existing customer. Takes the same fields as add, plus the customer id. Use a Universal key.
Parameters
customerid: required; an unknown id returns 400.1aother fields: same as customer/add
Reply
The same Customer entry as add, plus UpdatedFields, and InvalidFields when a field is rejected.
Request
<request>
<action>edit</action>
<module>customer</module>
<auth><key>YOUR_API_KEY</key></auth>
<params>
<customers>
<customer>
<customerid>1001</customerid>
<firstname>Janet</firstname>
<accountstatus>Hold</accountstatus>
</customer>
</customers>
</params>
</request>Reply example
<Response>
<Customer>
<CustomerCode>200</CustomerCode>
<CustomerId>1001</CustomerId>
<CustomerMessage>Success</CustomerMessage>
<Email>jane.smith@example.com</Email>
<UpdatedFields>accountstatus, firstname</UpdatedFields>
</Customer>
</Response>order/get
Returns orders that match the filters.
Parameters
orderid: one order; cannot be combined with startstatus: order statusstart, end: date rangemaxcount: the only limit; there is no default cap and no offsetsortby: id, added, date; anything else sorts by last modifiedsortdir: ASC or DESCcustomerid: digits onlyfraudstatus, modified: filters
Reply
Total, ReportIP, then Orders/Order with Id, Date, Modified, Status, FraudService (when fraud screening is on), Ip, Memo, SubTotal, Tax, Discount (a negative number), Handling, Shipping, Total, ShippingMethod, ShippingMethodTitle, ShippingMatrixName, Customer (ID, billing and shipping phone and extension, Email, Username, AccountNumber), ShipAddress, BillAddress, Questions, Comments, Promotions, Payments/Payment (Id, Method, PurchaseOrderNumber, CreditCard with Type, Owner, Expires, and Transactions with Id, Avs, Type, Status, Amount, Deduct, Net, Timestamp), TrackingInfo/TrackingItem (Carrier, TrackingNumber), Items/Item (ItemID, ProductID, Code, StockID, DealerCode, Name, Quantity, UnitPrice, Status, OptionID, Weight, Length, Width, Height, Sku, ImageUrl, LargeImageUrl, BrandName, BrandAAIACode, BrandID, and ProductFilters when present).
Request
<request>
<action>get</action>
<module>order</module>
<auth><key>YOUR_API_KEY</key></auth>
<params>
<orderid>1001</orderid>
</params>
</request>Reply example
<Response>
<Total>1</Total>
<ReportIP>203.0.113.10</ReportIP>
<Orders>
<Order>
<Id>1001</Id>
<Date>2026-12-03 04:17:21</Date>
<Modified>2026-12-05 06:43:35</Modified>
<Status>new</Status>
<Ip>203.0.113.10</Ip>
<SubTotal>$84.67</SubTotal>
<Tax>$6.56</Tax>
<Discount>$0.00</Discount>
<Handling>$0.00</Handling>
<Shipping>$12.00</Shipping>
<Total>$103.23</Total>
<ShippingMethod>Basic Shipping</ShippingMethod>
<Customer>
<ID />
<BillingPhone />
<BillingPhoneExtension />
<ShippingPhone />
<ShippingPhoneExtension />
<Email>jane.smith@example.com</Email>
<AccountNumber />
</Customer>
<ShipAddress>
<Name>Jane Smith</Name>
<Company />
<Street1>123 Main St</Street1>
<Street2 />
<Street3 />
<City>Anytown</City>
<PostalCode>90000</PostalCode>
<State>CA</State>
<Country>United States</Country>
</ShipAddress>
<BillAddress>
<Name>Jane Smith</Name>
<Company />
<Street1>123 Main St</Street1>
<Street2 />
<Street3 />
<City>Anytown</City>
<PostalCode>90000</PostalCode>
<State>CA</State>
<Country>United States</Country>
</BillAddress>
<Questions>
<Question>
<Body>Year, Make, Model</Body>
<Answer />
</Question>
<Question>
<Body>Please leave a note of any other information here</Body>
<Answer />
</Question>
<Question>
<Body>If your order is shipping to California or Colorado, some items may not be street legal or CARB certified. Those customers ONLY, Please let us know which of these reflects your order: 1) Installing parts on 1975 or older vehicle 2) Installing parts on a Non-Highway Race vehicle or 3) This item is smog legal with CARB EO Number</Body>
<Answer />
</Question>
</Questions>
<Payments>
<Payment>
<Id>2001</Id>
<Method>PayPal</Method>
<PurchaseOrderNumber />
<CreditCard>
<Type>Visa</Type>
<Owner />
<Expires />
</CreditCard>
<Transactions>
<Transaction>
<Id />
<Avs>address matches, zip does not</Avs>
<Type>paypal_ppcp</Type>
<Status>pending</Status>
<Amount>103.23</Amount>
<Deduct>0.00</Deduct>
<Net>103.23</Net>
<Timestamp>2026-12-04 10:12:36</Timestamp>
</Transaction>
</Transactions>
</Payment>
</Payments>
<Items>
<Item>
<ItemID>3001</ItemID>
<ProductID>4001</ProductID>
<Code>EX-1001</Code>
<StockID>EX-1001</StockID>
<DealerCode>EX-1001</DealerCode>
<Name>Example Head Gasket</Name>
<Quantity>1</Quantity>
<UnitPrice>84.67</UnitPrice>
<Status>new</Status>
<OptionID />
<Weight>1.0000</Weight>
<Length>5.0000</Length>
<Width>10.0000</Width>
<Height>5.0000</Height>
<Sku>EX-1001</Sku>
<ImageUrl>https://www.example.com/images/M1000001.jpg</ImageUrl>
<LargeImageUrl>https://www.example.com/images/F1000001.jpg</LargeImageUrl>
<BrandName>Example Brand</BrandName>
<BrandAAIACode />
<BrandID>5001</BrandID>
</Item>
</Items>
</Order>
</Orders>
</Response>order/edit
Changes an existing order.
Parameters
orderid: required; missing returns 400.1a, unknown returns 404.1astatus: sent in uppercase in the example and read back in lowercase: draft_open, quote, new, pending, processing, manufacturing, backorder, building, held, complete, canceled, fraud, disputed, ready_to_ship, return, shipped, deleted; anything else returns 400.1bmemo: order memoshipping/carrier, shipping/trackingcode: carrier is ups, usps, fedex or other; one tracking entry per callitems/item: id, description, unitprice, quantity, sku, status; an item without an id adds a linecosts/shipping, costs/handling, costs/salestax: send all three: a missing child is set to 0customer, billaddress, shipaddress: Universal key only; any other key returns 403.4sendemail: default truebccemail: extra recipient
Reply
A lowercase status block with code 200 and the message Success. Discounts cannot be edited.
Request
<request>
<action>edit</action>
<module>order</module>
<auth><key>YOUR_API_KEY</key></auth>
<params>
<orderid>1001</orderid>
<status>HELD</status>
<sendemail>false</sendemail>
</params>
</request>Reply example
<Response>
<status>
<code>200</code>
<message>Success</message>
</status>
</Response>order/transaction
Refunds or voids a whole existing payment transaction. It cannot do partial refunds.
Parameters
orderid: required; the name is case sensitive herepayments/payment/id: payment idpayments/payment/transactionid: transaction to act onpayments/payment/status: refund or cancel
Reply
A status block with a code and a message. An unknown transaction returns 404, as in the example. A matching transaction is refunded or voided in full.
- Only the first payment element is processed.
Request
<request>
<action>transaction</action>
<module>order</module>
<auth><key>YOUR_API_KEY</key></auth>
<params>
<orderid>1001</orderid>
<payments>
<payment>
<id>2001</id>
<transactionid>TEST-NOT-A-TRANSACTION</transactionid>
<status>cancel</status>
</payment>
</payments>
</params>
</request>Reply example
<Response>
<Status>
<Code>404</Code>
<Message>This transaction was not found or is not associated with this order.</Message>
</Status>
</Response>product/get
Returns one product.
Parameters
id, dealerid, stockid: identify the product; if you send more than one, id wins, then dealerid, then stockid
Reply
The fields sit directly under Response, with no Product wrapper: id, title, priority, cost, price, saleprice, hidesaleprice, weight, height, width, length, inventory, tags, handling, dealerid, stockid, upc, condition, availability, availabilityRemarks, pageTitle, description, extendedDescription, emailNotes, freeGroundShipping, requiresShipping, ownBox, quoteShipping, hidden. Also options/option (id, name, sku, inventory), fees/fee (feeValue, feeLabel, returnFirstValue, returnFirstLabel, sku), tieredPricing/priceGroup (restrict, groupId, groupName, priceTiers/tier with price and quantity), and shippingRestrictions when the store has that option on. Brand, metaKeywords and metaDescription are not returned.
- A product that is not found returns 500.3.
Request
<request>
<action>get</action>
<module>product</module>
<auth><key>YOUR_API_KEY</key></auth>
<params>
<id>2001</id>
</params>
</request>Reply example
<Response>
<id>2001</id>
<title>Test Brake Pad Set</title>
<priority>500</priority>
<cost>$0.00</cost>
<price>$49.00</price>
<saleprice>$0.00</saleprice>
<hidesaleprice />
<weight>0.0000</weight>
<height>0.0000</height>
<width>0.0000</width>
<length>0.0000</length>
<inventory>0</inventory>
<tags />
<handling>0.00</handling>
<dealerid />
<stockid />
<upc />
<condition>New</condition>
<availability>AVAILABLE</availability>
<availabilityRemarks />
<pageTitle />
<description />
<extendedDescription />
<emailNotes />
<freeGroundShipping>0</freeGroundShipping>
<requiresShipping>1</requiresShipping>
<ownBox />
<quoteShipping />
<hidden />
<options />
<shippingRestrictions />
<fees />
</Response>product/getids
Returns product ids, 50,000 per page.
Parameters
query/condition: filtertimeupdated or timeadded, with start and end: time range in America/Los_Angeles; end is exclusivepage: positive integerstockid: adds a StockID attribute to each ProductID
Reply
A Status block, a Page block with Current (and Next and Previous when there are other pages), and Products with one ProductID per product.
Request
<request>
<action>getids</action>
<module>product</module>
<auth><key>YOUR_API_KEY</key></auth>
<query>
<condition>
<timeadded>
<start>2026-12-05 00:00:00</start>
<end>2026-12-06 00:00:00</end>
</timeadded>
</condition>
</query>
</request>Reply example
<Response>
<Status>
<Code>200</Code>
</Status>
<Page>
<Current>1</Current>
</Page>
<Products>
<ProductID>2001</ProductID>
</Products>
</Response>product/getbulk
Returns many products in one call.
Parameters
products/productid: repeat once per product, besideparams; there is no capparams: empty elements that name the fields you want; empty returns the default set plus options and shipping restrictions; brand only when you ask for it
Reply
A Status block, then Products/Product with the fields you asked for, once per product. Unknown ids are skipped without an error.
Request
<request>
<action>getbulk</action>
<module>product</module>
<auth><key>YOUR_API_KEY</key></auth>
<params>
<title/>
<price/>
<availability/>
<stockid/>
</params>
<products>
<productid>2001</productid>
</products>
</request>Reply example
<Response>
<Status>
<Code>200</Code>
</Status>
<Products>
<Product>
<id>2001</id>
<title>Test Brake Pad Set</title>
<price>49.00</price>
<availability>AVAILABLE</availability>
<stockid />
</Product>
</Products>
</Response>product/add
Creates one or more products.
Parameters
product: repeat once per productrequestid: required; echoed back so you can match repliestitle, price, condition, availability: requiredavailability values: send them in uppercase, as in AVAILABLE: Available, Out of Stock, Inventory, Sold, Please Call, Limited Supply, Not for Sale, To be Deleted, Unique
Reply
A Status block with a Code and a Message, then one Product entry per product with RequestID, DealerID, StockID, ProductID, Status (Created or Failed) and Message.
Request
<request>
<action>add</action>
<module>product</module>
<auth><key>YOUR_API_KEY</key></auth>
<product>
<requestid>req-001</requestid>
<title>Test Brake Pad Set</title>
<price>49.00</price>
<condition>New</condition>
<availability>AVAILABLE</availability>
</product>
</request>Reply example
<Response>
<Status>
<Code>200</Code>
<Message>Request completed for 1 product.</Message>
</Status>
<Products>
<Product>
<RequestID>req-001</RequestID>
<DealerID></DealerID>
<StockID></StockID>
<ProductID>2001</ProductID>
<Status>Created</Status>
<Message>Successfully completed RequestID: req-001</Message>
</Product>
</Products>
</Response>product/edit
Changes one or more products.
Parameters
product/parameters: repeat once per product, with the fields to changeproductid, dealerid, stockid: identify the product, checked in that orderoptionconfigid with inventory: sets the stock of one variant
Reply
One Product entry per product with ProductID and Status: Updated, NoOp or Missing, and a Status block with a Message.
- Empty or 0 values are ignored, so you cannot set a price or cost to 0.
Request
<request>
<action>edit</action>
<module>product</module>
<auth><key>YOUR_API_KEY</key></auth>
<product>
<parameters>
<productid>2001</productid>
<price>54.00</price>
<title>Test Brake Pad Set (updated)</title>
</parameters>
</product>
</request>Reply example
<Response>
<Products>
<Product>
<ProductID>2001</ProductID>
<Status>Updated</Status>
</Product>
</Products>
<Status>
<Message>Successfully save 2001. </Message>
</Status>
</Response>
product/update
Not a write. It passes your request to a third-party address that the store has configured and returns that address's answer. It returns nothing if no address is set.
Integrations that use it
- ShipWorks: the ShipWorks shipping app connects with its own ShipWorks key type.
- ShipStation: the ShipStation shipping app connects through the same API.
- Import profiles: PartsLogic Connect import profiles use a Connect key, which store owners cannot create.
For the wider picture, see operational integrations and automation and headless, API-first commerce.
What it does not do
- Create or delete orders. Setting an order's status to deleted with order/edit is the only way to remove one.
- Delete products or customers. Products can be hidden.
- Work with categories. There is no category module.
- Refund part of a payment. order/transaction refunds or voids a whole existing transaction only.
- Send webhooks or event notifications.
- Edit discounts or promotions on an order.
- Return JSON. Replies are XML, and there are no published rate limits.
Questions
Can the API create or delete orders?
No. It cannot create orders, and it cannot delete them. Setting an order's status to deleted with order/edit is the only way to remove one.
Does the API do partial refunds?
No. order/transaction refunds or voids a whole existing transaction only.
Is there JSON or webhooks?
No. Replies are XML, and the store does not send webhooks or event notifications.
Which key do customer calls need?
A Universal key. There is no customer key type, so use a Universal key for the customer endpoints. Customer changes on an order need a Universal key; any other key gets 403.4.
Can the API delete products or customers?
No. Products can be hidden, but neither products nor customers can be deleted.
Ready To Grow Your Business?
Ready to grow your aftermarket eCommerce presence and lift conversions across auto, truck, powersports, marine, and more? Connect with
Web Shop Manager for tailored solutions: strategy, platform, and performance in one team.