跳轉到主要內容
POST
Validate Amazon IAP Receipt

授權

X-Authorization
string
header
必填

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

主體

application/json
PurchasePrice
number
必填

Amount of the stated currency paid, in centesimal units.

ReceiptId
string
必填

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

UserId
string
必填

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.).

回應

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.

範例:
最後修改於 2026年10月6日