Your ERP
Products, categories, prices and content.
Supplier documentation
Connect your ERP, e-commerce platform, POS or business software to SellViaApp. Send categories, products and prices, then retrieve confirmed shop orders as JSON.
https://api.sellviaapp.com/application/json; charset=utf-82026.08HTTPSFrom your software to customers
Your system remains the source of your business data. It feeds the SellViaApp shop while customer-confirmed orders flow back to your ERP or business software.
Products, categories, prices and content.
Secure JSON exchanges over HTTPS.
Customers browse and place orders.
Your system retrieves them automatically.
External identifiers preserve the mapping to your ERP references, while pagination keeps large synchronisations reliable.
Quick start
The API key identifies your shop. The administrator token protects server operations.
Create categories, then send or update products from your ERP.
Poll the paginated supplier route and store every processed GUID.
curl -X POST "https://api.sellviaapp.com/product/add" \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_SUPPLIER_KEY" \
-H "X-Admin-Token: YOUR_ADMIN_TOKEN" \
-d '{
"external_key": "ERP-ARTICLE-1042",
"code": "ART-1042",
"name": "Premium product",
"description": "Complete product description",
"base_price": 24.90,
"vat_rate": 21,
"category_id": 12,
"active": true
}'curl "https://api.sellviaapp.com/admin/order/list?page=1&per_page=25&from_date=2026-08-01" \
-H "Accept: application/json" \
-H "X-API-Key: YOUR_SUPPLIER_KEY" \
-H "X-Admin-Token: YOUR_ADMIN_TOKEN"Security
Required to identify the supplier. Never expose the key in public JavaScript.
Required for signed-in customer data. Renew it through auth/refresh.
Reserved for approved server integrations that modify catalogues and categories.
Keep X-API-Key and X-Admin-Token inside your server or ERP. Never place them in a public website, mobile app or source repository.
Endpoints
Create, refresh and close secure sessions.
/auth/login
API key
Sign a customer in using their login and password.
/auth/refresh
API key
Renew an access token using a refresh token.
/auth/logout
Key + Bearer
Close the active session.
/auth/guest
API key
Create a guest session when enabled by the supplier.
/auth/forgot-password
API key
Start account recovery without disclosing whether an account exists.
Endpoints
Find a shop and retrieve its public configuration.
/admin/supplier/list
Public
Search suppliers visible in the directory.
/admin/supplier/logo
Public
Retrieve an optimised supplier logo.
/admin/supplier/contact
API key
Retrieve configured public contact details.
/admin/supplier/legal
API key
Retrieve terms, privacy, legal notice and about content.
/admin/megawinappcheck/check_supplier_to_use
Public
Resolve a supplier from a suffix or identifier.
Endpoints
Create and manage customer accounts for each shop.
/customer/add
API key
Create a customer and generate the supplier login.
/customer/list
Key + Bearer
List or filter authorised customer information.
/customer/me
Key + Bearer
Retrieve the signed-in customer profile.
/customer/update
Key + Bearer
Update profile, language, type, email or password.
/customer/deleteaccount
Key + Bearer
Deactivate the customer account in the active shop.
Endpoints
Categories, products, images, prices, stock, promotions and favourites.
/fam1/list
Key + Bearer
List primary categories.
/fam1/add
Administrator
Create a primary category.
/fam1/update
Administrator
Update a primary category.
/fam1/delete
Administrator
Hide a primary category.
/fam2/list
Key + Bearer
List subcategories.
/fam2/add
Administrator
Create a subcategory.
/fam2/update
Administrator
Update a subcategory.
/fam2/delete
Administrator
Hide a subcategory.
/product/list
Key + Bearer
List and search products with pagination.
/product/image
Signed URL
Serve a signed, cacheable product image.
/product/add
Administrator
Create a product.
/product/update
Administrator
Update a product.
/product/delete
Administrator
Hide a product.
/product/favoris
Key + Bearer
Add or remove a product from favourites.
/price/list
Key + Bearer
List prices applicable to the customer group.
/mark/list
Key + Bearer
List available brands.
/size/list
Key + Bearer
List available sizes.
/libweb/list
Key + Bearer
List web reference labels.
Endpoints
Manage the cart and confirm an order atomically.
/admin/order/list
Administrator
Retrieve all confirmed supplier orders with customer, lines and pagination.
/order/add
Key + Bearer
Retrieve or initialise the current cart.
/order/list
Key + Bearer
List the cart and order history.
/order/delete
Key + Bearer
Clear and delete the current cart.
/order/total
Key + Bearer
Calculate cart subtotal, VAT and total.
/order/count/line
Key + Bearer
Count lines in the cart.
/order/sendtomegawin
Key + Bearer
Confirm the order, fulfilment mode and address.
/orderline/add
Key + Bearer
Add a product and quantity to the cart.
/orderline/list
Key + Bearer
Retrieve current cart lines.
/orderline/update
Key + Bearer
Update a line quantity.
/orderline/delete
Key + Bearer
Remove a line from the cart.
Endpoints
Invoices, estimates, orders and their lines.
/document/add
Key + Bearer
Create a document linked to the customer.
/document/list
Key + Bearer
List or filter documents.
/document/update
Key + Bearer
Update a document identified by GUID.
/document/delete
Key + Bearer
Delete a document and its lines.
/documentline/add
Key + Bearer
Add a line and recalculate the document.
/documentline/list
Key + Bearer
Retrieve a document with all its lines.
/documentline/update
Key + Bearer
Update a line identified by GUID.
/documentline/delete
Key + Bearer
Delete a line and recalculate totals.
Endpoints
Customer communication, support and external synchronisation.
/support/ticket/list
Key + Bearer
List tickets available to the customer.
/support/ticket/create
Key + Bearer
Create a support request.
/support/ticket/list/log_reply
Key + Bearer
Retrieve a ticket and its replies.
/support/ticket/list/waiting_reply_by_support
Key + Bearer
List requests waiting for support.
/support/ticket/reply/send
Key + Bearer
Reply to a ticket.
/admin/supplier/sendfeedbackfromapp
Key + Bearer
Send feedback to the supplier.
/admin/supplier/sendemailtosalesupport
Key + Bearer
Contact sales support.
/admin/notification/sendtomobile
Key + Bearer
Retrieve mobile notifications.
/admin/notification/setdelivery
Key + Bearer
Mark a notification as delivered.
/woocommerce/menu/synchronisation
Administrator
Synchronise WooCommerce categories.
/woocommerce/product/synchronisation
Administrator
Synchronise WooCommerce products.
Core contracts
Parameters can be sent as JSON or, for GET routes, in the query string.
/auth/login+loginstringYesEmail, customer login or login including supplier suffix.
passwordstringYesCustomer password.
supplierstringNoSupplier suffix or key when not included in the login.
/customer/add+nomstringYesCustomer last name.
prenomstringYesCustomer first name.
emailemailYesEmail unique within the supplier.
denominationstringNoCompany name, optional.
passwordstringYesAt least eight characters.
languestringNoPreferred language.
/product/list+pageintegerNoPage number, starting at 1.
per_pageintegerNoProducts per page.
searchstringNoSearch by code, name or description.
category_idintegerNoPrimary category filter.
subcategory_idintegerNoSubcategory filter.
/product/add+codestringYesProduct code unique within the shop.
namestringYesName displayed in the app.
descriptionstringNoDetailed product description.
base_pricedecimalYesSelling price excluding tax according to your configuration.
vat_ratedecimalNoVAT rate, for example 21.
category_idintegerNoSellViaApp category identifier.
external_keystringNoStable identifier from your ERP.
image_urlurlNoHTTPS URL of the main image.
activebooleanNoControls product visibility.
/admin/order/list+pageintegerNoRequested page, starting at 1.
per_pageintegerNoOrders per page, maximum 100.
from_datedateNoOnly return orders from this date.
guidstringNoRetrieve one order by GUID.
statusstringNoFilter available depending on storage mode: pending, preparing, ready, delivered or cancelled.
/order/sendtomegawin+order_guiduuidNoGUID of the cart to confirm.
delivery_modeenumYespickup | delivery
delivery_addressstringNoRequired for delivery.
delivery_datedateNoYYYY-MM-DD
delivery_commentstringNoFulfilment instructions.
languagestringNoTransactional email language.
/document/add+doc_typestringYesinvoice | estimate | purchase_order
customer_idintegerNoLegacy compatibility; the authenticated customer takes precedence.
doc_numberstringYesDocument number.
doc_datedateYesYYYY-MM-DD
due_datedateNoYYYY-MM-DD
payment_methodstringNoPayment method.
remarkstringNoFree-form remark.
/documentline/add+document_guiduuidYesDocument GUID.
textstringYesLine description.
quantitydecimalYesQuantity.
unit_pricedecimalYesUnit price excluding VAT.
vat_ratedecimalNoVAT rate.
discount_percentagedecimalNoPercentage discount.
JSON
{
"success": true,
"message": "OK",
"data": {
"items": []
},
"meta": {
"page": 1,
"per_page": 10,
"total": 0
}
}Diagnostics
Every error exposes a machine-readable code, category, human-readable message and, when available, a request identifier.
{
"success": false,
"message": "The delivery address is required.",
"data": null,
"error": {
"code": "DELIVERY_ADDRESS_REQUIRED",
"category": "validation",
"message": "The delivery address is required.",
"details": {}
}
}Legacy documentation
The new API accepts variants published on doc.sellviaapp.com so existing integrations continue to work.
/api/document/*→/document/*/user/add→/customer/add/fam1/insert→/fam1/add/product/insert→/product/add/product/favorites→/product/favoris/order/count→/order/count/line/CUSTOMER/LIST→/customer/listEvery route published in the legacy documentation now has a native route or a compatibility alias.