Create plan item

Requires the write_subscription_plans permission. The product must belong to this business. Duplicate plan/product/SKU combinations are rejected. SKU validity is checked again when used.

Path Params
integer
required
≥ 1

ShopWired plan id.

Body Params
integer
required
≥ 1

Positive ShopWired resource identifier or version.

string
required
length between 1 and 128

Nonempty product/variation SKU. Product must exist in this business; the product/SKU link must be unique within the plan. Maximum 128 UTF-8 bytes; maxLength alone does not enforce the byte limit.

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