Skip to main content
Anchor to SubscriptionBillingAttemptCreatePayload

SubscriptionBillingAttemptCreatePayload

payload

Return type for subscriptionBillingAttemptCreate mutation.

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?

Anchor to Mutations with this payloadMutations with this payload

•mutation

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.

Arguments

Anchor to subscriptionContractIdsubscriptionContractId
•ID!
required

The ID of the subscription contract.

Anchor to subscriptionBillingAttemptInputsubscriptionBillingAttemptInput
•SubscriptionBillingAttemptInput!
required

The information to apply as a billing attempt.



Was this section helpful?