For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Dev Portal
DocsAPI ReferenceLearnCommunityChangelog
DocsAPI ReferenceLearnCommunityChangelog
    • About Our APIs
  • REST
    • Overview
  • GraphQL
    • Overview
      • Playground
      • Explorer
          • MUTcreateCart
          • MUTdeleteCart
          • MUTaddCartLineItems
          • MUTupdateCartLineItem
          • MUTdeleteCartLineItem
          • MUTupdateCartCurrency
          • MUTassignCartToCustomer
          • MUTunassignCartFromCustomer
          • MUTcreateCartMetafield
          • MUTupdateCartMetafield
          • MUTdeleteCartMetafield
          • MUTcreateCartRedirectUrls
          • MUTcreateCheckout
          • MUTupdateCheckout
          • MUTaddCheckoutBillingAddress
          • MUTupdateCheckoutBillingAddress
          • MUTupdateCheckoutCustomerMessage
          • MUTselectCheckoutShippingOption
          • MUTapplyCheckoutCoupon
          • MUTunapplyCheckoutCoupon
          • MUTapplyCheckoutGiftCertificate
          • MUTunapplyCheckoutGiftCertificate
          • MUTapplyCheckoutSpamProtection
          • MUTaddCheckoutShippingConsignments
          • MUTupdateCheckoutShippingConsignment
          • MUTdeleteCheckoutConsignment
          • MUTcompleteCheckout
          • MUTlogin
          • MUTlogout
          • MUTcreateWishlist
          • MUTaddWishlistItems
          • MUTdeleteWishlistItems
          • MUTupdateWishlist
          • MUTdeleteWishlists
          • MUTloginWithCustomerLoginJwt
          • MUTsubmitContactUs
          • MUTgenerateSessionSyncJwt
          • MUTvalidateSessionSyncJwt
          • MUTproductViewedEvent
          • MUTpageViewedEvent
          • MUTvisitStartedEvent
          • MUTsearchProductEvent
          • MUTpreviewGiftCertificate
          • MUTregisterCompany
          • MUTaddProductReview
          • MUTchangePassword
          • MUTrequestResetPassword
          • MUTresetPassword
          • MUTregisterCustomer
          • MUTupdateCustomer
          • MUTaddCustomerAddress
          • MUTupdateCustomerAddress
          • MUTdeleteCustomerAddress
          • MUTpayment
          • MUTsubscribe
          • MUTunsubscribe
  • MCP
    • Overview
Dev Portal
LogoLogo
GraphQLStorefrontMutations

createCartRedirectUrls

Example Query
1mutation ExampleMutation($input: CreateCartRedirectUrlsInput) {
2 createCartRedirectUrls(input: $input) {
3 redirectUrls {
4 redirectedCheckoutUrl
5 embeddedCheckoutUrl
6 externalCheckoutUrl
7 }
8 errors
9 }
10}
Variables
1{
2 "input": {
3 "cartEntityId": "example",
4 "queryParams": [
5 {
6 "key": "example",
7 "value": "example"
8 }
9 ],
10 "ipAddress": "IpAddress",
11 "visitorId": "UUID",
12 "visitId": "UUID",
13 "paymentWalletData": {
14 "initializationId": "example",
15 "providerOrderId": "example",
16 "providerId": "example"
17 },
18 "analytics": {
19 "initiator": {
20 "visitId": "example",
21 "visitorId": "example"
22 },
23 "request": {
24 "url": "URL",
25 "userAgent": "example",
26 "refererUrl": "URL",
27 "ip": "IpAddress",
28 "acceptLanguage": "example"
29 },
30 "consent": {
31 "targeting": true,
32 "analytics": true,
33 "functional": true
34 }
35 }
36 }
37}
Example response
1{
2 "data": {
3 "createCartRedirectUrls": {
4 "redirectUrls": {
5 "redirectedCheckoutUrl": "example",
6 "embeddedCheckoutUrl": "example",
7 "externalCheckoutUrl": "example"
8 },
9 "errors": [
10 {
11 "message": "example"
12 }
13 ]
14 }
15 }
16}

Create single-use redirect URLs for a cart.

Was this page helpful?
Previous

deleteCartMetafield

Next

createCheckout

Built with

Arguments

inputCreateCartRedirectUrlsInputOptional
Create cart redirect URLs input object.

Returns

a CreateCartRedirectUrlsResult
errorslist of CreateCartRedirectUrlsErrors
Errors found during creation of cart redirect URLs.
redirectUrlsCartRedirectUrls
The redirect URLs created as a result of the mutation.