How it works
1
Build a publicly reachable script on your server
Create an endpoint (PHP or any language) that accepts POST requests. Base.com sends two key parameters with every call:
action— the name of the function being requestedbl_pass— a communication key generated in the Base.com panel, unique per connected store
action and returns the appropriate response.2
Communication is secured by the bl_pass key only
Base.com never sends or requires any passwords or direct database access. Communication is secured exclusively by the randomly generated
bl_pass key configured in the Base panel.3
Return results as UTF-8 JSON
Every response your script returns must be valid UTF-8 encoded JSON. Base.com parses this response to sync orders, products, prices, and inventory with your platform.
Required methods
Without the following two methods, your integration cannot be activated in the Base panel:SupportedMethods— returns the list of functions your integration file supports. Base uses this to know what operations it can call.FileVersion— returns the current version string of your integration file. Used for update tracking and verification.
Recommended implementation order
Build out your integration progressively in this sequence to ensure each layer is working before moving to the next:SupportedMethods,FileVersion— the baseline required for verification and activation.ProductsCategories,ProductsList,ProductsData— reading the product catalog.ProductsPrices,ProductsQuantity— prices and stock availability.OrdersGet,StatusesList,DeliveryMethodsList,PaymentMethodsList— reading orders and the reference lists that describe them.OrderAdd,OrderUpdate— writing orders created in Base back into your platform.- Optionally:
ProductAdd,CategoryAdd,ProductsQuantityUpdate,ProductsPriceUpdate— for full two-way catalog management from Base.
Pagination
If a method — typicallyProductsList, ProductsQuantity, or ProductsPrices — can return large volumes of data, include a pages field in your response indicating the total number of pages available. Base.com will then automatically request pages 2 through N by passing a page parameter in subsequent calls.
If you plan to offer this integration as part of a partner program for a broad set of clients, we recommend reviewing the implementation with the Base implementation team before going live. They will verify the completeness and performance of your integration file.