Reactivate a subscription order

Request

Reactivates a subscription order with a specified ID.

Security
SecretApiKey or JWT
Bodyapplication/jsonrequired

Reactivation resource.

subscriptionIdstring, <= 50 charactersrequired

ID of the reactivated subscription.

Example:"sub_01HRF27SATGE4Z6PBJE6PD8328"
descriptionstring or null, <= 255 characters

Description of the reactivation reason in free form.

effectiveTimestring, (date-time)write-only

Date and time when the service period starts, unless the subscription is canceled but still active at this time.

If the subscription is still active at this time, the subscription continues for the current service period.

If this field is omitted, this value defaults to the current time.

renewalTimestring, (date-time)

Date and time of the next subscription renewal. If this field is omitted, this value is computed from the effectiveTime field.

If the subscription is canceled but still active at the effectiveTime, this field is ignored and the next renewal occurs as scheduled.

paymentInstrumentIdstring or null, <= 50 characterswrite-only

ID of the payment instrument. If this field is omitted, the subscription payment instrument remains unchanged.

Example:"4f6cf35x-2c4y-483z-a0a9-158621f77a21"
curl -i -X POST \
  https://www.rebilly.com/_mock/catalog/all/subscription-reactivations \
  -H 'Content-Type: application/json' \
  -H 'REB-APIKEY: YOUR_API_KEY_HERE' \
  -d '{
    "subscriptionId": "sub_01HRF27SATGE4Z6PBJE6PD8328",
    "description": "string",
    "effectiveTime": "2019-08-24T14:15:22Z",
    "renewalTime": "2019-08-24T14:15:22Z",
    "paymentInstrumentId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21"
  }'

Responses

Reactivation created. The order is now active. If the order had a related cancellation with a status of confirmed, it is revoked.

Headers
Locationstring, (uri)

Location of the related resource.

Example:"https://api.rebilly.com/example"
Rate-Limit-Limitinteger

Maximum number of requests available at one time for this rate limit. For more information, see Rate limits.

Example:500
Rate-Limit-Remaininginteger

Number of requests still available for this rate limit. For more information, see Rate limits.

Example:499
Bodyapplication/json
idstring, <= 50 charactersread-only

ID of the reactivation.

Example:"sub_rct_0YVJ62AF5XCFCA6EBFAAA3Z7E0"
subscriptionIdstring, <= 50 charactersrequired

ID of the reactivated subscription.

Example:"sub_01HRF27SATGE4Z6PBJE6PD8328"
cancellationIdstring, <= 50 charactersread-only

ID of the related cancellation.

Example:"sub_cnl_0YVJ5XVQM9CDP8248ZQX0RDMKV"
descriptionstring or null, <= 255 characters

Description of the reactivation reason in free form.

renewalTimestring, (date-time)

Date and time of the next subscription renewal. If this field is omitted, this value is computed from the effectiveTime field.

If the subscription is canceled but still active at the effectiveTime, this field is ignored and the next renewal occurs as scheduled.

createdTimestring, (date-time)(CreatedTime)read-only

Date and time when the resource is created. This value is set automatically when the resource is created.

updatedTimestring, (date-time)(UpdatedTime)read-only

Date and time when the resource is updated. This value is set automatically when the resource is updated.

Response
{ "id": "sub_rct_0YVJ62AF5XCFCA6EBFAAA3Z7E0", "subscriptionId": "sub_01HRF27SATGE4Z6PBJE6PD8328", "cancellationId": "sub_cnl_0YVJ5XVQM9CDP8248ZQX0RDMKV", "description": "string", "renewalTime": "2019-08-24T14:15:22Z", "createdTime": "2019-08-24T14:15:22Z", "updatedTime": "2019-08-24T14:15:22Z", "_links": [ { … } ] }