Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

RESTAPI Question to Retrieve Order Details

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #11  
Old 06-03-2015, 04:15 AM
 
BenJamir BenJamir is offline
 

Newbie
  
Join Date: May 2015
Posts: 10
 

Default Re: RESTAPI Question to Retrieve Order Details

Tony,

That did the trick! That gives me exactly what I needed.

One last question so I can be self sufficient in the future. I have read all the API documentation, forums, google, etc. and can't seem to find a list of all the _path parameters.

I have read the section on "How exactly I can pull/change different entities" and it references the classes like Xlite\Model\Order being described somewhere.

How can I get access to this information? I currently don't have access to the X-cart folders on the webserver and have only been given API access to the store.

Thanks again Tony, I really appreciate the help.
__________________
Ben
Reply With Quote
  #12  
Old 06-03-2015, 05:08 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default Re: RESTAPI Question to Retrieve Order Details

Quote:
Originally Posted by BenJamir
Tony,

That did the trick! That gives me exactly what I needed.

One last question so I can be self sufficient in the future. I have read all the API documentation, forums, google, etc. and can't seem to find a list of all the _path parameters.

I have read the section on "How exactly I can pull/change different entities" and it references the classes like Xlite\Model\Order being described somewhere.

How can I get access to this information? I currently don't have access to the X-cart folders on the webserver and have only been given API access to the store.

Thanks again Tony, I really appreciate the help.

You are always welcome.

All available paths are basically all available model classes existing in X-Cart.
There is a section about it in REST API guide:
http://kb.x-cart.com/display/XDD/REST+API+documentation#RESTAPIdocumentation-HowexactlyIcanpull/changedifferententities

Please have a look at it and if there are still questions after reading, please let me know.

Tony
__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
Reply With Quote
  #13  
Old 05-15-2017, 12:00 AM
 
Ashish Ashish is offline
 

Newbie
  
Join Date: Apr 2017
Posts: 6
 

Default Re: RESTAPI Question to Retrieve Customer Address

Hello,

We want to retrieve customer/use address details from single User module and also from order related customers...

Using customer id.. says id=88;

We are trying to get hid address details. using follow request.
$addressDetails = $customerDetails['addresses'];

We are getting the array called is_billing=1 and is_shipping=1
Form that id we are trying to fetch the bolling address and shipping address of particular customer...
E.g address_id is 345;


billingaddressID=$addressDetails[$j]['address_id'];

When we ftech the records all the indexes are different for every customer.

How can we get correct information like first name,last name. street,city,country from that index.??
[addressFields] => Array ( [0] => Array ( [id] => 989 [value] => TG ) [1] => Array ( [id] => 990 [value] => ashish ) [2] => Array ( [id] => 991 [value] => user ) [3] => Array ( [id] => 992 [value] => 101 S Main St ) [4] => Array ( [id] => 993 [value] => Los Angeles ) [5] => Array ( [id] => 994 [value] => 562 ) [6] => Array ( [id] => 995 [value] => California ) [7] => Array ( [id] => 996 [value] => 90012-3701 ) [8] => Array ( [id] => 997 [value] => ) )
Above Index changes its value for every customer. How can we fix this issue?
__________________
ashish

Xcart version :-X-Cart
Business 5.3.2.8
Reply With Quote
  #14  
Old 05-16-2017, 11:45 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: RESTAPI Question to Retrieve Order Details

Try to retrieve profiles by the e-mail address as follows (this is an URL, but you can do the same from your scripts):
admin.php?target=RESTAPI&_key=YOUR_KEY&_path=profi le&_cnd[login]=USER_EMAIL&_schema=complex
Attached Thumbnails
Click image for larger version

Name:	restapi.png
Views:	163
Size:	202.4 KB
ID:	4926  
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
  #15  
Old 05-17-2017, 11:55 PM
 
Ashish Ashish is offline
 

Newbie
  
Join Date: Apr 2017
Posts: 6
 

Default Retriving the Updated Products

Hello,

I want to retrieve all the details of prducts which are updated in last 24 hours using API.
When i update any product all products date get updated. So it fetches all the products again.

But I want to retrieve only the products which dates has -1 day from current date.

So how can I get only updated / created products of -1 day.
__________________
ashish

Xcart version :-X-Cart
Business 5.3.2.8
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 10:59 PM.

   

 
X-Cart forums © 2001-2020