Confirming subscription
The method allows confirming subscription using a subscription token.
Subscriptions do not need to be confirmed to work.
Interaction parameters
POST
https://public-api.rustore.ru/public/glike/subscription/{packageName}/{subscriptionId}/{purchaseToken}:acknowledge
Attribute | Type | Description | Required | Location | Example |
---|---|---|---|---|---|
Public-Token | string | Jwe token to Public API Rustore How to get an authorization token. | Yes | header | N/A |
packageName | string | App package name | Yes | path | com.MashaAndTheBear.HairSalon |
subscriptionId | string | Product/subscription code To be specified by the developer when creating the product in RuStore Console. How to create an app subscription. | Yes | path | daily_sub |
subscriptionToken | string | How to get a subscription token Billing SDK Documentation. | Yes | path | 111.123 |
Successful response
In case of a successful response, the response body
is empty.
Error parameters
Attribute | Type | Description | Required | Example |
---|---|---|---|---|
code | string | Response code | Yes | ERROR |
message | string | Decoded response code | No | Jwe token is expired |
body{} | object | Response body | No | N/A |
timestamp | string | Response time | Yes | 2024-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.