- Authentication
- Pagination
- Rate limits
- Error codes
- Changelog
- Configuration Service
- Endpoints
- Authentication
- Customer
- Supplier
- Product
- Product
- Groups
- Discount
- Stock
- Prices
- Descriptions
- Refereces
- Quote
- Sales order
- Invoice
- Delivery
- Purchase order
Search products
Testing
POST
/rest/v1/products/search
Request
Authorization
Add parameter in header
api-key
Example:
api-key: ********************
Body Params application/json
searchScope
string
optional
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
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
results
array [object {4}]
optional
id
integer
optional
code
string
optional
barcode
string
optional
name
string
optional
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