Skip to main content
Question

Extend subscription on play store (The desired expiry time for the subscription is not valid)

  • October 23, 2024
  • 1 reply
  • 39 views

Abdelrahman Saed
Forum|alt.badge.img+5

Hi,

I have subscription started at 2024-10-08 06:52:27+00 and will renewable at 2024-11-08 06:26:27+00

and currend date is 2024-10-23.

I defer the subcription via POST https://api.revenuecat.com/v1/subscribers/$app_user_id/subscriptions/$product_identifier/defer 

to one day so the body

[

'expiry_time_ms' => 1731133587000,

]

if we convert this ms we will get “2024-11-09 06:26:27.0 UTC (+00:00)

the api response is 

HTTP request returned status code 400:

{"code":7258,"message":"The desired expiry time for the subscription is not valid."}

what is the wrong ?

This post has been closed for comments

1 reply

kaitlin
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • 396 replies
  • October 25, 2024

Hey @Abdelrahman Saed,

It looks like the subscription that you’re attempting to defer actually has an end date of November 11th, not October 23rd. 

The error you’ve sent is actually coming from Google directly and is thrown when the defer date is prior to the end date. The defer date needs to be within one day after the original end date, and one year after. 

If you try a later date in November, you should see this work!


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings