post https://api.splio.com/data/v1/products
Create a product.
Error cases
Malformatted value (400)
Generic error for all fields and custom fields values types
{
"status": 400,
"errors": [
{
"error_key": "price",
"error": "wrong_type",
"error_description": "This value should be of type numeric."
}
]
}
{
"status": 400,
"errors": [
{
"error_key": "custom_fields[0].value",
"error": "wrong_type",
"error_description": "This value should be of type string."
}
]
}
Product external_id already exist (400)
{
"status": 400,
"errors": [
{
"error_key": "external_id",
"error": "already_exists",
"error_description": "Another product already exists with external_id test."
}
]
}
Custom field does not exist (400)
{
"status": 400,
"errors": [
{
"error_key": "custom_fields",
"error": "wrong_value",
"error_description": "Custom field not found for id 99."
}
]
}