Cs Cart Create Order Official Api Response Issues

CS Cart create order official API is correctly working before adding multiple storefronts. Currently we have 2 storefronts, the order create api creating the order properly. But it returns 500 Internal Server Error. Screenshot attached

Hello

Did you try add company_id parametr to call rest api ?

Best regards

Robert

Yes.we are added, getting same response again.

Hello

Please enable dev mod shop.

In postman should show what the error is.

Best regards

Robert

We're already using dev mode.the attached screenshot from dev mode.

We also tried following things:

The "user_id" : "0" (guest mode)

Cross checked user_id,payment_id,shipping_id and products from same company we are ordering.

we getting same response by executing these conditions.but the inetresting fact is successfully placing the orders(Order Insertion,Cart Clearing Works).

we also checked the official api code :

        if ($valid_params) {
            $order_placement_action = $this->safeGet($params, 'action', 'save');
        list($order_id, ) = fn_place_order(
            $cart,
            $customer_auth,
            $order_placement_action,
            empty($this->auth['is_token_auth']) ? $this->auth['user_id'] : null
        );

        if (!empty($order_id)) {
            $status = Response::STATUS_CREATED;
            $data = [
                'order_id'   => $order_id,
                'order_data' => $this->getOrderData($order_id)
            ];
            if (fn_allowed_for('MULTIVENDOR')) {
                $data['suborder_ids'] = array_map('intval', db_get_fields(
                    'SELECT order_id'
                    . ' FROM ?:orders'
                    . ' WHERE parent_order_id = ?i',
                    $order_id
                ));

                $data['suborders_data'] = [];
                foreach ($data['suborder_ids'] as $suborder_id) {
                    $data['suborders_data'][] = $this->getOrderData($suborder_id);
                }
            }
        } else {
            $data['message'] = __('api_order_couldnt_be_created');
        }
    }

    return array(
        'status' => $status,
        'data' => $data
    );
}

I think this API creating the order, but it doesn't getting the order_id. please help us to get proper response from this API.

Hello

Please attach screenshot.

Best regards

Robert

Issue fixed while one of our payment gateway addon disabled.

Thank you for your valuable support :)

Hello

You are welcome :)

Best regards

Robert