# Get Products

+ term: Name, article or barcode
+ page (number, `1`) - Page number (not used if product_id is passed)
+ count (number, `25`) - Number of products on the page (not used if product_id is passed)
+ category_id (number, `777`) - Id of the product category (not used if product_id is passed)
+ changed_after (string) - filtering products changed/created since a specific date and time (not used if product_id is passed)
+ changed_before (string) - filtering products changed/created before a specific date and time (not used if product_id is passed)

Endpoint: GET /goods/{location_id}/{product_id}
Version: 1.0.0
Security: BearerPartnerUser

## Security:

  - `BearerPartnerUser` (unknown)
    http bearer Bearer {PartnerToken}, User {UserToken}

## Path parameters:

  - `location_id` (number, required)
    location ID

  - `product_id` (number, required)
    Product ID (if you need to get a specific product)

## Query parameters:

  - `term` (string)
    name, article number or barcode

  - `page` (number)
    page number

  - `count` (number)
    number of products per page

  - `category_id` (number)
    Product category ID

  - `changed_after` (string)
    filtering products modified/created since a specific date and time

  - `changed_before` (string)
    filtering products modified/created before a specific date and time

## Header parameters:

  - `Accept` (string, required)
    e.g. application/vnd.api.v2+json

  - `Content-Type` (string, required)
    application/json

  - `Authorization` (string, required)
    Bearer partner_token, User user_token

## Response 200:

  - `200` (unknown)
    OK

## Response 200 fields (application/json):

  - `success` (boolean)
    Execution success status (true)

  - `data` (object)
    Product data object

  - `data.title` (string)
    Name of product

  - `data.value` (string)
    Name of product

  - `data.label` (string)
    Product name with article number (if any)

  - `data.good_id` (number)
    Product ID

  - `data.cost` (number)
    Selling price

  - `data.unit_id` (number)
    Sales Unit ID

  - `data.unit_short_title` (string)
    Sales unit

  - `data.service_unit_id` (number)
    ID of unit of measure to write off

  - `data.service_unit_short_title` (string)
    Write-off unit

  - `data.actual_cost` (number)
    Cost price

  - `data.unit_actual_cost` (number)
    Unit cost

  - `data.unit_actual_cost_format` (string)
    Unit cost format

  - `data.unit_equals` (number)
    The ratio of the unit of measure for sale to the unit for write-off

  - `data.barcode` (string)
    Barcode

  - `data.loyalty_abonement_type_id` (number)
    Subscription type identifier (if the product is a membership)

  - `data.loyalty_certificate_type_id` (number)
    Certificate type identifier (if the item is a certificate)

  - `data.loyalty_allow_empty_code` (boolean | number)
    Is it allowed to sell without a code (can be 0/1 or true/false)

  - `data.critical_amount` (number)
    Critical residue

  - `data.desired_amount` (number)
    Desired balance

  - `data.actual_amounts` (array)
    Remaining stock

  - `data.actual_amounts.storage_id` (number)
    Inventory ID

  - `data.actual_amounts.amount` (number)
    Quantity

  - `data.last_change_date` (string)
    The date the entity was last modified

  - `meta` (array)
    Metadata (empty array)

## Response 401:

  - `401` (unknown)
    Unauthorized

## Response 401 fields (application/json):

  - `success` (boolean)
    Response status.
    Example: false

  - `data` (object | null)
    Response data.
    Example: null

  - `meta` (object)
    Additional response data.

  - `meta.message` (string)
    Error message.
    Example: Authentication needed.

## Response 403:

  - `403` (unknown)
    Forbidden

## Response 403 fields (application/json):

  - `success` (boolean)
    Response status.
    Example: false

  - `data` (object | null)
    Response data.
    Example: null

  - `meta` (object)
    Additional response data.

  - `meta.message` (string)
    Error message.
    Example: Access denied.

## Response 404:

  - `404` (unknown)
    Not Found

## Response 404 fields (application/json):

  - `success` (boolean)
    Response status.
    Example: false

  - `data` (object | null)
    Response data.
    Example: null

  - `meta` (object | array)
    Additional response data (empty object or empty array)
    Example: {}

