Update contract

Requires the write_subscription_contracts permission. Partial update; address objects replace the entire address. Cancelled contracts cannot be edited. Pause/cancel propagates to active renewal work; refresh child resources after changes.

Path Params
integer
required
≥ 1

ShopWired id.

Body Params
string
enum

Pending/paused may become active or cancelled; active may become paused or cancelled. Cancelled is terminal.

Allowed:
string
length between 1 and 100

Read only when status is supplied; records the reason when cancelling. Maximum 100 UTF-8 bytes; maxLength alone does not enforce the byte limit.

integer
0 to 9999

Zero means unlimited.

string
length ≤ 50

RFC 1123 timestamp, or an empty string to remove the trial end. Do not send JSON null to clear it.

billingCustomerDetails
object

Replaces the complete address object. Omitted string fields become empty strings. countryId must identify an existing country.

shippingCustomerDetails
object

Replaces the complete address object. Omitted string fields become empty strings. countryId must identify an existing country.

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