Mutation
- Object
- Other types
The root of every mutation: each field is an operation with its own page.
Fields
| Field | Type | Description |
|---|---|---|
cartAttributesUpdate | CartAttributesUpdatePayload | Sets the cart's custom attributes; the list you send replaces the existing ones. |
cartBillingAddressUpdate | CartBillingAddressUpdatePayload | Sets or clears the billing address kept on the cart for checkout. |
cartBuyerIdentityUpdate | CartBuyerIdentityUpdatePayload | Updates who is buying: email, phone, customer, country and buyer preferences, which can change prices and currency. |
cartClone | CartClonePayload | Creates a new cart that copies the given cart's lines, attributes, note and codes but leaves out personal data and metafields. |
cartCreate | CartCreatePayload | Creates a cart, optionally filled with lines, buyer details, codes, delivery addresses, attributes, a note and metafields. |
cartDeliveryAddressesAdd | CartDeliveryAddressesAddPayload | Adds delivery addresses the buyer can choose from to the cart. |
cartDeliveryAddressesRemove | CartDeliveryAddressesRemovePayload | Removes delivery addresses from the cart by their IDs. |
cartDeliveryAddressesReplace | CartDeliveryAddressesReplacePayload | Replaces all of the cart's delivery addresses with the list you send. |
cartDeliveryAddressesUpdate | CartDeliveryAddressesUpdatePayload | Changes delivery addresses already on the cart, identified by their IDs. |
cartDiscountCodesUpdate | CartDiscountCodesUpdatePayload | Sets the cart's discount codes; the list you send replaces the existing ones, and codes are compared without case. |
cartGiftCardCodesAdd | CartGiftCardCodesAddPayload | Adds gift card codes to the cart and keeps those already applied. |
cartGiftCardCodesRemove | CartGiftCardCodesRemovePayload | Removes applied gift cards from the cart by their applied gift card IDs. |
cartGiftCardCodesUpdate | CartGiftCardCodesUpdatePayload | Sets the cart's gift card codes; the list you send replaces the existing ones. |
cartLinesAdd | CartLinesAddPayload | Adds merchandise lines to the cart. |
cartLinesRemove | CartLinesRemovePayload | Removes lines from the cart, named by lineIds or viewKeys. |
cartLinesUpdate | CartLinesUpdatePayload | Changes existing cart lines, such as their quantity, attributes or selling plan. |
cartMetafieldDelete | CartMetafieldDeletePayload | Deletes one metafield from a cart, named by the cart's ownerId and the metafield key. |
cartMetafieldsSet | CartMetafieldsSetPayload | Creates or updates metafields on carts, up to 25 per call; each entry names its cart with ownerId. |
cartNoteUpdate | CartNoteUpdatePayload | Sets the cart's note for the merchant. |
cartPaymentUpdate | CartPaymentUpdatePayload | Sets the payment the cart will be charged with at checkout: a free method or a card session, for the exact amount still owed. |
cartPrepareForCompletion | CartPrepareForCompletionPayload | Checks whether the cart is ready to be turned into an order. |
cartRemovePersonalData | CartRemovePersonalDataPayload | Removes the buyer's personal data from the cart: email, phone, customer, preferences, billing address and delivery addresses. |
cartSelectedDeliveryOptionsUpdate | CartSelectedDeliveryOptionsUpdatePayload | Chooses a delivery option for each of the cart's delivery groups. |
cartSubmitForCompletion | CartSubmitForCompletionPayload | Starts turning the cart into an order: checks it, reserves stock and charges the payment. |
customerAccessTokenCreate | CustomerAccessTokenCreatePayload | Signs a customer in with email and password and returns a customer access token with its expiry. |
customerAccessTokenCreateWithMultipass | CustomerAccessTokenCreateWithMultipassPayload | Signs a customer in with a signed, encrypted multipass token from the merchant's own site, creating or re-enabling the customer as needed. |
customerAccessTokenDelete | CustomerAccessTokenDeletePayload | Deletes a customer access token so it can no longer be used, signing the customer out. |
customerAccessTokenRenew | CustomerAccessTokenRenewPayload | Extends a customer access token that has not yet expired. |
customerActivate | CustomerActivatePayload | Activates a customer account with the activation token from the invitation email and sets its password. |
customerActivateByUrl | CustomerActivateByUrlPayload | Activates a customer account from the full activation URL in the invitation email and sets its password. |
customerAddressCreate | CustomerAddressCreatePayload | Adds an address to the signed-in customer's address book; needs a valid customerAccessToken. |
customerAddressDelete | CustomerAddressDeletePayload | Deletes one of the signed-in customer's addresses by id; needs a valid customerAccessToken. |
customerAddressUpdate | CustomerAddressUpdatePayload | Changes one of the signed-in customer's addresses by id; needs a valid customerAccessToken. |
customerCreate | CustomerCreatePayload | Registers a new customer account with email, password and optional name, phone and marketing consent. |
customerDefaultAddressUpdate | CustomerDefaultAddressUpdatePayload | Makes one of the signed-in customer's saved addresses their default; needs a valid customerAccessToken. |
customerRecover | CustomerRecoverPayload | Emails the customer with this address a link to reset their password. |
customerReset | CustomerResetPayload | Sets a new password with the reset token from the password reset email. |
customerResetByUrl | CustomerResetByUrlPayload | Sets a new password from the full reset URL in the password reset email. |
customerUpdate | CustomerUpdatePayload | Updates the signed-in customer's name, email, phone, password or marketing consent; needs a valid customerAccessToken. |
shopPayPaymentRequestSessionCreate | ShopPayPaymentRequestSessionCreatePayload | Creates a wallet payment request session for a sourceIdentifier. |
shopPayPaymentRequestSessionSubmit | ShopPayPaymentRequestSessionSubmitPayload | Submits a wallet payment request session by its token to place the order. |
tanqoryExtCartPaymentOptionSelect | TanqoryExtCartPaymentOptionSelectPayload! | Pays the cart with an option of tanqoryExtCheckoutPaymentOptions: a gateway or manual option, or a payments account option that is not a card (Stripe promptpay, wallets; a card through the payments account is given with… |
tanqoryExtStorefrontPasswordCheck | TanqoryExtStorefrontPasswordCheckPayload! | Checks a shopper's storefront password (POST /password). |
tanqoryExtArticleCommentCreate | TanqoryExtArticleCommentCreatePayload! | Posts a comment on a published article (blog comments form). |
tanqoryExtContactFormSubmit | TanqoryExtContactFormSubmitPayload! | The contact form: emails the store's contact address through the customer message sender; Reply-To is the shopper's email. |
tanqoryExtNewsletterSubscribe | TanqoryExtNewsletterSubscribePayload! | The newsletter sign-up form ({% form 'customer' %}, card WEB-6): subscribes email to email marketing. |
tanqoryExtCartBuyerConsentUpdate | TanqoryExtCartExtrasPayload! | Records the marketing sign-up boxes the buyer ticked (null leaves a box as it is). |
tanqoryExtCartTipUpdate | TanqoryExtCartExtrasPayload! | Sets the buyer's tip for the store in the cart's currency (null or 0 removes it). |
tanqoryExtCheckoutRecoveryLinkSend | TanqoryExtCheckoutRecoveryLinkSendPayload! | Mails the checkout's recovery link (the admin's abandonedCheckoutUrl) again to the buyer's email. |
tanqoryExtInvoicePaymentStart | TanqoryExtInvoicePaymentStartPayload! | Pays the invoice's amount due, with a card vault session through the payments account (sessionId, as cartPaymentUpdate's directPaymentMethod) or an option of paymentOptions (optionId; a gateway account's card option tak… |
tanqoryExtCheckoutPaymentActionComplete | TanqoryExtPaymentActionCompletePayload! | Continues a waiting attempt with what the buyer's browser or the gateway's return gave: a browser SDK token, the result of a 3-D Secure step, or the query/body the gateway sent the buyer back with. |
tanqoryExtCheckoutPaypalOrderCreate | TanqoryExtPaypalOrderPayload! | The button was pressed (createOrder): a PayPal order for what the cart costs now, on the store's PayPal account, with the buyer's wallet address (GET_FROM_FILE) and Pay Now. |
tanqoryExtCheckoutPaypalShippingChange | TanqoryExtPaypalOrderPayload! | The buyer changed the address or the shipping option in PayPal's window: the cart takes the address (city, state, postal code and country are all PayPal gives here) and the option (else the cheapest), and the PayPal ord… |
tanqoryExtCheckoutPaypalApprove | TanqoryExtPaypalApprovePayload! | The buyer approved in PayPal's window (onApprove): the API reads the order from PayPal (status, payer, full address), writes them on the cart, keeps the PayPal option with the approved order, brings the order's amount t… |
tanqoryExtCheckoutStoreCreditApply | TanqoryExtCartExtrasPayload! | Uses up to amount of the signed-in buyer's store credit (the cart's buyer identity holds a customerAccessToken). |
tanqoryExtCheckoutStoreCreditRemove | TanqoryExtCartExtrasPayload! | Uses no store credit. |
tanqoryExtCustomerEmailChangeConfirm | TanqoryExtCustomerEmailChangeConfirmPayload! | Confirms an email change: customerId and token come from the link mailed to the new address (/account/email/confirm/<customer id>/<token>, valid 1 day; the id as in the link, or a Customer gid). |
tanqoryExtCustomerMarketingConfirm | TanqoryExtCustomerMarketingConfirmPayload! | Confirms the customer's marketing sign-up: every channel waiting for confirmation (email, SMS) is subscribed with confirmed opt-in. |
tanqoryExtCustomerDataRequest | TanqoryExtCustomerDataRequestPayload! | The signed-in buyer asks for a copy of their data (A-04). |
tanqoryExtSubscriptionContractAction | TanqoryExtSubscriptionContractActionPayload! | Pauses, resumes, skips the next billing of, or cancels one of the customer's own subscription contracts (A-09). |
tanqoryExtBuyerPrivacyOptOut | TanqoryExtBuyerPrivacyOptOutPayload! | Do not sell or share my personal information (A-12): records the opt-out for the token's customer, or for email (as the admin dataSaleOptOut). |
tanqoryExtOrderLookup | TanqoryExtOrderLookupPayload! | Order lookup (A-16): mails the order's status link to the order's email when email and orderName name one order of the store. |
tanqoryExtOrderWithdrawal | TanqoryExtOrderWithdrawalPayload! | EU online withdrawal (A-16; Dir. |
tanqoryExtCustomerOrderCancel | TanqoryExtCustomerOrderPayload! | Cancels one of the customer's own orders that nothing of has been fulfilled, refunding what was paid to the original payment methods (A-17). |
tanqoryExtCustomerOrderShippingAddressUpdate | TanqoryExtCustomerOrderPayload! | Changes the shipping address of one of the customer's own orders that nothing of has been fulfilled (A-17). |
tanqoryExtCustomerReturnRequest | TanqoryExtCustomerReturnRequestPayload! | Asks the store for a return of fulfilled units of one of the customer's own orders (A-17; the admin returnRequest). |
tanqoryExtCustomerMarketingConsentUpdate | TanqoryExtCustomerMarketingConsentUpdatePayload! | Sets the customer's SMS and / or WhatsApp marketing consent, and the phone number they go to (A-05). |
tanqoryExtCustomerSignInCodeSend | TanqoryExtCustomerSignInCodeSendPayload! | Mails a 6-digit sign-in code (valid 10 minutes, single use) to the address. |
tanqoryExtCustomerSignInCodeVerify | TanqoryExtCustomerSignInPayload! | Checks the code. |
tanqoryExtCustomerSocialSignIn | TanqoryExtCustomerSignInPayload! | Signs in with Google, Facebook, Apple or LINE: the authorization code the provider sent back to the BFF's callback, with the PKCE verifier and the nonce the BFF generated. |
tanqoryExtCustomerPasskeyOptions | TanqoryExtCustomerPasskeyOptionsPayload! | Passkey ceremony options (WebAuthn). |
tanqoryExtCustomerPasskeyVerify | TanqoryExtCustomerSignInPayload! | Finishes the ceremony. |
tanqoryExtCustomerAccessTokensDeleteAll | TanqoryExtCustomerAccessTokensDeleteAllPayload! | Signs the buyer out everywhere: deletes every access token of the customer. |
tanqoryExtCustomerAccountDelete | TanqoryExtCustomerAccountDeletePayload! | The signed-in buyer deletes their account (A-20, addition to OS-CK CONTRACT §B): the store gets the same data erasure request as the admin customerRequestDataErasure, and every token, passkey and social link of the cust… |