subscriptions
Updates an subscriptions
Changed onHandles the updating of an subscriptions by id
put/api/v1/subscriptions/{id}
Request
- Base URLhttps://demo.invoiceninja.com
- Authnone declared. Required headers: X-API-TOKEN, X-Requested-With
- TypeScripthttps://skmtc.dev/invoiceninja/apis/invoice-ninja-api-reference/docs/api/v1/subscriptions/:id/put.tsA function with typed inputs. Its response is checked against the schema.
Path parameters
idstring string required
The Subscription Hashed ID
Query parameters
includestring
Example:first_load
Includes child relationships in the response, format is comma separated. Check each model for the list of associated includes
Headers
X-API-TOKENstring required
Example:TOKEN
The API token to be used for authentication
X-Requested-Withstring required
Example:XMLHttpRequest
Used to send the XMLHttpRequest header
Response
Returns the subscriptions object
Example response
{
"id": "Opnel5aKBz",
"user_id": "Ua6Rw4pVbS",
"product_id": "Pr5Ft7yBmC",
"recurring_invoice_id": "Ri2Yt8zJkP",
"is_recurring": true,
"frequency_id": "1",
"auto_bill": "always",
"promo_code": "PROMOCODE4U",
"promo_discount": 10,
"is_amount_discount": true,
"allow_cancellation": true,
"per_seat_enabled": true,
"currency_id": 1,
"max_seats_limit": 100,
"trial_enabled": true,
"trial_duration": 14,
"allow_query_overrides": true,
"allow_plan_changes": true,
"refund_period": 30,
"webhook_configuration": "expand reference for this",
"archived_at": 1434342123,
"created_at": 134341234234,
"updated_at": 134341234234
}Changes
- info
the response optional property
became read-only for the status
- info
- breaking
the response's body type changed from no type to
objectfor status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- breaking