Create a product

Create a product.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

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."
        }
    ]
}
Body Params

Product data.

string
required
string
string
string
number
string
string
string
custom_fields
array of objects
custom_fields
Responses

401

Authentication failed.

403

Forbidden.

Language
Credentials
Bearer
JWT
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json