Saltar al contenido principal
POST
/
v1
/
items
/
products
/
{productReference}
/
skus
Create a new SKU
curl --request POST \
  --url https://api.bold-factory.com/v1/items/products/{productReference}/skus \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "code": "<string>",
  "description": "<string>",
  "values": [
    {
      "propertyReference": "<string>",
      "value": "<string>"
    }
  ],
  "managesLots": true,
  "unitCode": "<string>",
  "decimalPlaces": 123,
  "externalReference": "<string>"
}
'
{
  "id": "<string>",
  "externalReference": "<string>",
  "code": "<string>",
  "name": "<string>",
  "description": "<string>",
  "validationErrors": "<string>",
  "productId": "<string>",
  "imageFileId": "<string>",
  "image": {
    "id": "<string>",
    "readOnlyUri": "<string>"
  },
  "product": {
    "id": "<string>",
    "externalReference": "<string>",
    "code": "<string>",
    "name": "<string>",
    "description": "<string>",
    "deletedAt": "2023-11-07T05:31:56Z",
    "createdAt": "2023-11-07T05:31:56Z",
    "createdBy": "<string>",
    "lastModifiedAt": "2023-11-07T05:31:56Z",
    "lastModifiedBy": "<string>"
  },
  "deletedAt": "2023-11-07T05:31:56Z",
  "createdAt": "2023-11-07T05:31:56Z",
  "createdBy": "<string>",
  "lastModifiedAt": "2023-11-07T05:31:56Z",
  "lastModifiedBy": "<string>",
  "unit": {
    "id": "<string>",
    "code": "<string>",
    "name": "<string>"
  },
  "displayDecimalPlaces": 123
}

Autorizaciones

Authorization
string
header
requerido

Use a valid JWT token in the Authorization header with the format 'Bearer {token}'

Parámetros de ruta

productReference
string
requerido

Cuerpo

application/json
name
string
requerido
code
null | string
description
null | string
values
object[]
fulfillmentMode
enum<string>
Opciones disponibles:
ToOrder,
ToStock
procurementType
enum<string>
Opciones disponibles:
Make,
Buy,
Ignore
managesLots
boolean
unitCode
null | string
decimalPlaces
null | integer<int32>
externalReference
null | string

Respuesta

Created

id
string
requerido
externalReference
null | string
requerido
code
string
requerido
name
string
requerido
description
null | string
requerido
status
enum<string>
requerido
Opciones disponibles:
Invalid,
Valid
validationErrors
null | string
requerido
productId
null | string
requerido
imageFileId
null | string
requerido
image
object
requerido
product
object
requerido
deletedAt
null | string<date-time>
requerido
createdAt
string<date-time>
requerido
createdBy
string
requerido
lastModifiedAt
string<date-time>
requerido
lastModifiedBy
string
requerido
unit
object
requerido
displayDecimalPlaces
integer<int32>
requerido