subscriptionContractCreate mutation
Creates a Subscription Contract.
Required access
write_own_subscription_contracts
access scope.
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
Arguments
Argument | Description |
---|---|
input
(
SubscriptionContractCreateInput!
)
required
|
The properties of the new Subscription Contract. |
SubscriptionContractCreateInput fields
-
contract (
SubscriptionDraftInput!
) RequiredThe attributes used as input for the Subscription Draft.
-
currencyCode (
CurrencyCode!
) RequiredThe currency used for the subscription contract.
-
customerId (
ID!
) RequiredThe ID of the customer to associate with the subscription contract.
-
nextBillingDate (
DateTime!
) RequiredThe next billing date for the subscription contract.
Return fields
-
draft (
SubscriptionDraft
)The Subscription Contract object.
-
userErrors (
[SubscriptionDraftUserError!]!
)List of errors that occurred executing the mutation.
Creates a Subscription Contract.
Required access
write_own_subscription_contracts
access scope.
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
Arguments
Argument | Description |
---|---|
input
(
SubscriptionContractCreateInput!
)
required
|
The properties of the new Subscription Contract. |
SubscriptionContractCreateInput fields
-
contract (
SubscriptionDraftInput!
) RequiredThe attributes used as input for the Subscription Draft.
-
currencyCode (
CurrencyCode!
) RequiredThe currency used for the subscription contract.
-
customerId (
ID!
) RequiredThe ID of the customer to associate with the subscription contract.
-
nextBillingDate (
DateTime!
) RequiredThe next billing date for the subscription contract.
Return fields
-
draft (
SubscriptionDraft
)The Subscription Contract object.
-
userErrors (
[SubscriptionDraftUserError!]!
)List of errors that occurred executing the mutation.
Creates a Subscription Contract.
Required access
write_own_subscription_contracts
access scope.
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
Arguments
Argument | Description |
---|---|
input
(
SubscriptionContractCreateInput!
)
required
|
The properties of the new Subscription Contract. |
SubscriptionContractCreateInput fields
-
contract (
SubscriptionDraftInput!
) RequiredThe attributes used as input for the Subscription Draft.
-
currencyCode (
CurrencyCode!
) RequiredThe currency used for the subscription contract.
-
customerId (
ID!
) RequiredThe ID of the customer to associate with the subscription contract.
-
nextBillingDate (
DateTime!
) RequiredThe next billing date for the subscription contract.
Return fields
-
draft (
SubscriptionDraft
)The Subscription Contract object.
-
userErrors (
[SubscriptionDraftUserError!]!
)List of errors that occurred executing the mutation.