Forums

Covering OroCommerce topics, B2B eCommerce trends, community updates and company announcements.

Forums OroCommerce Product API not returning product name & description

This topic contains 3 replies, has 2 voices, and was last updated by Andrey Yatsenko Andrey Yatsenko 3 days ago.

  • Creator
    Topic
  • #32396

    sachingk.30
    Participant

    Hi There,
    I am trying to use API to get a product, insert products in bulk etc.

    Currently, I used the sandbox to test the API.
    To get the product I used the following GET API
    GET /admin/api/products/{id}

    This API worked fine & returned the data. However, it doesn’t return the title, short description, description of the product. Basically, anything that is associated with localization is not being returned. (Sample API Output is below)

    Please help me with this.
    Should I have to pass anything more along with the API call to get the name & short description of the product?

    Sample API Output

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • #32449
    Andrey Yatsenko
    Andrey Yatsenko
    Moderator

    It is strange that in the sample there are no “names”, “descriptions” and “shortDescriptions” relationships.
    Which version of the Oro Commerce do you use?

    please run php app/console oro:api:config:dump products and share the output of this command.

    #32475

    sachingk.30
    Participant

    Hi Andrey,

    We are using OroCommerce 1.1.0

    The output of the command is below

    #32478
    Andrey Yatsenko
    Andrey Yatsenko
    Moderator

    Answered at the related topic https://oroinc.com/orocrm/forums/topic/how-to-get-the-localization-names-in-api-call

    Please move all feature discussions there.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Product API not returning product name & description’ is closed to new replies.

You will be redirected to [title]. Would you like to continue?

Yes No
ssossossosso