LogicTrade API
  1. Stock
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
        • Retrieve a product by id
        • Create a product
        • Remove the products
        • Update a product
        • Search products
      • 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
          GET
        • Search stock for products
          POST
      • 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. Stock

Search stock for products

Developing
POST
/rest/v1/products/stock

Request

Authorization
Add parameter in header
api-key
Example:
api-key: ********************
Body Params application/json
items
array [object {2}] 
optional
productId
integer 
required
The unique identifier of the product.
configurationId
integer 
optional
The unique identifier of the configuration.
Example
{
    "items": [
        {
            "productId": 213
        },
        {
            "productId": 44,
            "configurationId": 84628
        }
    ]
}

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/stock' \
--header 'Content-Type: application/json' \
--header 'api-key;' \
--data-raw '{
    "items": [
        {
            "productId": 213
        },
        {
            "productId": 44,
            "configurationId": 84628
        }
    ]
}'

Responses

🟢200Success
application/json
Body
items
array [object {3}] 
optional
productId
integer 
optional
The unique identifier of the product.
configurationId
integer 
optional
The unique identifier of the configuration.
locations
array [object {5}] 
optional
The result that corresponds to the keyword.
Example
{
    "items": [
        {
            "productId": 213,
            "locations": [
                {
                    "id": 1,
                    "code": "WIN",
                    "description": "Verkoopbaar winkel",
                    "saleable": true,
                    "stock": 1
                },
                {
                    "id": 2,
                    "code": "WIN-NV",
                    "description": "Niet verkoopbaar winkel",
                    "saleable": false,
                    "stock": 4
                }
            ]
        },
        {
            "productId": 44,
            "configurationId": 84628,
            "locations": [
                {
                    "id": 1,
                    "code": "WIN",
                    "description": "Verkoopbaar winkel",
                    "saleable": true,
                    "stock": 12
                }
            ]
        }
    ]
}
Modified at 2025-01-23 13:48:53
Previous
Get stock for products
Next
Get product prices