SuGet Server

<back to all web services

PurchaseRequest

To override the Content-type in your clients HTTP Accept Header, append ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /json/reply/PurchaseRequest HTTP/1.1 
Host: www.sourcetech.se 
Content-Type: application/json
Content-Length: length

{"CustomerIdentifier":"String","Headers":{}}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Request":{"CustomerIdentifier":"String","Headers":{}},"Success":false,"PurchaseInfo":{"PackageName":"String","Purchased":false,"TimePurchased":"\/Date(-62135596800000+0100)\/","TimeDownloaded":"\/Date(-62135596800000+0100)\/"}}