Skip to main content
POST
Create many stock items

Authorizations

X-API-KEY
string
header
required

API key for the Twice API

Body

application/json

Body

name
string
required
Minimum string length: 1
serviceLocationId
string
required
taxonomyCategoryId
string | null
required
codes
string[]
Minimum array length: 1
status
enum<string>
default:active
Available options:
active,
inactive,
draft
parentId
string
path
string
availableFrom
string<date-time>
Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
quantity
integer
Required range: x <= 9007199254740991
attributes
object
skuId
string<uuid> | null
Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
trackIndividually
boolean
default:true

Response

200

id
string
required
codes
string[]
required
name
string
required
binLocation
string | null
required
status
enum<string>
required
Available options:
active,
inactive,
draft
createdAt
string<date-time>
required
Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
taxonomyCategoryId
string | null
required
aggregateData
object
required
binLocationOrigin
enum<string> | null
Available options:
article,
sku
parentId
string | null
path
string
archivedAt
string<date-time> | null
Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
taxonomyCategory
object | null
media
object
documents
object
attributes
object
tags
object | null
sku
object
itemCosts
number
itemIncome
number
purchasePrice
number | null
purchasePriceOrigin
enum<string> | null
Available options:
article,
sku
condition
string | null
description
unknown
descriptionOrigin
enum<string> | null
Available options:
article,
sku
bufferTimeAmountBefore
integer | null
Required range: 0 <= x <= 9007199254740991
bufferTimeUnitBefore
enum<string>
Available options:
seconds,
minutes,
hours,
days,
weeks,
months,
years
bufferTimeOriginBefore
enum<string> | null
Available options:
article,
sku
bufferTimeAmountAfter
integer | null
Required range: 0 <= x <= 9007199254740991
bufferTimeUnitAfter
enum<string>
Available options:
seconds,
minutes,
hours,
days,
weeks,
months,
years
bufferTimeOrigin
enum<string> | null
Available options:
article,
sku
profitability
number
conflicts
object