younifyd
Menu

Create products/cost

Create products/cost

POST/V1/products/cost

Use it in a workflow

  1. Add a step and choose the Adobe Commerce connector.
  2. Pick the Create products/cost action (under Products).
  3. Fill in the fields below, then reference the result from later steps as {{createProductsCost.response.data}}.

Request

Request body

Enter the body as JSON in the step's Body field.

pricesarray<object>required
costnumberrequired

Cost value.

store_idintegerrequired

Store id.

skustringrequired

SKU.

extension_attributesobject

ExtensionInterface class for @see \Magento\Catalog\Api\Data\CostInterface

json
{
  "prices": [
    {
      "cost": 0,
      "store_id": 0,
      "sku": "string",
      "extension_attributes": {}
    }
  ]
}

Response

Returns 200 with a array<object>. Read it in later steps with {{createProductsCost.response.data.<field>}}.

Need more? See the Adobe Commerce guide for connection setup and behaviour shared by every action.