Renew Subscription
This API allows the business to renew subscriptions by making back-end calls on the designated date of renewal registered on the business end.
- Type: string
Content - Type requiredapplication/json
- Type: string
Accept requiredapplication/json
- Type: string
Authorization requiredBearer token for admin authorization, who is making a call on behalf of the customer
- Type: string
end _time min length:1Format: date-timerequiredDate and time (in ISO 8601 format) until which the renewed subscription will remain active
- Type: integer
new _plan _id This is sent only if the guest wants to switch to a different subscription plan (e.g., changing from a monthly plan to a quarterly plan)
- Type: numberFormat: float
purchase _price requiredCost of renewal of one unit of the subscription plan that is being renewed
- Type: string
start _time min length:1Format: date-timerequiredDate and time (in ISO 8601 format) from which the renewed subscription will become active
- Type: integer
subscription _id requiredUnique ID of the subscription plan that was issued to the guest and is being renewed
- Type: object
200 - Type: string
end _time min length:1Format: date-timerequiredDate and time (in ISO 8601 format) from until which the renewed subscription will remain active
- Type: string
external _plan _identifier UPC/SKU of the subscription plan as present on third-party applications of enterprise businesses and is configured on this subscription plan. This will be stored in the database, and the business can use it for analytics purposes.
- Type: string
start _time min length:1Format: date-timerequiredDate and time (in ISO 8601 format) from which the renewed subscription will become active
- Type: integer
subscription _id requiredSystem-generated unique ID of the subscription that is issued for a guest
- Type: object
401 - Type: string
error min length:1required
- Type: object
406 - Type: string
invalid min length:1
- Type: object
422 - Type: object
errors
{
"subscription_id": 40,
"start_time": "2021-04-20T21:09:38Z",
"end_time": "2021-04-20T21:09:38Z",
"external_plan_identifier": "string"
}