iap/v6/receipt enables your server and client app to verify that a specified in-app item purchase and payment transaction was successfully completed.
The API returns a JSON object with a successful status and details about a successful transaction
and the item or with a failure status.
This API can help to prevent malicious purchases and ensure that purchase and payment transactions were successful when the client app experiences network interruptions after an item purchase and payment transaction.
Request
GET
https://iap.samsungapps.com/iap/v6/receipt?purchaseID={purchaseID value}
Query Parameters
Parameter
Type
Description
purchaseID
String
(Required) Unique identifier of the in-app item purchase transaction
Note: The purchase ID is assigned by Samsung IAP. Your app receives it in the PurchaseVo object of the OnPaymentListener interface. Your app must send the ID to your server independently of Samsung IAP.
Example
GET
http://iap.samsungapps.com/iap/v6/receipt?purchaseID=7efef23271b0a48746a9d7c391e367c7a802980d391d7f9b75010e8138c66c36
Response
NoteResponse parameters may be added, changed, and deleted.
Parameters
Parameter
Type
Description
itemId
String
Unique identifier of the in-app item registered in Seller Portal
paymentId
String
Unique identifier assigned to the in-app item payment transaction when it was successful
orderId
String
Unique identifier assigned to the purchase receipt
packageName
String
Package name of the app with a completed transaction
itemName
String
Title of the in-app item registered in Seller Portal
itemDesc
String
Brief explanation of the in-app item registered in Seller Portal
purchaseDate
String
Date and time of the item purchase and payment transaction (YYYY-MM-DD HH:mm:ss GMT)
paymentAmount
String
Total amount, including the in-app item price and all applicable taxes, billed to the user
status
String
Processing result of the request for the receipt: "success" Success "fail" Failed "cancel" The purchase transaction was canceled
Note: For canceled transactions, the old iap/getPurchaseReceipt only passed "fail", but the iap/v6/receipt passes "cancel" and transaction information together.
paymentMethod
String
Type of payment option used to purchase the item "Credit Card", "Mobile Micro Purchase", "Prepaid Card", "PSMS", "Carrier Billing" and others.
mode
String
IAP operating mode in effect at the time of purchase: "TEST" Developer Test Mode which always returns Success or Fail result "PRODUCTION" Production Mode
consumeYN
String
For consumable in-app items only, whether or not the item has been reported as consumed and is available for purchase again: "Y" Consumed "N" Not Consumed
comsumeDate
String
Date and time the consumable item was reported as consumed (YYYY-MM-DD HH:mm:ss GMT)
consumeDeviceModel
String
Model name of device that reported the item as consumed
passThroughParam
String
Transaction ID created by your app for security Returned only if the pass-through parameter was set.
Note: The old iap/getPurchaseReceipt passed the base64 encoded value, but the iap/v6/receipt passes the value as it is set in the game.
currencyCode
String
Currency code (3 characters) of the purchaser's local currency. (for example, EUR, GBP, USD)
currencyUnit
String
Symbol of the purchaser's local currency (for example, €, £, or $)
cancelDate
String
For canceled transaction only, Date and time the purchase transaction was canceled (YYYY-MM-DD HH:mm:ss GMT)
This SOAP API will be deprecated at the end of 2024createServiceToken, along with getSubscriptionStatus, will be deprecated at the end of 2024. Use the IAP Subscription API, check status of subscription, instead.
createServiceToken generates and returns access token value that your server must use to authenticate getSubscriptionStatus SOAP requests. Each token is valid for 30 days.
NoteIf a token expires during the processing of a SOAP API request, your server must get a new token and resubmit the SOAP API reqeust.
Request
POST
https://iap.samsungapps.com/iap/ws/RTCService?wsdl
(Required) Unique ID (up to 12 numerical digits) assigned by Samsung to each seller Your secret is your Seller DeepLink in Seller Portal (go to your Profile page and scroll to the Information for Seller Page table)
This SOAP API will be deprecated at the end of 2024Use the IAP Subscription API, check status of subscription, instead.
Gets the subscription status, including item information and purchase information, which can be used to verify the purchase of an item.
This call requires the purchase ID of the subscription item and a service token for authentication and checks the user’s subscription information on the server.
Information is returned in a REST response. This API only provides meaningful information after a subscription is purchased.
Subscription-related content includes the purchase date, current subscription status, current price, current subscription pricing option, number of renewals, paid subscription start date, subscription end date, and reason for cancellation.
Before you can start using the IAP Subscription API, you must meet all requirements and use the required authorization header parameters in your requests. See Get Started with the IAP APIs for more information.
WarningThis version of the API, which returns information in a SOAP response, will be deprecated by the end of 2024. Use the latest API, shown above, which returns information in a REST response.
Check subscription status
getSubscriptionStatus gets subscription status, item information, and purchase information of a specified Auto Recurring Subscription (ARS) item that was purchased previously.
Request
POST
https://iap.samsungapps.com/iap/ws/RTCService?wsdl
Date and time of the item's initial purchase and payment transaction (YYYY-MM-DD HH:mm:ss GMT)
subscriptionEndDate
String
Date and time of the subscription expiration (YYYY-MM-DD HH:mm:ss GMT)
subscriptionType
String
Type of subscription item Below value is always returned: Item_Type_Auto_Recurring_Subscription
subscriptionStatus
String
Current status of the item subscription "ACTIVE" The subscription is current and in effect. "CANCEL" The user canceled the subscription. Check the subscriptionEndDate to see if the subscription period has ended (as the canceled item is still valid until the current suscription period has ended).
subscriptionFirstPurchaseID
String
Unique identifier of the initial purchase of the item
countryCode
String
Country code (3 alphabetic characters) of the purchaser's location (for example, KOR, USA)
localCurrencyCode
String
Currency code (3 alphabetic characters) of the purchaser's local currency paid for the item (for example, EUR, GBP, USD)
localPrice
double
Cost (in the user's local currency) that the user paid the in-app item price
supplyPrice
double
Total amount of the item price plus the applied tax
itemID
String
Unique identifier of the in-app item registered in Seller Portal
freeTrial
String
Whether or not the in-app item's subscription is currently in a free trial period: "Y" Free trial period "N" Regular price period
realMode
String
For regular purchases, whether the actual payment was made when the user purchased the item. "Y" Samsung IAP was set to production mode. The actual payment was made. "N" Samsung IAP was set to Test Mode. The actual payment was NOT made.
latestOrderId
String
Identifier (19 alphanumeric characters) of the most recent payment. it can be an initial payment or a renewal payment. Order IDs are displayed in the user's renewal receipt.
totalNumberOfTieredPayment
String
Total number of tiered price payments
currentPaymentPlan
String
Current period the subscription is in: - "F" : Free trial period - "R" : Regular price period - "T" : Tiered (lower) price period
totalNumberOfRenewalPayment
String
Total number of payments made for initial and renewal subscriptions
subscriptionFirstPaymentDate
String
Date and time the initial subscription started (YYYY-MM-DD HH:mm:ss GMT)
cancelSubscriptionDate
String
Date and time the subscription was stopped (YYYY-MM-DD HH:mm:ss GMT)
cancelSubscriptionReason
String
Cause of the subscription stoppage: "1" User canceled the subscripton. "2" System canceled the subscription (for example, renewal test was finished). "3" Billing error (for example, user payment information was no longer valid). "4" Item is not available for purchase at the time of renewal. "5" Unknown errors
We use cookies to improve your experience on our website and to show you relevant
advertising. Manage you settings for our cookies below.
Essential Cookies
These cookies are essential as they enable you to move around the website. This
category cannot be disabled.
Company
Domain
Samsung Electronics
.samsungdeveloperconference.com
Analytical/Performance Cookies
These cookies collect information about how you use our website. for example which
pages you visit most often. All information these cookies collect is used to improve
how the website works.
Company
Domain
LinkedIn
.linkedin.com
Meta (formerly Facebook)
.samsungdeveloperconference.com
Google Inc.
.samsungdeveloperconference.com
Functionality Cookies
These cookies allow our website to remember choices you make (such as your user name, language or the region your are in) and
tailor the website to provide enhanced features and content for you.
Company
Domain
LinkedIn
.ads.linkedin.com, .linkedin.com
Advertising Cookies
These cookies gather information about your browser habits. They remember that
you've visited our website and share this information with other organizations such
as advertisers.
Company
Domain
LinkedIn
.linkedin.com
Meta (formerly Facebook)
.samsungdeveloperconference.com
Google Inc.
.samsungdeveloperconference.com
Preferences Submitted
You have successfully updated your cookie preferences.