LogicTrade API
  1. Product
LogicTrade API
  • Authentication
  • Pagination
  • Rate limits
  • Error codes
  • Changelog
  • Configuration Service
  • Endpoints
    • Authentication
      • Introspection
    • Customer
      • List all customers
      • Retrieve a customer by id
      • Create a customer
      • Update a customer
      • Remove the customer
    • Supplier
      • List all suppliers
      • Retrieve a supplier by id
      • Create a supplier
      • Update a supplier
      • Remove the supplier
    • Product
      • Product
        • List all products
          GET
        • Retrieve a product by id
          GET
        • Create a product
          POST
        • Remove the products
          DELETE
        • Update a product
          PUT
        • Search products
          POST
      • Groups
        • List all product groups
      • Discount
        • List all discounts for products
        • Get all discounts for product by id
        • List all discounts for customers
        • Get all discounts for a customer by id
      • Stock
        • Get stock for products
        • Search stock for products
      • Prices
        • Get product prices
      • Descriptions
        • Get the descriptions for a product
      • References
        • Get the product references
      • Compositions
        • Get product compositions
    • Quote
      • List all quotes
      • Retrieve a quote by id
      • Create a quote
      • Update a quote
    • Sales order
      • List all orders
      • Retrieve an orders by id
      • Create an order
      • Update an order
    • Invoice
      • List all invoices
      • Retrieve a invoice by id
      • Create a invoice
      • Update a invoice
    • Delivery
      • Get list of orders that can be delivered
      • Update the order with delivery information
    • Purchase order
      • List all purchase orders
      • Retrieve a purchase orders by id
      • Create a purchase order
      • Update a purchase order
  1. Product

Search products

Testing
POST
/rest/v1/products/search
Search for products and return the list of products that meet the specified search criteria.

Request

Authorization
Add parameter in header
api-key
Example:
api-key: ********************
Body Params application/json
searchScope
string 
optional
The search criteria used to find the product. [all, barcode, code, supplierCode] If 'all' is chosen, the search is conducted first by barcode, then by code, and finally by by supplier article number.
items
array [object {1}] 
optional
keyword
string 
required
The keyword used to find the product. The keyword must be unique for each request.
Example
{
    "searchScope": "all",
    "items": [
      
        {
            "keyword": "A00000001"
        },
        {
            "keyword": "B00000002"
        },
        {
            "keyword": "987687765487337"
        }
    ]
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.logictrade.cloud/rest/v1/products/search' \
--header 'Content-Type: application/json' \
--header 'api-key;' \
--data-raw '{
    "searchScope": "all",
    "items": [
      
        {
            "keyword": "A00000001"
        },
        {
            "keyword": "B00000002"
        },
        {
            "keyword": "987687765487337"
        }
    ]
}'

Responses

🟢200Success
application/json
Body
array of:
keyword
string 
optional
The keyword that was searched for.
results
array [object {4}] 
optional
id
integer 
optional
The unique identifier of the product.
code
string 
optional
The unique code with which the product can be found.
barcode
string 
optional
The barcode of the product.
name
string 
optional
The name of the product.
Example
[
    {
        "keyword": "LT00000077",
        "results": [
            {
                "id": 108,
                "code": "LT00000077",
                "barcode": "9900000002404",
                "name": "Opbergkast Protter"
            }
        ]
    },
    {
        "keyword": "9900000002404",
        "results": [
            {
                "id": 108,
                "code": "LT00000077",
                "barcode": "9900000002404",
                "name": "Opbergkast Protter"
            }
        ]
    },
    {
        "keyword": "1234",
        "results": []
    }
]
Modified at 2025-01-20 13:32:27
Previous
Update a product
Next
List all product groups