Renew a subscription
This API will convert subscription renewal type. The renewal type change allowed only for subscription states - Subscribed, Pending activation and Trial.
Subscription Id
Basic authorization (dispatch Key and Secret) or Full access token
Auto renewal type boolean
Accepted
- Bad request
Please verify your API key and secret (if applicable) is correct.
- Access Denied
- Not found
POST /v1/subscriptions/{subId}/renewal-type HTTP/1.1
Host: api.digitalriver.com
token: text
Content-Type: application/json
Accept: */*
Content-Length: 20
{
"autoRenewal": true
}
No content
This will change the subscription renewal product.
Basic authorization (dispatch Key and Secret)
Renewal product id
Accepted
- Bad request
Please verify your API key and secret (if applicable) is correct.
- Access Denied
- Not found
POST /v1/subscriptions/{subId}/renewal-product HTTP/1.1
Host: api.digitalriver.com
token: text
Content-Type: application/json
Accept: */*
Content-Length: 27
{
"renewalProductId": "text"
}
No content
This will change the subscription renewal quantity.
Subscription Id
Basic authorization (dispatch Key and Secret) or Full access token
Renewal quantity
Accepted
- Bad request
Please verify your API key and secret (if applicable) is correct.
- Access Denied
- Not found
POST /v1/subscriptions/{subId}/renewal-quantity HTTP/1.1
Host: api.digitalriver.com
token: text
Content-Type: application/json
Accept: */*
Content-Length: 21
{
"renewalQuantity": 1
}
No content
This will change the subscription renewal price.
Subscription Id
Basic authorization (dispatch Key and Secret)
Renewal unit price
Accepted
- Bad request
Please verify your API key and secret (if applicable) is correct.
- Access Denied
- Not found
POST /v1/subscriptions/{subId}/renewal-price HTTP/1.1
Host: api.digitalriver.com
token: text
Content-Type: application/json
Accept: */*
Content-Length: 22
{
"renewalUnitPrice": 1
}
No content
Last updated