API
Version 7.x > API > REST API - AddressInfo Object View modes: 
User avatar
Certified Developer v7
Certified  Developer v7
Joe - 9/14/2013 6:05:40 PM
   
REST API - AddressInfo Object
Hi,

How do I pull an order's billing address (AddressInfo object) using the REST API? I do not see the address info object anywhere:

http://www.jmawebtechnologies.com/rest

I can pull the ecommerce.order/1 and I see this:

<OrderBillingAddressID>1</OrderBillingAddressID>
<OrderShippingAddressID>1</OrderShippingAddressID>



How do I pull orders with a date range, using the REST API? This fails to work:

http://www.jmawebtechnologies.com/rest/ecommerce.order/all?where=OrderDate<9/14/2013

User avatar
Kentico Support
Kentico Support
kentico_janh - 9/15/2013 4:42:44 AM
   
RE:REST API - AddressInfo Object
Hello,

You can retrieve appropriate addres by using that address ID for follwoing request:

/rest/ecommerce.address/<addressID>
e.g.: /rest/ecommerce.address/1


For getting orders to some date, please use following date format instead:

/rest/ecommerce.order/all?where=OrderDate<'2013-09-14'


Best regards,
Jan Hermann