Edit in GitHubLog an issue
Thanks to Goivvy LLC for contributing this topic!

Step 2. Create the simple products

We will create four simple products: RAM 12GB, RAM 24GB, Monitor 15" and Monitor 17".

Endpoint:

Copied to your clipboard
POST http://domain.com/rest/default/V1/products

RAM-12GB

Copied to your clipboard
{
"product": {
"sku": "RAM-12GB",
"name": "RAM 12GB",
"attribute_set_id": 4,
"price": 25,
"status": 1,
"visibility": 4,
"type_id": "simple",
"weight": "0.5",
"extension_attributes": {
"category_links": [
{
"position": 0,
"category_id": "32"
}
],
"stock_item": {
"qty": "10",
"is_in_stock": true
}
},
"custom_attributes": [
{
"attribute_code": "description",
"value": "RAM 12GB Unit"
},
{
"attribute_code": "tax_class_id",
"value": "2"
}
]
}
}

RAM-24GB

Copied to your clipboard
{
"product": {
"sku": "RAM-24GB",
"name": "RAM 24GB",
"attribute_set_id": 4,
"price": 50,
"status": 1,
"visibility": 4,
"type_id": "simple",
"weight": "0.5",
"extension_attributes": {
"category_links": [
{
"position": 0,
"category_id": "32"
}
],
"stock_item": {
"qty": "10",
"is_in_stock": true
}
},
"custom_attributes": [
{
"attribute_code": "description",
"value": "RAM 24GB Unit"
},
{
"attribute_code": "tax_class_id",
"value": "2"
}
]
}
}

Monitor-15"

Copied to your clipboard
{
"product": {
"sku": "Monitor-15",
"name": "Monitor 15\"",
"attribute_set_id": 4,
"price": 100,
"status": 1,
"visibility": 4,
"type_id": "simple",
"weight": "0.5",
"extension_attributes": {
"category_links": [
{
"position": 0,
"category_id": "32"
}
],
"stock_item": {
"qty": "10",
"is_in_stock": true
}
},
"custom_attributes": [
{
"attribute_code": "description",
"value": "Monitor 15\""
},
{
"attribute_code": "tax_class_id",
"value": "2"
}
]
}
}

Monitor-17"

Copied to your clipboard
{
"product": {
"sku": "Monitor-17",
"name": "Monitor 17\"",
"attribute_set_id": 4,
"price": 150,
"status": 1,
"visibility": 4,
"type_id": "simple",
"weight": "0.5",
"extension_attributes": {
"category_links": [
{
"position": 0,
"category_id": "32"
}
],
"stock_item": {
"qty": "10",
"is_in_stock": true
}
},
"custom_attributes": [
{
"attribute_code": "description",
"value": "Monitor 17\""
},
{
"attribute_code": "tax_class_id",
"value": "2"
}
]
}
}

Verify this step

Log in to the Adobe Commerce Admin Panel and select Catalog > Products and confirm that your products appear in the grid.

Simple products

  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.