Update recurring subscription
PUT https://app.ecwid.com/api/v3/{storeId}/subscriptions/{subscriptionId}
Required access scopes
Your app must have the following access scopes to make this request: update_subscriptions
Path params
All path params are required.
storeId
number
Ecwid store ID.
subscriptionId
number
Internal subscription ID.
Headers
The Authorization header is required.
Authorization
Bearer secret_ab***cd
Access token of the application.
Request JSON
A JSON object with the following fields:
nextCharge
string
Datetime of the next recurring charge for the subscription.
For example, 2024-05-26 13:37:46 +0000
status
string
One of:
ACTIVE
CANCELLED
LAST_CHARGE_FAILED
REQUIRES_PAYMENT_CONFIRMATION
chargeSettings
recurringInterval
string
Search term for the time scale of subscription's recurring interval.
One of:
DAY
WEEK
MONTH
YEAR
recurringIntervalCount
number
Search term for the frequency of subscription's recurring charges.
One of:
for DAY - 1 (daily)
for WEEK - 1 (weekly) or 2 (biweekly)
for MONTH - 1 (monthly) or 3 (quarterly)
for YEAR - 1 (annually)
Response JSON
A JSON object with the following fields:
updateCount
number
The number of updated items that defines if the request was successful. One of:
1 if the item was updated,
0 if the item was not updated.
Last updated
Was this helpful?
