OroCRM Forums

Covering OroCRM topics, including community updates and company announcements.

Forums Forums OroCRM OroCRM – Installation/Technical Issues or Problems API Request on GET /api/opportunities/{id}/customer fails with B2b Customers

This topic contains 3 replies, has 2 voices, and was last updated by  Martin 6 years, 9 months ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
    Topic
  • #27704

    Martin
    Participant

    Hi,

    i’ve maybe found a bug in the oro api.

    Initial situation:
    Open Opportunity with assigned Account and B2B-Customer. For the Sales System, we need the current B2B Customer ID, so we can query the api for ship and bill address. System: Oro 2.0.0 on Ubuntu Linux.

    When:
    Trying to query the api for the b2b customer id, assigned within the opportunity.

    What Happens:
    Error 500 in Sandbox mode (Valid Opportunity Id provided)

    Expected Behaviour:
    Json Response, containing b2b customer id.

    Nevertheless, a possible workaround is to submit a get request against /api/opportunities, setting a filter on the opportunity.

    Logs:

    — oroprod.log —

    –api result —
    Response Header

    Response Body

    Kindly Regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • #27705

    akhristiansen
    Participant

    Hello, @Martin! Please, provide information about which PHP version and database system (e.g. mysql \ postgres\mongo) you are using, it will help us to reproduce this possible bug.

    #27706

    Martin
    Participant

    Sure,
    DB:
    10.0.29-MariaDB-0ubuntu0.16.04.1

    PHP:
    PHP 7.0.15-0ubuntu0.16.04.4 (cli) ( NTS )
    Copyright (c) 1997-2017 The PHP Group
    Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
    with Zend OPcache v7.0.15-0ubuntu0.16.04.4, Copyright (c) 1999-2017, by Zend Technologies

    Hop this helps!

    Regards

    #27707

    Martin
    Participant

    We upgraded to 2.2.0 yesterday, now the API Enpoint returns a valid response.

    I’ll mark this closed now.

    Regards

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

The forum ‘OroCRM – Installation/Technical Issues or Problems’ is closed to new topics and replies.

Back to top