Create contract item

Requires the write_subscription_contracts permission. Requires an editable parent. Product identity is set on creation; price is excluding VAT. No parent-version header is used for this POST.

Path Params
integer
required
≥ 1

ShopWired contract id.

Body Params
string
enum

Defaults to active.

Allowed:
number
required
≥ 0

Unit price excluding VAT, in major currency units.

number
required
0 to 100

VAT percentage.

integer
1 to 99999

Defaults to 1 on creation.

integer
required
≥ 1

Positive ShopWired resource identifier or version.

string
required
length between 1 and 128

Nonempty SKU. Maximum 128 UTF-8 bytes; maxLength alone does not enforce the byte limit.

boolean

Whether the SKU identifies a variation. Request property is variation; response property is isVariation.

string
length between 0 and 2000

Stored in productDetails.comments. Maximum 2000 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