post https://api.splio.com/data/v1/stores
Create a store.
Error cases
Malformatted value (400)
Generic error for all fields and custom fields values types
{
"status": 400,
"errors": [
{
"error_key": "online",
"error": "wrong_type",
"error_description": "This value should be of type bool."
},
{
"error_key": "custom_fields[0].value",
"error": "wrong_type",
"error_description": "This value should be of type string."
}
]
}
Store external_id already exist (400)
{
"status": 400,
"errors": [
{
"error_key": "external_id",
"error": "already_exists",
"error_description": "Another store has 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."
}
]
}