View Single Post
  #1  
Old 10-01-2015, 06:33 AM
 
cjipaygo cjipaygo is offline
 

Newbie
  
Join Date: Apr 2009
Posts: 7
 

Default Pulling a specific order by orderNumber via the REST API

Is it possible to pull / get a specific Order from the orders table using the orderNumber field instead of the order_id field?

I've tried:

https://mysite.com/xcart-5/xcart/admin.php?target=RESTAPI&_key=my-5-xcart-api&_path=order/0&_method=get&_schema=complex&model[orderNumber]=1

But it doesn't work.

If I do this, it will of course get the data I specify. But I need to use the orderNumber.

https://mysite.com/xcart-5/xcart/admin.php?target=RESTAPI&_key=my-5-xcart-api&_path=order/1&_method=get&_schema=complex

Thanks,

Chris
Reply With Quote