# Mutations

- [activateSubscription](/graphql-api/api-reference/mutations/activate-subscription.md): Activates an inactive subscription.
- [applyPromotionToSubscription](/graphql-api/api-reference/mutations/apply-promotion-to-subscription.md): Applies a promotion to a subscription.
- [assignAsset](/graphql-api/api-reference/mutations/assign-asset.md): Assign asset to a subscription.
- [bulkUpdateOrderLines](/graphql-api/api-reference/mutations/bulk-update-order-lines.md): Updates multiple order lines at once. Allows changing the quantity and product for all specified order lines.
- [cancelReturnOrder](/graphql-api/api-reference/mutations/cancel-return-order.md): Cancels an 'in progress' return order.
- [cancelScheduledOrder](/graphql-api/api-reference/mutations/cancel-scheduled-order.md): Cancels a scheduled order by setting its status to cancelled and clearing the shipment date.
- [cancelSubscription](/graphql-api/api-reference/mutations/cancel-subscription.md): Cancels a subscription or initiates cancellation when two-step cancellation is enabled on your project.
- [chargeShopifyOrderOutstandingAmount](/graphql-api/api-reference/mutations/charge-shopify-order-outstanding-amount.md): Charges the outstanding amount on a Shopify order using the totalOutstandingSet value from the Shopify API.
- [completeReturnOrder](/graphql-api/api-reference/mutations/complete-return-order.md): Completes an 'in progress' return order.
- [completeSubscriptionCancellation](/graphql-api/api-reference/mutations/complete-subscription-cancellation.md): Completes the subscription cancellation process (only available when two-step cancellation is enabled on your project).
- [createAsset](/graphql-api/api-reference/mutations/create-asset.md): Creates an asset for a product, optionally assigns it to a subscription.
- [createCart](/graphql-api/api-reference/mutations/create-cart.md): Creates an empty draft/cart subscription.
- [createDiscountCode](/graphql-api/api-reference/mutations/create-discount-code.md): Creates a discount code
- [createFreeOrderLine](/graphql-api/api-reference/mutations/create-free-order-line.md): Adds a free order line to an existing order. Only scheduled orders can be updated; other statuses will cause the mutation
- [createInvoiceLineItem](/graphql-api/api-reference/mutations/create-invoice-line-item.md): Creates an invoice line item for an invoice.
- [createInvoicedOneTimeCharge](/graphql-api/api-reference/mutations/create-invoiced-one-time-charge.md): Immediately charges and invoices the given amount
- [createOrder](/graphql-api/api-reference/mutations/create-order.md): Deprecated: The behavior of this mutation will be changed significantly soon.
- [createOrderedProduct](/graphql-api/api-reference/mutations/create-ordered-product.md): Deprecated: Use CreateOrderedProductV2 instead.
- [createOrderedProductV2](/graphql-api/api-reference/mutations/create-ordered-product-v-2.md): Creates an ordered product on subscription identified via \`X-Subscription-Token\` or \`X-Project-Access-Token\`.
- [createProduct](/graphql-api/api-reference/mutations/create-product.md): Creates a product.
- [createProductGroup](/graphql-api/api-reference/mutations/create-product-group.md): Creates a product group.
- [createPromotion](/graphql-api/api-reference/mutations/create-promotion.md): Creates a promotion.
- [createReturnOrder](/graphql-api/api-reference/mutations/create-return-order.md): Creates a return order for the subscription.
- [createSelfServiceCenterLoginToken](/graphql-api/api-reference/mutations/create-self-service-center-login-token.md): Deprecated: This mutation is deprecated. If you would like to send an email with a link to the self service center, please use the \`sendSelfServiceCenterLoginTokenEmail\` mutation. If you need to creat
- [createSelfServiceCenterLoginTokenV2](/graphql-api/api-reference/mutations/create-self-service-center-login-token-v-2.md): Creates and returns a SelfServiceCenterLoginToken.
- [createServiceChannel](/graphql-api/api-reference/mutations/create-service-channel.md): Creates a service channel.
- [createSubscription](/graphql-api/api-reference/mutations/create-subscription.md): Creates a new subscription and returns payment redirection URLs.
- [createSubscriptionFromCart](/graphql-api/api-reference/mutations/create-subscription-from-cart.md): Finalises a subscription and returns payment details based on a cart/draft subscription identified by \`X-Subscription-Token\`.
- [creditAndRefundInvoice](/graphql-api/api-reference/mutations/credit-and-refund-invoice.md): Immediately creates a credit invoice and a tries to create a refund for the full amount of the original invoice
- [deactivateAppliedPromotion](/graphql-api/api-reference/mutations/deactivate-applied-promotion.md): Deactivates an applied promotion.
- [destroyDiscountCode](/graphql-api/api-reference/mutations/destroy-discount-code.md): Destroys a discount code (validation prevents removal if already applied)
- [destroyInvoiceLineItem](/graphql-api/api-reference/mutations/destroy-invoice-line-item.md): Destroys an invoice line item.
- [destroyOrderedProduct](/graphql-api/api-reference/mutations/destroy-ordered-product.md): Deletes an ordered product from the subscription identified via \`X-Subscription-Token\` or when authenticated through a project write token.
- [destroyProductGroup](/graphql-api/api-reference/mutations/destroy-product-group.md): Destroys a product group.
- [editPlan](/graphql-api/api-reference/mutations/edit-plan.md): Edits a plan.
- [fulfillOrder](/graphql-api/api-reference/mutations/fulfill-order.md): Marks an order as fulfilled. If Track\&Trace code is given in will also trigger Track\&Trace email.
- [fulfillOrders](/graphql-api/api-reference/mutations/fulfill-orders.md): Option to mark multiple orders as fulfilled at once, up to a maximum of 100 orders each time.
- [generateOfferForAssetOwnership](/graphql-api/api-reference/mutations/generate-offer-for-asset-ownership.md): Generates an asset purchase offer for the specified asset ownership.
- [importSubscription](/graphql-api/api-reference/mutations/import-subscription.md): Creates a subscription directly into the database without the need for a customer to signup, only use this when you're migrating from another platform.
- [pauseSubscription](/graphql-api/api-reference/mutations/pause-subscription.md): Pauses a subscription
- [pushOrdersToShopify](/graphql-api/api-reference/mutations/push-orders-to-shopify.md): Pushes orders to Shopify, this happens asynchronously.
- [refundPayment](/graphql-api/api-reference/mutations/refund-payment.md): Issues a refund for a payment. Some payment service providers may limit the maximum amount for or timeframe in which you can refund a payment.
- [rescheduleScheduledOrder](/graphql-api/api-reference/mutations/reschedule-scheduled-order.md): Reschedules a scheduled order to a new shipment date. If the order has a Shopify fulfillment order, a fulfillment reschedule job is enqueued.
- [resumeSubscription](/graphql-api/api-reference/mutations/resume-subscription.md): Resumes the subscription
- [retryFailedPayment](/graphql-api/api-reference/mutations/retry-failed-payment.md): Retries a failed payment and creates a new retry payment attempt.
- [sendSelfServiceCenterLoginTokenEmail](/graphql-api/api-reference/mutations/send-self-service-center-login-token-email.md): Creates a SelfServiceCenterLoginToken and sends an email to the customer's email address on file so they can log into their self service center.
- [shipOrderedProducts](/graphql-api/api-reference/mutations/ship-ordered-products.md): Immediately creates an order for the passed ordered products of the subscription. Any other ordered products of this subscription scheduled for today will also be shipped in the same order.
- [switchSubscriptionPlan](/graphql-api/api-reference/mutations/switch-subscription-plan.md): Initiates a plan switch offer for subscription.
- [syncShopifyProducts](/graphql-api/api-reference/mutations/sync-shopify-products.md): Syncs products from Shopify to Firmhouse.
- [unassignAsset](/graphql-api/api-reference/mutations/unassign-asset.md): Unassign asset from a subscription, this will mark the asset ownership as returned.
- [undoSubscriptionCancellation](/graphql-api/api-reference/mutations/undo-subscription-cancellation.md): Stops the subscription cancellation process (only available when two-step cancellation is enabled on your project).
- [updateAddressDetails](/graphql-api/api-reference/mutations/update-address-details.md): Updates certain information on the subscription identified via \`X-Subscription-Token\`
- [updateAppliedPromotion](/graphql-api/api-reference/mutations/update-applied-promotion.md): Updates a promotion applied to a Subscription
- [updateAsset](/graphql-api/api-reference/mutations/update-asset.md): Update an asset.
- [updateAssetOwnership](/graphql-api/api-reference/mutations/update-asset-ownership.md): Updates an asset ownership.
- [updateDiscountCode](/graphql-api/api-reference/mutations/update-discount-code.md): Updates a discount code (e.g., deactivate it or edit usage limits)
- [updateInvoice](/graphql-api/api-reference/mutations/update-invoice.md): Updates an invoice.
- [updateInvoiceLineItem](/graphql-api/api-reference/mutations/update-invoice-line-item.md): Updates an invoice line item.
- [updateOrder](/graphql-api/api-reference/mutations/update-order.md): Updates Order attributes. Only status, fulfilledAt timestamp, and trackingCode are allowed to be updated. Fulfillment process will not be triggered.
- [updateOrderLine](/graphql-api/api-reference/mutations/update-order-line.md): Updates an order line. Allows changing the quantity and product.
- [updateOrderedProduct](/graphql-api/api-reference/mutations/update-ordered-product.md): Updates the ordered product on a subscription identified via \`X-Subscription-Token\`.
- [updateOrderedProductQuantity](/graphql-api/api-reference/mutations/update-ordered-product-quantity.md): Updates an ordered product's quantity identified via \`X-Subscription-Token\`.
- [updatePlan](/graphql-api/api-reference/mutations/update-plan.md): Updates the active plan of the subscription identified via \`X-Subscription-Token\`.
- [updateProduct](/graphql-api/api-reference/mutations/update-product.md): Updates a product.
- [updateProductGroup](/graphql-api/api-reference/mutations/update-product-group.md): Updates a product group.
- [updatePromotion](/graphql-api/api-reference/mutations/update-promotion.md): Updates a promotion.
- [updateReturnOrder](/graphql-api/api-reference/mutations/update-return-order.md): Updates an 'in progress' return order.
- [updateSelfServiceCenterTemplate](/graphql-api/api-reference/mutations/update-self-service-center-template.md): Updates a Self Service Center V2 template.
- [updateShippingCostsExemption](/graphql-api/api-reference/mutations/update-shipping-costs-exemption.md): Updates the shipping costs exemption.
- [updateSubscribedPlan](/graphql-api/api-reference/mutations/update-subscribed-plan.md): Deprecated: This mutation is deprecated. Use \`updateSubscribedPlanV2\` for service-based plan switching behavior. Updates the subscribed plan.
- [updateSubscribedPlanV2](/graphql-api/api-reference/mutations/update-subscribed-plan-v-2.md): Updates the subscribed plan using plan switch service behavior.
- [updateSubscription](/graphql-api/api-reference/mutations/update-subscription.md): Updates a subscription.
- [updateSubscriptionAcceptanceCheck](/graphql-api/api-reference/mutations/update-subscription-acceptance-check.md): Updates the status or value of a subscription acceptance check.
