request:
- Content-Type = "application/json"
- Encoding : UTF-8
{
"token": "[ACCOUNT-TOKEN]",
"store_id": [STORE-ID],
"sku": "TEST_SKU_1111",
"is_restore_deleted_items": false,
"is_override_existing_product": true,
"is_force_delete_existing_attributes": false,
"title":"My API product",
"main_category_name":"shirts",
"short_description":"summer shirt",
"long_description":"summer shirt",
"qty": 100,
"is_visible": true,
"attributes": [
{
"name": "colors",
"friendly_name": "choose your color",
"internal_identifier": "Color.TEST_SKU_1111",
"attribute_type": 2,
"is_required": true,
"options": [
{
"name": "Red",
"sku": "RED1",
"qty": 10,
"external_price": 0,
"cost_price": 0
}
]
},
{
"name": "sizes",
"friendly_name": "choose your size",
"internal_identifier": "Size.TEST_SKU_1111",
"attribute_type": 2,
"is_required": true,
"options": [
{
"name": "XL",
"sku": "XL1",
"qty": 10
}
]
}
],
"attributes_matrix": {
"attribute_a_internal_identifier": "Color.TEST_SKU_1111",
"attribute_b_internal_identifier": "Size.TEST_SKU_1111",
"matrix_options": [
{
"to_option_a_text": "Red",
"to_option_b_text": "XL",
"qty": 5,
"sku_for_matrix": "MATRIX-SKU1111"
}
]
}
}