younifyd
Menu

Shopify Storefront actions

Pick an action to see its parameters, request body and response fields.

71 actions

Article · 1

Articles · 1

Blog · 1

Blogs · 1

Cart · 26

QUERYcartFetch a cart by its ID — line items, cost, buyer identity, discount/gift-card codes, delivery groups, and the `checkoutUrl`.MUTATIONcartAttributesUpdateUpdates the attributes on a Cart. Attributes are custom key-value pairs that store additional information, such as gift messages, special instructions, or order notes.MUTATIONcartBillingAddressUpdateUpdates the billing address on the cart.MUTATIONcartBuyerIdentityUpdateUpdates the buyer identity on a Cart, including contact information, location, and checkout preferences.MUTATIONcartCloneCreates a clone of the specified cart with all personally identifiable information removed.QUERYcartCompletionAttemptA poll for the status of the cart checkout completion and order creation.MUTATIONcartCreateCreate a cart, optionally with line items, buyer identity, discount codes, gift cards and attributes; returns the cart and its `checkoutUrl`.MUTATIONcartDeliveryAddressesAddAdds delivery addresses to a Cart. A cart can have up to 20 delivery addresses.MUTATIONcartDeliveryAddressesRemoveRemoves delivery addresses from a Cart by their IDs, allowing batch removal in a single request.MUTATIONcartDeliveryAddressesReplaceReplaces all delivery addresses on a Cart with a new set of addresses in a single operation.MUTATIONcartDeliveryAddressesUpdateUpdates one or more delivery addresses on a Cart. Each address can be modified to change its details, set it as the pre-selected address for checkout, or mark it for one-time use so it isn't saved to the customer's…MUTATIONcartDiscountCodesUpdateUpdates the discount codes applied to a Cart. This mutation replaces all existing discount codes with the provided list, so pass an empty array to remove all codes.MUTATIONcartGiftCardCodesAddAdds gift card codes to a Cart without replacing any codes already applied. Gift card codes are case-insensitive.MUTATIONcartGiftCardCodesRemoveRemoves gift cards from a Cart using their IDs. You can retrieve the IDs of applied gift cards from the cart's appliedGiftCards field.MUTATIONcartGiftCardCodesUpdateUpdates the gift card codes applied to the cart. Unlike cartGiftCardCodesAdd, which adds codes without replacing existing ones, this mutation sets the gift card codes for the cart.MUTATIONcartLinesAddAdds one or more merchandise lines to an existing Cart. Each line specifies the product variant to purchase.MUTATIONcartLinesRemoveRemoves one or more merchandise lines from a Cart. Accepts up to 250 line IDs per request.MUTATIONcartLinesUpdateUpdates one or more merchandise lines on a Cart. You can modify the quantity, swap the merchandise, change custom attributes, or update the selling plan for each line.MUTATIONcartMetafieldDeleteDeletes a cart metafield. Note: This mutation won't trigger Shopify Functions.MUTATIONcartMetafieldsSetSets Metafield values on a cart, creating new metafields or updating existing ones. Accepts up to 25 metafields per request.MUTATIONcartNoteUpdateUpdates the note on a Cart. The note is a text field that stores additional information, such as a personalized message from the buyer or special instructions for the order.MUTATIONcartPaymentUpdateUpdate the customer's payment method that will be used to checkout.MUTATIONcartPrepareForCompletionValidate and lock a cart's contents/price ahead of submitting it for completion.MUTATIONcartRemovePersonalDataRemoves personally identifiable information from the cart.MUTATIONcartSelectedDeliveryOptionsUpdateUpdates the selected delivery option for one or more CartDeliveryGroup objects in a cart. Each delivery group represents items shipping to a specific address and offers multiple delivery options with different costs…MUTATIONcartSubmitForCompletionSubmit a prepared cart for order creation — returns a `cartCompletionAttempt` to poll.

Collection · 1

Collections · 1

Customer · 16

QUERYcustomerRetrieves the Customer associated with the provided access token. Use the customerAccessTokenCreate mutation to obtain an access token using legacy customer account authentication (email and password).MUTATIONcustomerAccessTokenCreateExchange a customer's email + password for an access token (legacy customer accounts) — pass the token to the customer-scoped queries and mutations.MUTATIONcustomerAccessTokenCreateWithMultipassCreates a CustomerAccessToken using a multipass token instead of email and password. This enables single sign-on for customers who authenticate through an external system.MUTATIONcustomerAccessTokenDeletePermanently destroys a CustomerAccessToken. Use this mutation when a customer explicitly signs out or when you need to revoke the token.MUTATIONcustomerAccessTokenRenewExtends the validity of a CustomerAccessToken before it expires. The renewed token maintains authenticated access to customer operations.MUTATIONcustomerActivateActivates a customer account using an activation token received from the customerCreate mutation.MUTATIONcustomerActivateByUrlActivates a customer account using the full activation URL from the customerCreate mutation.MUTATIONcustomerAddressCreateCreates a new MailingAddress for a Customer. Use the customer's access token to identify them.MUTATIONcustomerAddressDeletePermanently deletes a specific MailingAddress for a Customer. Requires a valid customer access token to authenticate the request.MUTATIONcustomerAddressUpdateUpdates an existing MailingAddress for a Customer. Requires a customer access token to identify the customer, an ID to specify which address to modify, and an address with the updated fields.MUTATIONcustomerCreateCreates a new Customer account with the provided contact information and login credentials.MUTATIONcustomerDefaultAddressUpdateUpdates the default address of an existing Customer. Requires a customer access token to identify the customer and an address ID to specify which address to set as the new default.MUTATIONcustomerRecoverSends a reset password email to the customer. The email contains a reset password URL and token that you can pass to the customerResetByUrl or customerReset mutation to reset the customer's password.MUTATIONcustomerResetResets a customer's password using the reset token from a password recovery email. On success, returns the updated Customer and a new CustomerAccessToken for immediate authentication.MUTATIONcustomerResetByUrlResets a customer's password using the reset URL from a password recovery email. The reset URL is generated by the customerRecover mutation.MUTATIONcustomerUpdateUpdates a customer's personal information such as name, password, and marketing preferences.

Localization · 1

Locations · 1

Menu · 1

Metaobject · 1

Metaobjects · 1

Node · 1

Nodes · 1

Page · 1

Pages · 1

Payment · 1

Predictive · 1

Product · 4

Products · 1

Public · 1

Search · 1

Shop · 3

Sitemap · 1

Url · 1

Shopify Storefront actions — Documentation