Update subscription billing attempt
Updates billing attempt details for a subscription contract. Billing attempts represent individual charge attempts for recurring subscription orders.
Full behavior, validation rules, and side effects
Key Information Updated:
- Billing Date: Next scheduled billing/charge date
- Status: Success, failed, pending, or scheduled
- Error Messages: Failure reasons for declined payments
- Retry Count: Number of retry attempts made
- Order ID: Associated Shopify order if billing succeeded
- Amount: Billing amount charged or attempted
Billing Attempt Lifecycle:
- Scheduled: Billing attempt is queued for future processing
- Pending: Charge is being processed by payment gateway
- Success: Payment captured, order created
- Failed: Payment declined or error occurred
- Retrying: Automatic retry scheduled after failure
Common Use Cases:
- Reschedule failed billing attempts to a new date
- Update billing date to align with customer preferences
- Mark manual payment reconciliation in external systems
- Sync billing status with external payment processors
- Trigger retry logic for failed payment attempts
- Update billing metadata for reporting and analytics
Important Notes:
- Changing billing date will affect the subscription’s billing cycle
- Only pending or failed attempts can typically be modified
- Successfully billed attempts are immutable in most cases
Authentication: Requires API key authentication via X-API-Key header or api_key parameter
Documentation Index
Fetch the complete documentation index at: https://appstleinc-aeca3e0a.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Headers
Query Parameters
API Key (Deprecated - Use Header X-API-Key instead)
Body
Updated billing attempt details including billing date, status, and metadata
Shop domain identifier
"my-store.myshopify.com"
Unique identifier of the billing attempt record
12345
Shopify billing attempt ID
Current status of the billing attempt
SUCCESS, FAILURE, REQUESTING, PROGRESS, QUEUED, SKIPPED, SOCIAL_CONNECTION_NULL, CONTRACT_CANCELLED, CONTRACT_ENDED, CONTRACT_PAUSED, AUTO_CHARGE_DISABLED, SKIPPED_DUNNING_MGMT, SECURITY_CHALLENGE, SHOPIFY_EXCEPTION Scheduled billing date for this attempt
Associated subscription contract ID
67890
Number of billing retry attempts
1
Shopify order ID if billing was successful
Total order amount
29.99
Shopify order name/number
"#1001"
SENT, UNSENT, FAILED, EMAIL_SETTINGS_DISABLED, CUSTOMER_PAYMENT_EMPTY, CONTRACT_CANCELLED SENT, UNSENT, FAILED, EMAIL_SETTINGS_DISABLED, CUSTOMER_PAYMENT_EMPTY, CONTRACT_CANCELLED, STOP_FROM_CONTRACT, CONTRACT_PAUSED SUCCESS, FAILED, TO_BE_TRIED SENT, UNSENT, FAILED, SMS_SETTINGS_DISABLED, CUSTOMER_PAYMENT_EMPTY, CONTRACT_CANCELLED, PHONE_NUMBER_EMPTY SENT, UNSENT, FAILED, SMS_SETTINGS_DISABLED, CUSTOMER_PAYMENT_EMPTY, CONTRACT_CANCELLED, STOP_FROM_CONTRACT, CONTRACT_PAUSED, PHONE_NUMBER_EMPTY Order note or special instructions
SENT, UNSENT, FAILED, EMAIL_SETTINGS_DISABLED, CONTRACT_CANCELLED Response
Billing attempt successfully updated
Shop domain identifier
"my-store.myshopify.com"
Unique identifier of the billing attempt record
12345
Shopify billing attempt ID
Current status of the billing attempt
SUCCESS, FAILURE, REQUESTING, PROGRESS, QUEUED, SKIPPED, SOCIAL_CONNECTION_NULL, CONTRACT_CANCELLED, CONTRACT_ENDED, CONTRACT_PAUSED, AUTO_CHARGE_DISABLED, SKIPPED_DUNNING_MGMT, SECURITY_CHALLENGE, SHOPIFY_EXCEPTION Scheduled billing date for this attempt
Associated subscription contract ID
67890
Number of billing retry attempts
1
Shopify order ID if billing was successful
Total order amount
29.99
Shopify order name/number
"#1001"
SENT, UNSENT, FAILED, EMAIL_SETTINGS_DISABLED, CUSTOMER_PAYMENT_EMPTY, CONTRACT_CANCELLED SENT, UNSENT, FAILED, EMAIL_SETTINGS_DISABLED, CUSTOMER_PAYMENT_EMPTY, CONTRACT_CANCELLED, STOP_FROM_CONTRACT, CONTRACT_PAUSED SUCCESS, FAILED, TO_BE_TRIED SENT, UNSENT, FAILED, SMS_SETTINGS_DISABLED, CUSTOMER_PAYMENT_EMPTY, CONTRACT_CANCELLED, PHONE_NUMBER_EMPTY SENT, UNSENT, FAILED, SMS_SETTINGS_DISABLED, CUSTOMER_PAYMENT_EMPTY, CONTRACT_CANCELLED, STOP_FROM_CONTRACT, CONTRACT_PAUSED, PHONE_NUMBER_EMPTY Order note or special instructions
SENT, UNSENT, FAILED, EMAIL_SETTINGS_DISABLED, CONTRACT_CANCELLED