# It there any workaround to get ecom-\* fields by SDK?

**URL:** <https://developer.squareup.com/forums/t/it-there-any-workaround-to-get-ecom-fields-by-sdk/2854>\
**Category:** Questions\
**Tags:** catalog-api\
**Created:** [June 21, 2021, 8:03am UTC](https://developer.squareup.com/forums/t/it-there-any-workaround-to-get-ecom-fields-by-sdk/2854 "2021-06-21T08:03:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hasegawat](https://avatars.discourse-cdn.com/v4/letter/h/65b543/32.png) [@hasegawat](https://developer.squareup.com/forums/u/hasegawat)\
**Post date:** [June 21, 2021, 8:03am UTC](https://developer.squareup.com/forums/t/it-there-any-workaround-to-get-ecom-fields-by-sdk/2854/1 "2021-06-21T08:03:45Z")

</div>

Currently I am creating a custom web-site and  
I need ecom-image-uris to show images saved in Square Online Business.

But as written in below url, I learned those ecom attributes are not guaranteed.

> [@PHP eCom JSON output](https://developer.squareup.com/forums/t/php-ecom-json-output/2480):
>
> I am trying to create a PHP web app that will read my catalog, but it seems to be missing some data points. When I use the API Explorer to query the catalog, the JSON returned includes a few “ecom\_\*” elements in the CatalogObject::itemData property. When I try to output that using print json\_encode($api\_response-\>getResult()); it doesn’t include those json elements. And I can’t tell from the square/src directory where those might be coming from. This is my require from the composer.json "squ…

So, my question is…  
Will the ecom attributes be able to fetch using SDK in future?  
Or is there any ways to get the ecom-image-uris from somewhere else?

This is just some complaint but why does API explorer returns  
those ecom attributes even though it does not work in actual SDK.  
Would be more friendly and caused no trouble if it did not show from the first place.

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [June 21, 2021, 4:55pm UTC](https://developer.squareup.com/forums/t/it-there-any-workaround-to-get-ecom-fields-by-sdk/2854/2 "2021-06-21T16:55:42Z")

</div>

Unfortunately, at this time since the ecom attributes aren’t documented they currently available in the SDK.
