Skip to main content

Subscription receipt confirmation (V2)

Important

This method works only with subscriptions made through Pay SDK.

This method allows you to confirm that the user has received the subscription content using the purchase identifier.

Confirming the receipt of a subscription is not required for subscriptions to function.

tip

If you are not sure where to start, read the usage scenarios guide.

Interaction parameters

POST
https://public-api.rustore.ru/public/v2/subscription/{packageName}/{subscriptionId}/{purchaseId}:acknowledge

To work with test payments and subscriptions, you will need a new key, specifying the methods for testing when creating it.

AttributeTypeDescriptionRequiredLocationExample
Public-TokenstringJWE authorization token for the RuStore Public API.
How to obtain an authorization token.
YesheaderN/A
packageNamestringApplication package name.Yespathcom.MashaAndTheBear.HairSalon
subscriptionIdstringSubscription product code.
Specified by the developer when creating the product in the RuStore Console.

How to create a subscription.
Yespathdaily_sub
purchaseIdstringPurchase identifier in UUID format. Can be obtained from the SDK purchase result, from a server notification, or by requesting purchase information.Yespath3aa0c7bd-964e-4562-b218-fe365adb4ae3

Response parameters

AttributeTypeDescriptionRequiredLocationExample
codestringResponse code.YesbodyOK / ERROR
messagestringResponse code description.NobodyBad request
bodyobjectResponse body. Not returned for this method.Nobodynull
timestampstringResponse timestamp.Yesbody2024-07-29T12:00:00.000Z

Example of a successful Response

{
"code": "OK",
"message": null,
"body": null,
"timestamp": "2024-07-29T12:00:00.000Z"
}

Example of an error Response

{
"code": "ERROR",
"message": "Bad request",
"body": null,
"timestamp": "2024-07-29T12:00:00.000Z"
}

Error List

MessageDescription
Purchase not foundThe purchase was not found. Make sure you specified the correct purchase identifier.
ForbiddenAccess is denied. Check the validity of the authorization token and the request parameters.
Something went wrongAn unexpected error occurred. Try again later or contact support.