API documentation
Method list
Test your request
Changelog


Introduction
The API enables the information exchange between an external system and BaseLinker.
Communication uses data in JSON format. To make a request to the API, send the proper POST request to:
https://api.baselinker.com/connector.php

To send a request for each method a token is required. The token is assigned directly to the BaseLinker user account. User can generate API token in BaseLinker panel in "Account & other -> My account -> API" section.
Authorization with http header (X-BLToken) is recommended.

3 values must be submitted to the connector.php file via POST:
  1. token - unique user API key - DEPRECATED, please use X-BLToken header
  2. method - the name of the requested API method
  3. parameters - arguments of the requested function in JSON format

Sample: curl 'https://api.baselinker.com/connector.php' -H 'X-BLToken: 1-23-ABC' --data-raw 'method=getOrders&parameters=%7B%22date_from%22%3A+1407341754%7D'
Request limit
The API request limit is 100 requests per minute.


Latest changes
The API was last updated 2026-04-20.


Encoding standards
The API uses UTF-8.
The API expects base64 content in some endpoints and it is very important to replace "+" character with "%2B" sequence before sending it to our API to avoid an incorrect decoding.


Orders

Orders

addOrderThe method allows adding a new order to the BaseLinker order manager.
addOrderBySplitCreates a new order by splitting selected products from an existing order. The new order inherits all fields and information from the original one.
addOrderDuplicateThe method allows you to add a new order to the BaseLinker order manager by duplicating an existing order. The new order will have the same data as the original order, but with a different ID.
deleteOrdersThe method allows you to delete multiple orders from the BaseLinker order manager.
getOrderTransactionDataThe method allows you to retrieve transaction details for a selected order
getOrdersThe method allows you to download orders from a specific date from the BaseLinker order manager. The order list can be limited using the filters described in the method parameters. A maximum of 100 orders are returned at a time.
It is recommended to download only confirmed orders (get_unconfirmed_orders = false). Unconfirmed orders may be incomplete. The user may be, for example, in the process of creating an order - it already exists in the database, but not all information is completed. Unconfirmed orders may contain only a partial list of products and may be changed soon. Confirmed orders usually do not change anymore and can be safely downloaded to an external system.
The best way to download the ongoing orders is:
Collecting new order identifiers using getJournalList.
Or, using this method:
1. Setting the starting date and specifying it in the date_confirmed_from field
2. Processing of all received orders. If 100 orders are received, there may be even more to download.
3. Downloading the next package of orders by entering the value of the date_confirmed field from last downloaded order in the date_confirmed_from field. In order to avoid downloading the same orders value of date_confirmed should be increased by 1 second. This operation is repeated until you receive a package with less than 100 orders (this means that there are no more orders left to download).
4. Saving the date_confirmed last processed order. You can download orders from this date onwards so that you do not download the same order twice. It is not possible for an order to 'jump' into the database with an earlier confirmation date. This way you can be sure that all confirmed orders have been downloaded.
getOrdersByEmailThe method allows to search for orders related to the given e-mail address. This function is designed to be used in plugins for mail clients (Thunderbird, Outlook, etc.).
getOrdersByPhoneThe method allows you to search for orders related to the given phone number. This function is intended for use in caller recognition programs.
setOrderFieldsThe method allows you to edit selected fields (e.g. address data, notes, etc.) of a specific order. Only the fields that you want to edit should be given, other fields can be omitted in the request.
setOrdersMergeMerges multiple orders into one, based on the selected merge mode.

Order products

addOrderProductThe method allows you to add a new product to your order.
deleteOrderProductThe method allows you to remove a specific product from the order.
setOrderProductFieldsThe method allows you to edit the data of selected items (e.g. prices, quantities etc.) of a specific order. Only the fields that you want to edit should be given, the remaining fields can be omitted in the request.

Payments

getOrderPaymentsHistoryThe method allows you to retrieve payment history for a selected order, including an external payment identifier from the payment gateway. One order can have multiple payment history entries, caused by surcharges, order value changes, manual payment editing
setOrderPaymentThe method allows you to add a payment to the order.

Statuses

getOrderStatusListThe method allows you to retrieve order statuses created by the customer in the BaseLinker order manager.
setOrderStatusThe method allows you to change order status.
setOrderStatusesThe method allows you to batch set orders statuses

Invoices

addInvoiceThe method allows to issue an order invoice.
addInvoiceCorrectionThe method allows to issue an order invoice correction.
Either original_invoice_id or return_order_id must be provided.
If return_order_id is provided, all other fields will be ignored (except series_id) and invoice will be created with data from the return order.
If field is optional and not provided, it will be set according to the series settings or default values.
addOrderInvoiceFileThe method allows you to add an external file to an invoice previously issued from BaseLinker. It enables replacing a standard invoice from BaseLinker with an invoice issued e.g. in an ERP program.
getInvoiceFileThe method allows you to get the invoice file from BaseLinker.
getInvoicesThe method allows you to download invoices issued from the BaseLinker order manager. The list of invoices can be limited using filters described in the method parameters. Maximum 100 invoices are returned at a time.
getSeriesThe method allows to download a series of invoice/receipt numbering.

Receipts

addOrderReceiptFileThe method allows you to add an external file to a receipt previously issued from BaseLinker. It enables replacing a standard receipt from BaseLinker with a receipt issued e.g. in an ERP program.
addReceiptThe method allows you to issue a receipt for an order.
getNewReceiptsThe method allows you to retrieve receipts waiting to be issued. This method should be used in creating integration with a fiscal printer. The method can be requested for new receipts every e.g. 10 seconds. If any receipts appear in response, they should be confirmed by the setOrderReceipt method after printing to disappear from the waiting list.
getReceiptThe method allows you to retrieve a single receipt from the BaseLinker order manager. To retrieve a list of new receipts (when integrating a fiscal printer), use the getNewReceipts method.
getReceiptsThe method allows you to retrieve issued receipts. Max 100 receipts are returned at a time. To retrieve a list of new receipts (when integrating a fiscal printer), use the getNewReceipts method.
setOrderReceiptThe method allows you to mark orders with a receipt already issued.

PickPack carts

getPickPackCartsThe method allows you to retrieve a list of all PickPack carts belonging to the authenticated user. The method returns cart details including ID, name, color.

Other

getJournalListThe method allows you to download a list of order events from the last 3 days. If this method is not enabled for your account, it may return an empty response - in such case, make sure it is enabled in your account API settings. If you cannot enable it in the panel, please contact Base support.
getOrderExtraFieldsThe method returns extra fields defined for the orders. Values of those fields can be set with method **setOrderFields**. In order to retrieve values of those fields set parameter include_custom_extra_fields in method **getOrders**
getOrderPickPackHistoryThe method allows you to retrieve pick pack history for a selected order.
getOrderPrintoutTemplatesReturns a list of all configured printout templates available for orders. The output includes technical identifiers used when executing a printout.
getOrderSourcesThe method returns types of order sources along with their IDs. Order sources are grouped by their type that corresponds to a field order_source from the getOrders method. Available source types are "personal", "shop", "order_return" or "marketplace_code" e.g. "ebay", "amazon", "ceneo", "emag", "allegro", etc.
runOrderMacroTriggerThe method allows you to run personal trigger for orders automatic actions.


Order returns

Returns

addOrderReturnThe method allows adding a new order return to BaseLinker.
getOrderReturnExtraFieldsThe method returns extra fields defined for order returns. Values of those fields can be set with method setOrderReturnFields. To retrieve values of those fields set parameter include_custom_extra_fields in method getOrderReturns
getOrderReturnsThe method allows you to download order returns from a specific date from the BaseLinker return manager. The return list can be limited using the filters described in the method parameters. A maximum of 100 order returns are returned at a time.
setOrderReturnFieldsThe method allows you to edit selected fields of a specific order return. Only the fields that you want to edit should be given, other fields can be omitted in the request.

Return products

addOrderReturnProductAdd new product to existing order return
deleteOrderReturnProductThe method allows you to remove a specific product from the return.
setOrderReturnProductFieldsThe method allows you to edit the data of selected items (e.g. prices, quantities etc.) of a specific order. Only the fields that you want to edit should be given, the remaining fields can be omitted in the request.

Statuses

getOrderReturnProductStatusesThe method returns a list of order return item statuses. Values of those fields can be set with method setOrderReturnFields.
getOrderReturnReasonsListThe method returns a list of order return reasons. Values of those fields can be set with method setOrderReturnFields.
getOrderReturnStatusListThe method allows you to download order return statuses created by the customer in the BaseLinker order manager.
setOrderReturnStatusThe method allows you to change order return status.
setOrderReturnStatusesThe method allows you to batch set order return statuses.

Payments

getOrderReturnPaymentsHistoryThe method allows you to retrieve payment history for a selected order, including an external payment identifier from the payment gateway. One order can have multiple payment history entries, caused by surcharges, order value changes, manual payment editing
setOrderReturnRefundThe method allows you to mark an order return as refunded. Note this method doesn't issue an actual money refund.

Other

getOrderReturnJournalListThe method allows you to download a list of return events from the last 3 days.
runOrderReturnMacroTriggerThe method allows you to run personal trigger for order returns automatic actions.


Courier shipments

Packages

createPackageThe method allows you to create a shipment in the system of the selected courier.
createPackageManualThe method allows you to enter the shipping number and the name of the courier to the order (function used only to add shipments created outside BaseLinker)
deleteCourierPackageThe method allows you to delete a previously created shipment. The method removes the shipment from the BaseLinker system and from the courier system if the courier API allows it
getCourierPackagesStatusHistoryThe method allows you to retrieve the history of the status list of the given shipments. Maximum 100 shipments at a time
getOrderPackagesThe method allows you to download shipments previously created for the selected order.
getPackageDetailsThis method allows to get detailed information about a package. If the package contains multiple subpackages, information about all of them is included in the response.

Courier info

getCourierAccountsThe method allows you to retrieve a list of accounts connected with a courier.
getCourierFieldsThe method allows you to retrieve the form fields for creating shipments for the selected courier.
getCourierServicesThe method allows you to retrieve additional courier services, which depend on other shipment settings. Used only for X-press, BrokerSystem, WysyƂam z Allegro, ErliPRO couriers. Not applicable to other couriers whose forms have fixed options. The details of the package should be sent with the method (the format as in createPackage) in order to receive a list of additional services
getCouriersListThe method allows you to retrieve a list of available couriers.

Label & protocol

getCourierDocumentThe method allows you to download a parcel document
getLabelThe method allows you to download a shipping label (consignment) for a selected shipment.
getProtocolThe method allows you to download a parcel protocol for selected shipments if the protocol is available for chosen courier

Parcel pickups

getRequestParcelPickupFieldsThe method allows you to retrieve additional fields for a parcel pickup request.
runRequestParcelPickupThe method allows you to request a parcel pickup for previously created shipments. The method sends a parcel pickup request to courier API if the courier API allows it


Clients (CRM)

Clients

addCrmClientThe method allows you to add a new CRM client. Adding a client with the same crm_client_id again will update the previously saved client (only the provided fields will be changed).
deleteCrmClientThe method allows you to remove a CRM client. Orders previously associated with the deleted client are not affected.
getCrmClientDataThe method allows you to retrieve detailed data of a specific CRM client, including notes.
getCrmClientExtraFieldsThe method returns extra fields defined for CRM clients. Values of those fields can be set with method addCrmClient. In order to retrieve values of those fields use method getCrmClientData or set parameter include_custom_extra_fields in method getCrmClients.
getCrmClientsThe method allows you to retrieve a list of CRM clients. The client list can be limited using the filters described in the method parameters. A maximum of 100 clients are returned at a time. To retrieve full client details (including notes and custom extra fields), use the getCrmClientData method.

Statuses

getCrmClientStatusGroupsThe method allows you to retrieve the list of CRM client status groups.
getCrmClientStatusesThe method allows you to retrieve CRM client statuses created by the user in the order manager.


Product catalog

Inventories

addInventoryThe method allows you to add the BaseLinker catalogs. Adding a catalog with the same identifier again will cause updates of the previously saved catalog.
deleteInventoryThe method allows you to delete a catalog from BaseLinker storage.
getInventoriesThe method allows you to retrieve a list of catalogs available in the BaseLinker storage.

Price groups

addInventoryPriceGroupThe method allows to create a price group in BaseLinker storage. Providing a price group ID will update the existing price group. Such price groups may be later assigned in addInventory method.
deleteInventoryPriceGroupThe method allows you to remove the price group from BaseLinker storage.
getInventoryPriceGroupsThe method allows to retrieve price groups existing in BaseLinker storage

Warehouses

addInventoryWarehouseThe method allows you to add a new warehouse available in BaseLinker inventories. Adding a warehouse with the same identifier again will cause updates of the previously saved warehouse. The method does not allow editing warehouses created automatically for the purpose of keeping external stocks of shops, wholesalers etc. Such warehouse may be later used in addInventory method.
deleteInventoryWarehouseThe method allows you to remove the warehouse available in BaseLinker inventories. The method does not allow to remove warehouses created automatically for the purpose of keeping external stocks of shops, wholesalers etc.
getInventoryWarehousesThe method allows you to retrieve a list of warehouses available in BaseLinker inventories. The method also returns information about the warehouses created automatically for the purpose of keeping external stocks (shops, wholesalers etc.)

Categories

addInventoryCategoryThe method allows you to add a category to the BaseLinker catalog. Adding a category with the same identifier again, updates the previously saved category
deleteInventoryCategoryThe method allows you to remove categories from BaseLinker warehouse. Along with the category, the products contained therein are removed (however, this does not apply to products in subcategories). The subcategories will be changed to the highest level categories.
getInventoryCategoriesThe method allows you to retrieve a list of categories for a BaseLinker catalog.

Manufacturers

addInventoryManufacturerThe method allows you to add a manufacturer to the BaseLinker catalog. Adding a manufacturer with the same identifier again, updates the previously saved manufacturer
deleteInventoryManufacturerThe method allows you to remove manufacturer from BaseLinker catalog
getInventoryManufacturersThe method allows you to retrieve a list of manufacturers for a BaseLinker catalog. Results can be paginated by providing the page parameter (1000 manufacturers per page). Without the page parameter, all manufacturers are returned.

Products

addInventoryProductThe method allows you to add a new product to BaseLinker catalog. Entering the product with the ID updates previously saved product.
deleteInventoryProductThe method allows you to remove the product from BaseLinker catalog.
getInventoryProductLogsThe method allows to retrieve a list of events related to product change (or their variants) in the BaseLinker catalog.
getInventoryProductsDataThe method allows you to retrieve detailed data for selected products from the BaseLinker inventory.
getInventoryProductsListThe method allows to retrieve a basic data of chosen products from BaseLinker catalogs.
getInventoryProductsPricesThe method allows to retrieve the gross prices of products from BaseLinker inventories.
getInventoryProductsStockThe method allows you to retrieve stock data of products from BaseLinker catalogs.
runProductMacroTriggerThe method allows you to run personal trigger for products automatic actions.
updateInventoryProductsPricesThe method allows bulk update of gross prices of products (and/or their variants) in the BaseLinker catalog. Maximum 1000 products at a time.
updateInventoryProductsStockThe method allows to update stocks of products (and/or their variants) in BaseLinker catalog. Maximum 1000 products at a time.

Documents

addInventoryDocumentThe method allows you to create a new inventory document in BaseLinker storage. Documents are created as draft and need to be confirmed by the user or setInventoryDocumentStatusConfirmed API method.
addInventoryDocumentFileThe method allows you to add an external PDF file to a warehouse document. It enables attaching a document issued in an external ERP system to the corresponding warehouse document in Base.
addInventoryDocumentItemsThe method allows you to add items to an existing inventory document.
getInventoryDocumentFileThe method allows you to download a warehouse document PDF file.
getInventoryDocumentItemsThis method allows you to retrieve document items for a specific inventory document in BaseLinker. In case of a large number of items, pagination is possible.
getInventoryDocumentSeriesThis method allows you to retrieve information about available inventory document series in BaseLinker. Each series can be linked to a specific warehouse and can have its own numbering format settings.
getInventoryDocumentsThis method allows you to retrieve a list of inventory documents from BaseLinker. It supports pagination and optional filtering by document type, date range, etc.
setInventoryDocumentStatusConfirmedThe method allows you to confirm an inventory document, which will affect the stock levels in the warehouse.

Purchase orders

addInventoryPurchaseOrderThe method allows you to create a new purchase order in BaseLinker storage. Orders are created as drafts by default.
addInventoryPurchaseOrderItemsThe method allows you to add items to an existing purchase order. Entering the product with the ID and price updates the previously saved position only if all other parameters match. If any parameter differs (e.g. location), a new item will be added.
getInventoryPurchaseOrderItemsThe method allows you to retrieve items from a specific purchase order.
getInventoryPurchaseOrderSeriesThe method allows you to retrieve a list of purchase order document series available in BaseLinker storage.
getInventoryPurchaseOrdersThe method allows you to retrieve a list of purchase orders from BaseLinker storage.
setInventoryPurchaseOrderStatusThe method allows you to change the status of a purchase order.

Fulfillment deliveries

addInventoryFulfillmentDeliveryThe method allows you to create a new fulfillment delivery in draft status. A fulfillment delivery represents a shipment of products from a source warehouse to a fulfillment center.
addInventoryFulfillmentDeliveryItemsThe method allows you to add products to a fulfillment delivery. Items can only be added to deliveries in draft status. Products must exist in inventory and must not be bundles, drafts, or main products with variants.
getInventoryFulfillmentDeliveriesThe method allows you to retrieve a list of fulfillment deliveries with optional filtering. Results are paginated with 100 results per page.
getInventoryFulfillmentDeliveryItemsThe method allows you to retrieve items from a specific fulfillment delivery. Results are paginated with 100 results per page.

Suppliers

addInventorySupplierThe method allows you to add a new supplier or update an existing one in BaseLinker storage.
deleteInventorySupplierThe method allows you to remove a supplier from BaseLinker storage.
getInventorySuppliersThe method allows you to retrieve a list of suppliers available in BaseLinker storage.

Payers

addInventoryPayerThe method allows you to add a new payer or update an existing one in BaseLinker storage.
deleteInventoryPayerThe method allows you to remove a payer from BaseLinker storage.
getInventoryPayersThe method allows you to retrieve a list of payers available in BaseLinker storage.

Other

getInventoryAvailableTextFieldKeysThe method returns a list of product text fields that can be overwritten for specific integration.
getInventoryExtraFieldsThe method allows you to retrieve a list of extra fields for a BaseLinker catalog.
getInventoryIntegrationsThe method returns a list of integrations where text values in the catalog can be overwritten. The returned data contains a list of accounts for each integration and a list of languages supported by the integration
getInventoryPrintoutTemplatesReturns a list of all configured printout templates available for inventory (products).
getInventoryTagsThe method allows you to retrieve a list of tags for a BaseLinker catalog.


Base Connect

Integrations

getConnectIntegrationContractorsThe method allows you to retrieve a list of contractors connected to the selected Base Connect integration
getConnectIntegrationsThe method allows you to retrieve a list of all Base Connect integrations on this account

Contractor credit

addConnectContractorCreditSettlementThe method allows you to add a manual credit settlement (repayment) for a chosen contractor in Base Connect. A settlement reduces the blocked credit amount for the contractor, effectively recording a payment received for previously charged orders. The settlement amount cannot exceed the contractor's currently blocked credit amount (credit_to_pay).
getConnectContractorCreditHistoryThe method allows you to retrieve an information about chosen contractor trade credit history
setConnectContractorCreditLimitThe method allows you to set new trade credit limit for chosen contractor


External storages

External connections

getExternalStorageCategoriesThe method allows you to retrieve a category list from an external storage (shop/wholesale) connected to BaseLinker.
getExternalStorageProductsDataThe method allows to retrieve detailed data of selected products from an external storage (shop/wholesaler) connected to BaseLinker.
getExternalStorageProductsListThe method allows to retrieve detailed data of selected products from an external storage (shop/wholesaler) connected to BaseLinker.
getExternalStorageProductsPricesThe method allows to retrieve product prices from an external storage (shop/wholesaler) connected to BaseLinker.
getExternalStorageProductsQuantityThe method allows to retrieve stock from an external storage (shop/wholesaler) connected to BaseLinker.
getExternalStoragesListThe method allows you to retrieve a list of available external storages (shops, wholesalers) that can be referenced via API.
updateExternalStorageProductsQuantityThe method allows to bulk update the product stock (and/or variants) in an external storage (shop/wholesaler) connected to BaseLinker. Maximum 1000 products at a time.