Passer au contenu principal
POST
Validate Amazon IAP Receipt

Autorisations

X-Authorization
string
header
requis

This API requires a client session ticket, available from any Client Login function.

Corps

application/json
PurchasePrice
number
requis

Amount of the stated currency paid, in centesimal units.

ReceiptId
string
requis

ReceiptId returned by the Amazon App Store in-app purchase API

UserId
string
requis

AmazonId of the user making the purchase as returned by the Amazon App Store in-app purchase API

CatalogVersion
string

Catalog version of the fulfilled items. If null, defaults to the primary catalog.

CurrencyCode
string

Currency used to pay for the purchase (ISO 4217 currency code).

CustomTags
object

The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.).

Réponse

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.

code
integer

The Http status code. If X-ReportErrorAsSuccess header is set to true, this will report the actual http error code.

status
string

The Http status code as a string.

data
object

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.

Exemple:
Dernière modification le 6 octobre 2026