You need to login in order to make a new post. If you do not have a community account, you can get one here.

RESTful API

Ability to get information about sales in xml with RESTful access protocol would be great.

I.e. GET via HTTPS:

GET /va/sales/detail?sale_id=1234567890
Host: www.2checkout.com
Accept: application/xml
Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==

would return something like

{sale}
{id}1234567890{/id}
{amount currency=”USD”}123.00{/amount}
{method channel=”CC”}
{type}Visa{/type}
{card}123456…90{/card}
{avs}XX{/avs}
{cvv}P{/cvv}
{/method}
{customer}
{id}9876543210{/id}
{name}John Doe{/name}
{address}
{street}1600 Amphitheatre Parkway{/street}
{city}Mountain View{/city}
{state}CA{/state}
{zip}94043{/zip}
{country}USA{/country}
{/address}
{phone}+1(555)12-3456{phone}
{email}jdoe@example.com{/email}

{/sale}

Note: angle brackets should be above in example…

Request is not limited to sales only, products, payments, etc. would be great as well, but sales are first priority.

RSS feed

5 Comments »

# Comment by cliff 2CO Staff
2008-04-14 12:39:52

Thank you for the suggestion. I’ll pass it to our developers for their consideration.

I also believe the new Instant Notification System may address some of your needs.

 
 
# Comment by myroslav
2008-04-15 01:42:21

INS solves completely different issue. INS is call to action when the event happen.

We’d like to be able to query 2CO database with RESTful API and in our CRM for our customers display all sales that are associated with particular order. ability to reliably parse the response would be great. Ability to post comments to sales via REST API would be great.

I’m sure there are more use-cases that other community members can share with you upon RFC.

 
# Comment by cliff 2CO Staff
2008-04-15 13:50:31

I looked into this further. This, or something very similar, may be offered in the future. It’s currently being discussed, but it’s too early in the process for me to provide any concrete information. Thanks for the suggestion.

 
 
 
# Comment by cmawhorter
2008-04-23 00:18:11

I just wanted to add my $0.02. I would like to see this also. However, I would like a simple json alternative to xml. I hate parsing xml…

 
 
# Comment by craig 2CO Staff
2009-11-09 16:27:34

We are currently accepting volunteers to try our API Beta.

Click the link above to learn more or sign up.

 
 
You need to login before leaving a comment If you do not have an account, you can register one here.

Recent Activity:

Welcome to 2Checkout!

2Checkout is a full-service e-commerce solution recognized by Inc. Magazine as one of the fastest growing companies in the United States. 2CO’s proprietary technology supports back-office functions including financial reporting, tracking, fraud prevention, affiliate tracking, customer service and sales tracking. Click here to learn more.

Spotlight Supplier

Spotlight Supplier

Feng Shui Products


Popular Tags