Samsung IAP Server - Verify a purchase API does not have latestOrderId

  1. Using the API below, I get the latestOrderId information.
    Is this information gone now?

https://iap.samsungapps.com/iap/ws/RTCService?wsdl

  1. Is there a way to get the latestOrderId information using the web API?
1 Like

Hello pigpigpigking,

Welcome to the Samsung Developer forum. The SOAP API you mentioned has been deprecated since the end of 2024. Instead, you should use one of the IAP Subscription APIS, Check status of subscription, which includes latestOrderId in its response.

See also Get Started with the IAP APIs to make sure you meet all requirements such as creating an access token, using the required authorization header parameters, using the required URL path parameters in your requests, and having commercial seller status.

I have confirmed your answer.
Thank you.

Additional inquiry.
Inquiry 1. Verify a purchase provides the endpoint URL as follows.
GET
https://iap.samsungapps.com/iap/v6/receipt?purchaseID={purchaseID value}

Inquiry 2. Is the endpoint URL for “Get Started with the IAP APIs” the endpoint URL in 2 below? I am also curious about the endpoint URL information when in production.

1.doc : Get Started with the Samsung IAP APIs | Samsung Developer
2.endpoint url : https://devapi.samsungapps.com/iap/seller/v6/applications//items/purchases/subscriptions/

Inquiry 3. Can I receive a normal response to “Get Started with the IAP APIs” through a rest-api request? The current development environment is web server-based.

Hi pigpigpigking,

Yes, this is correct.

You can find the overview for the IAP APIs at the URL you listed. The documentation for “Verify a purchase” is here https://developer.samsung.com/iap/programming-guide/samsung-iap-server-api.html

The description of each individual API will include the endpoint URL that should be used.

The endpoint URL you listed,
https://devapi.samsungapps.com/iap/seller/v6/applications/ <packageName>/purchases/subscriptions/, is specifically for the “Check status of subscription” IAP API.

The base URL for the the IAP APIs is https://devapi.samsungapps.com/iap. If you plan to use the Galaxy Store Developer API, it’s base url is https://devapi.samsungapps.com/ (except for fileUpload). You can find a list of all the Galaxy Store Developer APIs here: https://developer.samsung.com/galaxy-store/galaxy-store-developer-api.html#List-of-APIs

The base URL for the IAP APIs differ from the base URL used for “Verify a purchase.”

I’m not sure if I understand your question. If by normal response you mean an HTTP status code and a response body, yes. The IAP APIs described in the “Get Started with the IAP APIs” page return this kind of response. The “Verify a purchase” API response is different and only returns a response body, with the status included in the response body.