Validates with Windows that the receipt for an Windows App Store in-app purchase is valid and that it matches the purchased catalog item

Request Details

Request Properties
CatalogVersion String

Catalog version to use when granting receipt item. If null, defaults to primary catalog.

CurrencyCode (required) String

Currency used for the purchase.

PurchasePrice (required) uint32

Amount of the stated currency paid for the object.

Receipt (required) String

XML Receipt returned by the Windows App Store in-app purchase API

POST https://{{TitleID}}
    Content-Type: application/json
    X-Authentication: <user_session_ticket_value>
  "Receipt": "\r\n    \r\n    \r\n    \r\n        \r\n            \r\n            \r\n            \r\n                \r\n                    \r\n                \r\n                \r\n                cdiU06eD8X/w1aGCHeaGCG9w/kWZ8I099rw4mmPpvdU=\r\n            \r\n        \r\n        SjRIxS/2r2P6ZdgaR9bwUSa6ZItYYFpKLJZrnAa3zkMylbiWjh9oZGGng2p6/gtBHC2dSTZlLbqnysJjl7mQp/A3wKaIkzjyRXv3kxoVaSV0pkqiPt04cIfFTP0JZkE5QD/vYxiWjeyGp1dThEM2RV811sRWvmEs/hHhVxb32e8xCLtpALYx3a9lW51zRJJN0eNdPAvNoiCJlnogAoTToUQLHs72I1dECnSbeNPXiG7klpy5boKKMCZfnVXXkneWvVFtAA1h2sB7ll40LEHO4oYN6VzD+uKd76QOgGmsu9iGVyRvvmMtahvtL1/pxoxsTRedhKq6zrzCfT8qfh3C1w==\r\n    \r\n\r\n"

Response Details

Once verified, the catalog item matching the Product name will be added to the user's inventory.

Result Properties

Sample Response

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
  "code": 200,
  "status": "OK",
  "data": {}



Possible Error Codes

Name Code
InvalidReceipt 1021
InvalidTitleId 1004
MissingAmazonSharedKey 1149
NoMatchingCatalogItemForReceipt 1178
ReceiptAlreadyUsed 1022