Skip to main content
Log inSign up

Shopify uses cookies to provide necessary site functionality and improve your experience. By using our website, you agree to our privacy policy and our cookie policy.

Anchor to subscriptionBillingAttempt

subscriptionBillingAttempt

query

Returns a SubscriptionBillingAttempt by ID.

ID!required

The ID of the SubscriptionBillingAttempt to return.


Was this section helpful?

Anchor to SubscriptionBillingAttemptSubscriptionBillingAttempt

A record of an execution of the subscription billing process. Billing attempts use idempotency keys to avoid duplicate order creation. A successful billing attempt will create an order.

completedAt

The date and time when the billing attempt was completed.

createdAt
non-null

The date and time when the billing attempt was created.

id
non-null

A globally-unique ID.

idempotencyKey
non-null

A unique key generated by the client to avoid duplicate payments.

nextActionUrl

The URL where the customer needs to be redirected so they can complete the 3D Secure payment flow.

order

The result of this billing attempt if completed successfully.

originTime

The date and time used to calculate fulfillment intervals for a billing attempt that successfully completed after the current anchor date. To prevent fulfillment from being pushed to the next anchor date, this field can override the billing attempt date.

ready
non-null

Whether the billing attempt is still processing.

subscriptionContract
non-null

The subscription contract.

errorCode

A code corresponding to a payment error during processing.

errorMessage

A message describing a payment error during processing.


Was this section helpful?