How to create a Product with POST call from postman?

Topic summary

A user is attempting to create a product via Postman POST request but encountering issues. Screenshots were shared showing the request configuration.

Responses provided:

  • GraphQL alternative suggested: Use the GraphQL Admin API’s productCreate mutation instead of REST, with example code provided showing how to structure the mutation with fields like title, vendor, description, status, product type, and metafields.

  • Troubleshooting requests: Multiple users asked for the specific error message/response being returned to diagnose the problem. One noted that tags must be formatted as a comma-separated string.

Current status: The discussion remains open, awaiting the original poster to share the error response for further diagnosis.

Summarized with AI on November 6. AI used: claude-sonnet-4-5-20250929.

I am using Postman for testing to create a Product but it is not working.

You could try using the GraphQL API instead, which has a mutation for productCreate would look something like:

mutation {
  productCreate(input: {
    title: "Sample Product",
    vendor: "SampleVendor",
    descriptionHtml: "**Description**",
    status: DRAFT,
    productType: "DEFAULT_TYPE",
    templateSuffix: "default_template",
    productOptions: [{
      name: "Option",
      position: 1,
      values: [{name: "Value1"}, {name: "Value2"}]
    }],
    metafields: [{
      namespace: "custom",
      key: "pickers",
      value: "{\"colors\":[{\"title\":\"Color A\",\"material_handle\":\"material1\"},{\"title\":\"Color B\",\"material_handle\":\"material2\"}]}",
      type: "json"
    }]
  }) {
    product {
      id
      title
      status
    }
    userErrors {
      field
      message
    }
  }
}

Hi,

what is the response of your request?

What I am seeing from the screenshot: The tags must be a string with comma separated tags.

All the best,

Michael

@queensjewelempo

Has the specific error message been returned? Please send it out and take a look