Create contract
Changed onCreates a contract for a customer together with all of its (custom) subscriptions in a single atomic operation. Every new subscription is created inside one transaction — any validation or creation failure rolls the whole contract back. Each subscription entry is either a new subscription to create or a reference to an existing custom subscription. Returns the created contract.
Request
- Base URLhttps://api.stigg.io
- URLhttps://api.stigg.io/api/v1/contracts
- AuthAPI key in header X-API-KEY
Headers
Account ID — optional when authenticating with a user JWT (Bearer token); falls back to the user's first membership. Ignored for API-key auth.
Environment ID — required when authenticating with a user JWT (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the key).
Request body
Response
The created contract, including the custom subscriptions attached to it.
Changes
- info
added the required property
/to the response with the status
- info
- info
endpoint added
- info