Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
colin-TRIPP's avatar
colin-TRIPP
Honored Guest
3 years ago

Subscription API no longer returning cancellation_time field

 

The server-to-server subscription check API documented here is no longer returning the cancellation_time response field when specified with the “fields” parameter.  This mush have happened in the last week, maybe since adding the “next_renewal_time” response field.

 

 

curl -d "access_token=OC|$APP_ID|$APP_SECRET" -d "fields=sku,owner{id},is_active,is_trial,cancellation_time,period_start_time,period_end_time,next_renewal_time" -G https://graph.oculus.com/application/subscriptions

 

returns

 

{
  "data": [
    {
      "sku": "OPTIONAL_SUBSCRIPTION",
      "owner": {
        "id": "3559884437424131"
      },
      "is_active": false,
      "is_trial": false,
      "period_start_time": "2021-03-09T13:04:20+0000",
      "period_end_time": "2021-03-09T13:04:20+0000",
      "next_renewal_time": "2021-03-09T13:04:20+0000"
    },
  ],
  "paging": {
    "cursors": {
      "before": "QVFIUlliZAnlkTEVnUkFkVTBJZAW9lMWprR0dkaGtuQjhTT0lTdzRiTEo1dkstSXoybDVRWEFFUzA0RURfQjVMMUxXZAzJ4VENTV1RadU9uejFaUmlIUlo4cUlR",
      "after": "QVFIUlZAGTmllREUwcWdJRkhGcUtBWXZA2WWFvSkJHMlJ1dnpfVVRLU2ZAPNHc1MjVCbXc0d3YyWi1meU1DNjhQWTBJaldrcDIxVkpxNWZAMSmNfa2lOcldVTUhB"
    }
  }
}

 

 

No RepliesBe the first to reply