Brand field not filled during product creation through API

ElasticWebElasticWeb Member Posts: 1

Hi all,

Currently using the eCom API to create new products. For this we fire a POST request to the endpoint with the following body:

{
  "product": {
    "title": "Foo",
    "fulltitle": "Foo Bar",
    "description": "Description",
    "data01": "Data 01",
    "data02": "Data 02",
    "data03": "Data 03",
    "content": "Long content part",
    "url": "foo-bar-baz",
    "brand": 4256799,
    "supplier": 1128489
  }
}


The product is created and all fields are filled except the brand field. I double checked it is an existing brand, so this can't be the issue.

When I fire an update (PUT) request afterwards with the same brand ID it eventually gets filled, but I do not want to fire 2 requests with the same data just to get it right.

Strangely for the supplier this issue is not occurring and is linked as expected.

What am I missing here?

1 comment

  • LucienVersendaalLucienVersendaal Moderator, Lightspeed Staff Posts: 883 moderator

    Hi @ElasticWeb,

    Thank you for contacting us.

    I've tried the same payload, with different brandID and supplierID off course and both are added the first time.

    Are you sure the brandID is correct?


Sign In or Register to comment.