Skip to main content

Subscription receipt confirmation

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

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

Interaction parameters

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

AttributeTypeDescriptionRequiredLocationExample
Public-TokenstringJwe token to Public API Rustore
How to get an authorization token.
YesheaderN/A
packageNamestringApp package nameYespathcom.MashaAndTheBear.HairSalon
subscriptionIdstringProduct/subscription code
To be specified by the developer when creating the product in RuStore Console.

How to create an app subscription.
Yespathdaily_sub
subscriptionTokenstringHow to get a subscription token Billing SDK Documentation.Yespath111.123

Successful response

In case of a successful response, the response body is empty.

Error parameters

AttributeTypeDescriptionRequiredExample
codestringResponse codeYesERROR
messagestringDecoded response codeNoJwe token is expired
body{}objectResponse bodyNoN/A
timestampstringResponse timeYes2024-01-21T13:34:31.067240345+03:00

Error response

{
"code": "ERROR",
"message": "Jwe token is expired",
"body": null,
"timestamp": "2024-01-21T13:51:59.654427798+03:00"
}

Response verification

The security token is generated by the security token method and then verified while getting the response:

  • Owner and/or app should not be blocked;

  • Token should be valid;

  • subscription should be purchased in an application owned by a company that has received a Public API access token.