magento 1.7 - API - determine if detail is simple, bundle, or component of bundle (Part II)

follow up to magento order API determine if product belongs to a bundle

I am extracting new orders in Magento using API. I would like to know how I can tell if this is a simple product, bundle or component of a bundle.

To get details I use soapObject method for ''

$details = $this->soapObject->call($this->sessionId, '', $orderId); 

Previous answer suggested that I use soapObject method for 'catalog_product' to determine if simple product or bundle... This is good start!

However how can I tell if I am looking at a simple product as a detail or a simple product as a component of a bundled product. Without a hint such as line number or sequence number I am not sure how to make distinction....

when I dump details, it looks like this:

array(15) {
  string(3) "232"
  string(6) "1.0000"
  string(12) "BD22"
  string(28) "BUNDLED_PRODUCT22"
  string(6) "2.0000"
  string(6) "0.0000"
  string(6) "0.0000"
  string(6) "0.0000"
  string(6) "0.0000"
  string(6) "0.0000"
  string(6) "0.0000"
  string(6) "0.0000"
  string(6) "0.0000"
  string(6) "0.0000"
  string(6) "0.0000"


You can retrieve the product type if you do another SOAP API call to

$result = $client->call($session, '', '4');

with '4' meaning product ID or SKU.

Please see the documentation for more details:

Tags: Magento 1.x / Catalog / API

Similar questions

Query to get all simple products which are not part of a complex product
Exactly as the title suggests, how can i find all simple products in the system that are not part of complex products such as configurable? I dont mind if this is done directly in the db or through some collection load but i need only the list of product ids that fit this criteria.
Why attributes of bundle items of a bundle product are also saved to the bundle product itself? (database-wise)
Recently I was studying how the options of the layered navigation filter on the category page are determined and retrieved. I have dug a bit into the models and database for it, and there I found the following mechanism which I do not understand: Situation: Say, I have an attribute named color (attribute_id = 133), a simple product A (entity_id = 2...
Why are product_id and item_id part of the request to update stock through the API?
I'm developing an application to integrate with the Magento inventory API, and I'm confused about the fields product_id and item_id. I'm PUT-ing to the API /V1/products/{productSku}/stockItems/{itemId} The body of the request looks like However, I can leave off the product_id and/or the item_id, and the request still seems to work correctly, and up...
magento 2 Rest api to add simple and bundle products
I am using rest API to add simple and bundle product Please see the below code Result : "{"message":"Unable to save product"}" Please help me..
Magento 2 product detail page detail tab vertical
I want to make product detail tab vertical instead of horizontal.
Magento 2 Add custom block to Product Detail Page, between product gallery and detail tab
I want to add a custom block to show some text between the product gallery and the description. What is the best practice to do this, do I need to create my own module? and how do I override the layout XML file? The marked yellow area is where I want my own text to be displayed.

Also ask

We use cookies to deliver the best possible experience on our website. By continuing to use this site, accepting or closing this box, you consent to our use of cookies. To learn more, visit our privacy policy.