Covering OroCommerce, OroCRM, OroPlatform topics, including community updates and company announcements.

Forums OroCRM OroCRM – Programming Questions Problem creating a contact via API

This topic contains 2 replies, has 2 voices, and was last updated by  Leandro Banchio 1 year, 8 months ago.

  • Creator
  • #25346

    Leandro Banchio


    I’m playing with OroCrm. I am currently trying to create a new contact with the name and email. Unfortunately I was unable to create the correct request.

    This is the body of the request

    Request URL

    Request body

    Error :(

    I tried many things but I can’t find the solution

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
  • #25347

    Vova Soroka

    Hi Leandro,

    Unfortunately “included” section in POST requests is supported only since version 2.0. In previous version you have to use 2 POST requests, one to create a contact email, and another to create a contact.

    Since version 2.0 you can do the same via one POST request using “included” section. But take into account that contact emails are not a relationship. It is an attribute. So, the POST request for v. 2.0 will be:


    Leandro Banchio

    It works. Thanks for the advice!

    I created the entities using two requests.

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

You must be logged in to reply to this topic.

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

Yes No
sso for www.magecore.comsso for oroinc.comsso for oroinc.desso for oroinc.frsso for marketplace.orocommerce.comsso for