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.
5 Comments »
+0
-0
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.
+1
-0
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.
+0
-0
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.
+0
-0
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…
+0
-0
We are currently accepting volunteers to try our API Beta.
Click the link above to learn more or sign up.