Update plan

Requires the write_subscription_plans permission. Partial field update. Use the latest version. Price/interval/trial changes affect future use of the plan, not existing contracts.

Path Params
integer
required
≥ 1

ShopWired id.

Body Params
boolean

Defaults to false on creation.

string
length between 1 and 100

Trimmed plan name. Maximum 100 UTF-8 bytes; maxLength alone does not enforce the byte limit.

string
enum

Use day with intervalCount 7 for weekly billing.

Allowed:
integer
1 to 9999

Defaults to 1 on creation.

integer
0 to 9999

Zero means no cycle limit; defaults to zero.

integer
0 to 999

Free-trial duration in days; zero means no trial.

string
enum

Defaults to none. When explicitly set to a non-none value, priceModifierValue is required.

Allowed:
number
≤ 9999999999

Required with an explicit non-none modifier. Positive; percent_discount maximum 100; fixed_price maximum 9999999999. Rounded to four decimal places. Fixed-price values exclude VAT.

Headers
integer
required
≥ 1

Latest version from a GET of this exact resource. Missing/stale versions return 422, not 409.

Responses

401

Missing, expired or invalid OAuth access token.

403

Required permission is missing or access to this business is forbidden.

404

Resource or parent not found in the authenticated business.

429

Rate limit exceeded. The response may have no JSON body. Retry reads with bounded backoff.

500

Server error. A mutation may already have taken effect; reconcile its outcome before retrying.

Language
Credentials
Bearer
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json