Validate Amazon IAP Receipt
NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for version 2. Validates with Amazon that the receipt for an Amazon App Store in-app purchase is valid and that it matches the purchased catalog item
Error codes
This operation may return the following PlayFab errors:
| Error | Code |
|---|---|
| AmazonValidationError | 1150 |
| InvalidReceipt | 1021 |
| MissingAmazonSharedKey | 1149 |
| NoMatchingCatalogItemForReceipt | 1178 |
| ProductDisabledForTitle | 1609 |
| ReceiptAlreadyUsed | 1022 |
Authorizations
This API requires a client session ticket, available from any Client Login function.
Body
Amount of the stated currency paid, in centesimal units.
ReceiptId returned by the Amazon App Store in-app purchase API
AmazonId of the user making the purchase as returned by the Amazon App Store in-app purchase API
Catalog version of the fulfilled items. If null, defaults to the primary catalog.
Currency used to pay for the purchase (ISO 4217 currency code).
The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.).
Response
Once verified, the catalog item matching the Amazon item name will be added to the user's inventory. This result should be used for immediate updates to the local client game state as opposed to the GetUserInventory API which can have an up to half second delay.
The Http status code. If X-ReportErrorAsSuccess header is set to true, this will report the actual http error code.
The Http status code as a string.
Once verified, the catalog item matching the Amazon item name will be added to the user's inventory. This result should be used for immediate updates to the local client game state as opposed to the GetUserInventory API which can have an up to half second delay.
