RVS Cloud Sandbox example
The following request verifies a receipt in the RVS Cloud Sandbox:Consumable example
The following request is to verify the purchase of a consumable receipt on the RVS production server:purchaseDate and cancelDate are represented as time in milliseconds. You can call java.util.Date(timeInMillis) to convert the values into a date object. A cancelDate of null indicates that the purchase has not been canceled. If the receipt is for a canceled purchase the cancelDate would reflect the date the purchase was canceled by Amazon customer support.
Subscription example
The following request is to verify the purchase of a subscription receipt on the RVS production server:purchaseDate and cancelDate are represented as time in milliseconds. You can call java.util.Date(timeInMillis) to convert the values into a date object. A cancelDate of null indicates that the subscription for this receipt is still active. If the receipt is for an expired subscription the cancelDate would reflect the date the subscription expired, or the date it was canceled by Amazon customer support. The cancelReason indicates why the subscription was canceled (possible values are null, 0, 1, or 2, where each integer represents a cancellation reason). A gracePeriodEndDate of null indicates that the subscription for this receipt is not in a grace period. If the receipt is for a subscription in grace period, the gracePeriodEndDate reflects the date the subscription grace period ends.
Promotional pricing example
The following is a response from theverifyReceiptId API when the subscription was purchased with promotional pricing:
Entitlement example
The following request is to verify the purchase of an entitlement receipt on the RVS production server:purchaseDate and cancelDate are represented as time in milliseconds. You can call java.util.Date(timeInMillis) to convert the values into a date object. A cancelDate of null indicates that the purchase has not been canceled. If the receipt is for a canceled purchase the cancelDate would reflect the date the purchase was canceled by Amazon customer support.
