Erply Assortment To Product Linking API

The Assortment To Product Linking API from Erply — 9 operation(s) for assortment to product linking.

Business capability
Assortment & Range Planning BC-2300.10

Operations 10

DELETE /v1/assortment/products/links/{productIDs} Delete products from all assortments #
DELETE /v1/assortment/products/{ids} Delete Assortment Product Links #
DELETE /v1/assortment/products/{ids}/bulk Delete product to assortment links by link IDs #
PATCH /v1/assortment/products/{id} Update Assortment's Products Link Data #
GET /v1/assortment/{id}/products Get Assortment's Products Link Data #
POST /v1/assortment/{id}/products Add Product to Assortment #
POST /v1/assortment/{id}/products/bulk Add Products to Assortment #
GET /v1/assortment/{id}/products/data Get Assortment's Products Data #
GET /v1/assortment/{id}/products/deleted Get Deleted Assortment's Products IDs #
GET /v1/product/{id}/assortments Get Assortments for Product #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/erply-assortment-to-product-linking-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

erply-assortment-to-product-linking-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: 'Product information management API

    -------


    Summary


    It is built top of Erply''s current product database.'
  title: PIM Assortment To Product Linking API
  contact:
    email: david.zingerman@erply.com
  version: 1.143.20
tags:
- name: Assortment To Product Linking
paths:
  /v1/assortment/products/links/{productIDs}:
    delete:
      security:
      - sk: []
      - cc: []
      - jwt: []
      description: 'Delete products from all assortments providing product IDs

        responds with link IDs that were deleted'
      tags:
      - Assortment To Product Linking
      summary: Delete products from all assortments
      parameters:
      - description: can contain up to 100 semicolon delimited product IDs.
        name: productIDs
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/responses.Response'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/responses.MessageResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/responses.MessageResponse'
      operationId: deleteV1AssortmentProductsLinksByProductIDs
      x-operation-id-source: derived
  /v1/assortment/products/{ids}:
    delete:
      security:
      - sk: []
      - cc: []
      - jwt: []
      tags:
      - Assortment To Product Linking
      summary: Delete Assortment Product Links
      parameters:
      - description: up to 100 semicolon delimited link IDs
        name: ids
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/responses.Response'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/responses.MessageResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/responses.MessageResponse'
      operationId: deleteV1AssortmentProductsByIds
      x-operation-id-source: derived
  /v1/assortment/products/{ids}/bulk:
    delete:
      security:
      - sk: []
      - cc: []
      - jwt: []
      tags:
      - Assortment To Product Linking
      summary: Delete product to assortment links by link IDs
      deprecated: true
      parameters:
      - description: can contain up to 100 semicolon delimited link IDs.
        name: ids
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/responses.Response'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/responses.MessageResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/responses.MessageResponse'
      operationId: deleteV1AssortmentProductsByIdsBulk
      x-operation-id-source: derived
  /v1/assortment/products/{id}:
    patch:
      security:
      - sk: []
      - cc: []
      - jwt: []
      description: Status can be ACTIVE, ARCHIVED, NO_LONGER_ORDERED, NOT_FOR_SALE
      tags:
      - Assortment To Product Linking
      summary: Update Assortment's Products Link Data
      parameters:
      - description: link ID
        name: id
        in: path
        required: true
        schema:
          type: integer
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/responses.Response'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/responses.MessageResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/responses.MessageResponse'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/models.AssortmentToProductUpdateRequest'
        description: link status is mandatory, product name translations only if you want to update some language name
        required: true
      operationId: patchV1AssortmentProductsById
      x-operation-id-source: derived
  /v1/assortment/{id}/products:
    get:
      security:
      - sk: []
      - cc: []
      - jwt: []
      description: Get Assortment's Products Link Data only for active links. Status can be ACTIVE, ARCHIVED, NO_LONGER_ORDERED, NOT_FOR_SALE
      tags:
      - Assortment To Product Linking
      summary: Get Assortment's Products Link Data
      parameters:
      - description: it' s a `UNIX timestamp`
        name: If-Modified-Since
        in: header
        schema:
          type: integer
      - description: Assortment ID
        name: id
        in: path
        required: true
        schema:
          type: integer
      - description: skip n records
        name: skip
        in: query
        schema:
          type: integer
      - description: 'items to take, default: 20, max: 100000'
        name: take
        in: query
        schema:
          type: integer
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/models.AssortmentToProductLinkResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/responses.MessageResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/responses.MessageResponse'
      operationId: getV1AssortmentByIdProducts
      x-operation-id-source: derived
    post:
      security:
      - sk: []
      - cc: []
      - jwt: []
      description: Add Product to Assortment. Status can be ACTIVE, ARCHIVED, NO_LONGER_ORDERED, NOT_FOR_SALE
      tags:
      - Assortment To Product Linking
      summary: Add Product to Assortment
      parameters:
      - description: Assortment ID
        name: id
        in: path
        required: true
        schema:
          type: integer
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/responses.Response'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/responses.MessageResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/responses.MessageResponse'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/models.AssortmentToProductRequest'
        description: product ID, link status, product name
        required: true
      operationId: postV1AssortmentByIdProducts
      x-operation-id-source: derived
  /v1/assortment/{id}/products/bulk:
    post:
      security:
      - sk: []
      - cc: []
      - jwt: []
      description: Add Products to Assortment in bulk. Status can be ACTIVE, ARCHIVED, NO_LONGER_ORDERED, NOT_FOR_SALE
      tags:
      - Assortment To Product Linking
      summary: Add Products to Assortment
      parameters:
      - description: Assortment ID
        name: id
        in: path
        required: true
        schema:
          type: integer
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/responses.BulkResponseWithResults'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/responses.MessageResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/responses.MessageResponse'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/models.AssortmentToProductBulkRequest'
        description: bulk add request
        required: true
      operationId: postV1AssortmentByIdProductsBulk
      x-operation-id-source: derived
  /v1/assortment/{id}/products/data:
    get:
      security:
      - sk: []
      - cc: []
      - jwt: []
      description: 'Get Assortment''s Products Data with total count. The assortment to product link status is in the `linkStatus` field under each product''s data.

        The `linkStatus` field is filterable and sortable. Status can be ACTIVE, ARCHIVED, NO_LONGER_ORDERED, NOT_FOR_SALE

        The `product_name_in_assortment` field is filterable. just put [[''product_name_in_assortment.en'',''='',''bla-bla-bla''],''or'',''product_name_in_assortment.fr'',''='',''yada-yada]

        the ''and'' operand is not supported for the `product_name_in_assortment`'
      tags:
      - Assortment To Product Linking
      summary: Get Assortment's Products Data
      parameters:
      - description: it' s a `UNIX timestamp`
        name: If-Modified-Since
        in: header
        schema:
          type: integer
      - description: Assortment ID
        name: id
        in: path
        required: true
        schema:
          type: integer
      - description: skip n records
        name: skip
        in: query
        schema:
          type: integer
      - description: 'items to take, default: 20, max: 100000'
        name: take
        in: query
        schema:
          type: integer
      - description: the sort parameter is explained in the `Filtering & Sorting` section on top of the Swagger documentation
        name: sort
        in: query
        schema:
          type: string
      - description: the filter parameter is explained in the `Filtering & Sorting` section on top of the Swagger documentation
        name: filter
        in: query
        schema:
          type: string
      - description: optionally return total number of records in the X-Total-Count response header
        name: withTotalCount
        in: query
        schema:
          type: boolean
      responses:
        '200':
          description: OK
          headers:
            X-Total-Count:
              description: total number of records (ignores skip & take parameters)
              schema:
                type: uint
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/products.ProductsResponseWithCount'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/responses.MessageResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/responses.MessageResponse'
      operationId: getV1AssortmentByIdProductsData
      x-operation-id-source: derived
  /v1/assortment/{id}/products/deleted:
    get:
      security:
      - sk: []
      - cc: []
      - jwt: []
      description: Input the assortment ID and optionally a header with the unix timestamp, responds with the found product IDs in the IDs field
      tags:
      - Assortment To Product Linking
      summary: Get Deleted Assortment's Products IDs
      parameters:
      - description: it' s a `UNIX timestamp`
        name: If-Deleted-Since
        in: header
        schema:
          type: integer
      - description: Assortment ID
        name: id
        in: path
        required: true
        schema:
          type: integer
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/models.AssortmentToProductLinkResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/responses.MessageResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/responses.MessageResponse'
      operationId: getV1AssortmentByIdProductsDeleted
      x-operation-id-source: derived
  /v1/product/{id}/assortments:
    get:
      security:
      - sk: []
      - cc: []
      - jwt: []
      tags:
      - Assortment To Product Linking
      summary: Get Assortments for Product
      parameters:
      - description: product ID
        name: id
        in: path
        required: true
        schema:
          type: integer
      - description: skip n records
        name: skip
        in: query
        schema:
          type: integer
      - description: 'items to take, default: 20, max: 100000'
        name: take
        in: query
        schema:
          type: integer
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/models.AssortmentToProductLinkResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/responses.MessageResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/responses.MessageResponse'
      operationId: getV1ProductByIdAssortments
      x-operation-id-source: derived
components:
  schemas:
    models.AssortmentToProductUpdateRequest:
      type: object
      properties:
        product_name_in_assortment:
          $ref: '#/components/schemas/Translatable'
        status:
          description: 'Status is a classifier with four possible values: ''ACTIVE'' (DEFAULT), ''NO_LONGER_ORDERED'', ''NOT_FOR_SALE'' and ''ARCHIVED''.'
          type: string
          example: ACTIVE
    responses.MessageResponse:
      type: object
      properties:
        message:
          type: string
          example: some message
    models.AssortmentToProductRequest:
      type: object
      properties:
        product_id:
          type: integer
        product_name_in_assortment:
          $ref: '#/components/schemas/Translatable'
        status:
          description: 'Status is a classifier with four possible values: ''ACTIVE'' (DEFAULT), ''NO_LONGER_ORDERED'', ''NOT_FOR_SALE'' and ''ARCHIVED''.'
          type: string
          example: ACTIVE
    responses.BulkResponseWithResults:
      type: object
      properties:
        results:
          type: array
          items:
            $ref: '#/components/schemas/responses.BulkResult'
    models.AssortmentToProductBulkRequest:
      type: object
      properties:
        links:
          type: array
          items:
            $ref: '#/components/schemas/models.AssortmentToProductRequest'
    Translatable:
      type: object
      properties:
        en:
          description: This field supports more languages. Please read Translatable names and descriptions block in the documentation.
          type: string
    ProductDescription:
      type: object
      properties:
        html:
          description: Description supports more languages. Please read Translatable names and descriptions block in the documentation.
          type: string
          example: <b>Very good product!</b>
        plain_text:
          description: Description supports more languages. Please read Translatable names and descriptions block in the documentation.
          type: string
          example: Very good product!
    responses.BulkResult:
      type: object
      properties:
        message:
          type: string
          example: some message
        resourceId:
          description: identifier of the REST-ful response
          type: integer
          example: 2
        resultId:
          description: identifier of the result item
          type: integer
          example: 2
    models.AssortmentToProductLinkResponse:
      type: object
      properties:
        assortment_id:
          type: integer
        id:
          type: integer
        product_id:
          type: integer
        product_name_in_assortment:
          $ref: '#/components/schemas/Translatable'
        status:
          description: Status of the Assortment To Product link
          type: string
          example: ACTIVE
    products.ProductResponseWithLinkStatus:
      type: object
      properties:
        added:
          description: Unix timestamp
          type: integer
          example: 1595230999
        addedby:
          description: username
          type: string
          example: k@erp.xyz
        age_restriction:
          type: integer
        alcohol_percentage:
          type: string
        alcohol_registry_number:
          type: string
        batches:
          type: string
        brand_id:
          type: integer
        cashier_must_enter_price:
          description: boolean flag 0 or 1
          type: integer
        category_id:
          type: integer
        changed:
          description: Unix timestamp
          type: integer
          example: 1595230999
        changedby:
          description: username
          type: string
          example: k@erp.xyz
        code:
          type: string
        code2:
          type: string
        code3:
          type: string
        code5:
          type: string
        code6:
          type: string
        code7:
          type: string
        code8:
          type: string
        cost:
          type: number
        country_of_origin_id:
          type: integer
        delivery_time:
          type: string
        deposit_fee_amount:
          type: integer
        deposit_fee_id:
          type: integer
        description:
          $ref: '#/components/schemas/Description'
        displayed_in_webshop:
          description: 0 or 1
          type: integer
        excise_declaration_number:
          type: string
        extra_field1_id:
          type: integer
        extra_field2_id:
          type: integer
        extra_field3_id:
          type: integer
        extra_field4_id:
          type: integer
        family_id:
          type: integer
        formula_identifier:
          type: string
        gross_weight:
          description: GrossWeight is Item's gross weight (with packaging). Unit depends on region, check your Erply account (typically lbs or kg).
          type: number
        group_id:
          type: integer
        group_package_ferrous_metal:
          type: number
        group_package_metal:
          type: number
        group_package_non_ferrous_metal:
          type: number
        group_package_paper:
          type: number
        group_package_plastic:
          type: number
        group_package_wood:
          type: number
        has_serial_numbers:
          type: integer
        height:
          type: number
        id:
          type: integer
        is_gift_card:
          description: 0 or 1
          type: integer
        is_lot_product:
          type: boolean
        is_regular_gift_card:
          description: boolean flag 0 or 1
          type: integer
        is_used_product:
          type: boolean
        labels_not_needed:
          description: boolean flag 0 or 1
          type: integer
        length:
          description: Length is Item's physical dimensions.
          type: number
        linkStatus:
          type: string
        location_in_warehouse_id:
          type: integer
        location_in_warehouse_text:
          type: string
        manufacturer_name:
          type: string
        name:
          description: /This field supports more languages. Please read Translatable names and descriptions block in the documentation.
          $ref: '#/components/schemas/Translatable'
        net_weight:
          type: number
        non_discountable:
          description: 0 or 1
          type: integer
        non_refundable:
          description: 0 or 1
          type: integer
        non_stock_product:
          description: boolean flag 0 or 1
          type: integer
        packaging_type:
          type: string
        packing_not_required:
          type: integer
        parent_product_id:
          type: integer
        price:
          type: number
        price_with_tax:
          type: number
        priority_group_id:
          type: integer
        product_item_level_promotions_disabled:
          type: integer
        product_name_in_assortment:
          $ref: '#/components/schemas/Translatable'
        product_reorder_multiples:
          type: integer
        revenue_account:
          type: string
        reward_points_not_allowed:
          description: boolean flag 0 or 1
          type: integer
        sales_package_cardboard:
          type: number
        sales_package_clear_brown_glass:
          type: number
        sales_package_green_other_glass:
          type: number
        sales_package_metal_al:
          type: number
        sales_package_metal_fe:
          type: number
        sales_package_other_metal:
          type: number
        sales_package_paper_and_cardboard_mono:
          description: Product package materials
          type: number
        sales_package_plastic_pet:
          type: number
        sales_package_plastic_pp_pe:
          type: number
        sales_package_wood:
          type: number
        serial_number:
          type: string
        shelf_life_days:
          type: integer
        sold_in_packages:
          type: integer
        status:
          description: 'Status is a classifier with four possible values: ''ACTIVE'' (DEFAULT), ''NO_LONGER_ORDERED'', ''NOT_FOR_SALE'' and ''ARCHIVED''.'
          type: string
          example: ACTIVE
        suggested_retail_price:
          type: number
        supplier_code:
          type: string
        supplier_id:
          type: integer
        tax_free:
          description: boolean flag 0 or 1
          type: integer
        tax_rate_id:
          type: integer
        transport_package_cardboard:
          type: number
        transport_package_ferrous_metal:
          type: number
        transport_package_non_ferrous_metal:
          type: number
        transport_package_plastic:
          type: number
        transport_package_wood:
          type: number
        type:
          type: string
        unit_id:
          type: integer
        volume:
          type: number
        webshop_description:
          type: string
        webshop_keywords:
          type: string
        webshop_title:
          type: string
        webshop_url_slug:
          type: string
        width:
          type: number
    products.ProductsResponseWithCount:
      type: object
      properties:
        products:
          type: array
          items:
            $ref: '#/components/schemas/products.ProductResponseWithLinkStatus'
        totalCount:
          type: integer
          example: 20
    responses.Response:
      type: object
      properties:
        id:
          type: integer
          example: 73
    Description:
      type: object
      properties:
        en:
          description: Description supports more languages. Please read Translatable names and descriptions block in the documentation.
          $ref: '#/components/schemas/ProductDescription'
  securitySchemes:
    cc:
      type: apiKey
      name: clientCode
      in: header
    jwt:
      type: apiKey
      name: jwt
      in: header
    sk:
      type: apiKey
      name: sessionKey
      in: header