---
title: "Add stock transaction list"
method: POST
path: "/stocktransactionlist"
tags: ["StockTransactionLists"]
---

# Add stock transaction list

`POST /stocktransactionlist`

## Request

- Base URL: `https://api.c1st.com/api`
- URL: `https://api.c1st.com/api/stocktransactionlist`
- Auth: HTTP bearer

## Request body

- SetStockTransactionList: The body of the request used to create/update products.
  - `partnerstoreid` integer, nullable: Save transaction at partner store
  - `content` StockTransactionList: A list of stock transactions. Set commit = 1 to commit all transactions in a list.
    - `id` integer, nullable: A unique ID
    - `note` string, nullable: a free text note
    - `created` string, nullable: created date
    - `committeddate` string, nullable: If the inventory list is booked
    - `commit` integer: PUT with value 1 to commit all stock transactions in the list. If type == "move", a stock move is done, if type == "reception" a stock reception is done
    - `movetostoreid` integer, nullable: The store id of the partner to move the stock to. Can only be set if type = move
    - `movetostoretransactionlist` object, nullable
      - `id` integer, nullable: A unique ID
      - `committeddate` string, nullable: If the inventory list is booked
    - `fromstocktransactionlistid` integer, nullable
    - `fromListNo` integer, nullable: Assigned list number generated by a stock movement from partner store
    - `fromstore` Store: Store object
      - `id` integer
      - `title` string, required
      - `cityname` string, nullable
      - `zipcode` string, nullable
      - `streetname` string, nullable
      - `streetno` string, nullable
      - `phone` string, nullable
      - `email` string, nullable
      - `website` string, nullable
      - `created` string
      - `countrydata` CountryData
        - `code` string: Country code in alpha2 format
        - `currency` string: Currency for this country
        - `smsprice_dkk` number: Price to send 1 sms to this country, in DKK
        - `smsprice_eur` number: Price to send 1 sms to this country, in EUR
        - `eu` boolean: true if country is member of EU
    - `orderlistno` integer, nullable: The orderlist no of the attached orderlist
    - `inventorycountreportid` integer, nullable: The id of report that was created on inventory count
    - `reportno` integer, nullable: The report number of the attached report
    - `listno` integer, nullable: Sequentially generated list number
    - `invoicenumber` string, nullable: The stock transaction lists invoice number
    - `invoicedate` string, nullable: The stock transaction lists invoice date
    - `shippingcost` number, nullable: Shipping cost of the stock transaction list
    - `orderlistid` integer, nullable: The id of the orderlistid which the stocktransaction list was created from
    - `partnersyncdate` string, nullable: The date the stock transaction list was synced to an external service (e.g. E-conomic)
    - `exchangerateid` number, nullable: The id of the foreign exchange rate used for the stock transaction list (if any)
    - `exchangerate` ExchangeRate
      - `id` integer, nullable: ID of the exchange rate
      - `currency` string: Currency code
      - `title` string: Title of the exchange rate
      - `store_id` integer: ID of the store that created the exchange rate
      - `rate` number: Exchange rate value
      - `created_at` string, date-time, nullable: Date and time when the exchange rate was created
      - `updated_at` string, date-time, nullable: Date and time when the exchange rate was last updated
    - `store` Store: Store object
      - `id` integer
      - `title` string, required
      - `cityname` string, nullable
      - `zipcode` string, nullable
      - `streetname` string, nullable
      - `streetno` string, nullable
      - `phone` string, nullable
      - `email` string, nullable
      - `website` string, nullable
      - `created` string
      - `countrydata` CountryData
        - `code` string: Country code in alpha2 format
        - `currency` string: Currency for this country
        - `smsprice_dkk` number: Price to send 1 sms to this country, in DKK
        - `smsprice_eur` number: Price to send 1 sms to this country, in EUR
        - `eu` boolean: true if country is member of EU
    - `type` 'reception' | 'count' | 'move'
    - `totalcostprice` number, nullable: Sum of costprice across the list's stock transactions. Null for uncommitted lists or any list that is not of type `reception`.
    - `userid` integer, nullable: Id of the user who created/committed the stocktransaction
    - `user` object, nullable: The user referred to by userid
      - `name` string
      - `id` number

## Response `200`

Ok

- StockTransactionListResponse, nullable
  - `content` StockTransactionList: A list of stock transactions. Set commit = 1 to commit all transactions in a list.
    - `id` integer, nullable: A unique ID
    - `note` string, nullable: a free text note
    - `created` string, nullable: created date
    - `committeddate` string, nullable: If the inventory list is booked
    - `commit` integer: PUT with value 1 to commit all stock transactions in the list. If type == "move", a stock move is done, if type == "reception" a stock reception is done
    - `movetostoreid` integer, nullable: The store id of the partner to move the stock to. Can only be set if type = move
    - `movetostoretransactionlist` object, nullable
      - `id` integer, nullable: A unique ID
      - `committeddate` string, nullable: If the inventory list is booked
    - `fromstocktransactionlistid` integer, nullable
    - `fromListNo` integer, nullable: Assigned list number generated by a stock movement from partner store
    - `fromstore` Store: Store object
      - `id` integer
      - `title` string, required
      - `cityname` string, nullable
      - `zipcode` string, nullable
      - `streetname` string, nullable
      - `streetno` string, nullable
      - `phone` string, nullable
      - `email` string, nullable
      - `website` string, nullable
      - `created` string
      - `countrydata` CountryData
        - `code` string: Country code in alpha2 format
        - `currency` string: Currency for this country
        - `smsprice_dkk` number: Price to send 1 sms to this country, in DKK
        - `smsprice_eur` number: Price to send 1 sms to this country, in EUR
        - `eu` boolean: true if country is member of EU
    - `orderlistno` integer, nullable: The orderlist no of the attached orderlist
    - `inventorycountreportid` integer, nullable: The id of report that was created on inventory count
    - `reportno` integer, nullable: The report number of the attached report
    - `listno` integer, nullable: Sequentially generated list number
    - `invoicenumber` string, nullable: The stock transaction lists invoice number
    - `invoicedate` string, nullable: The stock transaction lists invoice date
    - `shippingcost` number, nullable: Shipping cost of the stock transaction list
    - `orderlistid` integer, nullable: The id of the orderlistid which the stocktransaction list was created from
    - `partnersyncdate` string, nullable: The date the stock transaction list was synced to an external service (e.g. E-conomic)
    - `exchangerateid` number, nullable: The id of the foreign exchange rate used for the stock transaction list (if any)
    - `exchangerate` ExchangeRate
      - `id` integer, nullable: ID of the exchange rate
      - `currency` string: Currency code
      - `title` string: Title of the exchange rate
      - `store_id` integer: ID of the store that created the exchange rate
      - `rate` number: Exchange rate value
      - `created_at` string, date-time, nullable: Date and time when the exchange rate was created
      - `updated_at` string, date-time, nullable: Date and time when the exchange rate was last updated
    - `store` Store: Store object
      - `id` integer
      - `title` string, required
      - `cityname` string, nullable
      - `zipcode` string, nullable
      - `streetname` string, nullable
      - `streetno` string, nullable
      - `phone` string, nullable
      - `email` string, nullable
      - `website` string, nullable
      - `created` string
      - `countrydata` CountryData
        - `code` string: Country code in alpha2 format
        - `currency` string: Currency for this country
        - `smsprice_dkk` number: Price to send 1 sms to this country, in DKK
        - `smsprice_eur` number: Price to send 1 sms to this country, in EUR
        - `eu` boolean: true if country is member of EU
    - `type` 'reception' | 'count' | 'move'
    - `totalcostprice` number, nullable: Sum of costprice across the list's stock transactions. Null for uncommitted lists or any list that is not of type `reception`.
    - `userid` integer, nullable: Id of the user who created/committed the stocktransaction
    - `user` object, nullable: The user referred to by userid
      - `name` string
      - `id` number
  - `totalcostprice` number: Sum of costprice
  - `addtostocksum` number: Sum of all `addtostock`
  - `errors` StockTransactionListResponseError[], nullable
    - `errorcode` 'INVALID_PRODUCTS' | 'INVALID_STOCK_COUNT' | 'NO_MOVE_TARGET' | 'INVALID_TOTAL_COSTPRICE' | 'INVALID_SERIENO' | 'INVALID_SERIENO_STOCK': Identifier of the error
    - `message` string: Description of the error

---

[API](https://skmtc.dev/c1st/apis/customers-1st-api.md) - [All operations](https://skmtc.dev/c1st/apis/customers-1st-api/llms.txt) - [OpenAPI document](https://skmtc.dev/c1st/apis/customers-1st-api/revisions/4250bb326f2a?raw)
