Skip to main content
POST
Create a SKU

Authorizations

X-API-KEY
string
header
required

API key for the Twice API

Body

application/json

Body

name
string
required
Minimum string length: 1
code
string
Minimum string length: 1
taxonomyCategoryId
string | null
purchasePrice
number | null
description
unknown
binLocation
string | null
bufferTimeAmountBefore
integer
Required range: 0 <= x <= 9007199254740991
bufferTimeUnitBefore
enum<string>
Available options:
seconds,
minutes,
hours,
days,
weeks,
months,
years
bufferTimeAmountAfter
integer
Required range: 0 <= x <= 9007199254740991
bufferTimeUnitAfter
enum<string>
Available options:
seconds,
minutes,
hours,
days,
weeks,
months,
years
attributes
object

Response

201

id
string<uuid>
required
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)$
name
string
required
Minimum string length: 1
code
string
required
Minimum string length: 1
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))$
updatedAt
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))$
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))$
taxonomyCategoryId
string | null
taxonomyCategory
object | null
attributes
object
purchasePrice
number | null
description
unknown
binLocation
string | null
bufferTimeAmountBefore
integer
Required range: 0 <= x <= 9007199254740991
bufferTimeUnitBefore
enum<string>
Available options:
seconds,
minutes,
hours,
days,
weeks,
months,
years
bufferTimeAmountAfter
integer
Required range: 0 <= x <= 9007199254740991
bufferTimeUnitAfter
enum<string>
Available options:
seconds,
minutes,
hours,
days,
weeks,
months,
years
aggregateData
object
articles
object
tags
object