Create a product
Create a product.
Authorizations:Token, JWT
Request Body Schema:
The new Product resource | og_meta_tags_type | stringDefault: "A"Enum: "A""C"Example: "A" |
| og_meta_tags | string |
| market_price | number |
| participate_sale | boolean |
| discount_type | stringDefault: "sale_percent"Enum: "sale_price""sale_percent"Example: "sale_percent" |
| sale_price_value | number |
| apply_sale_to_wholesale | boolean |
| available_for_backorder | booleanDefault: trueExample: true |
| backorder_limit | integerExample: "0" |
| cost_price | numberExample: "5.75" |
| fitment_type | stringDefault: "regular"Enum: "regular""specific""universal"Example: "regular" |
| fitments | Array of strings |
| stickers | Array of integers |
| facebook_marketing_enabled | booleanDefault: trueExample: true |
| google_feed_enabled | booleanDefault: trueExample: true |
| tags | Array of strings |
| variation_bases | Array of strings |
| upc_isbn | string or null[0 .. 32] characters |
| mnf_number | string[0 .. 64] characters |
| sku | string[1 .. 32] charactersExample: "0001" |
| name | string[1 .. 255] charactersExample: "Product name" |
| description | stringExample: "Full description" |
| brief_description | stringExample: "Description" |
| meta_tags | string |
| meta_description_type | stringDefault: "A"Enum: "A""C"Example: "A" |
| meta_description | string |
| meta_title | string |
| price | numberExample: "9.99" |
| enabled | booleanDefault: trueExample: true |
| weight | numberExample: "1.5" |
| separate_box | boolean |
| width | numberExample: "1.5" |
| length | numberExample: "1.5" |
| height | numberExample: "1.5" |
| free_shipping | boolean |
| taxable | booleanDefault: trueExample: true |
| arrival_date | string or nullExample: "2021-10-22T00:00:00+00:00" |
| inventory_traceable | booleanDefault: trueExample: true |
| amount | integer>= 0Default: 1000Example: "1000" |
| product_class | string or nullExample: "Fashion" |
| tax_class | string or nullExample: "VAT" |
| memberships | Array of strings |
| clean_url | string |
Responses
201Product resource created
Response schema:
Product resource created | og_meta_tags | string | ||||||||||||
| market_price | number | ||||||||||||
| participate_sale | boolean | ||||||||||||
| discount_type | stringDefault: "sale_percent"Enum: "sale_price""sale_percent"Example: "sale_percent" | ||||||||||||
| sale_price_value | number | ||||||||||||
| apply_sale_to_wholesale | boolean | ||||||||||||
| available_for_backorder | boolean | ||||||||||||
| backorder_limit | integer | ||||||||||||
| cost_price | number | ||||||||||||
| fitment_type | stringDefault: "regular"Enum: "regular""specific""universal"Example: "regular" | ||||||||||||
| fitments | Array of strings | ||||||||||||
| stickers | Array of integers | ||||||||||||
| facebook_marketing_enabled | boolean | ||||||||||||
| google_feed_enabled | boolean | ||||||||||||
| tags | Array of objects | ||||||||||||
Array
| |||||||||||||
| variation_bases | Array of objects | ||||||||||||
Array
| |||||||||||||
| upc_isbn | string or null | ||||||||||||
| mnf_number | string | ||||||||||||
| id | integer | ||||||||||||
| sku | string | ||||||||||||
| name | string | ||||||||||||
| description | string | ||||||||||||
| brief_description | string | ||||||||||||
| meta_tags | string | ||||||||||||
| meta_description | string | ||||||||||||
| meta_title | string | ||||||||||||
| price | number | ||||||||||||
| enabled | boolean | ||||||||||||
| weight | number | ||||||||||||
| separate_box | boolean | ||||||||||||
| width | number | ||||||||||||
| length | number | ||||||||||||
| height | number | ||||||||||||
| free_shipping | boolean | ||||||||||||
| taxable | boolean | ||||||||||||
| create_date | string | ||||||||||||
| update_date | string | ||||||||||||
| arrival_date | string | ||||||||||||
| inventory_traceable | boolean | ||||||||||||
| amount | integer | ||||||||||||
| product_class | object or null | ||||||||||||
| |||||||||||||
| tax_class | object or null | ||||||||||||
| |||||||||||||
| memberships | Array of objects | ||||||||||||
Array
| |||||||||||||
| clean_url | string | ||||||||||||
| images | Array of objects | ||||||||||||
Array
| |||||||||||||
400Invalid input
401Unauthorized
Response schema:
Unauthorized | type | string |
| title | string |
| detail | string or null |
| instance | string or null |
422Unprocessable entity
500Internal error
Response schema:
Internal error | type | string |
| title | string |
| detail | string or null |
| instance | string or null |