c.a.i.s.client.AppStoreServerAPIClient#extendSubscriptionRenewalDate throws 500 on no extend reason code and request identifier
Closed this issue · 1 comments
martinbeentjes commented
I am writing logic to extend existing subscriptions for a certain amount of days. I am using the library for this. When not entering the extend reason code
val extendByDays = ExtendRenewalDateRequest().extendByDays(duration.inWholeDays.toInt())
val response = appStoreServerApiClientForProduction.extendSubscriptionRenewalDate(
originalTransactionId.value,
extendByDays,
)
I am noticing that when I try to execute this code, the library throws a HTTP 500 Internal Server Error where I would expect a HTTP 400 Bad Request.
If there is a extendReasonCode
given, but no requestIdentifier
, a HTTP 400 Bad Request
is returned.
If there is no extendReasonCode
given, but there is requestIdentifier
given, a HTTP 500 Internal Server Error
is thrown.
I suppose the latter is wrong and is a bug.
alexanderjordanbaker commented
Hello @martinbeentjes thank you for reaching out. I believe this should now be resolved on the App Store Server API side