Skip to main content
Anchor to subscriptionBillingAttemptCreate

subscriptionBillingAttemptCreate

mutation

Requires write_own_subscription_contracts access scope. Also: The user must have manage_orders_information permission.

Creates a billing attempt to charge for a SubscriptionContract. The mutation processes either the payment for the current billing cycle or for a specific cycle, if selected.

The mutation creates an Order when successful. Failed billing attempts include a processingError field with error details.


Tip

Use the idempotencyKey to ensure the billing attempt executes only once, preventing duplicate charges if the request is retried.


You can target a specific billing cycle using the billingCycleSelector to bill past or future cycles. The originTime parameter adjusts fulfillment scheduling for attempts completed after the expected billing date.

Learn more about creating billing attempts.

Anchor to subscriptionBillingAttemptInputsubscriptionBillingAttemptInput
•SubscriptionBillingAttemptInput!
required

The information to apply as a billing attempt.

Anchor to subscriptionContractIdsubscriptionContractId
•ID!
required

The ID of the subscription contract.


Was this section helpful?

Anchor to SubscriptionBillingAttemptCreatePayload returnsSubscriptionBillingAttemptCreatePayload returns

Anchor to subscriptionBillingAttemptsubscriptionBillingAttempt
•SubscriptionBillingAttempt

The subscription billing attempt.

•[BillingAttemptUserError!]!
non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?