TanqoryDocs

Mutation

  • Object
  • Other types

The root of every mutation: each field is an operation with its own page.

Fields

FieldTypeDescription
cartAttributesUpdateCartAttributesUpdatePayloadSets the cart's custom attributes; the list you send replaces the existing ones.
cartBillingAddressUpdateCartBillingAddressUpdatePayloadSets or clears the billing address kept on the cart for checkout.
cartBuyerIdentityUpdateCartBuyerIdentityUpdatePayloadUpdates who is buying: email, phone, customer, country and buyer preferences, which can change prices and currency.
cartCloneCartClonePayloadCreates a new cart that copies the given cart's lines, attributes, note and codes but leaves out personal data and metafields.
cartCreateCartCreatePayloadCreates a cart, optionally filled with lines, buyer details, codes, delivery addresses, attributes, a note and metafields.
cartDeliveryAddressesAddCartDeliveryAddressesAddPayloadAdds delivery addresses the buyer can choose from to the cart.
cartDeliveryAddressesRemoveCartDeliveryAddressesRemovePayloadRemoves delivery addresses from the cart by their IDs.
cartDeliveryAddressesReplaceCartDeliveryAddressesReplacePayloadReplaces all of the cart's delivery addresses with the list you send.
cartDeliveryAddressesUpdateCartDeliveryAddressesUpdatePayloadChanges delivery addresses already on the cart, identified by their IDs.
cartDiscountCodesUpdateCartDiscountCodesUpdatePayloadSets the cart's discount codes; the list you send replaces the existing ones, and codes are compared without case.
cartGiftCardCodesAddCartGiftCardCodesAddPayloadAdds gift card codes to the cart and keeps those already applied.
cartGiftCardCodesRemoveCartGiftCardCodesRemovePayloadRemoves applied gift cards from the cart by their applied gift card IDs.
cartGiftCardCodesUpdateCartGiftCardCodesUpdatePayloadSets the cart's gift card codes; the list you send replaces the existing ones.
cartLinesAddCartLinesAddPayloadAdds merchandise lines to the cart.
cartLinesRemoveCartLinesRemovePayloadRemoves lines from the cart, named by lineIds or viewKeys.
cartLinesUpdateCartLinesUpdatePayloadChanges existing cart lines, such as their quantity, attributes or selling plan.
cartMetafieldDeleteCartMetafieldDeletePayloadDeletes one metafield from a cart, named by the cart's ownerId and the metafield key.
cartMetafieldsSetCartMetafieldsSetPayloadCreates or updates metafields on carts, up to 25 per call; each entry names its cart with ownerId.
cartNoteUpdateCartNoteUpdatePayloadSets the cart's note for the merchant.
cartPaymentUpdateCartPaymentUpdatePayloadSets the payment the cart will be charged with at checkout: a free method or a card session, for the exact amount still owed.
cartPrepareForCompletionCartPrepareForCompletionPayloadChecks whether the cart is ready to be turned into an order.
cartRemovePersonalDataCartRemovePersonalDataPayloadRemoves the buyer's personal data from the cart: email, phone, customer, preferences, billing address and delivery addresses.
cartSelectedDeliveryOptionsUpdateCartSelectedDeliveryOptionsUpdatePayloadChooses a delivery option for each of the cart's delivery groups.
cartSubmitForCompletionCartSubmitForCompletionPayloadStarts turning the cart into an order: checks it, reserves stock and charges the payment.
customerAccessTokenCreateCustomerAccessTokenCreatePayloadSigns a customer in with email and password and returns a customer access token with its expiry.
customerAccessTokenCreateWithMultipassCustomerAccessTokenCreateWithMultipassPayloadSigns a customer in with a signed, encrypted multipass token from the merchant's own site, creating or re-enabling the customer as needed.
customerAccessTokenDeleteCustomerAccessTokenDeletePayloadDeletes a customer access token so it can no longer be used, signing the customer out.
customerAccessTokenRenewCustomerAccessTokenRenewPayloadExtends a customer access token that has not yet expired.
customerActivateCustomerActivatePayloadActivates a customer account with the activation token from the invitation email and sets its password.
customerActivateByUrlCustomerActivateByUrlPayloadActivates a customer account from the full activation URL in the invitation email and sets its password.
customerAddressCreateCustomerAddressCreatePayloadAdds an address to the signed-in customer's address book; needs a valid customerAccessToken.
customerAddressDeleteCustomerAddressDeletePayloadDeletes one of the signed-in customer's addresses by id; needs a valid customerAccessToken.
customerAddressUpdateCustomerAddressUpdatePayloadChanges one of the signed-in customer's addresses by id; needs a valid customerAccessToken.
customerCreateCustomerCreatePayloadRegisters a new customer account with email, password and optional name, phone and marketing consent.
customerDefaultAddressUpdateCustomerDefaultAddressUpdatePayloadMakes one of the signed-in customer's saved addresses their default; needs a valid customerAccessToken.
customerRecoverCustomerRecoverPayloadEmails the customer with this address a link to reset their password.
customerResetCustomerResetPayloadSets a new password with the reset token from the password reset email.
customerResetByUrlCustomerResetByUrlPayloadSets a new password from the full reset URL in the password reset email.
customerUpdateCustomerUpdatePayloadUpdates the signed-in customer's name, email, phone, password or marketing consent; needs a valid customerAccessToken.
shopPayPaymentRequestSessionCreateShopPayPaymentRequestSessionCreatePayloadCreates a wallet payment request session for a sourceIdentifier.
shopPayPaymentRequestSessionSubmitShopPayPaymentRequestSessionSubmitPayloadSubmits a wallet payment request session by its token to place the order.
tanqoryExtCartPaymentOptionSelectTanqoryExtCartPaymentOptionSelectPayload!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…
tanqoryExtStorefrontPasswordCheckTanqoryExtStorefrontPasswordCheckPayload!Checks a shopper's storefront password (POST /password).
tanqoryExtArticleCommentCreateTanqoryExtArticleCommentCreatePayload!Posts a comment on a published article (blog comments form).
tanqoryExtContactFormSubmitTanqoryExtContactFormSubmitPayload!The contact form: emails the store's contact address through the customer message sender; Reply-To is the shopper's email.
tanqoryExtNewsletterSubscribeTanqoryExtNewsletterSubscribePayload!The newsletter sign-up form ({% form 'customer' %}, card WEB-6): subscribes email to email marketing.
tanqoryExtCartBuyerConsentUpdateTanqoryExtCartExtrasPayload!Records the marketing sign-up boxes the buyer ticked (null leaves a box as it is).
tanqoryExtCartTipUpdateTanqoryExtCartExtrasPayload!Sets the buyer's tip for the store in the cart's currency (null or 0 removes it).
tanqoryExtCheckoutRecoveryLinkSendTanqoryExtCheckoutRecoveryLinkSendPayload!Mails the checkout's recovery link (the admin's abandonedCheckoutUrl) again to the buyer's email.
tanqoryExtInvoicePaymentStartTanqoryExtInvoicePaymentStartPayload!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…
tanqoryExtCheckoutPaymentActionCompleteTanqoryExtPaymentActionCompletePayload!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.
tanqoryExtCheckoutPaypalOrderCreateTanqoryExtPaypalOrderPayload!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.
tanqoryExtCheckoutPaypalShippingChangeTanqoryExtPaypalOrderPayload!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…
tanqoryExtCheckoutPaypalApproveTanqoryExtPaypalApprovePayload!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…
tanqoryExtCheckoutStoreCreditApplyTanqoryExtCartExtrasPayload!Uses up to amount of the signed-in buyer's store credit (the cart's buyer identity holds a customerAccessToken).
tanqoryExtCheckoutStoreCreditRemoveTanqoryExtCartExtrasPayload!Uses no store credit.
tanqoryExtCustomerEmailChangeConfirmTanqoryExtCustomerEmailChangeConfirmPayload!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).
tanqoryExtCustomerMarketingConfirmTanqoryExtCustomerMarketingConfirmPayload!Confirms the customer's marketing sign-up: every channel waiting for confirmation (email, SMS) is subscribed with confirmed opt-in.
tanqoryExtCustomerDataRequestTanqoryExtCustomerDataRequestPayload!The signed-in buyer asks for a copy of their data (A-04).
tanqoryExtSubscriptionContractActionTanqoryExtSubscriptionContractActionPayload!Pauses, resumes, skips the next billing of, or cancels one of the customer's own subscription contracts (A-09).
tanqoryExtBuyerPrivacyOptOutTanqoryExtBuyerPrivacyOptOutPayload!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).
tanqoryExtOrderLookupTanqoryExtOrderLookupPayload!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.
tanqoryExtOrderWithdrawalTanqoryExtOrderWithdrawalPayload!EU online withdrawal (A-16; Dir.
tanqoryExtCustomerOrderCancelTanqoryExtCustomerOrderPayload!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).
tanqoryExtCustomerOrderShippingAddressUpdateTanqoryExtCustomerOrderPayload!Changes the shipping address of one of the customer's own orders that nothing of has been fulfilled (A-17).
tanqoryExtCustomerReturnRequestTanqoryExtCustomerReturnRequestPayload!Asks the store for a return of fulfilled units of one of the customer's own orders (A-17; the admin returnRequest).
tanqoryExtCustomerMarketingConsentUpdateTanqoryExtCustomerMarketingConsentUpdatePayload!Sets the customer's SMS and / or WhatsApp marketing consent, and the phone number they go to (A-05).
tanqoryExtCustomerSignInCodeSendTanqoryExtCustomerSignInCodeSendPayload!Mails a 6-digit sign-in code (valid 10 minutes, single use) to the address.
tanqoryExtCustomerSignInCodeVerifyTanqoryExtCustomerSignInPayload!Checks the code.
tanqoryExtCustomerSocialSignInTanqoryExtCustomerSignInPayload!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.
tanqoryExtCustomerPasskeyOptionsTanqoryExtCustomerPasskeyOptionsPayload!Passkey ceremony options (WebAuthn).
tanqoryExtCustomerPasskeyVerifyTanqoryExtCustomerSignInPayload!Finishes the ceremony.
tanqoryExtCustomerAccessTokensDeleteAllTanqoryExtCustomerAccessTokensDeleteAllPayload!Signs the buyer out everywhere: deletes every access token of the customer.
tanqoryExtCustomerAccountDeleteTanqoryExtCustomerAccountDeletePayload!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…

Built from commit c0b3fb3fdef7 · API version 2026-10